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.esm.js
CHANGED
|
@@ -58,10 +58,8 @@ import { HiOutlineChevronRight } from '@react-icons/all-files/hi/HiOutlineChevro
|
|
|
58
58
|
import { HiOutlineChevronLeft } from '@react-icons/all-files/hi/HiOutlineChevronLeft';
|
|
59
59
|
import { GoGlobe } from '@react-icons/all-files/go/GoGlobe';
|
|
60
60
|
import { VscGlobe } from '@react-icons/all-files/vsc/VscGlobe';
|
|
61
|
-
import { HiOutlineTrash } from '@react-icons/all-files/hi/HiOutlineTrash';
|
|
62
|
-
import { BiSad } from '@react-icons/all-files/bi/BiSad';
|
|
63
|
-
import { FiCalendar } from '@react-icons/all-files/fi/FiCalendar';
|
|
64
61
|
import Dropdown from 'react-bootstrap/Dropdown';
|
|
62
|
+
import { FiCalendar } from '@react-icons/all-files/fi/FiCalendar';
|
|
65
63
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
66
64
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
67
65
|
import { HiUser } from '@react-icons/all-files/hi/HiUser';
|
|
@@ -630,8 +628,8 @@ var Imagekitimagecomp = function Imagekitimagecomp(props) {
|
|
|
630
628
|
}));
|
|
631
629
|
};
|
|
632
630
|
|
|
633
|
-
function ownKeys$
|
|
634
|
-
function _objectSpread$
|
|
631
|
+
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; }
|
|
632
|
+
function _objectSpread$2v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
635
633
|
var Login = function Login(props) {
|
|
636
634
|
var _css;
|
|
637
635
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -707,7 +705,7 @@ var Login = function Login(props) {
|
|
|
707
705
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
708
706
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
709
707
|
});
|
|
710
|
-
setsectionproperties(_objectSpread$
|
|
708
|
+
setsectionproperties(_objectSpread$2v({}, secpropobj));
|
|
711
709
|
}
|
|
712
710
|
}, [StatePagePropertiesContext]);
|
|
713
711
|
useEffect(function () {
|
|
@@ -874,9 +872,9 @@ var Login = function Login(props) {
|
|
|
874
872
|
className: "".concat(loginstyles2.form_control),
|
|
875
873
|
value: payloadobj.email,
|
|
876
874
|
onChange: function onChange(event) {
|
|
877
|
-
var temppayloadobj = _objectSpread$
|
|
875
|
+
var temppayloadobj = _objectSpread$2v({}, payloadobj);
|
|
878
876
|
temppayloadobj.email = event.target.value;
|
|
879
|
-
setpayloadobj(_objectSpread$
|
|
877
|
+
setpayloadobj(_objectSpread$2v({}, temppayloadobj));
|
|
880
878
|
},
|
|
881
879
|
style: {
|
|
882
880
|
background: sectionproperties.input_bgcolor
|
|
@@ -898,9 +896,9 @@ var Login = function Login(props) {
|
|
|
898
896
|
textplaceholder: "",
|
|
899
897
|
value: payloadobj.password,
|
|
900
898
|
onChange: function onChange(event) {
|
|
901
|
-
var temppayloadobj = _objectSpread$
|
|
899
|
+
var temppayloadobj = _objectSpread$2v({}, payloadobj);
|
|
902
900
|
temppayloadobj.password = event.target.value;
|
|
903
|
-
setpayloadobj(_objectSpread$
|
|
901
|
+
setpayloadobj(_objectSpread$2v({}, temppayloadobj));
|
|
904
902
|
},
|
|
905
903
|
style: {
|
|
906
904
|
background: sectionproperties.input_bgcolor
|
|
@@ -1077,9 +1075,9 @@ var Login = function Login(props) {
|
|
|
1077
1075
|
className: "".concat(loginstyles2.form_control),
|
|
1078
1076
|
value: forgotpasswordpayload.email,
|
|
1079
1077
|
onChange: function onChange(event) {
|
|
1080
|
-
var temppayloadobj = _objectSpread$
|
|
1078
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1081
1079
|
temppayloadobj.email = event.target.value;
|
|
1082
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1080
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1083
1081
|
},
|
|
1084
1082
|
disabled: forgetpasswordstage == 'verify' ? true : false,
|
|
1085
1083
|
style: {
|
|
@@ -1094,9 +1092,9 @@ var Login = function Login(props) {
|
|
|
1094
1092
|
className: "".concat(loginstyles2.form_control),
|
|
1095
1093
|
value: forgotpasswordpayload.code,
|
|
1096
1094
|
onChange: function onChange(event) {
|
|
1097
|
-
var temppayloadobj = _objectSpread$
|
|
1095
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1098
1096
|
temppayloadobj.code = event.target.value;
|
|
1099
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1097
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1100
1098
|
},
|
|
1101
1099
|
style: {
|
|
1102
1100
|
background: sectionproperties.input_bgcolor
|
|
@@ -1110,9 +1108,9 @@ var Login = function Login(props) {
|
|
|
1110
1108
|
className: "".concat(loginstyles2.form_control),
|
|
1111
1109
|
value: forgotpasswordpayload.newpassword,
|
|
1112
1110
|
onChange: function onChange(event) {
|
|
1113
|
-
var temppayloadobj = _objectSpread$
|
|
1111
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1114
1112
|
temppayloadobj.newpassword = event.target.value;
|
|
1115
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1113
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1116
1114
|
},
|
|
1117
1115
|
style: {
|
|
1118
1116
|
background: sectionproperties.input_bgcolor
|
|
@@ -1126,9 +1124,9 @@ var Login = function Login(props) {
|
|
|
1126
1124
|
className: "".concat(loginstyles2.form_control),
|
|
1127
1125
|
value: forgotpasswordpayload.confirmnewpassword,
|
|
1128
1126
|
onChange: function onChange(event) {
|
|
1129
|
-
var temppayloadobj = _objectSpread$
|
|
1127
|
+
var temppayloadobj = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1130
1128
|
temppayloadobj.confirmnewpassword = event.target.value;
|
|
1131
|
-
setforgotpasswordpayload(_objectSpread$
|
|
1129
|
+
setforgotpasswordpayload(_objectSpread$2v({}, temppayloadobj));
|
|
1132
1130
|
},
|
|
1133
1131
|
style: {
|
|
1134
1132
|
background: sectionproperties.input_bgcolor
|
|
@@ -1140,7 +1138,7 @@ var Login = function Login(props) {
|
|
|
1140
1138
|
onClick: function onClick() {
|
|
1141
1139
|
if (forgotpasswordpayload.email.length != 0) {
|
|
1142
1140
|
var runfunc = false;
|
|
1143
|
-
var tempforgotpasswordpayload = _objectSpread$
|
|
1141
|
+
var tempforgotpasswordpayload = _objectSpread$2v({}, forgotpasswordpayload);
|
|
1144
1142
|
tempforgotpasswordpayload.functype = forgetpasswordstage;
|
|
1145
1143
|
if (forgetpasswordstage == 'verify') {
|
|
1146
1144
|
if (tempforgotpasswordpayload.newpassword.length != 0 && tempforgotpasswordpayload.code.length != 0) {
|
|
@@ -1191,11 +1189,11 @@ var css_248z$J = "@media screen and (max-width: 800px) {\n .signup-module_rig
|
|
|
1191
1189
|
var loginstyles = {"rightContainer":"signup-module_rightContainer__yEcoL","rightContainerTrans":"signup-module_rightContainerTrans__fkdBH","rightContainerText":"signup-module_rightContainerText__-pvN-","form_control":"signup-module_form_control__7s76W","anim-shadow":"signup-module_anim-shadow__CsxhG","login_input_icon":"signup-module_login_input_icon__RDTS0","form_control_border_none":"signup-module_form_control_border_none__HjUMS","disabled":"signup-module_disabled__h55ao","leftcontainer":"signup-module_leftcontainer__bqfnN","form_controltextarea":"signup-module_form_controltextarea__-LGz6","checkbox":"signup-module_checkbox__8ejBx","checkbox_label":"signup-module_checkbox_label__d84Q2","checkbox_sub":"signup-module_checkbox_sub__WQLUX","checkboxtranslated":"signup-module_checkboxtranslated__4xHR-","showpassword_input_icon":"signup-module_showpassword_input_icon__cVHRS","showpassword_input_icontrans":"signup-module_showpassword_input_icontrans__vmV5q"};
|
|
1192
1190
|
styleInject(css_248z$J);
|
|
1193
1191
|
|
|
1194
|
-
function ownKeys$
|
|
1195
|
-
function _objectSpread$
|
|
1192
|
+
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; }
|
|
1193
|
+
function _objectSpread$2u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1196
1194
|
var selectcustomStyles = {
|
|
1197
1195
|
option: function option(provided, state) {
|
|
1198
|
-
return _objectSpread$
|
|
1196
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1199
1197
|
borderBottom: '1px solid #e6e6e6',
|
|
1200
1198
|
backgroundColor: state.isSelected ? '' : '',
|
|
1201
1199
|
padding: 5,
|
|
@@ -1224,7 +1222,7 @@ var selectcustomStyles = {
|
|
|
1224
1222
|
};
|
|
1225
1223
|
var selectcustomStylesTranslated = {
|
|
1226
1224
|
option: function option(provided, state) {
|
|
1227
|
-
return _objectSpread$
|
|
1225
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1228
1226
|
borderBottom: '1px solid #e6e6e6',
|
|
1229
1227
|
backgroundColor: state.isSelected ? '' : '',
|
|
1230
1228
|
padding: 5,
|
|
@@ -1253,14 +1251,14 @@ var selectcustomStylesTranslated = {
|
|
|
1253
1251
|
};
|
|
1254
1252
|
},
|
|
1255
1253
|
placeholder: function placeholder(provided, state) {
|
|
1256
|
-
return _objectSpread$
|
|
1254
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1257
1255
|
textAlign: 'right'
|
|
1258
1256
|
});
|
|
1259
1257
|
}
|
|
1260
1258
|
};
|
|
1261
1259
|
var defaultstyles = {
|
|
1262
1260
|
option: function option(provided, state) {
|
|
1263
|
-
return _objectSpread$
|
|
1261
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1264
1262
|
borderBottom: '1px solid #e6e6e6',
|
|
1265
1263
|
backgroundColor: state.isSelected ? '' : '',
|
|
1266
1264
|
padding: 5,
|
|
@@ -1288,7 +1286,7 @@ var defaultstyles = {
|
|
|
1288
1286
|
}), _ref;
|
|
1289
1287
|
},
|
|
1290
1288
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1291
|
-
return _objectSpread$
|
|
1289
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1292
1290
|
'&:hover': {
|
|
1293
1291
|
// color: '#eac435',
|
|
1294
1292
|
}
|
|
@@ -1297,7 +1295,7 @@ var defaultstyles = {
|
|
|
1297
1295
|
};
|
|
1298
1296
|
var defaultstylestranslated = {
|
|
1299
1297
|
option: function option(provided, state) {
|
|
1300
|
-
return _objectSpread$
|
|
1298
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1301
1299
|
borderBottom: '1px solid #e6e6e6',
|
|
1302
1300
|
backgroundColor: state.isSelected ? '' : '',
|
|
1303
1301
|
padding: 5,
|
|
@@ -1328,21 +1326,21 @@ var defaultstylestranslated = {
|
|
|
1328
1326
|
};
|
|
1329
1327
|
},
|
|
1330
1328
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1331
|
-
return _objectSpread$
|
|
1329
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1332
1330
|
'&:hover': {
|
|
1333
1331
|
// color: '#eac435',
|
|
1334
1332
|
}
|
|
1335
1333
|
});
|
|
1336
1334
|
},
|
|
1337
1335
|
placeholder: function placeholder(provided, state) {
|
|
1338
|
-
return _objectSpread$
|
|
1336
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1339
1337
|
textAlign: 'right'
|
|
1340
1338
|
});
|
|
1341
1339
|
}
|
|
1342
1340
|
};
|
|
1343
1341
|
var defaultstylesnone = {
|
|
1344
1342
|
option: function option(provided, state) {
|
|
1345
|
-
return _objectSpread$
|
|
1343
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1346
1344
|
borderBottom: '1px solid #e6e6e6',
|
|
1347
1345
|
backgroundColor: state.isSelected ? '' : '',
|
|
1348
1346
|
padding: 5,
|
|
@@ -1370,7 +1368,7 @@ var defaultstylesnone = {
|
|
|
1370
1368
|
};
|
|
1371
1369
|
},
|
|
1372
1370
|
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1373
|
-
return _objectSpread$
|
|
1371
|
+
return _objectSpread$2u(_objectSpread$2u({}, provided), {}, {
|
|
1374
1372
|
'&:hover': {
|
|
1375
1373
|
// color: '#eac435',
|
|
1376
1374
|
}
|
|
@@ -1963,8 +1961,8 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1963
1961
|
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(Math.round(parseInt(fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 ? parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2) : parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2)) * (fetchProductInfoQueryContext.data.data.productinfo.prodaffpercentprofit / 100))).toFixed(0), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))));
|
|
1964
1962
|
};
|
|
1965
1963
|
|
|
1966
|
-
function ownKeys$
|
|
1967
|
-
function _objectSpread$
|
|
1964
|
+
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; }
|
|
1965
|
+
function _objectSpread$2t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1968
1966
|
var ProductExtraFields = function ProductExtraFields(props) {
|
|
1969
1967
|
var _fetchProductInfoQuer, _css, _fetchProductInfoQuer2;
|
|
1970
1968
|
props.actions.lang;
|
|
@@ -2019,9 +2017,9 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
2019
2017
|
});
|
|
2020
2018
|
}
|
|
2021
2019
|
setproductextravaluesarray(_toConsumableArray(tempproductextravaluesarray));
|
|
2022
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2020
|
+
var tempaddtocardpayloadobj = _objectSpread$2t({}, addtocardpayloadobj);
|
|
2023
2021
|
tempaddtocardpayloadobj.extrafields = tempproductextravaluesarray;
|
|
2024
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2022
|
+
setaddtocardpayloadobj(_objectSpread$2t({}, tempaddtocardpayloadobj));
|
|
2025
2023
|
};
|
|
2026
2024
|
var formstyles = {
|
|
2027
2025
|
input_label_name: css({
|
|
@@ -2236,8 +2234,8 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
2236
2234
|
})))));
|
|
2237
2235
|
};
|
|
2238
2236
|
|
|
2239
|
-
function ownKeys$
|
|
2240
|
-
function _objectSpread$
|
|
2237
|
+
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; }
|
|
2238
|
+
function _objectSpread$2s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2241
2239
|
var Product_itemtype = function Product_itemtype(props) {
|
|
2242
2240
|
var _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42;
|
|
2243
2241
|
var lang = props.actions.lang;
|
|
@@ -2797,11 +2795,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2797
2795
|
}, sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React.createElement("span", {
|
|
2798
2796
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
2799
2797
|
onClick: function onClick() {
|
|
2800
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2798
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2801
2799
|
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
2802
2800
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
2803
2801
|
}
|
|
2804
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2802
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2805
2803
|
}
|
|
2806
2804
|
}, /*#__PURE__*/React.createElement("i", {
|
|
2807
2805
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered',
|
|
@@ -2815,9 +2813,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2815
2813
|
}, addtocardpayloadobj.quantity), sectionproperties.quantitybtneditable == 'No' && /*#__PURE__*/React.createElement("span", {
|
|
2816
2814
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
2817
2815
|
onClick: function onClick() {
|
|
2818
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2816
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2819
2817
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
2820
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2818
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2821
2819
|
}
|
|
2822
2820
|
}, /*#__PURE__*/React.createElement("i", {
|
|
2823
2821
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-up' : 'h-100 allcentered'
|
|
@@ -2842,13 +2840,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2842
2840
|
value: addtocardpayloadobj.quantity,
|
|
2843
2841
|
onChange: function onChange(event) {
|
|
2844
2842
|
if (event.target.value == NaN || event.target.value == undefined || event.target.value == null || event.target.value == '') {
|
|
2845
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2843
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2846
2844
|
tempaddtocardpayloadobj.quantity = 1;
|
|
2847
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2845
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2848
2846
|
} else {
|
|
2849
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2847
|
+
var tempaddtocardpayloadobj = _objectSpread$2s({}, addtocardpayloadobj);
|
|
2850
2848
|
tempaddtocardpayloadobj.quantity = parseInt(event.target.value);
|
|
2851
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2849
|
+
setaddtocardpayloadobj(_objectSpread$2s({}, tempaddtocardpayloadobj));
|
|
2852
2850
|
}
|
|
2853
2851
|
}
|
|
2854
2852
|
})), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer27 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.data) === null || _fetchProductInfoQuer27 === void 0 || (_fetchProductInfoQuer27 = _fetchProductInfoQuer27.productinfo) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("button", {
|
|
@@ -3364,8 +3362,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3364
3362
|
}, ShareButtonsContainer()))))))));
|
|
3365
3363
|
};
|
|
3366
3364
|
|
|
3367
|
-
function ownKeys$
|
|
3368
|
-
function _objectSpread$
|
|
3365
|
+
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; }
|
|
3366
|
+
function _objectSpread$2r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3369
3367
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
3370
3368
|
var _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer17, _fetchProductInfoQuer18;
|
|
3371
3369
|
var langdetect = props.actions.langdetect;
|
|
@@ -3406,7 +3404,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3406
3404
|
slots = _useState6[0],
|
|
3407
3405
|
setslots = _useState6[1];
|
|
3408
3406
|
useEffect(function () {
|
|
3409
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3407
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3410
3408
|
item_type: 'service'
|
|
3411
3409
|
}));
|
|
3412
3410
|
}, [tabsarray]);
|
|
@@ -3418,16 +3416,16 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3418
3416
|
if (diffDays.toString() != 'NaN') {
|
|
3419
3417
|
if (date2 <= date1) {
|
|
3420
3418
|
NotificationManager.warning('', 'Please choose another date.');
|
|
3421
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3419
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3422
3420
|
quantity: 0
|
|
3423
3421
|
}));
|
|
3424
3422
|
} else {
|
|
3425
3423
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
3426
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3424
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3427
3425
|
quantity: diffDays
|
|
3428
3426
|
}));
|
|
3429
3427
|
} else {
|
|
3430
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3428
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3431
3429
|
quantity: 0
|
|
3432
3430
|
}));
|
|
3433
3431
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
@@ -3641,7 +3639,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3641
3639
|
});
|
|
3642
3640
|
if (reservedslotArrtobetaken.length != 0) {
|
|
3643
3641
|
reservedslottobetaken = reservedslotArrtobetaken[0].slot;
|
|
3644
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3642
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3645
3643
|
time: reservedslottobetaken,
|
|
3646
3644
|
reserved_slots: reservedslotArrtobetaken,
|
|
3647
3645
|
quantity: parseInt(reservedslotArrtobetaken.length)
|
|
@@ -3700,7 +3698,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3700
3698
|
min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.serviceinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.reservationstarts,
|
|
3701
3699
|
max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.serviceinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.reservationends,
|
|
3702
3700
|
onChange: function onChange(event) {
|
|
3703
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3701
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3704
3702
|
from: event.target.value
|
|
3705
3703
|
}));
|
|
3706
3704
|
}
|
|
@@ -3720,7 +3718,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3720
3718
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
3721
3719
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
3722
3720
|
onChange: function onChange(event) {
|
|
3723
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3721
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3724
3722
|
to: event.target.value
|
|
3725
3723
|
}));
|
|
3726
3724
|
}
|
|
@@ -3740,7 +3738,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3740
3738
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
3741
3739
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
3742
3740
|
onChange: function onChange(event) {
|
|
3743
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3741
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3744
3742
|
date: event.target.value
|
|
3745
3743
|
}));
|
|
3746
3744
|
setcurrentmutatestate('/fetchserviceslots');
|
|
@@ -3799,7 +3797,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3799
3797
|
}, /*#__PURE__*/React.createElement("button", {
|
|
3800
3798
|
"class": TabsStyles.booknow_btn_resp + ' allcentered ',
|
|
3801
3799
|
onClick: function onClick() {
|
|
3802
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3800
|
+
setaddtocardpayloadobj(_objectSpread$2r(_objectSpread$2r({}, addtocardpayloadobj), {}, {
|
|
3803
3801
|
time: item.slot
|
|
3804
3802
|
}));
|
|
3805
3803
|
}
|
|
@@ -4577,8 +4575,8 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
4577
4575
|
}, StoreInfoprops()))));
|
|
4578
4576
|
};
|
|
4579
4577
|
|
|
4580
|
-
function ownKeys$
|
|
4581
|
-
function _objectSpread$
|
|
4578
|
+
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; }
|
|
4579
|
+
function _objectSpread$2q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4582
4580
|
var AddReview = function AddReview(props) {
|
|
4583
4581
|
var _css;
|
|
4584
4582
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -4630,7 +4628,7 @@ var AddReview = function AddReview(props) {
|
|
|
4630
4628
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
4631
4629
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
4632
4630
|
});
|
|
4633
|
-
setsectionproperties(_objectSpread$
|
|
4631
|
+
setsectionproperties(_objectSpread$2q({}, secpropobj));
|
|
4634
4632
|
}
|
|
4635
4633
|
}, [StatePagePropertiesContext]);
|
|
4636
4634
|
useEffect(function () {
|
|
@@ -4639,7 +4637,7 @@ var AddReview = function AddReview(props) {
|
|
|
4639
4637
|
templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[pageindexcontext]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
|
|
4640
4638
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
4641
4639
|
});
|
|
4642
|
-
setsectionproperties(_objectSpread$
|
|
4640
|
+
setsectionproperties(_objectSpread$2q({}, secpropobj));
|
|
4643
4641
|
}, [pageindexcontext]);
|
|
4644
4642
|
var reviewstyles = {
|
|
4645
4643
|
submitreviewbtn: css({
|
|
@@ -4765,9 +4763,9 @@ var AddReview = function AddReview(props) {
|
|
|
4765
4763
|
}),
|
|
4766
4764
|
activeColor: "#ffd700",
|
|
4767
4765
|
onChange: function onChange(event) {
|
|
4768
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4766
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4769
4767
|
tempreviewpayloadobj.reviewrate = event;
|
|
4770
|
-
setreviewpayloadobj(_objectSpread$
|
|
4768
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4771
4769
|
}
|
|
4772
4770
|
})))))), /*#__PURE__*/React.createElement("div", {
|
|
4773
4771
|
"class": "col-lg-12"
|
|
@@ -4781,9 +4779,9 @@ var AddReview = function AddReview(props) {
|
|
|
4781
4779
|
"class": reviewstyles.form_control,
|
|
4782
4780
|
value: reviewpayloadobj.reviewname,
|
|
4783
4781
|
onChange: function onChange(event) {
|
|
4784
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4782
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4785
4783
|
tempreviewpayloadobj.reviewname = event.target.value;
|
|
4786
|
-
setreviewpayloadobj(_objectSpread$
|
|
4784
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4787
4785
|
}
|
|
4788
4786
|
})), /*#__PURE__*/React.createElement("div", {
|
|
4789
4787
|
"class": "col-lg-12 mb-4"
|
|
@@ -4793,9 +4791,9 @@ var AddReview = function AddReview(props) {
|
|
|
4793
4791
|
"class": reviewstyles.form_control,
|
|
4794
4792
|
value: reviewpayloadobj.reviewtitle,
|
|
4795
4793
|
onChange: function onChange(event) {
|
|
4796
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4794
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4797
4795
|
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
4798
|
-
setreviewpayloadobj(_objectSpread$
|
|
4796
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4799
4797
|
}
|
|
4800
4798
|
})), /*#__PURE__*/React.createElement("div", {
|
|
4801
4799
|
"class": "col-lg-12 mb-4"
|
|
@@ -4806,9 +4804,9 @@ var AddReview = function AddReview(props) {
|
|
|
4806
4804
|
"class": reviewstyles.form_control + ' form_control ',
|
|
4807
4805
|
value: reviewpayloadobj.reviewbody,
|
|
4808
4806
|
onChange: function onChange(event) {
|
|
4809
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
4807
|
+
var tempreviewpayloadobj = _objectSpread$2q({}, reviewpayloadobj);
|
|
4810
4808
|
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
4811
|
-
setreviewpayloadobj(_objectSpread$
|
|
4809
|
+
setreviewpayloadobj(_objectSpread$2q({}, tempreviewpayloadobj));
|
|
4812
4810
|
},
|
|
4813
4811
|
style: {
|
|
4814
4812
|
resize: 'none',
|
|
@@ -4843,8 +4841,8 @@ var AddReview = function AddReview(props) {
|
|
|
4843
4841
|
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
4844
4842
|
};
|
|
4845
4843
|
|
|
4846
|
-
function ownKeys$
|
|
4847
|
-
function _objectSpread$
|
|
4844
|
+
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; }
|
|
4845
|
+
function _objectSpread$2p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4848
4846
|
var ProductReviews = function ProductReviews(props) {
|
|
4849
4847
|
var _fetchProductInfoQuer, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
4850
4848
|
props.actions.lang;
|
|
@@ -5078,7 +5076,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
5078
5076
|
size: "md",
|
|
5079
5077
|
"class": "reviewmodal"
|
|
5080
5078
|
}, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement(AddReview, {
|
|
5081
|
-
actions: _objectSpread$
|
|
5079
|
+
actions: _objectSpread$2p(_objectSpread$2p({}, actions), {}, {
|
|
5082
5080
|
productid: productid,
|
|
5083
5081
|
canuserreview: canuserreview,
|
|
5084
5082
|
addreviewcallback: addreviewcallback
|
|
@@ -5086,8 +5084,8 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
5086
5084
|
}))));
|
|
5087
5085
|
};
|
|
5088
5086
|
|
|
5089
|
-
function ownKeys$
|
|
5090
|
-
function _objectSpread$
|
|
5087
|
+
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; }
|
|
5088
|
+
function _objectSpread$2o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5091
5089
|
var Productinfo = function Productinfo(props) {
|
|
5092
5090
|
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
5093
5091
|
var _useState = useState({}),
|
|
@@ -5116,7 +5114,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5116
5114
|
setfetchProductInfoQueryContext = _useState4[1];
|
|
5117
5115
|
useEffect(function () {
|
|
5118
5116
|
if (fetchProductInfoQueryContextProps.isSuccess) {
|
|
5119
|
-
setProductInfoObj(_objectSpread$
|
|
5117
|
+
setProductInfoObj(_objectSpread$2o({}, fetchProductInfoQueryContextProps.data));
|
|
5120
5118
|
setfetchProductInfoQueryContext(fetchProductInfoQueryContextProps);
|
|
5121
5119
|
}
|
|
5122
5120
|
}, [props.actions, props, fetchProductInfoQueryContextProps.data, fetchProductInfoQueryContextProps.isSuccess]);
|
|
@@ -5232,7 +5230,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5232
5230
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
5233
5231
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5234
5232
|
});
|
|
5235
|
-
setsectionproperties(_objectSpread$
|
|
5233
|
+
setsectionproperties(_objectSpread$2o({}, secpropobj));
|
|
5236
5234
|
setTabIndex(0);
|
|
5237
5235
|
settabname('descriptiontab');
|
|
5238
5236
|
if (sectionproperties.prodCatShow == 'Hide' || sectionproperties.descriptionposition != 'Bottom') {
|
|
@@ -5272,7 +5270,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5272
5270
|
templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[pageindexcontext]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
|
|
5273
5271
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5274
5272
|
});
|
|
5275
|
-
setsectionproperties(_objectSpread$
|
|
5273
|
+
setsectionproperties(_objectSpread$2o({}, secpropobj));
|
|
5276
5274
|
}, [pageindexcontext]);
|
|
5277
5275
|
useEffect(function () {
|
|
5278
5276
|
if (productidparam == undefined) {
|
|
@@ -5292,12 +5290,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
5292
5290
|
}
|
|
5293
5291
|
}, [ProductInfoObj, isloaded]);
|
|
5294
5292
|
var productidassigner = function productidassigner(productid) {
|
|
5295
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
5293
|
+
var tempFetchQueriesEngineContext = _objectSpread$2o({}, FetchQueriesEngineContext);
|
|
5296
5294
|
tempFetchQueriesEngineContext.fetchproductinfo = true;
|
|
5297
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
5298
|
-
var tempfetchproductinfoObjContext = _objectSpread$
|
|
5295
|
+
setFetchQueriesEngineContext(_objectSpread$2o({}, tempFetchQueriesEngineContext));
|
|
5296
|
+
var tempfetchproductinfoObjContext = _objectSpread$2o({}, fetchproductinfoObjContext);
|
|
5299
5297
|
tempfetchproductinfoObjContext.productid = productid;
|
|
5300
|
-
setfetchproductinfoObjContext(_objectSpread$
|
|
5298
|
+
setfetchproductinfoObjContext(_objectSpread$2o({}, tempfetchproductinfoObjContext));
|
|
5301
5299
|
};
|
|
5302
5300
|
useEffect(function () {
|
|
5303
5301
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
@@ -5334,9 +5332,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
5334
5332
|
}
|
|
5335
5333
|
setproductimagesarray([].concat(tempproductimagesarray));
|
|
5336
5334
|
variantchecker();
|
|
5337
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5335
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5338
5336
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
5339
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5337
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5340
5338
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
5341
5339
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.maintagid) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.maintagid) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.length) != 0) {
|
|
5342
5340
|
GeneralAPIMutationContext.mutate({
|
|
@@ -5387,7 +5385,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5387
5385
|
});
|
|
5388
5386
|
variantchecker();
|
|
5389
5387
|
variantcompleting();
|
|
5390
|
-
setProductInfoObj(_objectSpread$
|
|
5388
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5391
5389
|
};
|
|
5392
5390
|
var variantchecker = function variantchecker() {
|
|
5393
5391
|
var productarr = ProductInfoObj;
|
|
@@ -5461,16 +5459,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
5461
5459
|
});
|
|
5462
5460
|
}
|
|
5463
5461
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
5464
|
-
setProductInfoObj(_objectSpread$
|
|
5462
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5465
5463
|
setisloaded(true);
|
|
5466
5464
|
}
|
|
5467
5465
|
}
|
|
5468
5466
|
};
|
|
5469
5467
|
var variantcompleting = function variantcompleting() {
|
|
5470
5468
|
setvariantindexcompleted('');
|
|
5471
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5469
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5472
5470
|
tempaddtocardpayloadobj.variantid = '';
|
|
5473
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5471
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5474
5472
|
var productarr = ProductInfoObj;
|
|
5475
5473
|
var selectedoptionsvalues = [];
|
|
5476
5474
|
productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
|
|
@@ -5503,7 +5501,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5503
5501
|
NotificationManager.warning('', 'Variant Not Found');
|
|
5504
5502
|
} else {
|
|
5505
5503
|
variantid = variantobj.variantid;
|
|
5506
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5504
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5507
5505
|
tempaddtocardpayloadobj.variantid = variantid;
|
|
5508
5506
|
var variantimageindex = 0;
|
|
5509
5507
|
productimagesarray === null || productimagesarray === void 0 || productimagesarray.forEach(function (tempimageitem, tempimageindex) {
|
|
@@ -5518,14 +5516,14 @@ var Productinfo = function Productinfo(props) {
|
|
|
5518
5516
|
}
|
|
5519
5517
|
setvariantsku(variantobj === null || variantobj === void 0 ? void 0 : variantobj.sku);
|
|
5520
5518
|
setcurrentshowingimageindex(variantimageindex);
|
|
5521
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5519
|
+
setaddtocardpayloadobj(_objectSpread$2o({}, tempaddtocardpayloadobj));
|
|
5522
5520
|
setvariantindexcompleted(ProductVariantIndex);
|
|
5523
5521
|
setvariantindex(ProductVariantIndex);
|
|
5524
5522
|
}
|
|
5525
5523
|
}
|
|
5526
5524
|
});
|
|
5527
5525
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
5528
|
-
setProductInfoObj(_objectSpread$
|
|
5526
|
+
setProductInfoObj(_objectSpread$2o({}, productarr));
|
|
5529
5527
|
};
|
|
5530
5528
|
var addtocartfunc = function addtocartfunc(forcetocheckout) {
|
|
5531
5529
|
var runfunc = false;
|
|
@@ -5544,7 +5542,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5544
5542
|
}
|
|
5545
5543
|
if (runfunc == true) {
|
|
5546
5544
|
var _fetchProductInfoQuer7, _fetchProductInfoQuer8;
|
|
5547
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5545
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5548
5546
|
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.isproductforcedtocheckout;
|
|
5549
5547
|
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.vendorproviderid;
|
|
5550
5548
|
if (forcetocheckoutvalue != undefined) {
|
|
@@ -5568,7 +5566,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
5568
5566
|
};
|
|
5569
5567
|
var validateextrafields = function validateextrafields() {
|
|
5570
5568
|
var _fetchProductInfoQuer15;
|
|
5571
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
5569
|
+
var tempaddtocardpayloadobj = _objectSpread$2o({}, addtocardpayloadobj);
|
|
5572
5570
|
var status = false;
|
|
5573
5571
|
var reason = '';
|
|
5574
5572
|
var missingitemsfound = [];
|
|
@@ -6607,7 +6605,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6607
6605
|
}))), /*#__PURE__*/React.createElement(Box, {
|
|
6608
6606
|
"class": "w-100 mt-5 mb-4"
|
|
6609
6607
|
}, tabname == 'descriptiontab' && sectionproperties.descriptionposition == 'Bottom' && /*#__PURE__*/React.createElement(DescriptionContent, {
|
|
6610
|
-
actions: _objectSpread$
|
|
6608
|
+
actions: _objectSpread$2o(_objectSpread$2o({}, actions), {}, {
|
|
6611
6609
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
6612
6610
|
sectionproperties: sectionproperties
|
|
6613
6611
|
})
|
|
@@ -6655,7 +6653,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
6655
6653
|
})), tabname == 'reviewstab' && /*#__PURE__*/React.createElement("div", {
|
|
6656
6654
|
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
6657
6655
|
}, /*#__PURE__*/React.createElement(ProductReviews, {
|
|
6658
|
-
actions: _objectSpread$
|
|
6656
|
+
actions: _objectSpread$2o(_objectSpread$2o({}, actions), {}, {
|
|
6659
6657
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
6660
6658
|
sectionproperties: sectionproperties
|
|
6661
6659
|
})
|
|
@@ -6672,8 +6670,8 @@ var css_248z$I = "/* Side Nav */\n.staticroutersidenav-module_vertical_nav_menu_
|
|
|
6672
6670
|
var staticroutersidenav = {"vertical_nav_menu":"staticroutersidenav-module_vertical_nav_menu__p0mIj","sidebar_item":"staticroutersidenav-module_sidebar_item__3F9Q1","sidenav_page_name":"staticroutersidenav-module_sidenav_page_name__46AJV","sidenav_icon_cont":"staticroutersidenav-module_sidenav_icon_cont__O8YSe","metismenu_icon":"staticroutersidenav-module_metismenu_icon__EcRZ1","sidenav_active":"staticroutersidenav-module_sidenav_active__IjRo0","horizontal_nav_menu":"staticroutersidenav-module_horizontal_nav_menu__6V32S","sidebar_itemlastchild":"staticroutersidenav-module_sidebar_itemlastchild__9O187"};
|
|
6673
6671
|
styleInject(css_248z$I);
|
|
6674
6672
|
|
|
6675
|
-
function ownKeys$
|
|
6676
|
-
function _objectSpread$
|
|
6673
|
+
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; }
|
|
6674
|
+
function _objectSpread$2n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6677
6675
|
var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
6678
6676
|
var _useState = useState(props.currentpageprops),
|
|
6679
6677
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -6709,7 +6707,7 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
6709
6707
|
templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
|
|
6710
6708
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6711
6709
|
});
|
|
6712
|
-
setsectionproperties(_objectSpread$
|
|
6710
|
+
setsectionproperties(_objectSpread$2n({}, secpropobj));
|
|
6713
6711
|
}
|
|
6714
6712
|
}, [CurrentPageId]);
|
|
6715
6713
|
var styles = {
|
|
@@ -6875,8 +6873,8 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
6875
6873
|
}))))));
|
|
6876
6874
|
};
|
|
6877
6875
|
|
|
6878
|
-
function ownKeys$
|
|
6879
|
-
function _objectSpread$
|
|
6876
|
+
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; }
|
|
6877
|
+
function _objectSpread$2m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6880
6878
|
var Ordershistory = function Ordershistory(props) {
|
|
6881
6879
|
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue2, _fetchorderhistoryQue3, _fetchorderhistoryQue4, _fetchorderhistoryQue5;
|
|
6882
6880
|
var lang = props.actions.lang;
|
|
@@ -6929,9 +6927,9 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
6929
6927
|
setorderindex = _useState14[1];
|
|
6930
6928
|
useEffect(function () {
|
|
6931
6929
|
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
|
|
6932
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
6930
|
+
var tempFetchQueriesEngineContext = _objectSpread$2m({}, FetchQueriesEngineContext);
|
|
6933
6931
|
tempFetchQueriesEngineContext.orderhistory = true;
|
|
6934
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
6932
|
+
setFetchQueriesEngineContext(_objectSpread$2m({}, tempFetchQueriesEngineContext));
|
|
6935
6933
|
}
|
|
6936
6934
|
}, []);
|
|
6937
6935
|
var _useState15 = useState(''),
|
|
@@ -6952,7 +6950,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
6952
6950
|
props === null || props === void 0 || (_props$actions = props.actions) === null || _props$actions === void 0 || (_props$actions = _props$actions.StatePagePropertiesContext) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageobj) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageproperties) === null || _props$actions === void 0 || _props$actions.forEach(function (arrayItem, arrayindex) {
|
|
6953
6951
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6954
6952
|
});
|
|
6955
|
-
setsectionproperties(_objectSpread$
|
|
6953
|
+
setsectionproperties(_objectSpread$2m({}, secpropobj));
|
|
6956
6954
|
}, [props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
6957
6955
|
var orderhistory_cssstyles = {
|
|
6958
6956
|
variantcontainer: css({
|
|
@@ -7899,22 +7897,24 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
7899
7897
|
}, langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar))))))))))))));
|
|
7900
7898
|
};
|
|
7901
7899
|
|
|
7902
|
-
var css_248z$H = ".wishlist-module_wishlist_card__sUXul .wishlist-module_image_container__FuptA {\n height: 300px
|
|
7900
|
+
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";
|
|
7903
7901
|
var wishliststyles = {"wishlist_card":"wishlist-module_wishlist_card__sUXul","image_container":"wishlist-module_image_container__FuptA","floatbtn":"wishlist-module_floatbtn__PZDvQ"};
|
|
7904
7902
|
styleInject(css_248z$H);
|
|
7905
7903
|
|
|
7906
|
-
function ownKeys$
|
|
7907
|
-
function _objectSpread$
|
|
7904
|
+
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; }
|
|
7905
|
+
function _objectSpread$2l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7908
7906
|
var Wishlist = function Wishlist(props) {
|
|
7909
7907
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8;
|
|
7910
|
-
|
|
7908
|
+
props.actions.lang;
|
|
7911
7909
|
var langdetect = props.actions.langdetect;
|
|
7910
|
+
var routingcountext = props.actions.routingcountext;
|
|
7912
7911
|
var fetchFavoriteProductsQueryContext = props.actions.fetchFavoriteProductsQueryContext;
|
|
7913
7912
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
7914
7913
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
7915
7914
|
var addtofavoritescontext = props.actions.addtofavoritescontext;
|
|
7916
7915
|
var setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
|
|
7917
7916
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
7917
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
7918
7918
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
7919
7919
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
7920
7920
|
var actions = props.actions;
|
|
@@ -7926,19 +7926,20 @@ var Wishlist = function Wishlist(props) {
|
|
|
7926
7926
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
7927
7927
|
bgimagesarray = _useState4[0],
|
|
7928
7928
|
setbgimagesarray = _useState4[1];
|
|
7929
|
+
var authdetailsContext = props.actions.authdetailsContext;
|
|
7929
7930
|
useEffect(function () {
|
|
7930
7931
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
7931
7932
|
var secpropobj = {};
|
|
7932
7933
|
StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
7933
7934
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
7934
7935
|
});
|
|
7935
|
-
setsectionproperties(_objectSpread$
|
|
7936
|
+
setsectionproperties(_objectSpread$2l({}, secpropobj));
|
|
7936
7937
|
}
|
|
7937
7938
|
}, [StatePagePropertiesContext]);
|
|
7938
7939
|
useEffect(function () {
|
|
7939
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
7940
|
+
var tempFetchQueriesEngineContext = _objectSpread$2l({}, FetchQueriesEngineContext);
|
|
7940
7941
|
tempFetchQueriesEngineContext.fetchfavoriteproducts = true;
|
|
7941
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
7942
|
+
setFetchQueriesEngineContext(_objectSpread$2l({}, tempFetchQueriesEngineContext));
|
|
7942
7943
|
}, []);
|
|
7943
7944
|
useEffect(function () {
|
|
7944
7945
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
@@ -7947,7 +7948,7 @@ var Wishlist = function Wishlist(props) {
|
|
|
7947
7948
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
7948
7949
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
7949
7950
|
});
|
|
7950
|
-
setsectionproperties(_objectSpread$
|
|
7951
|
+
setsectionproperties(_objectSpread$2l({}, secpropobj));
|
|
7951
7952
|
}
|
|
7952
7953
|
}, [StatePagePropertiesContext]);
|
|
7953
7954
|
var wishlist_cssstyles = {
|
|
@@ -7978,22 +7979,23 @@ var Wishlist = function Wishlist(props) {
|
|
|
7978
7979
|
cart_btn: css({
|
|
7979
7980
|
width: sectionproperties.cartBtnWidth + 'px',
|
|
7980
7981
|
height: sectionproperties.cartBtnHeight + 'px',
|
|
7981
|
-
background: sectionproperties.
|
|
7982
|
+
background: sectionproperties.cartBtnbgColor,
|
|
7982
7983
|
borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
7983
7984
|
color: sectionproperties.cartBtnTextcolor,
|
|
7984
7985
|
textTransform: sectionproperties.cartBtnTexttransform,
|
|
7985
7986
|
fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
7986
7987
|
border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
|
|
7988
|
+
fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
7987
7989
|
transition: '.3s',
|
|
7988
7990
|
':hover': {
|
|
7989
|
-
background: sectionproperties.
|
|
7991
|
+
background: sectionproperties.cartBtnbgColoronhover,
|
|
7990
7992
|
color: sectionproperties.cartBtnTextcoloronhover,
|
|
7991
7993
|
borderColor: sectionproperties.cartBtnTextcoloronhover
|
|
7992
7994
|
}
|
|
7993
7995
|
}),
|
|
7994
7996
|
trash_btn: css({
|
|
7995
|
-
width: sectionproperties.trashbtn_Width + 'px',
|
|
7996
|
-
height: sectionproperties.trashbtn_Height + 'px',
|
|
7997
|
+
width: sectionproperties.trashbtn_Width == 0 ? 'auto' : sectionproperties.trashbtn_Width + 'px',
|
|
7998
|
+
height: sectionproperties.trashbtn_Height == 0 ? 'auto' : sectionproperties.trashbtn_Height + 'px',
|
|
7997
7999
|
background: sectionproperties.trashbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.trashbtn_bgColor,
|
|
7998
8000
|
color: sectionproperties.trashbtn_Textcolor,
|
|
7999
8001
|
borderRadius: sectionproperties.trashbtn_borderBottomLeftRadius + 'px',
|
|
@@ -8005,20 +8007,13 @@ var Wishlist = function Wishlist(props) {
|
|
|
8005
8007
|
}
|
|
8006
8008
|
}),
|
|
8007
8009
|
imagecont: css({
|
|
8008
|
-
width: '
|
|
8009
|
-
height: '
|
|
8010
|
-
border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
|
|
8010
|
+
width: '100px',
|
|
8011
|
+
height: '90px',
|
|
8011
8012
|
backgroundColor: sectionproperties.prodimage_bgcolor,
|
|
8012
|
-
|
|
8013
|
-
borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
|
|
8014
|
-
borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
|
|
8015
|
-
borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
|
|
8013
|
+
borderRadius: sectionproperties.productimageborderradius + 'px',
|
|
8016
8014
|
display: 'flex',
|
|
8017
8015
|
alignItems: 'center',
|
|
8018
8016
|
justifyContent: 'center',
|
|
8019
|
-
backgroundRepeat: 'no-repeat',
|
|
8020
|
-
backgroundSize: 'cover',
|
|
8021
|
-
backgroundPosition: 'center',
|
|
8022
8017
|
position: 'relative'
|
|
8023
8018
|
}),
|
|
8024
8019
|
containerstyle: css({
|
|
@@ -8028,6 +8023,26 @@ var Wishlist = function Wishlist(props) {
|
|
|
8028
8023
|
'@media (max-width: 800px)': {
|
|
8029
8024
|
marginTop: sectionproperties.marginTopResp + 'px'
|
|
8030
8025
|
}
|
|
8026
|
+
}),
|
|
8027
|
+
btnstyles: css({
|
|
8028
|
+
width: sectionproperties.generalbtn_width + '%',
|
|
8029
|
+
height: sectionproperties.generalbtn_height + 'px',
|
|
8030
|
+
borderRadius: sectionproperties.generalbtnborderradius + 'px',
|
|
8031
|
+
background: sectionproperties.generalbtn_bgColor,
|
|
8032
|
+
color: sectionproperties.generalbtn_textColor,
|
|
8033
|
+
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
8034
|
+
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
8035
|
+
':hover': {
|
|
8036
|
+
transition: '.3s',
|
|
8037
|
+
color: sectionproperties.generalbtn_textColoronhover,
|
|
8038
|
+
backgroundColor: sectionproperties.generalbtn_bgColoronhover
|
|
8039
|
+
},
|
|
8040
|
+
'@media (max-width: 800px)': {
|
|
8041
|
+
width: '80%'
|
|
8042
|
+
},
|
|
8043
|
+
prodimage: css({
|
|
8044
|
+
height: sectionproperties.prodimage_height
|
|
8045
|
+
})
|
|
8031
8046
|
})
|
|
8032
8047
|
};
|
|
8033
8048
|
useEffect(function () {
|
|
@@ -8042,7 +8057,9 @@ var Wishlist = function Wishlist(props) {
|
|
|
8042
8057
|
}, [sectionproperties]);
|
|
8043
8058
|
return /*#__PURE__*/React.createElement("div", {
|
|
8044
8059
|
className: wishlist_cssstyles.containerstyle + ' row ml-0 mr-0 w-100 ',
|
|
8045
|
-
style: {
|
|
8060
|
+
style: {
|
|
8061
|
+
minHeight: '60vh'
|
|
8062
|
+
}
|
|
8046
8063
|
}, sectionproperties.showbgimage == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
8047
8064
|
className: "col-lg-12 p-0 d-flex justify-content-center",
|
|
8048
8065
|
style: {
|
|
@@ -8078,10 +8095,7 @@ var Wishlist = function Wishlist(props) {
|
|
|
8078
8095
|
margin: 0,
|
|
8079
8096
|
padding: 0,
|
|
8080
8097
|
background: sectionproperties.image_bgcolor,
|
|
8081
|
-
|
|
8082
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
8083
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
8084
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
8098
|
+
borderRadius: sectionproperties.imageborderradius + 'px',
|
|
8085
8099
|
zIndex: -1,
|
|
8086
8100
|
objectFit: sectionproperties.bgcovercontain
|
|
8087
8101
|
}
|
|
@@ -8097,45 +8111,19 @@ var Wishlist = function Wishlist(props) {
|
|
|
8097
8111
|
padding: 0,
|
|
8098
8112
|
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
8099
8113
|
background: sectionproperties.image_bgcolor,
|
|
8100
|
-
|
|
8101
|
-
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
8102
|
-
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
8103
|
-
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
8114
|
+
borderRadius: sectionproperties.imageborderradius + 'px',
|
|
8104
8115
|
zIndex: -1
|
|
8105
8116
|
}
|
|
8106
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
8107
|
-
className: ' col-lg-12 p-0 w-100 d-flex align-items-center justify-content-center ',
|
|
8108
|
-
style: {
|
|
8109
|
-
position: 'absolute',
|
|
8110
|
-
top: 0,
|
|
8111
|
-
right: 0,
|
|
8112
|
-
bottom: 0,
|
|
8113
|
-
left: 0
|
|
8114
|
-
}
|
|
8115
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
8116
|
-
className: ' m-0 p-0 ',
|
|
8117
|
-
style: {
|
|
8118
|
-
fontSize: sectionproperties.imagetextfontsize + 'px',
|
|
8119
|
-
color: sectionproperties.imagetextcolor,
|
|
8120
|
-
textTransform: sectionproperties.imagetexttextTransform,
|
|
8121
|
-
fontWeight: sectionproperties.imagetextfontWeight
|
|
8122
|
-
}
|
|
8123
|
-
}, lang.mywishlist)))), /*#__PURE__*/React.createElement("div", {
|
|
8117
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
8124
8118
|
className: "col-lg-12 p-0"
|
|
8125
8119
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8126
8120
|
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',
|
|
8127
8121
|
style: {
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
paddingRight: sectionproperties.paddingRight + 'px',
|
|
8122
|
+
paddingLeft: sectionproperties.cardpaddinghorizontal + 'px',
|
|
8123
|
+
paddingRight: sectionproperties.cardpaddinghorizontal + 'px',
|
|
8131
8124
|
paddingTop: sectionproperties.paddingTop + 'px',
|
|
8132
8125
|
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
8133
|
-
|
|
8134
|
-
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
8135
|
-
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
8136
|
-
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
8137
|
-
borderColor: sectionproperties.sectioncardbordercolor,
|
|
8138
|
-
border: sectionproperties.sectioncardborderwidth + 'px solid'
|
|
8126
|
+
borderTop: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor
|
|
8139
8127
|
}
|
|
8140
8128
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8141
8129
|
className: 'col-lg-12 p-0'
|
|
@@ -8145,42 +8133,137 @@ var Wishlist = function Wishlist(props) {
|
|
|
8145
8133
|
})), /*#__PURE__*/React.createElement("div", {
|
|
8146
8134
|
className: 'col-lg-12 p-0'
|
|
8147
8135
|
}, fetchFavoriteProductsQueryContext.isFetching && /*#__PURE__*/React.createElement("div", {
|
|
8148
|
-
className: "w-100
|
|
8136
|
+
className: "row m-0 w-100 align-items-center justify-content-center",
|
|
8137
|
+
style: {
|
|
8138
|
+
height: '50vh',
|
|
8139
|
+
padding: '20px'
|
|
8140
|
+
}
|
|
8141
|
+
}, sectionproperties.showbgimage == 'Hide' && /*#__PURE__*/React.createElement("div", {
|
|
8142
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-start p-0",
|
|
8143
|
+
style: {
|
|
8144
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
8145
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px'
|
|
8146
|
+
}
|
|
8147
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8148
|
+
"class": "m-0 p-0 mt-5 mt-sm-2",
|
|
8149
|
+
style: {
|
|
8150
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
8151
|
+
color: sectionproperties.sectionTitleColor,
|
|
8152
|
+
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
8153
|
+
}
|
|
8154
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React.createElement("div", {
|
|
8155
|
+
"class": "col-lg-12 p-0 d-flex d-md-none"
|
|
8156
|
+
}, /*#__PURE__*/React.createElement("table", {
|
|
8157
|
+
className: 'table'
|
|
8158
|
+
}, /*#__PURE__*/React.createElement("thead", {
|
|
8159
|
+
className: ""
|
|
8160
|
+
}, /*#__PURE__*/React.createElement("th", {
|
|
8161
|
+
className: 'mw-150 mw-md-300'
|
|
8162
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8163
|
+
"class": "my-1 is-loading"
|
|
8164
|
+
})), /*#__PURE__*/React.createElement("th", {
|
|
8165
|
+
className: "text-center",
|
|
8166
|
+
style: {
|
|
8167
|
+
minWidth: '100px'
|
|
8168
|
+
}
|
|
8169
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8170
|
+
"class": "my-1 is-loading"
|
|
8171
|
+
})), /*#__PURE__*/React.createElement("th", {
|
|
8172
|
+
className: "text-center"
|
|
8173
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8174
|
+
"class": "my-1 is-loading"
|
|
8175
|
+
}))), /*#__PURE__*/React.createElement("tbody", null, _toConsumableArray(Array(3)).map(function (item, index) {
|
|
8176
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
8177
|
+
className: ""
|
|
8178
|
+
}, /*#__PURE__*/React.createElement("td", {
|
|
8179
|
+
className: "mw-150 mw-md-300"
|
|
8180
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8181
|
+
"class": "my-1 is-loading"
|
|
8182
|
+
})), /*#__PURE__*/React.createElement("td", {
|
|
8183
|
+
className: "text-center",
|
|
8184
|
+
style: {
|
|
8185
|
+
minWidth: '100px'
|
|
8186
|
+
}
|
|
8187
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8188
|
+
"class": "my-1 is-loading"
|
|
8189
|
+
})), /*#__PURE__*/React.createElement("td", {
|
|
8190
|
+
className: "text-center",
|
|
8191
|
+
style: {
|
|
8192
|
+
minWidth: '100px'
|
|
8193
|
+
}
|
|
8194
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8195
|
+
"class": "my-1 is-loading"
|
|
8196
|
+
})));
|
|
8197
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
8198
|
+
"class": "col-lg-12 p-0 d-none d-md-flex"
|
|
8199
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8200
|
+
className: "row m-0 w-100 align-items-center justify-content-center",
|
|
8149
8201
|
style: {
|
|
8150
8202
|
height: '50vh'
|
|
8151
8203
|
}
|
|
8152
|
-
},
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8204
|
+
}, _toConsumableArray(Array(3)).map(function (item, index) {
|
|
8205
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8206
|
+
"class": "col-lg-12 p-0"
|
|
8207
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8208
|
+
"class": "row m-0 w-100"
|
|
8209
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8210
|
+
className: ' col-3 p-0 '
|
|
8211
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8212
|
+
className: "".concat(wishlist_cssstyles.imagecont) + ' w-100 p-0 is-loading image '
|
|
8213
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
8214
|
+
className: "col-9 pt-2"
|
|
8215
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8216
|
+
"class": "row m-0 w-100 d-flex"
|
|
8217
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8218
|
+
"class": "col-10 p-0 mb-1"
|
|
8219
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8220
|
+
className: ' m-0 p-0 is-loading mb-auto '
|
|
8221
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
8222
|
+
"class": "col-lg-12 p-0"
|
|
8223
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8224
|
+
"class": ' m-0 p-0 is-loading '
|
|
8225
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
8226
|
+
"class": "col-lg-12 allcentered p-0 mt-4"
|
|
8227
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
8228
|
+
className: ' w-100 is-loading ',
|
|
8229
|
+
style: {
|
|
8230
|
+
height: sectionproperties.cartBtnHeight + 'px'
|
|
8231
|
+
}
|
|
8232
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
8233
|
+
"class": "col-lg-12 p-0 my-3",
|
|
8234
|
+
style: {
|
|
8235
|
+
background: '#eee',
|
|
8236
|
+
height: 1,
|
|
8237
|
+
width: '100%'
|
|
8238
|
+
}
|
|
8239
|
+
})));
|
|
8240
|
+
})))), !fetchFavoriteProductsQueryContext.isFetching && fetchFavoriteProductsQueryContext.isSuccess && /*#__PURE__*/React.createElement("div", {
|
|
8241
|
+
className: "row m-0 w-100 "
|
|
8159
8242
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8160
8243
|
className: 'col-lg-12 d-flex w-100 p-0'
|
|
8161
|
-
}, sectionproperties.pagedesign == 'Design 1 (Cards)' && /*#__PURE__*/React.createElement("div", {
|
|
8244
|
+
}, sectionproperties.pagedesign == 'Design 1 (Cards)' && fetchFavoriteProductsQueryContext.data.data.products.length != 0 && /*#__PURE__*/React.createElement("div", {
|
|
8162
8245
|
className: 'row m-0 d-flex justify-content-center w-100',
|
|
8163
8246
|
style: {
|
|
8164
8247
|
background: sectionproperties.reservation_bgcolor,
|
|
8165
|
-
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
|
|
8166
8248
|
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
8167
8249
|
padding: '20px',
|
|
8168
8250
|
minHeight: '70vh'
|
|
8169
8251
|
}
|
|
8170
8252
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8171
|
-
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0",
|
|
8172
|
-
style: {
|
|
8173
|
-
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px'
|
|
8174
|
-
}
|
|
8175
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
8253
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 mb-3",
|
|
8176
8254
|
style: {
|
|
8177
8255
|
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
8178
8256
|
color: sectionproperties.sectionTitleColor,
|
|
8179
8257
|
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
8180
8258
|
}
|
|
8181
|
-
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar
|
|
8182
|
-
className: "
|
|
8183
|
-
|
|
8259
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar), /*#__PURE__*/React.createElement("div", {
|
|
8260
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0",
|
|
8261
|
+
style: {
|
|
8262
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
|
|
8263
|
+
color: sectionproperties.badge_color,
|
|
8264
|
+
fontSize: sectionproperties.badge_fontsize + 'px'
|
|
8265
|
+
}
|
|
8266
|
+
}, fetchFavoriteProductsQueryContext.data.data.products.length, " Item(s)"), /*#__PURE__*/React.createElement("div", {
|
|
8184
8267
|
className: ' col-lg-12 co-md-12 p-0 '
|
|
8185
8268
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8186
8269
|
className: "row m-0 w-100"
|
|
@@ -8188,116 +8271,163 @@ var Wishlist = function Wishlist(props) {
|
|
|
8188
8271
|
return /*#__PURE__*/React.createElement("div", {
|
|
8189
8272
|
className: "col-lg-3 col-md-6 col-sm-12 mb-5"
|
|
8190
8273
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8191
|
-
className: "".concat(wishliststyles.wishlist_card) + ' row m-0 w-100 '
|
|
8274
|
+
className: "".concat(wishliststyles.wishlist_card) + ' row m-0 w-100 ',
|
|
8275
|
+
onClick: function onClick() {
|
|
8276
|
+
setShowProductInfoModalContext(true);
|
|
8277
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
8278
|
+
}
|
|
8192
8279
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8193
8280
|
className: "col-lg-12 d-flex align-items-center justify-content-center p-0"
|
|
8194
8281
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8195
|
-
className: "".concat(wishliststyles.image_container)
|
|
8282
|
+
className: "".concat(wishliststyles.image_container).concat(wishlist_cssstyles.prodimage)
|
|
8196
8283
|
// style={{ backgroundImage: `url(${serverbaselink + item.productmainimage})` }}
|
|
8197
8284
|
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
8198
8285
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
8199
8286
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
8200
|
-
path: item.productmainimage,
|
|
8287
|
+
path: '/tr:w-' + sectionproperties.prodimage__width + ',h-' + sectionproperties.prodimage__height + '/' + item.productmainimage,
|
|
8201
8288
|
style: {
|
|
8202
8289
|
width: '100%',
|
|
8203
8290
|
height: '100%',
|
|
8204
|
-
objectFit: '
|
|
8291
|
+
objectFit: 'contain'
|
|
8205
8292
|
},
|
|
8206
8293
|
loading: "lazy"
|
|
8207
8294
|
}), /*#__PURE__*/React.createElement("span", {
|
|
8208
8295
|
className: "".concat(wishliststyles.floatbtn, " ").concat(wishlist_cssstyles.trash_btn),
|
|
8209
|
-
onClick: function onClick() {
|
|
8296
|
+
onClick: function onClick(e) {
|
|
8297
|
+
e.stopPropagation();
|
|
8210
8298
|
addtofavoritescontext(item.productid);
|
|
8211
8299
|
}
|
|
8212
|
-
}, /*#__PURE__*/React.createElement(
|
|
8300
|
+
}, /*#__PURE__*/React.createElement(IoMdClose, {
|
|
8213
8301
|
size: sectionproperties.trashbtn_Textfontsize
|
|
8214
8302
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
8215
8303
|
className: "col-lg-12 d-flex align-items-center justify-content-center mt-3 mb-3"
|
|
8216
8304
|
}, /*#__PURE__*/React.createElement("p", {
|
|
8217
8305
|
className: "".concat(wishlist_cssstyles.productNameStyles) + ' wordbreak text-center m-0 p-0 d-flex align-items-center justify-content-center '
|
|
8218
|
-
}, langdetect == 'en' ? item.name_en : item.name_ar)),
|
|
8306
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar)), /*#__PURE__*/React.createElement("div", {
|
|
8307
|
+
className: "col-lg-12 d-flex align-items-center justify-content-center mt-3 mb-3 flex-row"
|
|
8308
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8309
|
+
"class": wishlist_cssstyles.productPricestyles + ' m-0 p-0 '
|
|
8310
|
+
}, 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.createElement("p", {
|
|
8311
|
+
"class": wishlist_cssstyles.productsalePricestyles + ' m-0 p-0 linethrough mt-2 '
|
|
8312
|
+
}, 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.createElement("div", {
|
|
8219
8313
|
className: "col-lg-12 d-flex align-items-center justify-content-center p-0 "
|
|
8220
8314
|
}, /*#__PURE__*/React.createElement("button", {
|
|
8221
8315
|
className: " ".concat(wishlist_cssstyles.cart_btn),
|
|
8222
|
-
onClick: function onClick() {
|
|
8223
|
-
setShowProductInfoModalContext(true);
|
|
8224
|
-
setProductIdProdutInfoModalContext(item.productid);
|
|
8225
|
-
},
|
|
8226
8316
|
style: {
|
|
8227
|
-
fontSize: sectionproperties.cartBtnTextfontsize + 'px'
|
|
8317
|
+
fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
8318
|
+
width: sectionproperties.cartBtnWidth + '%'
|
|
8228
8319
|
}
|
|
8229
8320
|
}, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic))));
|
|
8230
|
-
})), fetchFavoriteProductsQueryContext.data.data.products.length
|
|
8231
|
-
className: "row m-0 w-100 d-flex align-items-center justify-content-center h-100",
|
|
8232
|
-
style: {
|
|
8233
|
-
height: '50vh'
|
|
8234
|
-
}
|
|
8235
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
8236
|
-
className: ' col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5 '
|
|
8237
|
-
}, /*#__PURE__*/React.createElement(BiSad, {
|
|
8238
|
-
size: sectionproperties.noprod_iconfontSize,
|
|
8239
|
-
color: sectionproperties.noprod_iconcolor
|
|
8240
|
-
}), /*#__PURE__*/React.createElement("p", {
|
|
8241
|
-
"class": "m-0 p-0 mt-2",
|
|
8242
|
-
style: {
|
|
8243
|
-
fontWeight: sectionproperties.noprod_fontWeight,
|
|
8244
|
-
color: sectionproperties.noprod_color,
|
|
8245
|
-
fontSize: sectionproperties.noprod_fontSize + 'px'
|
|
8246
|
-
}
|
|
8247
|
-
}, langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar))))), sectionproperties.pagedesign == 'Design 2 (Table)' && /*#__PURE__*/React.createElement("div", {
|
|
8321
|
+
})))), sectionproperties.pagedesign == 'Design 2 (Table)' && fetchFavoriteProductsQueryContext.data.data.products.length != 0 && /*#__PURE__*/React.createElement("div", {
|
|
8248
8322
|
className: ' row m-0 w-100 p-sm-3 ',
|
|
8249
8323
|
style: {
|
|
8250
|
-
background: sectionproperties.reservation_bgcolor,
|
|
8251
|
-
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
|
|
8252
|
-
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
8253
8324
|
padding: '20px',
|
|
8254
8325
|
minHeight: '70vh'
|
|
8255
8326
|
}
|
|
8256
8327
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8257
|
-
className: '
|
|
8258
|
-
}, /*#__PURE__*/React.createElement("
|
|
8259
|
-
className:
|
|
8260
|
-
}, /*#__PURE__*/React.createElement("thead", {
|
|
8261
|
-
className: "",
|
|
8328
|
+
className: ' row m-0 w-100 d-block '
|
|
8329
|
+
}, sectionproperties.showbgimage == 'Hide' && /*#__PURE__*/React.createElement("div", {
|
|
8330
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-start p-0",
|
|
8262
8331
|
style: {
|
|
8263
|
-
|
|
8332
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
8333
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px'
|
|
8264
8334
|
}
|
|
8265
|
-
}, /*#__PURE__*/React.createElement("
|
|
8266
|
-
|
|
8267
|
-
}, langdetect == 'en' ? sectionproperties.productnametitle_en : sectionproperties.productnametitle_ar), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("th", {
|
|
8268
|
-
className: "text-center font-weight-500 font-14 text-light",
|
|
8335
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8336
|
+
"class": "m-0 p-0 mt-5 mt-sm-2",
|
|
8269
8337
|
style: {
|
|
8270
|
-
|
|
8338
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
8339
|
+
color: sectionproperties.sectionTitleColor,
|
|
8340
|
+
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
8341
|
+
}
|
|
8342
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React.createElement("div", {
|
|
8343
|
+
className: ' col-lg-12 table_responsive p-0 d-block d-md-none '
|
|
8344
|
+
}, /*#__PURE__*/React.createElement("table", {
|
|
8345
|
+
className: 'table'
|
|
8346
|
+
}, /*#__PURE__*/React.createElement("thead", {
|
|
8347
|
+
className: ""
|
|
8348
|
+
}, /*#__PURE__*/React.createElement("th", {
|
|
8349
|
+
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',
|
|
8350
|
+
style: {
|
|
8351
|
+
color: sectionproperties.sectionTitleColor,
|
|
8352
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8353
|
+
}
|
|
8354
|
+
}, langdetect == 'en' ? sectionproperties.productnametitle_en : sectionproperties.productnametitle_ar), sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React.createElement("th", {
|
|
8355
|
+
className: "text-center font-weight-500 font-14",
|
|
8356
|
+
style: {
|
|
8357
|
+
minWidth: '100px',
|
|
8358
|
+
color: sectionproperties.sectionTitleColor,
|
|
8359
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8360
|
+
}
|
|
8361
|
+
}, langdetect == 'en' ? 'Unit Price' : 'السعر'), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("th", {
|
|
8362
|
+
className: "text-center font-weight-500 font-14",
|
|
8363
|
+
style: {
|
|
8364
|
+
minWidth: '100px',
|
|
8365
|
+
color: sectionproperties.sectionTitleColor,
|
|
8366
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8271
8367
|
}
|
|
8272
|
-
}
|
|
8273
|
-
className: "text-center font-weight-500 font-14
|
|
8274
|
-
|
|
8368
|
+
}), /*#__PURE__*/React.createElement("th", {
|
|
8369
|
+
className: "text-center font-weight-500 font-14",
|
|
8370
|
+
style: {
|
|
8371
|
+
color: sectionproperties.sectionTitleColor,
|
|
8372
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8373
|
+
}
|
|
8374
|
+
})), /*#__PURE__*/React.createElement("tbody", null, fetchFavoriteProductsQueryContext.data.data.products.map(function (item, index) {
|
|
8275
8375
|
return /*#__PURE__*/React.createElement("tr", {
|
|
8276
8376
|
className: "border-none"
|
|
8277
8377
|
}, /*#__PURE__*/React.createElement("td", {
|
|
8278
|
-
className: "mw-150 mw-md-300"
|
|
8378
|
+
className: "mw-150 mw-md-300",
|
|
8379
|
+
style: {
|
|
8380
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8381
|
+
}
|
|
8279
8382
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8280
8383
|
className: "row m-0 w-100 d-flex"
|
|
8281
8384
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8282
8385
|
className: "".concat(wishlist_cssstyles.imagecont)
|
|
8283
|
-
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
8386
|
+
}, item.productmainimage != '' && /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
8284
8387
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
8285
8388
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
8286
8389
|
path: item.productmainimage,
|
|
8287
8390
|
style: {
|
|
8288
8391
|
width: '100%',
|
|
8289
8392
|
height: '100%',
|
|
8290
|
-
objectFit: '
|
|
8393
|
+
objectFit: 'contain'
|
|
8291
8394
|
},
|
|
8292
8395
|
loading: "lazy"
|
|
8293
|
-
})
|
|
8294
|
-
|
|
8396
|
+
}), item.productmainimage == '' && /*#__PURE__*/React.createElement("div", {
|
|
8397
|
+
style: {
|
|
8398
|
+
width: '100%',
|
|
8399
|
+
height: '100%',
|
|
8400
|
+
background: '#eee',
|
|
8401
|
+
borderRadius: 10
|
|
8402
|
+
}
|
|
8403
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
8404
|
+
"class": "h-100 allcentered text-light"
|
|
8405
|
+
}, /*#__PURE__*/React.createElement(FiLayers, {
|
|
8406
|
+
size: 26
|
|
8407
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
8408
|
+
className: "col-lg-9 col-md-9 col-sm-8 pt-2"
|
|
8295
8409
|
}, /*#__PURE__*/React.createElement("p", {
|
|
8296
|
-
className: "".concat(wishlist_cssstyles.productNameStyles) + ' m-0 p-0 wordbreak wordbreak3
|
|
8297
|
-
|
|
8410
|
+
className: "".concat(wishlist_cssstyles.productNameStyles) + ' m-0 p-0 wordbreak wordbreak3 mb-auto ',
|
|
8411
|
+
style: {
|
|
8412
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
8413
|
+
}
|
|
8414
|
+
}, item.name_en)))), sectionproperties.prodPriceShow = /*#__PURE__*/React.createElement("td", {
|
|
8298
8415
|
className: "text-center",
|
|
8299
8416
|
style: {
|
|
8300
|
-
minWidth: '100px'
|
|
8417
|
+
minWidth: '100px',
|
|
8418
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8419
|
+
}
|
|
8420
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8421
|
+
"class": "row m-0 w-100 allcentered flex-column"
|
|
8422
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8423
|
+
"class": wishlist_cssstyles.productPricestyles + ' m-0 p-0 '
|
|
8424
|
+
}, 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.createElement("p", {
|
|
8425
|
+
"class": wishlist_cssstyles.productsalePricestyles + ' m-0 p-0 linethrough mt-2 '
|
|
8426
|
+
}, 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.createElement("td", {
|
|
8427
|
+
className: "text-center",
|
|
8428
|
+
style: {
|
|
8429
|
+
minWidth: '100px',
|
|
8430
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8301
8431
|
}
|
|
8302
8432
|
}, /*#__PURE__*/React.createElement("button", {
|
|
8303
8433
|
className: "".concat(wishlist_cssstyles.cart_btn),
|
|
@@ -8305,29 +8435,11 @@ var Wishlist = function Wishlist(props) {
|
|
|
8305
8435
|
setShowProductInfoModalContext(true);
|
|
8306
8436
|
setProductIdProdutInfoModalContext(item.productid);
|
|
8307
8437
|
}
|
|
8308
|
-
},
|
|
8309
|
-
className: "",
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
8314
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React.createElement(BsBag, {
|
|
8315
|
-
className: "",
|
|
8316
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
8317
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React.createElement(IoBagHandleOutline, {
|
|
8318
|
-
className: "",
|
|
8319
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
8320
|
-
}), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React.createElement(FiShoppingCart, {
|
|
8321
|
-
className: "",
|
|
8322
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
8323
|
-
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
8324
|
-
className: "",
|
|
8325
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
8326
|
-
}), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React.createElement(FiCalendar, {
|
|
8327
|
-
className: "",
|
|
8328
|
-
size: sectionproperties.cartBtn_iconFontSize
|
|
8329
|
-
}))), /*#__PURE__*/React.createElement("td", {
|
|
8330
|
-
className: "text-center"
|
|
8438
|
+
}, langdetect == 'en' ? item.productactionbuttontext_en : item.productactionbuttontext_ar)), /*#__PURE__*/React.createElement("td", {
|
|
8439
|
+
className: "text-center",
|
|
8440
|
+
style: {
|
|
8441
|
+
borderBottomColor: sectionproperties.sectioncardbordercolor
|
|
8442
|
+
}
|
|
8331
8443
|
}, /*#__PURE__*/React.createElement("button", {
|
|
8332
8444
|
className: " ".concat(wishlist_cssstyles.trash_btn) + ' d-flex align-items-center justify-content-center text-uppercase font-weight-500 m-auto ',
|
|
8333
8445
|
onClick: function onClick() {
|
|
@@ -8336,28 +8448,127 @@ var Wishlist = function Wishlist(props) {
|
|
|
8336
8448
|
style: {
|
|
8337
8449
|
fontSize: sectionproperties.trashbtn_Textfontsize + 'px'
|
|
8338
8450
|
}
|
|
8339
|
-
},
|
|
8340
|
-
|
|
8341
|
-
|
|
8451
|
+
}, /*#__PURE__*/React.createElement(IoMdClose, {
|
|
8452
|
+
size: sectionproperties.trashbtn_Textfontsize
|
|
8453
|
+
}))));
|
|
8454
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
8455
|
+
className: ' col-lg-12 p-0 d-none d-md-flex align-items-center justify-content-start '
|
|
8342
8456
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8343
|
-
className: '
|
|
8344
|
-
},
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8457
|
+
className: ' row m-0 w-100 d-flex align-items-center justify-content-start '
|
|
8458
|
+
}, fetchFavoriteProductsQueryContext.data.data.products.map(function (item, index) {
|
|
8459
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8460
|
+
"class": "col-lg-12 p-0"
|
|
8461
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8462
|
+
"class": "row m-0 w-100"
|
|
8463
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8464
|
+
className: ' col-3 p-0 '
|
|
8465
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8466
|
+
className: "".concat(wishlist_cssstyles.imagecont) + ' w-100 p-0 '
|
|
8467
|
+
}, item.productmainimage != '' && /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
8468
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
8469
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
8470
|
+
path: item.productmainimage,
|
|
8471
|
+
style: {
|
|
8472
|
+
width: '100%',
|
|
8473
|
+
height: '100%',
|
|
8474
|
+
objectFit: 'contain'
|
|
8475
|
+
},
|
|
8476
|
+
loading: "lazy"
|
|
8477
|
+
}), item.productmainimage == '' && /*#__PURE__*/React.createElement("div", {
|
|
8478
|
+
style: {
|
|
8479
|
+
width: '100%',
|
|
8480
|
+
height: '100%',
|
|
8481
|
+
background: '#eee',
|
|
8482
|
+
borderRadius: 10
|
|
8483
|
+
}
|
|
8484
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
8485
|
+
"class": "h-100 allcentered text-light"
|
|
8486
|
+
}, /*#__PURE__*/React.createElement(FiLayers, {
|
|
8487
|
+
size: 26
|
|
8488
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
|
8489
|
+
className: "col-9 pt-2"
|
|
8490
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8491
|
+
"class": "row m-0 w-100 d-flex"
|
|
8492
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8493
|
+
"class": "col-10 p-0 d-flex align-items-center justify-content-start"
|
|
8494
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8495
|
+
className: "".concat(wishlist_cssstyles.productNameStyles) + ' m-0 p-0 wordbreak wordbreak3 mb-auto ',
|
|
8496
|
+
style: {
|
|
8497
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
8498
|
+
}
|
|
8499
|
+
}, item.name_en)), /*#__PURE__*/React.createElement("div", {
|
|
8500
|
+
"class": "col-2 p-0 d-flex align-items-center justify-content-end"
|
|
8501
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
8502
|
+
className: " ".concat(wishlist_cssstyles.trash_btnresp) + ' allcentered ',
|
|
8503
|
+
onClick: function onClick() {
|
|
8504
|
+
addtofavoritescontext(item.productid);
|
|
8505
|
+
}
|
|
8506
|
+
}, /*#__PURE__*/React.createElement(IoMdClose, {
|
|
8507
|
+
size: sectionproperties.trashbtn_Textfontsize
|
|
8508
|
+
}))), sectionproperties.prodPriceShow = /*#__PURE__*/React.createElement("div", {
|
|
8509
|
+
"class": "col-lg-12 p-0 d-flex align-items-center justify-content-start"
|
|
8510
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8511
|
+
"class": wishlist_cssstyles.productPricestyles + ' m-0 p-0 '
|
|
8512
|
+
}, 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.createElement("p", {
|
|
8513
|
+
"class": wishlist_cssstyles.productsalePricestyles + ' m-0 p-0 linethrough mx-2 mt-auto '
|
|
8514
|
+
}, 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.createElement("div", {
|
|
8515
|
+
"class": "col-lg-12 allcentered p-0 mt-4"
|
|
8516
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
8517
|
+
className: "".concat(wishlist_cssstyles.cart_btn) + ' w-100 ',
|
|
8518
|
+
onClick: function onClick() {
|
|
8519
|
+
setShowProductInfoModalContext(true);
|
|
8520
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
8521
|
+
}
|
|
8522
|
+
}, langdetect == 'en' ? item.productactionbuttontext_en : item.productactionbuttontext_ar)), /*#__PURE__*/React.createElement("div", {
|
|
8523
|
+
"class": "col-lg-12 p-0 my-3",
|
|
8524
|
+
style: {
|
|
8525
|
+
background: '#eee',
|
|
8526
|
+
height: 1,
|
|
8527
|
+
width: '100%'
|
|
8528
|
+
}
|
|
8529
|
+
})));
|
|
8530
|
+
}))))), fetchFavoriteProductsQueryContext.data.data.products.length == 0 && /*#__PURE__*/React.createElement("div", {
|
|
8531
|
+
className: "row m-0 w-100 d-flex justify-content-center pb-5",
|
|
8532
|
+
style: {
|
|
8533
|
+
maxHeight: '60vh',
|
|
8534
|
+
padding: '20px'
|
|
8535
|
+
}
|
|
8536
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8537
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-start p-0",
|
|
8538
|
+
style: {
|
|
8539
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
8540
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px'
|
|
8541
|
+
}
|
|
8542
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8543
|
+
"class": "m-0 p-0 mt-5 mt-sm-2",
|
|
8544
|
+
style: {
|
|
8545
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
8546
|
+
color: sectionproperties.sectionTitleColor,
|
|
8547
|
+
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
8548
|
+
}
|
|
8549
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React.createElement("div", {
|
|
8550
|
+
className: ' col-lg-12 d-flex align-items-center justify-content-start text-light px-0 mb-3 '
|
|
8551
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8552
|
+
"class": sectionproperties.noprod_iconfontSize == 0 ? 'm-0 p-0' : 'm-0 p-0 mt-2',
|
|
8349
8553
|
style: {
|
|
8350
8554
|
fontWeight: sectionproperties.noprod_fontWeight,
|
|
8351
8555
|
color: sectionproperties.noprod_color,
|
|
8352
8556
|
fontSize: sectionproperties.noprod_fontSize + 'px'
|
|
8353
8557
|
}
|
|
8354
|
-
}, langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar))
|
|
8558
|
+
}, langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar)), /*#__PURE__*/React.createElement("div", {
|
|
8559
|
+
className: ' col-lg-12 d-flex align-items-center justify-content-start text-light px-0 mb-5 '
|
|
8560
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
8561
|
+
"class": "".concat(wishlist_cssstyles.btnstyles),
|
|
8562
|
+
onClick: function onClick() {
|
|
8563
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
8564
|
+
}
|
|
8565
|
+
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar))))))), /*#__PURE__*/React.createElement("div", {
|
|
8355
8566
|
className: "col-lg-12 d-flex align-items-center justify-content-center p-0 "
|
|
8356
8567
|
})));
|
|
8357
8568
|
};
|
|
8358
8569
|
|
|
8359
|
-
function ownKeys$
|
|
8360
|
-
function _objectSpread$
|
|
8570
|
+
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; }
|
|
8571
|
+
function _objectSpread$2k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8361
8572
|
var Viewcart = function Viewcart(props) {
|
|
8362
8573
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchcustomercartQue7, _fetchcustomercartQue8;
|
|
8363
8574
|
var lang = props.actions.lang;
|
|
@@ -8389,7 +8600,7 @@ var Viewcart = function Viewcart(props) {
|
|
|
8389
8600
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
8390
8601
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
8391
8602
|
});
|
|
8392
|
-
setsectionproperties(_objectSpread$
|
|
8603
|
+
setsectionproperties(_objectSpread$2k({}, secpropobj));
|
|
8393
8604
|
}
|
|
8394
8605
|
}, [StatePagePropertiesContext]);
|
|
8395
8606
|
useEffect(function () {
|
|
@@ -8977,8 +9188,8 @@ var css_248z$G = "/* Forms */\n.form-module_form_control__4-RGw {\n display:
|
|
|
8977
9188
|
var formstyles = {"form_control":"form-module_form_control__4-RGw","textarea":"form-module_textarea__zG0ed","form_control_border_none":"form-module_form_control_border_none__TJvdZ","disabled":"form-module_disabled__AtvSI","input_label_name":"form-module_input_label_name__416wN","input_label_name-bolder":"form-module_input_label_name-bolder__UQn0a","input_icon":"form-module_input_icon__X-CzC","radiobtn_label":"form-module_radiobtn_label__-4Hoi","text-grey":"form-module_text-grey__JdZMY","radiobtn_label_translated":"form-module_radiobtn_label_translated__WN5Jj","checkbox":"form-module_checkbox__XPkWy","checkbox_label":"form-module_checkbox_label__VvcKs","checkbox_sub":"form-module_checkbox_sub__QWYil","checkboxtranslated":"form-module_checkboxtranslated__zvEV-"};
|
|
8978
9189
|
styleInject(css_248z$G);
|
|
8979
9190
|
|
|
8980
|
-
function ownKeys$
|
|
8981
|
-
function _objectSpread$
|
|
9191
|
+
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; }
|
|
9192
|
+
function _objectSpread$2j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8982
9193
|
var Select$3 = /*#__PURE__*/React.lazy(function () {
|
|
8983
9194
|
return import('react-select');
|
|
8984
9195
|
});
|
|
@@ -9037,7 +9248,7 @@ var Checkout = function Checkout(props) {
|
|
|
9037
9248
|
props === null || props === void 0 || (_props$actions = props.actions) === null || _props$actions === void 0 || (_props$actions = _props$actions.StatePagePropertiesContext) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageobj) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageproperties) === null || _props$actions === void 0 || _props$actions.forEach(function (arrayItem, arrayindex) {
|
|
9038
9249
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
9039
9250
|
});
|
|
9040
|
-
setsectionproperties(_objectSpread$
|
|
9251
|
+
setsectionproperties(_objectSpread$2j({}, secpropobj));
|
|
9041
9252
|
}, [props.actions.StatePagePropertiesContext]);
|
|
9042
9253
|
useEffect(function () {
|
|
9043
9254
|
var Canorder = false;
|
|
@@ -9057,10 +9268,10 @@ var Checkout = function Checkout(props) {
|
|
|
9057
9268
|
}
|
|
9058
9269
|
if (Canorder == true) {
|
|
9059
9270
|
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7;
|
|
9060
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
9271
|
+
var tempFetchQueriesEngineContext = _objectSpread$2j({}, FetchQueriesEngineContext);
|
|
9061
9272
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
9062
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
9063
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
9273
|
+
setFetchQueriesEngineContext(_objectSpread$2j({}, tempFetchQueriesEngineContext));
|
|
9274
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
9064
9275
|
if (
|
|
9065
9276
|
// Aya
|
|
9066
9277
|
!fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 || (_fetchcustomercartQue = _fetchcustomercartQue.data) === null || _fetchcustomercartQue === void 0 ? void 0 : _fetchcustomercartQue.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.customercart.countryid) != null &&
|
|
@@ -9077,7 +9288,7 @@ var Checkout = function Checkout(props) {
|
|
|
9077
9288
|
var _fetchcustomercartQue8;
|
|
9078
9289
|
tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue8 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue8 === void 0 || (_fetchcustomercartQue8 = _fetchcustomercartQue8.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.customercart.stateid;
|
|
9079
9290
|
}
|
|
9080
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
9291
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
9081
9292
|
} else {
|
|
9082
9293
|
// NotificationManager.warning('', lang.pleaselogintocheckout);
|
|
9083
9294
|
routingcountext(StaticPagesLinksContext.Login);
|
|
@@ -9944,10 +10155,10 @@ var Checkout = function Checkout(props) {
|
|
|
9944
10155
|
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue58 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue58 === void 0 || (_fetchcustomercartQue58 = _fetchcustomercartQue58.data) === null || _fetchcustomercartQue58 === void 0 ? void 0 : _fetchcustomercartQue58.customercart.countryid);
|
|
9945
10156
|
}),
|
|
9946
10157
|
onChange: function onChange(option) {
|
|
9947
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
10158
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
9948
10159
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
9949
10160
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
9950
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
10161
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
9951
10162
|
cartinfoupdater('countryid', option.id);
|
|
9952
10163
|
},
|
|
9953
10164
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -9992,10 +10203,10 @@ var Checkout = function Checkout(props) {
|
|
|
9992
10203
|
onChange: function onChange(option) {
|
|
9993
10204
|
var _fetchcustomercartQue60;
|
|
9994
10205
|
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue60 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue60 === void 0 || (_fetchcustomercartQue60 = _fetchcustomercartQue60.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.customercart.countryid.length) != 0) {
|
|
9995
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
10206
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2j({}, FetchTabexStatesPayloadobjContext);
|
|
9996
10207
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
9997
10208
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
9998
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
10209
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2j({}, tempFetchTabexStatesPayloadobjContext));
|
|
9999
10210
|
cartinfoupdater('stateid', option.id);
|
|
10000
10211
|
} else {
|
|
10001
10212
|
NotificationManager.warning('', 'Please Choose Country Or State');
|
|
@@ -10359,8 +10570,8 @@ var Checkout = function Checkout(props) {
|
|
|
10359
10570
|
}, Mycart())))));
|
|
10360
10571
|
};
|
|
10361
10572
|
|
|
10362
|
-
function ownKeys$
|
|
10363
|
-
function _objectSpread$
|
|
10573
|
+
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; }
|
|
10574
|
+
function _objectSpread$2i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10364
10575
|
var VendorPage = function VendorPage(props) {
|
|
10365
10576
|
var _useState = useState(''),
|
|
10366
10577
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10393,7 +10604,7 @@ var VendorPage = function VendorPage(props) {
|
|
|
10393
10604
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
10394
10605
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
10395
10606
|
});
|
|
10396
|
-
setsectionproperties(_objectSpread$
|
|
10607
|
+
setsectionproperties(_objectSpread$2i({}, secpropobj));
|
|
10397
10608
|
}
|
|
10398
10609
|
}, [StatePagePropertiesContext]);
|
|
10399
10610
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -10516,8 +10727,8 @@ var VendorPage = function VendorPage(props) {
|
|
|
10516
10727
|
})));
|
|
10517
10728
|
};
|
|
10518
10729
|
|
|
10519
|
-
function ownKeys$
|
|
10520
|
-
function _objectSpread$
|
|
10730
|
+
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; }
|
|
10731
|
+
function _objectSpread$2h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10521
10732
|
var Select$2 = /*#__PURE__*/React.lazy(function () {
|
|
10522
10733
|
return import('react-select');
|
|
10523
10734
|
});
|
|
@@ -10627,46 +10838,46 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10627
10838
|
}
|
|
10628
10839
|
}, [fetchAuthorizationQueryContext.isSuccess]);
|
|
10629
10840
|
useEffect(function () {
|
|
10630
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
10841
|
+
var tempFetchQueriesEngineContext = _objectSpread$2h({}, FetchQueriesEngineContext);
|
|
10631
10842
|
tempFetchQueriesEngineContext.institutecustomerinfosignup = true;
|
|
10632
10843
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
10633
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
10634
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
10844
|
+
setFetchQueriesEngineContext(_objectSpread$2h({}, tempFetchQueriesEngineContext));
|
|
10845
|
+
var tempFetchQueriesEngineContext = _objectSpread$2h({}, FetchQueriesEngineContext);
|
|
10635
10846
|
}, []);
|
|
10636
10847
|
useEffect(function () {
|
|
10637
10848
|
if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
|
|
10638
|
-
setsectionproperties(_objectSpread$
|
|
10849
|
+
setsectionproperties(_objectSpread$2h({}, props.sectionpropertiesprops));
|
|
10639
10850
|
}
|
|
10640
10851
|
}, [props.sectionpropertiesprops]);
|
|
10641
10852
|
useEffect(function () {
|
|
10642
10853
|
if (fetchinstitutecustomerinfosignupQueryContext.isSuccess) {
|
|
10643
10854
|
if (authdetailsContext.loggedin == true) {
|
|
10644
|
-
var tempcustomerinfoobj = _objectSpread$
|
|
10645
|
-
setpayloadobj(_objectSpread$
|
|
10646
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
10855
|
+
var tempcustomerinfoobj = _objectSpread$2h({}, fetchinstitutecustomerinfosignupQueryContext.data.data.customerinfo);
|
|
10856
|
+
setpayloadobj(_objectSpread$2h({}, tempcustomerinfoobj));
|
|
10857
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
10647
10858
|
if (tempcustomerinfoobj.countryid != null) {
|
|
10648
10859
|
tempFetchTabexStatesPayloadobjContext.country_id = tempcustomerinfoobj.countryid;
|
|
10649
10860
|
}
|
|
10650
10861
|
if (tempcustomerinfoobj.stateid != null) {
|
|
10651
10862
|
tempFetchTabexStatesPayloadobjContext.state_id = tempcustomerinfoobj.stateid;
|
|
10652
10863
|
}
|
|
10653
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
10864
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
10654
10865
|
setdataloaded(true);
|
|
10655
10866
|
} else {
|
|
10656
10867
|
var _fetchinstitutecustom;
|
|
10657
|
-
var tempcustomerinfoobj = _objectSpread$
|
|
10868
|
+
var tempcustomerinfoobj = _objectSpread$2h({}, payloadobj);
|
|
10658
10869
|
if (Array.isArray(fetchinstitutecustomerinfosignupQueryContext === null || fetchinstitutecustomerinfosignupQueryContext === void 0 || (_fetchinstitutecustom = fetchinstitutecustomerinfosignupQueryContext.data) === null || _fetchinstitutecustom === void 0 || (_fetchinstitutecustom = _fetchinstitutecustom.data) === null || _fetchinstitutecustom === void 0 ? void 0 : _fetchinstitutecustom.instsignupformvalues)) {
|
|
10659
10870
|
tempcustomerinfoobj.instsignupformvalues = _toConsumableArray(fetchinstitutecustomerinfosignupQueryContext.data.data.instsignupformvalues);
|
|
10660
10871
|
}
|
|
10661
|
-
setpayloadobj(_objectSpread$
|
|
10872
|
+
setpayloadobj(_objectSpread$2h({}, tempcustomerinfoobj));
|
|
10662
10873
|
setdataloaded(true);
|
|
10663
10874
|
}
|
|
10664
10875
|
}
|
|
10665
10876
|
}, [fetchinstitutecustomerinfosignupQueryContext.isSuccess, fetchinstitutecustomerinfosignupQueryContext.data, authdetailsContext]);
|
|
10666
10877
|
var payloadobjchange = function payloadobjchange(key, value) {
|
|
10667
|
-
var temppayloadobj = _objectSpread$
|
|
10878
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
10668
10879
|
temppayloadobj[key] = value;
|
|
10669
|
-
setpayloadobj(_objectSpread$
|
|
10880
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
10670
10881
|
};
|
|
10671
10882
|
var validateEmailstring = function validateEmailstring(email) {
|
|
10672
10883
|
return String(email).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
|
|
@@ -10738,7 +10949,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10738
10949
|
};
|
|
10739
10950
|
var signupbuttonfunc = function signupbuttonfunc() {
|
|
10740
10951
|
if (verifypayload() == true) {
|
|
10741
|
-
var temppayloadobj = _objectSpread$
|
|
10952
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
10742
10953
|
if (authdetailsContext.loggedin == true) {
|
|
10743
10954
|
temppayloadobj.functype = 'edit';
|
|
10744
10955
|
} else {
|
|
@@ -10895,10 +11106,10 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10895
11106
|
autoFormat: true,
|
|
10896
11107
|
value: payloadobj.mobile,
|
|
10897
11108
|
onChange: function onChange(event, country) {
|
|
10898
|
-
var temp = _objectSpread$
|
|
11109
|
+
var temp = _objectSpread$2h({}, payloadobj);
|
|
10899
11110
|
temp.mobile = event;
|
|
10900
11111
|
temp.countrydialcode = country.dialCode;
|
|
10901
|
-
setpayloadobj(_objectSpread$
|
|
11112
|
+
setpayloadobj(_objectSpread$2h({}, temp));
|
|
10902
11113
|
// payloadobjchange('mobile', event);
|
|
10903
11114
|
|
|
10904
11115
|
// alert(JSON.stringify(country));
|
|
@@ -10955,10 +11166,10 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
10955
11166
|
return option.id == payloadobj.countryid;
|
|
10956
11167
|
}),
|
|
10957
11168
|
onChange: function onChange(option) {
|
|
10958
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
11169
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
10959
11170
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
10960
11171
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
10961
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
11172
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
10962
11173
|
payloadobjchange('countryid', option.id);
|
|
10963
11174
|
},
|
|
10964
11175
|
styles: sectionproperties.inputfieldbordertype == 'All' ? langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated : langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -11007,10 +11218,10 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11007
11218
|
return option.id == payloadobj.stateid;
|
|
11008
11219
|
}),
|
|
11009
11220
|
onChange: function onChange(option) {
|
|
11010
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
11221
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2h({}, FetchTabexStatesPayloadobjContext);
|
|
11011
11222
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
11012
11223
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
11013
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
11224
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$2h({}, tempFetchTabexStatesPayloadobjContext));
|
|
11014
11225
|
payloadobjchange('stateid', option.id);
|
|
11015
11226
|
},
|
|
11016
11227
|
styles: sectionproperties.inputfieldbordertype == 'All' ? langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated : langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -11152,9 +11363,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11152
11363
|
value: item.customersignupvalue,
|
|
11153
11364
|
textplaceholder: "",
|
|
11154
11365
|
onChange: function onChange(event) {
|
|
11155
|
-
var temppayloadobj = _objectSpread$
|
|
11366
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11156
11367
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11157
|
-
setpayloadobj(_objectSpread$
|
|
11368
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11158
11369
|
},
|
|
11159
11370
|
style: {
|
|
11160
11371
|
background: 'transparent'
|
|
@@ -11168,13 +11379,13 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11168
11379
|
className: formstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11169
11380
|
checked: item.customersignupvalue == 1 ? true : false,
|
|
11170
11381
|
onChange: function onChange() {
|
|
11171
|
-
var temppayloadobj = _objectSpread$
|
|
11382
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11172
11383
|
if (temppayloadobj.instsignupformvalues[index].customersignupvalue == 1) {
|
|
11173
11384
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = 0;
|
|
11174
11385
|
} else {
|
|
11175
11386
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = 1;
|
|
11176
11387
|
}
|
|
11177
|
-
setpayloadobj(_objectSpread$
|
|
11388
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11178
11389
|
}
|
|
11179
11390
|
}), /*#__PURE__*/React.createElement("svg", {
|
|
11180
11391
|
viewBox: "0 0 21 21",
|
|
@@ -11191,9 +11402,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11191
11402
|
value: item.customersignupvalue,
|
|
11192
11403
|
textplaceholder: "",
|
|
11193
11404
|
onChange: function onChange(event) {
|
|
11194
|
-
var temppayloadobj = _objectSpread$
|
|
11405
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11195
11406
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11196
|
-
setpayloadobj(_objectSpread$
|
|
11407
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11197
11408
|
}
|
|
11198
11409
|
}, /*#__PURE__*/React.createElement("option", {
|
|
11199
11410
|
value: '',
|
|
@@ -11208,9 +11419,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11208
11419
|
value: item.customersignupvalue,
|
|
11209
11420
|
textplaceholder: "",
|
|
11210
11421
|
onChange: function onChange(event) {
|
|
11211
|
-
var temppayloadobj = _objectSpread$
|
|
11422
|
+
var temppayloadobj = _objectSpread$2h({}, payloadobj);
|
|
11212
11423
|
temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
|
|
11213
|
-
setpayloadobj(_objectSpread$
|
|
11424
|
+
setpayloadobj(_objectSpread$2h({}, temppayloadobj));
|
|
11214
11425
|
},
|
|
11215
11426
|
style: {
|
|
11216
11427
|
resize: 'none'
|
|
@@ -11564,7 +11775,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11564
11775
|
className: "".concat(formstyles.form_control),
|
|
11565
11776
|
value: validateemailpayload.code,
|
|
11566
11777
|
onChange: function onChange(event) {
|
|
11567
|
-
setvalidateemailpayload(_objectSpread$
|
|
11778
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11568
11779
|
code: event.target.value
|
|
11569
11780
|
}));
|
|
11570
11781
|
},
|
|
@@ -11591,12 +11802,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11591
11802
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
11592
11803
|
if (data.data.status) {
|
|
11593
11804
|
if (data.data.functype == 'sendcode') {
|
|
11594
|
-
setvalidateemailpayload(_objectSpread$
|
|
11805
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11595
11806
|
step: 'verifycode'
|
|
11596
11807
|
}));
|
|
11597
11808
|
}
|
|
11598
11809
|
if (data.data.functype == 'verifycode') {
|
|
11599
|
-
setvalidateemailpayload(_objectSpread$
|
|
11810
|
+
setvalidateemailpayload(_objectSpread$2h(_objectSpread$2h({}, validateemailpayload), {}, {
|
|
11600
11811
|
isvalidated: true
|
|
11601
11812
|
}));
|
|
11602
11813
|
setvalidateemailmodal(false);
|
|
@@ -11691,7 +11902,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11691
11902
|
className: "".concat(formstyles.form_control),
|
|
11692
11903
|
value: validatephonenumberpayload.code,
|
|
11693
11904
|
onChange: function onChange(event) {
|
|
11694
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11905
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11695
11906
|
code: event.target.value
|
|
11696
11907
|
}));
|
|
11697
11908
|
},
|
|
@@ -11718,12 +11929,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11718
11929
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
11719
11930
|
if (data.data.status) {
|
|
11720
11931
|
if (data.data.functype == 'sendcode') {
|
|
11721
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11932
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11722
11933
|
step: 'verifycode'
|
|
11723
11934
|
}));
|
|
11724
11935
|
}
|
|
11725
11936
|
if (data.data.functype == 'verifycode') {
|
|
11726
|
-
setvalidatephonenumberpayload(_objectSpread$
|
|
11937
|
+
setvalidatephonenumberpayload(_objectSpread$2h(_objectSpread$2h({}, validatephonenumberpayload), {}, {
|
|
11727
11938
|
isvalidated: true
|
|
11728
11939
|
}));
|
|
11729
11940
|
setvalidatephonenumbermodal(false);
|
|
@@ -11759,8 +11970,8 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
11759
11970
|
}, validatephonenumberpayload.step == 'sendcode' ? lang.sendcode : lang.verifycode))))))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
|
|
11760
11971
|
};
|
|
11761
11972
|
|
|
11762
|
-
function ownKeys$
|
|
11763
|
-
function _objectSpread$
|
|
11973
|
+
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; }
|
|
11974
|
+
function _objectSpread$2g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11764
11975
|
var Signup = function Signup(props) {
|
|
11765
11976
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
11766
11977
|
props.actions.CurrentSrcTypeContext;
|
|
@@ -11808,7 +12019,7 @@ var Signup = function Signup(props) {
|
|
|
11808
12019
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
11809
12020
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
11810
12021
|
});
|
|
11811
|
-
setsectionproperties(_objectSpread$
|
|
12022
|
+
setsectionproperties(_objectSpread$2g({}, secpropobj));
|
|
11812
12023
|
}
|
|
11813
12024
|
}, [StatePagePropertiesContext]);
|
|
11814
12025
|
var loginstyles2 = {
|
|
@@ -11951,8 +12162,8 @@ var Signup = function Signup(props) {
|
|
|
11951
12162
|
}, SignupContent()));
|
|
11952
12163
|
};
|
|
11953
12164
|
|
|
11954
|
-
function ownKeys$
|
|
11955
|
-
function _objectSpread$
|
|
12165
|
+
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; }
|
|
12166
|
+
function _objectSpread$2f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11956
12167
|
var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
11957
12168
|
var _css;
|
|
11958
12169
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -12018,7 +12229,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12018
12229
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
12019
12230
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12020
12231
|
});
|
|
12021
|
-
setsectionproperties(_objectSpread$
|
|
12232
|
+
setsectionproperties(_objectSpread$2f({}, secpropobj));
|
|
12022
12233
|
}
|
|
12023
12234
|
}, [StatePagePropertiesContext]);
|
|
12024
12235
|
var loginstyles2 = {
|
|
@@ -12119,7 +12330,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12119
12330
|
className: "".concat(loginstyles2.form_control),
|
|
12120
12331
|
value: affsignuppayload.name,
|
|
12121
12332
|
onChange: function onChange(event) {
|
|
12122
|
-
setaffsignuppayload(_objectSpread$
|
|
12333
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12123
12334
|
name: event.target.value
|
|
12124
12335
|
}));
|
|
12125
12336
|
},
|
|
@@ -12135,7 +12346,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12135
12346
|
className: "".concat(loginstyles2.form_control),
|
|
12136
12347
|
value: affsignuppayload.email,
|
|
12137
12348
|
onChange: function onChange(event) {
|
|
12138
|
-
setaffsignuppayload(_objectSpread$
|
|
12349
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12139
12350
|
email: event.target.value
|
|
12140
12351
|
}));
|
|
12141
12352
|
},
|
|
@@ -12153,10 +12364,10 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12153
12364
|
autoFormat: true,
|
|
12154
12365
|
value: affsignuppayload.phonenumber,
|
|
12155
12366
|
onChange: function onChange(event, country) {
|
|
12156
|
-
var temp = _objectSpread$
|
|
12367
|
+
var temp = _objectSpread$2f({}, affsignuppayload);
|
|
12157
12368
|
temp.phonenumber = event;
|
|
12158
12369
|
temp.countrydialcode = country.dialCode;
|
|
12159
|
-
setaffsignuppayload(_objectSpread$
|
|
12370
|
+
setaffsignuppayload(_objectSpread$2f({}, temp));
|
|
12160
12371
|
// setaffsignuppayload({ ...affsignuppayload, phonenumber: event.target.value });
|
|
12161
12372
|
},
|
|
12162
12373
|
|
|
@@ -12172,7 +12383,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12172
12383
|
className: "".concat(loginstyles2.form_control),
|
|
12173
12384
|
value: affsignuppayload.ssn,
|
|
12174
12385
|
onChange: function onChange(event) {
|
|
12175
|
-
setaffsignuppayload(_objectSpread$
|
|
12386
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12176
12387
|
ssn: event.target.value
|
|
12177
12388
|
}));
|
|
12178
12389
|
},
|
|
@@ -12188,7 +12399,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12188
12399
|
className: "".concat(loginstyles2.form_control),
|
|
12189
12400
|
value: affsignuppayload.password,
|
|
12190
12401
|
onChange: function onChange(event) {
|
|
12191
|
-
setaffsignuppayload(_objectSpread$
|
|
12402
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12192
12403
|
password: event.target.value
|
|
12193
12404
|
}));
|
|
12194
12405
|
},
|
|
@@ -12204,7 +12415,7 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12204
12415
|
className: "".concat(loginstyles2.form_control),
|
|
12205
12416
|
value: affsignuppayload.confirmpassword,
|
|
12206
12417
|
onChange: function onChange(event) {
|
|
12207
|
-
setaffsignuppayload(_objectSpread$
|
|
12418
|
+
setaffsignuppayload(_objectSpread$2f(_objectSpread$2f({}, affsignuppayload), {}, {
|
|
12208
12419
|
confirmpassword: event.target.value
|
|
12209
12420
|
}));
|
|
12210
12421
|
},
|
|
@@ -12257,8 +12468,8 @@ var Afiiliatesignup = function Afiiliatesignup(props) {
|
|
|
12257
12468
|
}), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? sectionproperties.signupbtn_contenten : sectionproperties.signupbtn_contentar)))))))));
|
|
12258
12469
|
};
|
|
12259
12470
|
|
|
12260
|
-
function ownKeys$
|
|
12261
|
-
function _objectSpread$
|
|
12471
|
+
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; }
|
|
12472
|
+
function _objectSpread$2e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12262
12473
|
var AccountInformation = function AccountInformation(props) {
|
|
12263
12474
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8;
|
|
12264
12475
|
var lang = props.actions.lang;
|
|
@@ -12285,7 +12496,7 @@ var AccountInformation = function AccountInformation(props) {
|
|
|
12285
12496
|
props === null || props === void 0 || (_props$actions = props.actions) === null || _props$actions === void 0 || (_props$actions = _props$actions.StatePagePropertiesContext) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageobj) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageproperties) === null || _props$actions === void 0 || _props$actions.forEach(function (arrayItem, arrayindex) {
|
|
12286
12497
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12287
12498
|
});
|
|
12288
|
-
setsectionproperties(_objectSpread$
|
|
12499
|
+
setsectionproperties(_objectSpread$2e({}, secpropobj));
|
|
12289
12500
|
}, [props.actions.StatePagePropertiesContext]);
|
|
12290
12501
|
useEffect(function () {
|
|
12291
12502
|
var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
|
|
@@ -12447,8 +12658,8 @@ var css_248z$F = ".tabs-module_tabs__36dMY {\n position: relative;\n heigh
|
|
|
12447
12658
|
var tabstyles = {"tabs":"tabs-module_tabs__36dMY","tabsul":"tabs-module_tabsul__wNZqy","tabsli":"tabs-module_tabsli__-uR10","active":"tabs-module_active__6wLfI","tabsliheaderresp":"tabs-module_tabsliheaderresp__TPNhh","accordionContainer":"tabs-module_accordionContainer__-MSW5","policiestabs":"tabs-module_policiestabs__nopXD"};
|
|
12448
12659
|
styleInject(css_248z$F);
|
|
12449
12660
|
|
|
12450
|
-
function ownKeys$
|
|
12451
|
-
function _objectSpread$
|
|
12661
|
+
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; }
|
|
12662
|
+
function _objectSpread$2d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12452
12663
|
var Policies = function Policies(props) {
|
|
12453
12664
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchInstitutePolici, _fetchInstitutePolici2, _fetchInstitutePolici3;
|
|
12454
12665
|
var _useState = useState(''),
|
|
@@ -12479,7 +12690,7 @@ var Policies = function Policies(props) {
|
|
|
12479
12690
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
12480
12691
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12481
12692
|
});
|
|
12482
|
-
setsectionproperties(_objectSpread$
|
|
12693
|
+
setsectionproperties(_objectSpread$2d({}, secpropobj));
|
|
12483
12694
|
}
|
|
12484
12695
|
}, [StatePagePropertiesContext]);
|
|
12485
12696
|
useEffect(function () {
|
|
@@ -12492,9 +12703,9 @@ var Policies = function Policies(props) {
|
|
|
12492
12703
|
}
|
|
12493
12704
|
}, []);
|
|
12494
12705
|
useEffect(function () {
|
|
12495
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
12706
|
+
var tempFetchQueriesEngineContext = _objectSpread$2d({}, FetchQueriesEngineContext);
|
|
12496
12707
|
tempFetchQueriesEngineContext.fetchinstitutepolicy = true;
|
|
12497
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
12708
|
+
setFetchQueriesEngineContext(_objectSpread$2d({}, tempFetchQueriesEngineContext));
|
|
12498
12709
|
}, []);
|
|
12499
12710
|
var _useState7 = useState([]),
|
|
12500
12711
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
@@ -12724,8 +12935,8 @@ var css_248z$E = ".cart-module_cartslider_container__idend {\n transition: 0.
|
|
|
12724
12935
|
var cartstyles = {"cartslider_container":"cart-module_cartslider_container__idend","close_menu_icon_cont":"cart-module_close_menu_icon_cont__uh-pE","cart_slider_imagecont":"cart-module_cart_slider_imagecont__tnHMt","checkout_cart_slider_imagecont":"cart-module_checkout_cart_slider_imagecont__UX2ct","checkout_quantity_cont":"cart-module_checkout_quantity_cont__Rr3RO","btn_circle":"cart-module_btn_circle__p-BDZ","cart_progress_card":"cart-module_cart_progress_card__jEFwg","cart_progress_card_active":"cart-module_cart_progress_card_active__gQzWT","trash_btn":"cart-module_trash_btn__bHQxy","btn_apply":"cart-module_btn_apply__phbo8","checkout_card_card":"cart-module_checkout_card_card__4zUo9"};
|
|
12725
12936
|
styleInject(css_248z$E);
|
|
12726
12937
|
|
|
12727
|
-
function ownKeys$
|
|
12728
|
-
function _objectSpread$
|
|
12938
|
+
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; }
|
|
12939
|
+
function _objectSpread$2c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12729
12940
|
var CartSlider = function CartSlider(props) {
|
|
12730
12941
|
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12;
|
|
12731
12942
|
var lang = props.actions.lang;
|
|
@@ -12791,7 +13002,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
12791
13002
|
templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
|
|
12792
13003
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12793
13004
|
});
|
|
12794
|
-
setsectionproperties(_objectSpread$
|
|
13005
|
+
setsectionproperties(_objectSpread$2c({}, secpropobj));
|
|
12795
13006
|
}, [CurrentPageId]);
|
|
12796
13007
|
useEffect(function () {
|
|
12797
13008
|
if (CurrentSrcTypeContext == 'workplace') {
|
|
@@ -12801,7 +13012,7 @@ var CartSlider = function CartSlider(props) {
|
|
|
12801
13012
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
12802
13013
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
12803
13014
|
});
|
|
12804
|
-
setsectionproperties(_objectSpread$
|
|
13015
|
+
setsectionproperties(_objectSpread$2c({}, secpropobj));
|
|
12805
13016
|
}
|
|
12806
13017
|
}
|
|
12807
13018
|
}, [StatePagePropertiesContext]);
|
|
@@ -13371,8 +13582,8 @@ var CartSlider = function CartSlider(props) {
|
|
|
13371
13582
|
}, langdetect == 'en' ? sectionproperties.checkoutButtonContenten : sectionproperties.checkoutButtonContentar))))))))));
|
|
13372
13583
|
};
|
|
13373
13584
|
|
|
13374
|
-
function ownKeys$
|
|
13375
|
-
function _objectSpread$
|
|
13585
|
+
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; }
|
|
13586
|
+
function _objectSpread$2b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13376
13587
|
var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
13377
13588
|
var _useState = useState(''),
|
|
13378
13589
|
_useState2 = _slicedToArray(_useState, 2);
|
|
@@ -13416,7 +13627,7 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
|
13416
13627
|
templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
|
|
13417
13628
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13418
13629
|
});
|
|
13419
|
-
setsectionproperties(_objectSpread$
|
|
13630
|
+
setsectionproperties(_objectSpread$2b({}, secpropobj));
|
|
13420
13631
|
}, [CurrentPageId]);
|
|
13421
13632
|
useEffect(function () {
|
|
13422
13633
|
if (CurrentSrcTypeContext == 'workplace') {
|
|
@@ -13426,7 +13637,7 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
|
13426
13637
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
|
|
13427
13638
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13428
13639
|
});
|
|
13429
|
-
setsectionproperties(_objectSpread$
|
|
13640
|
+
setsectionproperties(_objectSpread$2b({}, secpropobj));
|
|
13430
13641
|
}
|
|
13431
13642
|
}
|
|
13432
13643
|
}, [StatePagePropertiesContext]);
|
|
@@ -13654,8 +13865,8 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
|
13654
13865
|
}, CategoriesDropdown()));
|
|
13655
13866
|
};
|
|
13656
13867
|
|
|
13657
|
-
function ownKeys$
|
|
13658
|
-
function _objectSpread$
|
|
13868
|
+
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; }
|
|
13869
|
+
function _objectSpread$2a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13659
13870
|
var OrderSuccess = function OrderSuccess(props) {
|
|
13660
13871
|
var _props$actions2;
|
|
13661
13872
|
props.actions.lang;
|
|
@@ -13705,7 +13916,7 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
13705
13916
|
props === null || props === void 0 || (_props$actions = props.actions) === null || _props$actions === void 0 || (_props$actions = _props$actions.StatePagePropertiesContext) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageobj) === null || _props$actions === void 0 || (_props$actions = _props$actions.pageproperties) === null || _props$actions === void 0 || _props$actions.forEach(function (arrayItem, arrayindex) {
|
|
13706
13917
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
13707
13918
|
});
|
|
13708
|
-
setsectionproperties(_objectSpread$
|
|
13919
|
+
setsectionproperties(_objectSpread$2a({}, secpropobj));
|
|
13709
13920
|
}, [props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
13710
13921
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
13711
13922
|
var ordersuccessstyle = {
|
|
@@ -13802,12 +14013,12 @@ var css_248z$D = ".filter-module_timeline__ROm9Q .filter-module_border_left_line
|
|
|
13802
14013
|
var filterstyles = {"timeline":"filter-module_timeline__ROm9Q","border_left_line":"filter-module_border_left_line__IkxXK","btn_item":"filter-module_btn_item__GoKTf","timelineinnercont_active":"filter-module_timelineinnercont_active__2sLI7","timeline_text":"filter-module_timeline_text__NgaGy","timelineinnercont":"filter-module_timelineinnercont__Zme9K","timelinetrans":"filter-module_timelinetrans__KzVCg","filterslider_container":"filter-module_filterslider_container__I-7sG","filterslider_container_opened":"filter-module_filterslider_container_opened__2eZes","outercontainer":"filter-module_outercontainer__kmY9b","innercontainer":"filter-module_innercontainer__VKukp","card":"filter-module_card__7yDs0"};
|
|
13803
14014
|
styleInject(css_248z$D);
|
|
13804
14015
|
|
|
13805
|
-
function ownKeys$
|
|
13806
|
-
function _objectSpread$
|
|
14016
|
+
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; }
|
|
14017
|
+
function _objectSpread$29(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$29(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$29(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13807
14018
|
var Select$1 = /*#__PURE__*/React.lazy(function () {
|
|
13808
14019
|
return import('react-select');
|
|
13809
14020
|
});
|
|
13810
|
-
var Filter$
|
|
14021
|
+
var Filter$1 = function Filter(props) {
|
|
13811
14022
|
var _css;
|
|
13812
14023
|
var lang = props.actions.lang;
|
|
13813
14024
|
var langdetect = props.actions.langdetect;
|
|
@@ -13943,11 +14154,11 @@ var Filter$2 = function Filter(props) {
|
|
|
13943
14154
|
}
|
|
13944
14155
|
timeoutRef.current = setTimeout(function () {
|
|
13945
14156
|
if (raterangevalue.min != 0 || raterangevalue.max != 5) {
|
|
13946
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14157
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
13947
14158
|
tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
|
|
13948
14159
|
tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
|
|
13949
14160
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
13950
|
-
setProductFilterObjContext(_objectSpread$
|
|
14161
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
13951
14162
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
13952
14163
|
}
|
|
13953
14164
|
}, 500);
|
|
@@ -14033,33 +14244,33 @@ var Filter$2 = function Filter(props) {
|
|
|
14033
14244
|
}, [ProductFilterObjContext, fetchCategoriesQueryContext.isSuccess, fetchcollectionsQueryContext.isSuccess, instcategories, instcollections]);
|
|
14034
14245
|
useEffect(function () {
|
|
14035
14246
|
if (productfeatuesarr.length != 0) {
|
|
14036
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14247
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14037
14248
|
tempfetchproductsfilerobjcontext.prod_featruesar = productfeatuesarr;
|
|
14038
|
-
setProductFilterObjContext(_objectSpread$
|
|
14249
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14039
14250
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14040
14251
|
}
|
|
14041
14252
|
}, [productfeatuesarr]);
|
|
14042
14253
|
useEffect(function () {
|
|
14043
14254
|
if (fetchTabexStatesQueryContext.isSuccess) {
|
|
14044
14255
|
if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
|
|
14045
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
14256
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14046
14257
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
14047
14258
|
tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
|
|
14048
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14259
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
14049
14260
|
}
|
|
14050
14261
|
}
|
|
14051
14262
|
}, [fetchTabexStatesQueryContext.isSuccess]);
|
|
14052
14263
|
var filterupdater = function filterupdater() {
|
|
14053
14264
|
setTimeout(function () {
|
|
14054
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
14265
|
+
var tempFetchQueriesEngineContext = _objectSpread$29({}, FetchQueriesEngineContext);
|
|
14055
14266
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
14056
14267
|
setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
|
|
14057
14268
|
}, 100);
|
|
14058
14269
|
if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
|
|
14059
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
14270
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14060
14271
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
14061
14272
|
tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
|
|
14062
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14273
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
14063
14274
|
}
|
|
14064
14275
|
if (instfilters.length != 0) {
|
|
14065
14276
|
var _ProductFilterObjCont3;
|
|
@@ -14121,7 +14332,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14121
14332
|
}
|
|
14122
14333
|
};
|
|
14123
14334
|
var setfilterfunc = function setfilterfunc(valueid, valueindex, mainparentindex, type) {
|
|
14124
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14335
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14125
14336
|
if (type == 'clearfilters') {
|
|
14126
14337
|
tempfetchproductsfilerobjcontext.FilterOptions = [];
|
|
14127
14338
|
} else {
|
|
@@ -14145,14 +14356,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14145
14356
|
tempfetchproductsfilerobjcontext.isfilter = 1;
|
|
14146
14357
|
}
|
|
14147
14358
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14148
|
-
setProductFilterObjContext(_objectSpread$
|
|
14359
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14149
14360
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14150
14361
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
14151
14362
|
};
|
|
14152
14363
|
|
|
14153
14364
|
var setCollectionFilterFunc = function setCollectionFilterFunc(collectionid) {
|
|
14154
14365
|
var _tempfetchproductsfil2;
|
|
14155
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
14366
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14156
14367
|
var CollectionExists = false;
|
|
14157
14368
|
tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil2 = tempfetchproductsfilerobjcontext.collections) === null || _tempfetchproductsfil2 === void 0 || _tempfetchproductsfil2.forEach(function (filteritem, filterindex) {
|
|
14158
14369
|
if (filteritem == collectionid) {
|
|
@@ -14174,7 +14385,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14174
14385
|
}
|
|
14175
14386
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14176
14387
|
tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
|
|
14177
|
-
setProductFilterObjContext(_objectSpread$
|
|
14388
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14178
14389
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14179
14390
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
14180
14391
|
};
|
|
@@ -14195,11 +14406,11 @@ var Filter$2 = function Filter(props) {
|
|
|
14195
14406
|
if (state.expanded == true) {
|
|
14196
14407
|
return /*#__PURE__*/React.createElement("i", {
|
|
14197
14408
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14198
|
-
}, /*#__PURE__*/React.createElement(
|
|
14409
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
14199
14410
|
} else {
|
|
14200
14411
|
return /*#__PURE__*/React.createElement("i", {
|
|
14201
14412
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14202
|
-
}, /*#__PURE__*/React.createElement(
|
|
14413
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
14203
14414
|
}
|
|
14204
14415
|
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
14205
14416
|
className: "p-0"
|
|
@@ -14257,11 +14468,11 @@ var Filter$2 = function Filter(props) {
|
|
|
14257
14468
|
if (state.expanded == true) {
|
|
14258
14469
|
return /*#__PURE__*/React.createElement("i", {
|
|
14259
14470
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14260
|
-
}, /*#__PURE__*/React.createElement(
|
|
14471
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
14261
14472
|
} else {
|
|
14262
14473
|
return /*#__PURE__*/React.createElement("i", {
|
|
14263
14474
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14264
|
-
}, /*#__PURE__*/React.createElement(
|
|
14475
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
14265
14476
|
}
|
|
14266
14477
|
})), /*#__PURE__*/React.createElement("div", {
|
|
14267
14478
|
className: "col-lg-12 p-0"
|
|
@@ -14335,11 +14546,11 @@ var Filter$2 = function Filter(props) {
|
|
|
14335
14546
|
if (state.expanded == true) {
|
|
14336
14547
|
return /*#__PURE__*/React.createElement("i", {
|
|
14337
14548
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14338
|
-
}, /*#__PURE__*/React.createElement(
|
|
14549
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
14339
14550
|
} else {
|
|
14340
14551
|
return /*#__PURE__*/React.createElement("i", {
|
|
14341
14552
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14342
|
-
}, /*#__PURE__*/React.createElement(
|
|
14553
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
14343
14554
|
}
|
|
14344
14555
|
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
14345
14556
|
className: "p-0"
|
|
@@ -14378,9 +14589,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14378
14589
|
setcollectionstobevisible(instcollections);
|
|
14379
14590
|
}
|
|
14380
14591
|
// style={{ cursor: 'pointer' }}
|
|
14381
|
-
}, langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar)))))))
|
|
14382
|
-
className: "mt-3 mb-3"
|
|
14383
|
-
})));
|
|
14592
|
+
}, langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar)))))))));
|
|
14384
14593
|
};
|
|
14385
14594
|
var DynamicFilter = function DynamicFilter() {
|
|
14386
14595
|
var _fetchProductFeatures;
|
|
@@ -14389,66 +14598,192 @@ var Filter$2 = function Filter(props) {
|
|
|
14389
14598
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14390
14599
|
"class": "col-lg-12 p-0 mb-3"
|
|
14391
14600
|
}, (fetchProductFeaturesQueryContext === null || fetchProductFeaturesQueryContext === void 0 ? void 0 : fetchProductFeaturesQueryContext.isSuccess) && /*#__PURE__*/React.createElement("div", {
|
|
14392
|
-
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14601
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3 w-100"
|
|
14393
14602
|
}, 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) {
|
|
14603
|
+
// if (item.type == 'Selectbox') {
|
|
14604
|
+
// var selectboxarr = [];
|
|
14605
|
+
// item?.featuresselectbovalue?.forEach(function (slecitem) {
|
|
14606
|
+
// var itemlabel = '';
|
|
14607
|
+
// if (langdetect == 'en') {
|
|
14608
|
+
// itemlabel = slecitem.value_en;
|
|
14609
|
+
// } else {
|
|
14610
|
+
// itemlabel = slecitem.value_ar;
|
|
14611
|
+
// }
|
|
14612
|
+
// selectboxarr.push({ label: itemlabel, value: slecitem.value_en });
|
|
14613
|
+
// });
|
|
14614
|
+
// return (
|
|
14615
|
+
// <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
|
|
14616
|
+
// <label
|
|
14617
|
+
// className={' mb-3 w-100 '}
|
|
14618
|
+
// style={{
|
|
14619
|
+
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14620
|
+
// color: sectionproperties.filtertitle_color,
|
|
14621
|
+
// color: sectionproperties.filtertitle_color,
|
|
14622
|
+
// fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
14623
|
+
// fontWeight: sectionproperties.filtertitle_fontweight,
|
|
14624
|
+
// color: sectionproperties.filtertitle_color,
|
|
14625
|
+
// textTransform: 'capitalize',
|
|
14626
|
+
// }}
|
|
14627
|
+
// >
|
|
14628
|
+
// {langdetect == 'en' ? item.name_en : item.name_ar}
|
|
14629
|
+
// </label>
|
|
14630
|
+
// <div class={'col-lg-12 p-0'}>
|
|
14631
|
+
// <Select
|
|
14632
|
+
// options={selectboxarr}
|
|
14633
|
+
// styles={langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated}
|
|
14634
|
+
// placeholder={''}
|
|
14635
|
+
// onChange={(e) => {
|
|
14636
|
+
// var isattrexists = false;
|
|
14637
|
+
// var tempproductfeatuesarr = [...productfeatuesarr];
|
|
14638
|
+
// tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
|
|
14639
|
+
// if (attritem.id == item.id) {
|
|
14640
|
+
// tempproductfeatuesarr[attrindex].value = e.value;
|
|
14641
|
+
// isattrexists = true;
|
|
14642
|
+
// }
|
|
14643
|
+
// });
|
|
14644
|
+
// if (isattrexists == false) {
|
|
14645
|
+
// tempproductfeatuesarr.push({
|
|
14646
|
+
// id: item.id,
|
|
14647
|
+
// value: e.value,
|
|
14648
|
+
// });
|
|
14649
|
+
// }
|
|
14650
|
+
// setproductfeatuesarr([...tempproductfeatuesarr]);
|
|
14651
|
+
// }}
|
|
14652
|
+
// />
|
|
14653
|
+
// </div>
|
|
14654
|
+
// </div>
|
|
14655
|
+
// );
|
|
14656
|
+
// }
|
|
14394
14657
|
if (item.type == 'Selectbox') {
|
|
14395
|
-
var _item$featuresselectb
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
|
-
|
|
14399
|
-
|
|
14400
|
-
|
|
14658
|
+
var _item$featuresselectb;
|
|
14659
|
+
// item?.featuresselectbovalue?.forEach(function (slecitem) {
|
|
14660
|
+
// var itemlabel = '';
|
|
14661
|
+
// var itemlabelar = '';
|
|
14662
|
+
// if (langdetect == 'en') {
|
|
14663
|
+
// itemlabel = slecitem.value_en;
|
|
14664
|
+
// } else {
|
|
14665
|
+
// itemlabel = slecitem.value_ar;
|
|
14666
|
+
// }
|
|
14667
|
+
// selectboxarr.push({ label: itemlabel, value: slecitem.value_en });
|
|
14668
|
+
// });
|
|
14669
|
+
return /*#__PURE__*/React.createElement(Accordion, {
|
|
14670
|
+
allowMultipleExpanded: true,
|
|
14671
|
+
allowZeroExpanded: true,
|
|
14672
|
+
preExpanded: [0, 1, 2, 3]
|
|
14673
|
+
}, /*#__PURE__*/React.createElement(AccordionItem, {
|
|
14674
|
+
uuid: index
|
|
14675
|
+
}, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
|
|
14676
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 w-100 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
14677
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14678
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
14679
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
14680
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
14681
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar)), /*#__PURE__*/React.createElement("div", {
|
|
14682
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
14683
|
+
}, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
|
|
14684
|
+
if (state.expanded == true) {
|
|
14685
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
14686
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14687
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
14401
14688
|
} else {
|
|
14402
|
-
|
|
14689
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
14690
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14691
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
14403
14692
|
}
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
|
|
14408
|
-
}
|
|
14409
|
-
|
|
14410
|
-
|
|
14411
|
-
|
|
14412
|
-
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14416
|
-
|
|
14417
|
-
|
|
14418
|
-
|
|
14419
|
-
|
|
14420
|
-
|
|
14421
|
-
styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
|
|
14422
|
-
placeholder: '',
|
|
14423
|
-
onChange: function onChange(e) {
|
|
14424
|
-
var isattrexists = false;
|
|
14425
|
-
var tempproductfeatuesarr = _toConsumableArray(productfeatuesarr);
|
|
14426
|
-
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
14427
|
-
if (attritem.id == item.id) {
|
|
14428
|
-
tempproductfeatuesarr[attrindex].value = e.value;
|
|
14429
|
-
isattrexists = true;
|
|
14430
|
-
}
|
|
14431
|
-
});
|
|
14432
|
-
if (isattrexists == false) {
|
|
14433
|
-
tempproductfeatuesarr.push({
|
|
14434
|
-
id: item.id,
|
|
14435
|
-
value: e.value
|
|
14693
|
+
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
14694
|
+
className: "p-0"
|
|
14695
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14696
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14697
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14698
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14699
|
+
}, item === null || item === void 0 || (_item$featuresselectb = item.featuresselectbovalue) === null || _item$featuresselectb === void 0 ? void 0 : _item$featuresselectb.map(function (slecitem, slecindex) {
|
|
14700
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14701
|
+
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 ',
|
|
14702
|
+
onClick: function onClick(e) {
|
|
14703
|
+
var isattrexists = false;
|
|
14704
|
+
var tempproductfeatuesarr = _toConsumableArray(productfeatuesarr);
|
|
14705
|
+
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
14706
|
+
if (attritem.id == slecitem.id) {
|
|
14707
|
+
tempproductfeatuesarr[attrindex].value = slecitem.value_en;
|
|
14708
|
+
isattrexists = true;
|
|
14709
|
+
}
|
|
14436
14710
|
});
|
|
14711
|
+
if (isattrexists == false) {
|
|
14712
|
+
tempproductfeatuesarr.push({
|
|
14713
|
+
id: slecitem.id,
|
|
14714
|
+
value: slecitem.value_en
|
|
14715
|
+
});
|
|
14716
|
+
}
|
|
14717
|
+
setproductfeatuesarr(_toConsumableArray(tempproductfeatuesarr));
|
|
14718
|
+
|
|
14719
|
+
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14437
14720
|
}
|
|
14438
|
-
|
|
14439
|
-
|
|
14440
|
-
|
|
14441
|
-
|
|
14721
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
14722
|
+
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 '
|
|
14723
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
14724
|
+
className: "h-100 d-flex align-items-center"
|
|
14725
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
14726
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14727
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
14728
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14729
|
+
style: {
|
|
14730
|
+
color: slecitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14731
|
+
}
|
|
14732
|
+
}, langdetect == 'en' ? slecitem.value_en : slecitem.value_ar)));
|
|
14733
|
+
}))))))
|
|
14734
|
+
// <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
|
|
14735
|
+
// <label
|
|
14736
|
+
// className={' mb-3 w-100 '}
|
|
14737
|
+
// style={{
|
|
14738
|
+
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14739
|
+
// color: sectionproperties.filtertitle_color,
|
|
14740
|
+
// color: sectionproperties.filtertitle_color,
|
|
14741
|
+
// fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
14742
|
+
// fontWeight: sectionproperties.filtertitle_fontweight,
|
|
14743
|
+
// color: sectionproperties.filtertitle_color,
|
|
14744
|
+
// textTransform: 'capitalize',
|
|
14745
|
+
// }}
|
|
14746
|
+
// >
|
|
14747
|
+
// {langdetect == 'en' ? item.name_en : item.name_ar}
|
|
14748
|
+
// </label>
|
|
14749
|
+
// <div class={'col-lg-12 p-0'}>
|
|
14750
|
+
// <Select
|
|
14751
|
+
// options={selectboxarr}
|
|
14752
|
+
// styles={langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated}
|
|
14753
|
+
// placeholder={''}
|
|
14754
|
+
// onChange={(e) => {
|
|
14755
|
+
// var isattrexists = false;
|
|
14756
|
+
// var tempproductfeatuesarr = [...productfeatuesarr];
|
|
14757
|
+
// tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
|
|
14758
|
+
// if (attritem.id == item.id) {
|
|
14759
|
+
// tempproductfeatuesarr[attrindex].value = e.value;
|
|
14760
|
+
// isattrexists = true;
|
|
14761
|
+
// }
|
|
14762
|
+
// });
|
|
14763
|
+
// if (isattrexists == false) {
|
|
14764
|
+
// tempproductfeatuesarr.push({
|
|
14765
|
+
// id: item.id,
|
|
14766
|
+
// value: e.value,
|
|
14767
|
+
// });
|
|
14768
|
+
// }
|
|
14769
|
+
// setproductfeatuesarr([...tempproductfeatuesarr]);
|
|
14770
|
+
// }}
|
|
14771
|
+
// />
|
|
14772
|
+
// </div>
|
|
14773
|
+
// </div>
|
|
14774
|
+
;
|
|
14775
|
+
}
|
|
14776
|
+
// up here
|
|
14442
14777
|
if (item.type == 'Number') {
|
|
14443
|
-
var
|
|
14778
|
+
var _ref;
|
|
14444
14779
|
return /*#__PURE__*/React.createElement("div", {
|
|
14445
14780
|
"class": "col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0"
|
|
14446
14781
|
}, /*#__PURE__*/React.createElement("label", {
|
|
14447
14782
|
className: "".concat(filter_cssstyles.input_label_name) + ' mb-3 w-100 ',
|
|
14448
|
-
style: (
|
|
14783
|
+
style: (_ref = {
|
|
14449
14784
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14450
14785
|
color: sectionproperties.filtertitle_color
|
|
14451
|
-
}, _defineProperty(
|
|
14786
|
+
}, _defineProperty(_ref, "color", sectionproperties.filtertitle_color), _defineProperty(_ref, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty(_ref, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty(_ref, "color", sectionproperties.filtertitle_color), _defineProperty(_ref, "textTransform", 'capitalize'), _ref)
|
|
14452
14787
|
}, langdetect == 'en' ? item.name_en : item.name_ar), /*#__PURE__*/React.createElement("div", {
|
|
14453
14788
|
"class": 'col-lg-12 p-0'
|
|
14454
14789
|
}, /*#__PURE__*/React.createElement("input", {
|
|
@@ -14475,7 +14810,7 @@ var Filter$2 = function Filter(props) {
|
|
|
14475
14810
|
})));
|
|
14476
14811
|
}
|
|
14477
14812
|
if (item.type == 'NumberRange') {
|
|
14478
|
-
var
|
|
14813
|
+
var _ref2;
|
|
14479
14814
|
var temppricevalue = {
|
|
14480
14815
|
min: 0,
|
|
14481
14816
|
max: 10000
|
|
@@ -14496,10 +14831,10 @@ var Filter$2 = function Filter(props) {
|
|
|
14496
14831
|
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 '
|
|
14497
14832
|
}, /*#__PURE__*/React.createElement("label", {
|
|
14498
14833
|
className: "".concat(filter_cssstyles.input_label_name) + ' mb-3 w-100',
|
|
14499
|
-
style: (
|
|
14834
|
+
style: (_ref2 = {
|
|
14500
14835
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
14501
14836
|
color: sectionproperties.filtertitle_color
|
|
14502
|
-
}, _defineProperty(
|
|
14837
|
+
}, _defineProperty(_ref2, "color", sectionproperties.filtertitle_color), _defineProperty(_ref2, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty(_ref2, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty(_ref2, "color", sectionproperties.filtertitle_color), _defineProperty(_ref2, "textTransform", 'capitalize'), _ref2)
|
|
14503
14838
|
}, langdetect == 'en' ? item.name_en : item.name_ar, item.type), /*#__PURE__*/React.createElement("div", {
|
|
14504
14839
|
"class": 'col-lg-12 pl-4 pr-4 mt-2 mb-2',
|
|
14505
14840
|
style: {
|
|
@@ -14538,60 +14873,70 @@ var Filter$2 = function Filter(props) {
|
|
|
14538
14873
|
}))));
|
|
14539
14874
|
};
|
|
14540
14875
|
var InstFilters = function InstFilters() {
|
|
14541
|
-
return
|
|
14542
|
-
|
|
14543
|
-
|
|
14544
|
-
|
|
14545
|
-
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
|
|
14550
|
-
|
|
14551
|
-
|
|
14552
|
-
|
|
14553
|
-
|
|
14554
|
-
|
|
14555
|
-
}, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
|
|
14556
|
-
if (state.expanded == true) {
|
|
14557
|
-
return /*#__PURE__*/React.createElement("i", {
|
|
14558
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14559
|
-
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
14560
|
-
} else {
|
|
14561
|
-
return /*#__PURE__*/React.createElement("i", {
|
|
14562
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14563
|
-
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
14564
|
-
}
|
|
14565
|
-
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
14566
|
-
className: "p-0"
|
|
14567
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
14568
|
-
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14569
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
14570
|
-
className: 'col-lg-12'
|
|
14571
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
14572
|
-
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14573
|
-
}, item.productvaluesfilter.map(function (valueitem, valueindex) {
|
|
14574
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
14575
|
-
className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(valueitem.isfilterselected ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-start pb-3 ',
|
|
14576
|
-
onClick: function onClick() {
|
|
14577
|
-
setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14578
|
-
}
|
|
14579
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
14580
|
-
className: " ".concat(valueitem.isfilterselected ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
14581
|
-
}, /*#__PURE__*/React.createElement("i", {
|
|
14582
|
-
className: "h-100 d-flex align-items-center"
|
|
14583
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
14584
|
-
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14876
|
+
return (
|
|
14877
|
+
/*#__PURE__*/
|
|
14878
|
+
// <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
|
|
14879
|
+
React.createElement(Accordion, {
|
|
14880
|
+
allowMultipleExpanded: true,
|
|
14881
|
+
allowZeroExpanded: true,
|
|
14882
|
+
preExpanded: [0, 1, 2, 3]
|
|
14883
|
+
}, instfilters.map(function (item, index) {
|
|
14884
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AccordionItem, {
|
|
14885
|
+
uuid: index
|
|
14886
|
+
}, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
|
|
14887
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 mb-4 '
|
|
14888
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14889
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
14585
14890
|
}, /*#__PURE__*/React.createElement("p", {
|
|
14586
|
-
className:
|
|
14587
|
-
|
|
14588
|
-
|
|
14891
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
14892
|
+
}, langdetect == 'en' ? item.optionname : item.optionname_ar)), /*#__PURE__*/React.createElement("div", {
|
|
14893
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
14894
|
+
}, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
|
|
14895
|
+
if (state.expanded == true) {
|
|
14896
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
14897
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14898
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
14899
|
+
} else {
|
|
14900
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
14901
|
+
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
14902
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
14589
14903
|
}
|
|
14590
|
-
},
|
|
14591
|
-
|
|
14592
|
-
|
|
14593
|
-
|
|
14594
|
-
|
|
14904
|
+
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
14905
|
+
className: "p-0"
|
|
14906
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14907
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
14908
|
+
}, /*#__PURE__*/React.createElement("ul", {
|
|
14909
|
+
"class": "thwvsf-wrapper-ul"
|
|
14910
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14911
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
14912
|
+
}, item.productvaluesfilter.map(function (valueitem, valueindex) {
|
|
14913
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14914
|
+
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 ',
|
|
14915
|
+
onClick: function onClick() {
|
|
14916
|
+
setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
14917
|
+
}
|
|
14918
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
14919
|
+
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 '
|
|
14920
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
14921
|
+
className: "h-100 d-flex align-items-center"
|
|
14922
|
+
}))), item.optionname == 'Color' && /*#__PURE__*/React.createElement("div", {
|
|
14923
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14924
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
14925
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14926
|
+
style: {
|
|
14927
|
+
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14928
|
+
}
|
|
14929
|
+
}, valueitem.value_identifier)), item.optionname != 'Color' && /*#__PURE__*/React.createElement("div", {
|
|
14930
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
14931
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
14932
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
14933
|
+
style: {
|
|
14934
|
+
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
14935
|
+
}
|
|
14936
|
+
}, langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar)));
|
|
14937
|
+
})))))));
|
|
14938
|
+
}))
|
|
14939
|
+
);
|
|
14595
14940
|
};
|
|
14596
14941
|
var filter_cssstyles = {
|
|
14597
14942
|
form_control: css((_css = {
|
|
@@ -14770,14 +15115,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14770
15115
|
return option.id == ProductFilterObjContext.countryid;
|
|
14771
15116
|
}),
|
|
14772
15117
|
onChange: function onChange(option) {
|
|
14773
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
15118
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14774
15119
|
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
14775
15120
|
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
14776
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14777
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15121
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
15122
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14778
15123
|
tempfetchproductsfilerobjcontext.countryid = option.id;
|
|
14779
15124
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14780
|
-
setProductFilterObjContext(_objectSpread$
|
|
15125
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14781
15126
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14782
15127
|
},
|
|
14783
15128
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14814,14 +15159,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14814
15159
|
return option.id == ProductFilterObjContext.stateid;
|
|
14815
15160
|
}),
|
|
14816
15161
|
onChange: function onChange(option) {
|
|
14817
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$
|
|
15162
|
+
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
14818
15163
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
14819
15164
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
14820
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$
|
|
14821
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15165
|
+
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
15166
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14822
15167
|
tempfetchproductsfilerobjcontext.stateid = option.id;
|
|
14823
15168
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14824
|
-
setProductFilterObjContext(_objectSpread$
|
|
15169
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14825
15170
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14826
15171
|
},
|
|
14827
15172
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14858,10 +15203,10 @@ var Filter$2 = function Filter(props) {
|
|
|
14858
15203
|
return option.id == ProductFilterObjContext.cityid;
|
|
14859
15204
|
}),
|
|
14860
15205
|
onChange: function onChange(option) {
|
|
14861
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15206
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14862
15207
|
tempfetchproductsfilerobjcontext.cityid = option.id;
|
|
14863
15208
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14864
|
-
setProductFilterObjContext(_objectSpread$
|
|
15209
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14865
15210
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14866
15211
|
},
|
|
14867
15212
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
@@ -14885,11 +15230,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14885
15230
|
// }
|
|
14886
15231
|
// }, []);
|
|
14887
15232
|
return /*#__PURE__*/React.createElement("div", {
|
|
14888
|
-
className
|
|
15233
|
+
// 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'}
|
|
15234
|
+
className: 'row m-0 p-0 w-100',
|
|
14889
15235
|
style: {
|
|
14890
15236
|
marginTop: sectionproperties.filtersection_mt + 'px',
|
|
14891
15237
|
minHeight: sectionproperties.filterminheight == 0 ? 'auto' : sectionproperties.filterminheight + 'vh'
|
|
14892
15238
|
}
|
|
15239
|
+
}, props.typeprops != 'vertical' && /*#__PURE__*/React.createElement("div", {
|
|
15240
|
+
className: sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 p-0 w-100 filter mt-md-0 ' : 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none'
|
|
14893
15241
|
}, sectionproperties.filterType == 'Title & Sort By Only' && /*#__PURE__*/React.createElement("div", {
|
|
14894
15242
|
"class": "row mx-0 w-100",
|
|
14895
15243
|
style: {
|
|
@@ -14965,14 +15313,14 @@ var Filter$2 = function Filter(props) {
|
|
|
14965
15313
|
color: ischecked ? sectionproperties.activecat_color : ''
|
|
14966
15314
|
},
|
|
14967
15315
|
onClick: function onClick() {
|
|
14968
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15316
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
14969
15317
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
14970
15318
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
14971
15319
|
} else {
|
|
14972
15320
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
14973
15321
|
}
|
|
14974
15322
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
14975
|
-
setProductFilterObjContext(_objectSpread$
|
|
15323
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
14976
15324
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
14977
15325
|
setsortbycontext(valueitem.name);
|
|
14978
15326
|
}
|
|
@@ -15117,11 +15465,11 @@ var Filter$2 = function Filter(props) {
|
|
|
15117
15465
|
if (state.expanded == true) {
|
|
15118
15466
|
return /*#__PURE__*/React.createElement("i", {
|
|
15119
15467
|
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
15120
|
-
}, /*#__PURE__*/React.createElement(
|
|
15468
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
15121
15469
|
} else {
|
|
15122
15470
|
return /*#__PURE__*/React.createElement("i", {
|
|
15123
15471
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15124
|
-
}, /*#__PURE__*/React.createElement(
|
|
15472
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
15125
15473
|
}
|
|
15126
15474
|
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
15127
15475
|
className: "p-0"
|
|
@@ -15145,14 +15493,14 @@ var Filter$2 = function Filter(props) {
|
|
|
15145
15493
|
return /*#__PURE__*/React.createElement("div", {
|
|
15146
15494
|
className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(ischecked ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-start pb-3 ',
|
|
15147
15495
|
onClick: function onClick() {
|
|
15148
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15496
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15149
15497
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15150
15498
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15151
15499
|
} else {
|
|
15152
15500
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15153
15501
|
}
|
|
15154
15502
|
tempfetchproductsfilerobjcontext.page = 0;
|
|
15155
|
-
setProductFilterObjContext(_objectSpread$
|
|
15503
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15156
15504
|
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15157
15505
|
}
|
|
15158
15506
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -15187,7 +15535,7 @@ var Filter$2 = function Filter(props) {
|
|
|
15187
15535
|
minValue: 0,
|
|
15188
15536
|
value: raterangevalue,
|
|
15189
15537
|
onChange: function onChange(value) {
|
|
15190
|
-
setraterangevalue(_objectSpread$
|
|
15538
|
+
setraterangevalue(_objectSpread$29({}, value));
|
|
15191
15539
|
}
|
|
15192
15540
|
}))))), /*#__PURE__*/React.createElement("div", {
|
|
15193
15541
|
className: "col-lg-9 col-md-9 col-sm-9 d-flex align-items-center d-md-none"
|
|
@@ -15301,11 +15649,11 @@ var Filter$2 = function Filter(props) {
|
|
|
15301
15649
|
if (state.expanded == true) {
|
|
15302
15650
|
return /*#__PURE__*/React.createElement("i", {
|
|
15303
15651
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15304
|
-
}, /*#__PURE__*/React.createElement(
|
|
15652
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
15305
15653
|
} else {
|
|
15306
15654
|
return /*#__PURE__*/React.createElement("i", {
|
|
15307
15655
|
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15308
|
-
}, /*#__PURE__*/React.createElement(
|
|
15656
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
15309
15657
|
}
|
|
15310
15658
|
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
15311
15659
|
className: "p-0"
|
|
@@ -15330,13 +15678,13 @@ var Filter$2 = function Filter(props) {
|
|
|
15330
15678
|
className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(ischecked ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-start pb-3 ',
|
|
15331
15679
|
onClick: function onClick() {
|
|
15332
15680
|
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15333
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$
|
|
15681
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15334
15682
|
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15335
15683
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15336
15684
|
} else {
|
|
15337
15685
|
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15338
15686
|
}
|
|
15339
|
-
setProductFilterObjContext(_objectSpread$
|
|
15687
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15340
15688
|
}
|
|
15341
15689
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
15342
15690
|
className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
@@ -15350,9 +15698,7 @@ var Filter$2 = function Filter(props) {
|
|
|
15350
15698
|
color: ischecked ? sectionproperties.activecat_color : ''
|
|
15351
15699
|
}
|
|
15352
15700
|
}, valueitem.name)));
|
|
15353
|
-
})))))))
|
|
15354
|
-
className: "mt-3 mb-3"
|
|
15355
|
-
}));
|
|
15701
|
+
}))))))));
|
|
15356
15702
|
}), sectionproperties.otherfilters == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15357
15703
|
className: "col-lg-12"
|
|
15358
15704
|
}, /*#__PURE__*/React.createElement("hr", {
|
|
@@ -15365,570 +15711,188 @@ var Filter$2 = function Filter(props) {
|
|
|
15365
15711
|
"class": "row m-0 w-100"
|
|
15366
15712
|
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15367
15713
|
"class": "row m-0 w-100"
|
|
15368
|
-
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters())))))))
|
|
15369
|
-
|
|
15370
|
-
|
|
15371
|
-
|
|
15372
|
-
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
var langdetect = props.actions.langdetect;
|
|
15377
|
-
props.actions.productfiltercontext;
|
|
15378
|
-
props.actions.setproductfiltercontext;
|
|
15379
|
-
var ProductFilterObjContext = props.actions.ProductFilterObjContext;
|
|
15380
|
-
var setProductFilterObjContext = props.actions.setProductFilterObjContext;
|
|
15381
|
-
props.actions.authdetailsContext;
|
|
15382
|
-
var fetchproductoptionsQueryContext = props.actions.fetchproductoptionsQueryContext;
|
|
15383
|
-
var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
|
|
15384
|
-
var routingcountext = props.actions.routingcountext;
|
|
15385
|
-
var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
15386
|
-
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
15387
|
-
props.actions.ikimagecredcontext;
|
|
15388
|
-
var _useState = useState({
|
|
15389
|
-
min: 0,
|
|
15390
|
-
max: 10000
|
|
15391
|
-
}),
|
|
15392
|
-
_useState2 = _slicedToArray(_useState, 2);
|
|
15393
|
-
_useState2[0];
|
|
15394
|
-
_useState2[1];
|
|
15395
|
-
var _useState3 = useState([]),
|
|
15396
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
15397
|
-
productfeatuesarr = _useState4[0];
|
|
15398
|
-
_useState4[1];
|
|
15399
|
-
props.actions.fetchTabexCountriesQueryContext;
|
|
15400
|
-
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
15401
|
-
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
15402
|
-
props.actions.fetchTabexCitiesQueryContext;
|
|
15403
|
-
var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
|
|
15404
|
-
var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
|
|
15405
|
-
var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
|
|
15406
|
-
props.actions.fetchProductFeaturesQueryContext;
|
|
15407
|
-
var _useState5 = useState(''),
|
|
15408
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
15409
|
-
sectionproperties = _useState6[0],
|
|
15410
|
-
setsectionproperties = _useState6[1];
|
|
15411
|
-
// const [instfilters, setinstfilters] = useState([...authdetailsContext.instinfo.instfilters]);
|
|
15412
|
-
var _useState7 = useState([]),
|
|
15413
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
15414
|
-
instfilters = _useState8[0],
|
|
15415
|
-
setinstfilters = _useState8[1];
|
|
15416
|
-
var _useState9 = useState([]),
|
|
15417
|
-
_useState10 = _slicedToArray(_useState9, 2);
|
|
15418
|
-
_useState10[0];
|
|
15419
|
-
var setcollectionstobevisible = _useState10[1];
|
|
15420
|
-
var _useState11 = useState([]),
|
|
15421
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
15422
|
-
instcollections = _useState12[0],
|
|
15423
|
-
setinstcollections = _useState12[1];
|
|
15424
|
-
var _useState13 = useState([]),
|
|
15425
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
15426
|
-
instcategories = _useState14[0],
|
|
15427
|
-
setinstcategories = _useState14[1];
|
|
15428
|
-
// const [sortby, setSortby] = useState('Sort by');
|
|
15429
|
-
var _useState15 = useState({
|
|
15430
|
-
min: 0,
|
|
15431
|
-
max: 5
|
|
15432
|
-
}),
|
|
15433
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
15434
|
-
raterangevalue = _useState16[0];
|
|
15435
|
-
_useState16[1];
|
|
15436
|
-
var timeoutRef = React.useRef(null);
|
|
15437
|
-
var _useState17 = useState(''),
|
|
15438
|
-
_useState18 = _slicedToArray(_useState17, 2);
|
|
15439
|
-
_useState18[0];
|
|
15440
|
-
_useState18[1];
|
|
15441
|
-
var _useState19 = useState([{
|
|
15442
|
-
payloadvalue: 'sortprice',
|
|
15443
|
-
name: lang.price,
|
|
15444
|
-
filterarray: [{
|
|
15445
|
-
name: lang.pricehightolow,
|
|
15446
|
-
value: 'hightolow',
|
|
15447
|
-
isfilterselected: false
|
|
15448
|
-
}, {
|
|
15449
|
-
name: lang.pricelowtohigh,
|
|
15450
|
-
value: 'lowtohigh',
|
|
15451
|
-
isfilterselected: false
|
|
15452
|
-
}]
|
|
15453
|
-
}, {
|
|
15454
|
-
payloadvalue: 'sortdates',
|
|
15455
|
-
name: lang.dates,
|
|
15456
|
-
filterarray: [{
|
|
15457
|
-
name: lang.recent,
|
|
15458
|
-
value: 'recent',
|
|
15459
|
-
isfilterselected: false
|
|
15460
|
-
}, {
|
|
15461
|
-
name: lang.oldest,
|
|
15462
|
-
value: 'old',
|
|
15463
|
-
isfilterselected: false
|
|
15464
|
-
}]
|
|
15465
|
-
}]),
|
|
15466
|
-
_useState20 = _slicedToArray(_useState19, 2);
|
|
15467
|
-
_useState20[0];
|
|
15468
|
-
_useState20[1];
|
|
15469
|
-
useEffect(function () {
|
|
15470
|
-
filterupdater();
|
|
15471
|
-
}, []);
|
|
15472
|
-
useEffect(function () {
|
|
15473
|
-
if (fetchproductoptionsQueryContext.isSuccess) {
|
|
15474
|
-
var _fetchproductoptionsQ;
|
|
15475
|
-
setinstfilters(_toConsumableArray(fetchproductoptionsQueryContext === null || fetchproductoptionsQueryContext === void 0 || (_fetchproductoptionsQ = fetchproductoptionsQueryContext.data) === null || _fetchproductoptionsQ === void 0 || (_fetchproductoptionsQ = _fetchproductoptionsQ.data) === null || _fetchproductoptionsQ === void 0 ? void 0 : _fetchproductoptionsQ.productoptions));
|
|
15476
|
-
}
|
|
15477
|
-
}, [fetchproductoptionsQueryContext.isSuccess]);
|
|
15478
|
-
useEffect(function () {
|
|
15479
|
-
if (fetchCategoriesQueryContext.isSuccess) {
|
|
15480
|
-
var _fetchCategoriesQuery;
|
|
15481
|
-
setinstcategories(_toConsumableArray(fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories));
|
|
15714
|
+
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))))))), props.typeprops == 'vertical' && /*#__PURE__*/React.createElement("div", {
|
|
15715
|
+
className: 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none'
|
|
15716
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15717
|
+
className: "".concat(filterstyles.filterslider_container) + ' pb-md-5 ',
|
|
15718
|
+
id: "filterslider",
|
|
15719
|
+
style: {
|
|
15720
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15721
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15482
15722
|
}
|
|
15483
|
-
},
|
|
15484
|
-
|
|
15485
|
-
|
|
15486
|
-
|
|
15487
|
-
|
|
15723
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15724
|
+
className: filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '
|
|
15725
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15726
|
+
className: "col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex"
|
|
15727
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
15728
|
+
className: "m-0 p-0 font-16 font-weight-600",
|
|
15729
|
+
style: {
|
|
15730
|
+
color: sectionproperties.filter_titlecolor,
|
|
15731
|
+
fontSize: sectionproperties.filter_titlefontsize + 'px',
|
|
15732
|
+
fontWeight: sectionproperties.filter_titlefontweight,
|
|
15733
|
+
textTransform: sectionproperties.filter_titletextransform
|
|
15488
15734
|
}
|
|
15489
|
-
},
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
|
|
15493
|
-
|
|
15494
|
-
|
|
15495
|
-
|
|
15496
|
-
if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
|
|
15497
|
-
setsectionproperties(props.sectionpropertiesprops);
|
|
15735
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React.createElement("div", {
|
|
15736
|
+
className: "col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0"
|
|
15737
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15738
|
+
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 ',
|
|
15739
|
+
onClick: function onClick() {
|
|
15740
|
+
var element = document.getElementById('filterslider');
|
|
15741
|
+
element.classList.remove(filterstyles.filterslider_container_opened);
|
|
15498
15742
|
}
|
|
15499
|
-
},
|
|
15500
|
-
|
|
15501
|
-
|
|
15502
|
-
|
|
15503
|
-
|
|
15504
|
-
|
|
15505
|
-
clearTimeout(timeoutRef.current);
|
|
15743
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
15744
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
15745
|
+
}, /*#__PURE__*/React.createElement(IoMdClose, {
|
|
15746
|
+
size: sectionproperties.closeSlider_fontSize,
|
|
15747
|
+
style: {
|
|
15748
|
+
color: sectionproperties.closeSlider_color
|
|
15506
15749
|
}
|
|
15507
|
-
|
|
15508
|
-
|
|
15509
|
-
|
|
15510
|
-
|
|
15511
|
-
|
|
15512
|
-
|
|
15513
|
-
|
|
15514
|
-
|
|
15515
|
-
|
|
15516
|
-
|
|
15517
|
-
},
|
|
15518
|
-
|
|
15519
|
-
|
|
15520
|
-
|
|
15521
|
-
|
|
15522
|
-
|
|
15523
|
-
|
|
15524
|
-
|
|
15525
|
-
|
|
15526
|
-
|
|
15527
|
-
|
|
15528
|
-
|
|
15529
|
-
|
|
15530
|
-
|
|
15531
|
-
|
|
15532
|
-
|
|
15533
|
-
|
|
15534
|
-
|
|
15535
|
-
|
|
15536
|
-
|
|
15537
|
-
|
|
15538
|
-
|
|
15539
|
-
|
|
15540
|
-
|
|
15541
|
-
var _catitem$parentcollet2;
|
|
15542
|
-
catitem === null || catitem === void 0 || (_catitem$parentcollet2 = catitem.parentcolletions) === null || _catitem$parentcollet2 === void 0 || _catitem$parentcollet2.forEach(function (parentcolitem, parentcolindex) {
|
|
15543
|
-
var _parentcolitem$collec;
|
|
15544
|
-
parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (colitem, colindex) {
|
|
15545
|
-
var _ProductFilterObjCont2;
|
|
15546
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont2 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont2 === void 0 || _ProductFilterObjCont2.forEach(function (colitem2, colindex2) {
|
|
15547
|
-
if (colitem.collectionid == colitem2) {
|
|
15548
|
-
parentidsfound.push(parentcolitem.parentcollectionid);
|
|
15549
|
-
}
|
|
15550
|
-
});
|
|
15551
|
-
});
|
|
15552
|
-
});
|
|
15553
|
-
});
|
|
15554
|
-
}
|
|
15555
|
-
parentidsfound = parentidsfound.filter(function (val, id, array) {
|
|
15556
|
-
return array.indexOf(val) == id;
|
|
15557
|
-
});
|
|
15558
|
-
if (((_parentidsfound = parentidsfound) === null || _parentidsfound === void 0 ? void 0 : _parentidsfound.length) != 0) {
|
|
15559
|
-
instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
|
|
15560
|
-
var _catitem$parentcollet3;
|
|
15561
|
-
catitem === null || catitem === void 0 || (_catitem$parentcollet3 = catitem.parentcolletions) === null || _catitem$parentcollet3 === void 0 || _catitem$parentcollet3.forEach(function (parentcolitem, parentcolindex) {
|
|
15562
|
-
var _parentidsfound2;
|
|
15563
|
-
(_parentidsfound2 = parentidsfound) === null || _parentidsfound2 === void 0 || _parentidsfound2.forEach(function (parentidfounditem, parentidfoundindex) {
|
|
15564
|
-
if (parentidfounditem == (parentcolitem === null || parentcolitem === void 0 ? void 0 : parentcolitem.parentcollectionid)) {
|
|
15565
|
-
var _parentcolitem$collec2;
|
|
15566
|
-
parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec2 = parentcolitem.collections) === null || _parentcolitem$collec2 === void 0 || _parentcolitem$collec2.forEach(function (colitem, colindex) {
|
|
15567
|
-
var iscolexists = false;
|
|
15568
|
-
collectiontobevisible === null || collectiontobevisible === void 0 || collectiontobevisible.forEach(function (colitemex, colindexex) {
|
|
15569
|
-
if (colitemex.collectionid == colitem.collectionid) {
|
|
15570
|
-
iscolexists = true;
|
|
15571
|
-
}
|
|
15572
|
-
});
|
|
15573
|
-
if (iscolexists == false) {
|
|
15574
|
-
collectiontobevisible.push(colitem);
|
|
15575
|
-
}
|
|
15576
|
-
});
|
|
15577
|
-
}
|
|
15578
|
-
});
|
|
15579
|
-
});
|
|
15580
|
-
});
|
|
15581
|
-
if ((collectiontobevisible === null || collectiontobevisible === void 0 ? void 0 : collectiontobevisible.length) != 0) {
|
|
15582
|
-
setcollectionstobevisible(collectiontobevisible);
|
|
15583
|
-
} else {
|
|
15584
|
-
setcollectionstobevisible(instcollections);
|
|
15585
|
-
}
|
|
15586
|
-
} else {
|
|
15587
|
-
setcollectionstobevisible(instcollections);
|
|
15588
|
-
}
|
|
15589
|
-
} else {
|
|
15590
|
-
setcollectionstobevisible(instcollections);
|
|
15591
|
-
}
|
|
15592
|
-
} else {
|
|
15593
|
-
setcollectionstobevisible(instcollections);
|
|
15594
|
-
}
|
|
15595
|
-
}
|
|
15596
|
-
}, [ProductFilterObjContext, fetchCategoriesQueryContext.isSuccess, fetchcollectionsQueryContext.isSuccess, instcategories, instcollections]);
|
|
15597
|
-
useEffect(function () {
|
|
15598
|
-
if (productfeatuesarr.length != 0) {
|
|
15599
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15600
|
-
tempfetchproductsfilerobjcontext.prod_featruesar = productfeatuesarr;
|
|
15601
|
-
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15602
|
-
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15603
|
-
}
|
|
15604
|
-
}, [productfeatuesarr]);
|
|
15605
|
-
useEffect(function () {
|
|
15606
|
-
if (fetchTabexStatesQueryContext.isSuccess) {
|
|
15607
|
-
if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
|
|
15608
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
15609
|
-
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
15610
|
-
tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
|
|
15611
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
15612
|
-
}
|
|
15613
|
-
}
|
|
15614
|
-
}, [fetchTabexStatesQueryContext.isSuccess]);
|
|
15615
|
-
var filterupdater = function filterupdater() {
|
|
15616
|
-
setTimeout(function () {
|
|
15617
|
-
var tempFetchQueriesEngineContext = _objectSpread$29({}, FetchQueriesEngineContext);
|
|
15618
|
-
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
15619
|
-
setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
|
|
15620
|
-
}, 100);
|
|
15621
|
-
if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
|
|
15622
|
-
var tempFetchTabexStatesPayloadobjContext = _objectSpread$29({}, FetchTabexStatesPayloadobjContext);
|
|
15623
|
-
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
15624
|
-
tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
|
|
15625
|
-
setFetchTabexStatesPayloadobjContext(_objectSpread$29({}, tempFetchTabexStatesPayloadobjContext));
|
|
15626
|
-
}
|
|
15627
|
-
if (instfilters.length != 0) {
|
|
15628
|
-
var _ProductFilterObjCont3;
|
|
15629
|
-
var tempinstfilters = _toConsumableArray(instfilters);
|
|
15630
|
-
tempinstfilters === null || tempinstfilters === void 0 || tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
|
|
15631
|
-
instfilteritem.productvaluesfilter.forEach(function (valefilteritem, valefilteritemindex) {
|
|
15632
|
-
valefilteritem.isfilterselected = false;
|
|
15633
|
-
});
|
|
15634
|
-
});
|
|
15635
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont3 = ProductFilterObjContext.FilterOptions) === null || _ProductFilterObjCont3 === void 0 || _ProductFilterObjCont3.forEach(function (filteritem, filterindex) {
|
|
15636
|
-
tempinstfilters === null || tempinstfilters === void 0 || tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
|
|
15637
|
-
var _instfilteritem$produ;
|
|
15638
|
-
instfilteritem === null || instfilteritem === void 0 || (_instfilteritem$produ = instfilteritem.productvaluesfilter) === null || _instfilteritem$produ === void 0 || _instfilteritem$produ.forEach(function (valefilteritem, valefilteritemindex) {
|
|
15639
|
-
if (filteritem.valueid == valefilteritem.valueid) {
|
|
15640
|
-
valefilteritem.isfilterselected = true;
|
|
15641
|
-
}
|
|
15642
|
-
});
|
|
15643
|
-
});
|
|
15644
|
-
});
|
|
15645
|
-
setinstfilters(_toConsumableArray(tempinstfilters));
|
|
15646
|
-
}
|
|
15647
|
-
if (instcategories.length != 0) {
|
|
15648
|
-
var _ProductFilterObjCont4;
|
|
15649
|
-
var tempInstcategories = _toConsumableArray(instcategories);
|
|
15650
|
-
tempInstcategories.forEach(function (catitem, catindex) {
|
|
15651
|
-
catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
|
|
15652
|
-
parentcolitem.collections.forEach(function (colitem, colindex) {
|
|
15653
|
-
colitem.isfilterselected = false;
|
|
15654
|
-
});
|
|
15655
|
-
});
|
|
15656
|
-
});
|
|
15657
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont4 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont4 === void 0 || _ProductFilterObjCont4.forEach(function (filteritem, filterindex) {
|
|
15658
|
-
tempInstcategories.forEach(function (catitem, catindex) {
|
|
15659
|
-
catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
|
|
15660
|
-
parentcolitem.collections.forEach(function (colitem, colindex) {
|
|
15661
|
-
if (colitem.collectionid == filteritem) {
|
|
15662
|
-
colitem.isfilterselected = true;
|
|
15663
|
-
}
|
|
15664
|
-
});
|
|
15665
|
-
});
|
|
15666
|
-
});
|
|
15667
|
-
});
|
|
15668
|
-
setinstcategories(_toConsumableArray(tempInstcategories));
|
|
15669
|
-
}
|
|
15670
|
-
if (instcollections.length != 0) {
|
|
15671
|
-
var _ProductFilterObjCont5;
|
|
15672
|
-
var tempInstcollections = _toConsumableArray(instcollections);
|
|
15673
|
-
tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
|
|
15674
|
-
instfilteritem.isfilterselected = false;
|
|
15675
|
-
});
|
|
15676
|
-
ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont5 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont5 === void 0 || _ProductFilterObjCont5.forEach(function (filteritem, filterindex) {
|
|
15677
|
-
tempInstcollections === null || tempInstcollections === void 0 || tempInstcollections.forEach(function (instfilteritem, instfilterindex) {
|
|
15678
|
-
if (instfilteritem.collectionid == filteritem) {
|
|
15679
|
-
instfilteritem.isfilterselected = true;
|
|
15680
|
-
}
|
|
15681
|
-
});
|
|
15682
|
-
});
|
|
15683
|
-
setinstcollections(_toConsumableArray(tempInstcollections));
|
|
15684
|
-
}
|
|
15685
|
-
};
|
|
15686
|
-
var setfilterfunc = function setfilterfunc(valueid, valueindex, mainparentindex, type) {
|
|
15687
|
-
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15688
|
-
if (type == 'clearfilters') {
|
|
15689
|
-
tempfetchproductsfilerobjcontext.FilterOptions = [];
|
|
15690
|
-
} else {
|
|
15691
|
-
var _tempfetchproductsfil;
|
|
15692
|
-
var FilterExists = false;
|
|
15693
|
-
tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil = tempfetchproductsfilerobjcontext.FilterOptions) === null || _tempfetchproductsfil === void 0 || _tempfetchproductsfil.forEach(function (filteritem, filterindex) {
|
|
15694
|
-
if (filteritem.valueid == valueid) {
|
|
15695
|
-
FilterExists = true;
|
|
15696
|
-
tempfetchproductsfilerobjcontext.FilterOptions.splice(filterindex, 1);
|
|
15697
|
-
}
|
|
15698
|
-
});
|
|
15699
|
-
if (!FilterExists) {
|
|
15700
|
-
tempfetchproductsfilerobjcontext.FilterOptions.push({
|
|
15701
|
-
valueid: valueid
|
|
15702
|
-
});
|
|
15703
|
-
}
|
|
15704
|
-
}
|
|
15705
|
-
if (tempfetchproductsfilerobjcontext.FilterOptions.length == 0) {
|
|
15706
|
-
tempfetchproductsfilerobjcontext.isfilter = 0;
|
|
15707
|
-
} else {
|
|
15708
|
-
tempfetchproductsfilerobjcontext.isfilter = 1;
|
|
15709
|
-
}
|
|
15710
|
-
tempfetchproductsfilerobjcontext.page = 0;
|
|
15711
|
-
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15712
|
-
filterrouting(tempfetchproductsfilerobjcontext);
|
|
15713
|
-
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
15714
|
-
};
|
|
15715
|
-
var InstFilters = function InstFilters() {
|
|
15716
|
-
return /*#__PURE__*/React.createElement(Accordion, {
|
|
15717
|
-
allowMultipleExpanded: true,
|
|
15718
|
-
allowZeroExpanded: true
|
|
15719
|
-
}, instfilters.map(function (item, index) {
|
|
15720
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AccordionItem, {
|
|
15721
|
-
uuid: index
|
|
15722
|
-
}, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
|
|
15723
|
-
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
15724
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
15725
|
-
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
15726
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
15727
|
-
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
15728
|
-
}, langdetect == 'en' ? item.optionname : item.optionname_ar)), /*#__PURE__*/React.createElement("div", {
|
|
15729
|
-
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
15730
|
-
}, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
|
|
15731
|
-
if (state.expanded == true) {
|
|
15732
|
-
return /*#__PURE__*/React.createElement("i", {
|
|
15733
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
15734
|
-
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
15735
|
-
} else {
|
|
15736
|
-
return /*#__PURE__*/React.createElement("i", {
|
|
15737
|
-
className: filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
15738
|
-
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
15739
|
-
}
|
|
15740
|
-
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
15741
|
-
className: "p-0"
|
|
15742
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
15743
|
-
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
15744
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
15745
|
-
className: 'col-lg-12'
|
|
15746
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
15747
|
-
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
15748
|
-
}, item.productvaluesfilter.map(function (valueitem, valueindex) {
|
|
15749
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
15750
|
-
className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(valueitem.isfilterselected ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-start pb-3 ',
|
|
15751
|
-
onClick: function onClick() {
|
|
15752
|
-
setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15753
|
-
}
|
|
15754
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
15755
|
-
className: " ".concat(valueitem.isfilterselected ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
15756
|
-
}, /*#__PURE__*/React.createElement("i", {
|
|
15757
|
-
className: "h-100 d-flex align-items-center"
|
|
15758
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
15759
|
-
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
15760
|
-
}, item.optionname == 'Color' && /*#__PURE__*/React.createElement("p", {
|
|
15761
|
-
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15762
|
-
style: {
|
|
15763
|
-
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
15764
|
-
}
|
|
15765
|
-
}, valueitem.value_identifier), item.optionname != 'Color' && /*#__PURE__*/React.createElement("p", {
|
|
15766
|
-
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15767
|
-
style: {
|
|
15768
|
-
color: valueitem.isfilterselected ? sectionproperties.activecat_color : ''
|
|
15769
|
-
}
|
|
15770
|
-
}, langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar)));
|
|
15771
|
-
})))))), /*#__PURE__*/React.createElement("hr", {
|
|
15772
|
-
className: "mt-3 mb-3"
|
|
15773
|
-
}));
|
|
15774
|
-
}));
|
|
15775
|
-
};
|
|
15776
|
-
var filter_cssstyles = {
|
|
15777
|
-
form_control: css((_css = {
|
|
15778
|
-
position: 'relative',
|
|
15779
|
-
display: 'flex',
|
|
15780
|
-
alignItems: 'center'
|
|
15781
|
-
}, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "padding", '0 30px'), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, "fontWeight", 500), _defineProperty(_css, "border", '1px solid #ccc'), _defineProperty(_css, "borderRadius", '5px'), _defineProperty(_css, "height", '40px'), _defineProperty(_css, "background", 'transparent'), _defineProperty(_css, "color", '#000'), _defineProperty(_css, "fontSize", '14px'), _defineProperty(_css, ':focus', {
|
|
15782
|
-
// borderColor: sectionproperties.inputfeildbordercoloronfocus,
|
|
15783
|
-
borderColor: '#eac435',
|
|
15784
|
-
boxShadow: 'none'
|
|
15785
|
-
}), _css)),
|
|
15786
|
-
collapsetitle: css({
|
|
15787
|
-
fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
15788
|
-
fontWeight: sectionproperties.filtertitle_fontweight,
|
|
15789
|
-
textTransform: sectionproperties.filtertitle_texttransform,
|
|
15790
|
-
color: sectionproperties.filtertitle_color,
|
|
15791
|
-
':hover': {
|
|
15792
|
-
color: sectionproperties.filtertitle_coloronhover
|
|
15793
|
-
}
|
|
15794
|
-
}),
|
|
15795
|
-
titlecontainer: css({
|
|
15796
|
-
color: sectionproperties.filtertitle_color,
|
|
15797
|
-
':hover .collapsetitle': {
|
|
15798
|
-
color: sectionproperties.filtertitle_coloronhover
|
|
15799
|
-
}
|
|
15800
|
-
}),
|
|
15801
|
-
timeline_text: css({
|
|
15802
|
-
fontSize: sectionproperties.timeline_text_fontsize + 'px',
|
|
15803
|
-
fontWeight: sectionproperties.timeline_text_fontweight,
|
|
15804
|
-
textTransform: sectionproperties.timeline_text_texttransform,
|
|
15805
|
-
color: sectionproperties.timeline_text_color,
|
|
15806
|
-
transition: '.3s',
|
|
15807
|
-
':hover': {
|
|
15808
|
-
color: sectionproperties.timeline_text_coloronhover
|
|
15809
|
-
}
|
|
15810
|
-
}),
|
|
15811
|
-
btnstyles: css({
|
|
15812
|
-
color: sectionproperties.generalbtn_textColor,
|
|
15813
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
15814
|
-
textTransform: sectionproperties.generalbtn_texttransform,
|
|
15815
|
-
width: sectionproperties.generalbtn_width + 'px',
|
|
15816
|
-
height: sectionproperties.generalbtn_height + 'px',
|
|
15817
|
-
background: sectionproperties.generalbtn_bgColor,
|
|
15818
|
-
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
15819
|
-
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
15820
|
-
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
15821
|
-
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
15822
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
15823
|
-
transition: '.3s',
|
|
15824
|
-
':hover': {
|
|
15825
|
-
background: sectionproperties.generalbtn_bgColoronhover,
|
|
15826
|
-
color: sectionproperties.generalbtn_textColoronhover
|
|
15827
|
-
}
|
|
15828
|
-
}),
|
|
15829
|
-
close_menu_icon_cont: css({
|
|
15830
|
-
background: sectionproperties.closeSliderBgColor,
|
|
15831
|
-
width: sectionproperties.closeSliderWidth + 'px',
|
|
15832
|
-
height: sectionproperties.closeSliderHeight + 'px',
|
|
15833
|
-
borderRadius: sectionproperties.closeSlider_borderBottomLeftRadius + 'px',
|
|
15834
|
-
':hover': {
|
|
15835
|
-
background: sectionproperties.closeSliderBgColorHover
|
|
15836
|
-
}
|
|
15837
|
-
}),
|
|
15838
|
-
horizontalfilter_card: css({
|
|
15839
|
-
marginBottom: sectionproperties.horizontalfilter_mb + 'px',
|
|
15840
|
-
marginTop: sectionproperties.horizontalfilter_mt + 'px',
|
|
15841
|
-
background: sectionproperties.horizontalfilter_cardbg,
|
|
15842
|
-
border: sectionproperties.horizontalfilter_cardborderwidth + 'px solid ' + sectionproperties.horizontalfilter_cardbordercolor,
|
|
15843
|
-
boxShadow: sectionproperties.horizontalfilter_cardboxShadow == 'Show' ? sectionproperties.horizontalfilter_cardboxShadowcolor : 'horizontalfilter_cardboxShadow'
|
|
15844
|
-
}),
|
|
15845
|
-
btn_item: css({
|
|
15846
|
-
width: '20px',
|
|
15847
|
-
height: '20px',
|
|
15848
|
-
background: sectionproperties.filteritembtn_bgcolor,
|
|
15849
|
-
':hover': {
|
|
15850
|
-
background: sectionproperties.filteritembtn_bghover
|
|
15851
|
-
}
|
|
15852
|
-
}),
|
|
15853
|
-
btn_item_active: css({
|
|
15854
|
-
background: sectionproperties.btn_item_activebgcolor
|
|
15855
|
-
}),
|
|
15856
|
-
timelineinnercont_active: css({
|
|
15857
|
-
fontWeight: sectionproperties.activecat_fontweight,
|
|
15858
|
-
color: sectionproperties.activecat_color
|
|
15859
|
-
}),
|
|
15860
|
-
categoryName: css({
|
|
15861
|
-
color: sectionproperties.filtertitle_color,
|
|
15862
|
-
fontWeight: sectionproperties.filterCatFontWeight,
|
|
15863
|
-
fontSize: sectionproperties.filterCatFontSize + 'px'
|
|
15864
|
-
}),
|
|
15865
|
-
pCollectionName: css({
|
|
15866
|
-
color: sectionproperties.filtertitle_color,
|
|
15867
|
-
fontWeight: sectionproperties.filterPCollFontWeight,
|
|
15868
|
-
fontSize: sectionproperties.filterPCollFontSize + 'px'
|
|
15869
|
-
}),
|
|
15870
|
-
explorebtn: css({
|
|
15871
|
-
fontSize: sectionproperties.explorebtnfontsize + 'px',
|
|
15872
|
-
fontWeight: 600,
|
|
15873
|
-
color: sectionproperties.explorebtncolor,
|
|
15874
|
-
transition: '.3s',
|
|
15875
|
-
':hover': {
|
|
15876
|
-
color: sectionproperties.explorebtncoloronhover
|
|
15877
|
-
}
|
|
15878
|
-
}),
|
|
15879
|
-
showallbtn: css({
|
|
15880
|
-
color: sectionproperties.showallcolor,
|
|
15881
|
-
':hover': {
|
|
15882
|
-
transition: '.3s',
|
|
15883
|
-
cursor: 'pointer',
|
|
15884
|
-
color: sectionproperties.showallcolorhover
|
|
15885
|
-
}
|
|
15886
|
-
}),
|
|
15887
|
-
sectiontitle: css({
|
|
15888
|
-
position: 'relative',
|
|
15889
|
-
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
|
|
15890
|
-
width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
|
|
15891
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
15892
|
-
'@media (max-width: 800px)': {
|
|
15893
|
-
fontSize: sectionproperties.sectionTitleFontSizeresp + 'px'
|
|
15894
|
-
}
|
|
15895
|
-
})
|
|
15896
|
-
};
|
|
15897
|
-
var filterrouting = function filterrouting(tempfetchproductsfilerobjcontext) {
|
|
15898
|
-
var path = window.location.pathname.split('/');
|
|
15899
|
-
var currentpagepath = path[1];
|
|
15900
|
-
var pagenamepathinstaticpagelinkcont = '';
|
|
15901
|
-
for (var key in StaticPagesLinksContext) {
|
|
15902
|
-
if (StaticPagesLinksContext[key] == currentpagepath) {
|
|
15903
|
-
pagenamepathinstaticpagelinkcont = key;
|
|
15904
|
-
}
|
|
15750
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
15751
|
+
className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 pl-4 pr-4 '
|
|
15752
|
+
}, sectionproperties.showcountriesfilter == 'Show' && Countriesfilter(), sectionproperties.showvariantsfilter == 'Show' && InstFilters(), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15753
|
+
"class": "row m-0 w-100 mb-3"
|
|
15754
|
+
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15755
|
+
"class": "row m-0 w-100 mb-3"
|
|
15756
|
+
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15757
|
+
"class": "row m-0 w-100 mb-3"
|
|
15758
|
+
}, DynamicFilter())))), /*#__PURE__*/React.createElement("div", {
|
|
15759
|
+
className: "col-lg-12"
|
|
15760
|
+
}, /*#__PURE__*/React.createElement(Offcanvas, {
|
|
15761
|
+
show: props === null || props === void 0 ? void 0 : props.openFilterSlider,
|
|
15762
|
+
onHide: function onHide() {
|
|
15763
|
+
props.setopenFilterSlider(false);
|
|
15764
|
+
},
|
|
15765
|
+
placement: "end",
|
|
15766
|
+
scroll: true,
|
|
15767
|
+
style: {
|
|
15768
|
+
minWidth: '200px',
|
|
15769
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15770
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15771
|
+
},
|
|
15772
|
+
backdrop: true
|
|
15773
|
+
}, /*#__PURE__*/React.createElement(Offcanvas.Header, null, /*#__PURE__*/React.createElement(Offcanvas.Title, null, /*#__PURE__*/React.createElement("div", {
|
|
15774
|
+
className: "row m-0 w-100 mt-2"
|
|
15775
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15776
|
+
className: "col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex"
|
|
15777
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
15778
|
+
className: "m-0 p-0 font-16 font-weight-600",
|
|
15779
|
+
style: {
|
|
15780
|
+
color: sectionproperties.filter_titlecolor,
|
|
15781
|
+
fontSize: sectionproperties.filter_titlefontsize + 'px',
|
|
15782
|
+
fontWeight: sectionproperties.filter_titlefontweight,
|
|
15783
|
+
textTransform: sectionproperties.filter_titletextransform
|
|
15905
15784
|
}
|
|
15906
|
-
|
|
15907
|
-
|
|
15785
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React.createElement("div", {
|
|
15786
|
+
className: "col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0"
|
|
15787
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15788
|
+
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 ',
|
|
15789
|
+
onClick: function onClick() {
|
|
15790
|
+
props.setopenFilterSlider(false);
|
|
15908
15791
|
}
|
|
15909
|
-
}
|
|
15910
|
-
|
|
15911
|
-
|
|
15912
|
-
|
|
15913
|
-
_useState22[1];
|
|
15914
|
-
// const queryParameters = new URLSearchParams(window.location.search);
|
|
15915
|
-
// useEffect(() => {
|
|
15916
|
-
// // setsortbycontext('Sort By');
|
|
15917
|
-
// if (queryParameters.get('sortprice') == undefined) {
|
|
15918
|
-
// setsortbycontext('Sort By');
|
|
15919
|
-
// } else {
|
|
15920
|
-
// var temp = { ...sortbycontext };
|
|
15921
|
-
// temp = queryParameters.get('sortprice');
|
|
15922
|
-
// alert(temp);
|
|
15923
|
-
// }
|
|
15924
|
-
// }, []);
|
|
15925
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
15926
|
-
className: sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 p-0 w-100 filter mt-md-0 ' : 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none',
|
|
15792
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
15793
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
15794
|
+
}, /*#__PURE__*/React.createElement(IoMdClose, {
|
|
15795
|
+
size: sectionproperties.closeSlider_fontSize,
|
|
15927
15796
|
style: {
|
|
15928
|
-
|
|
15929
|
-
|
|
15797
|
+
color: sectionproperties.closeSlider_color
|
|
15798
|
+
}
|
|
15799
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
15800
|
+
"class": "col-lg-12"
|
|
15801
|
+
}, /*#__PURE__*/React.createElement("hr", {
|
|
15802
|
+
"class": "mt-2 mb-2"
|
|
15803
|
+
}))))), /*#__PURE__*/React.createElement(Offcanvas.Body, null, /*#__PURE__*/React.createElement("div", {
|
|
15804
|
+
className: ' pb-md-5 ',
|
|
15805
|
+
style: {
|
|
15806
|
+
background: sectionproperties.filter_backgroundcolor,
|
|
15807
|
+
borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px'
|
|
15930
15808
|
}
|
|
15931
|
-
},
|
|
15809
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15810
|
+
className: filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '
|
|
15811
|
+
}, sectionproperties.otherfilters == 'Show' && otherfilters.map(function (item, index) {
|
|
15812
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Accordion, {
|
|
15813
|
+
allowMultipleExpanded: true,
|
|
15814
|
+
allowZeroExpanded: true,
|
|
15815
|
+
preExpanded: [0, 1, 2, 3],
|
|
15816
|
+
style: {
|
|
15817
|
+
width: '100%'
|
|
15818
|
+
}
|
|
15819
|
+
}, /*#__PURE__*/React.createElement(AccordionItem, {
|
|
15820
|
+
uuid: index
|
|
15821
|
+
}, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
|
|
15822
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
15823
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15824
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
15825
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
15826
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
|
|
15827
|
+
}, item.name)), /*#__PURE__*/React.createElement("div", {
|
|
15828
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
15829
|
+
}, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
|
|
15830
|
+
if (state.expanded == true) {
|
|
15831
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
15832
|
+
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15833
|
+
}, /*#__PURE__*/React.createElement(FiChevronUp, null));
|
|
15834
|
+
} else {
|
|
15835
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
15836
|
+
className: filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
|
|
15837
|
+
}, /*#__PURE__*/React.createElement(FiChevronDown, null));
|
|
15838
|
+
}
|
|
15839
|
+
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
15840
|
+
className: "p-0"
|
|
15841
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15842
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
|
|
15843
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15844
|
+
className: 'col-lg-12'
|
|
15845
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15846
|
+
className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
|
|
15847
|
+
}, item.filterarray.map(function (valueitem, valueindex) {
|
|
15848
|
+
var ischecked = false;
|
|
15849
|
+
if (item.payloadvalue == 'sortprice') {
|
|
15850
|
+
if (valueitem.value == ProductFilterObjContext.sortprice) {
|
|
15851
|
+
ischecked = true;
|
|
15852
|
+
}
|
|
15853
|
+
} else if (item.payloadvalue == 'sortdates') {
|
|
15854
|
+
if (valueitem.value == ProductFilterObjContext.sortdates) {
|
|
15855
|
+
ischecked = true;
|
|
15856
|
+
}
|
|
15857
|
+
}
|
|
15858
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15859
|
+
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 ',
|
|
15860
|
+
onClick: function onClick() {
|
|
15861
|
+
// setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
|
|
15862
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$29({}, ProductFilterObjContext);
|
|
15863
|
+
if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
|
|
15864
|
+
tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
|
|
15865
|
+
} else {
|
|
15866
|
+
tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
|
|
15867
|
+
}
|
|
15868
|
+
setProductFilterObjContext(_objectSpread$29({}, tempfetchproductsfilerobjcontext));
|
|
15869
|
+
}
|
|
15870
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
15871
|
+
className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' mb-2 d-flex align-items-center '
|
|
15872
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
15873
|
+
className: "h-100 d-flex align-items-center"
|
|
15874
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
15875
|
+
className: langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'
|
|
15876
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
15877
|
+
className: "".concat(filterstyles.timeline_text, " ").concat(filter_cssstyles.timeline_text) + ' m-0 p-0 ',
|
|
15878
|
+
style: {
|
|
15879
|
+
color: ischecked ? sectionproperties.activecat_color : ''
|
|
15880
|
+
}
|
|
15881
|
+
}, valueitem.name)));
|
|
15882
|
+
}))))))));
|
|
15883
|
+
}), sectionproperties.otherfilters == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15884
|
+
className: "col-lg-12"
|
|
15885
|
+
}, /*#__PURE__*/React.createElement("hr", {
|
|
15886
|
+
className: "mt-2 mb-3"
|
|
15887
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
15888
|
+
className: filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 '
|
|
15889
|
+
}, sectionproperties.showcountriesfilter == 'Show' && Countriesfilter(), sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15890
|
+
"class": "row m-0 w-100"
|
|
15891
|
+
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15892
|
+
"class": "row m-0 w-100"
|
|
15893
|
+
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
15894
|
+
"class": "row m-0 w-100"
|
|
15895
|
+
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))))))));
|
|
15932
15896
|
};
|
|
15933
15897
|
|
|
15934
15898
|
function ownKeys$28(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -17506,19 +17470,21 @@ var CardsSection = function CardsSection(props) {
|
|
|
17506
17470
|
}
|
|
17507
17471
|
}, plainString(show_product_group_titles()['description_en']))), sectionproperties.showFilter == 'show' && /*#__PURE__*/React.createElement("div", {
|
|
17508
17472
|
className: sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 d-flex p-0' : sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'
|
|
17509
|
-
}, /*#__PURE__*/React.createElement(Filter$
|
|
17473
|
+
}, /*#__PURE__*/React.createElement(Filter$1, {
|
|
17510
17474
|
sectionpropertiesprops: sectionproperties,
|
|
17511
17475
|
actions: actions,
|
|
17512
17476
|
openFilterSlider: openFilterSlider,
|
|
17513
17477
|
setopenFilterSlider: setopenFilterSlider,
|
|
17514
17478
|
show_product_group_titles: show_product_group_titles
|
|
17515
17479
|
})), sectionproperties.showvariantfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
17516
|
-
className: 'col-lg-
|
|
17480
|
+
className: sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'
|
|
17517
17481
|
}, /*#__PURE__*/React.createElement(Filter$1, {
|
|
17518
17482
|
sectionpropertiesprops: sectionproperties,
|
|
17519
17483
|
actions: actions,
|
|
17520
17484
|
openFilterSlider: openFilterSlider,
|
|
17521
|
-
setopenFilterSlider: setopenFilterSlider
|
|
17485
|
+
setopenFilterSlider: setopenFilterSlider,
|
|
17486
|
+
show_product_group_titles: show_product_group_titles,
|
|
17487
|
+
typeprops: 'vertical'
|
|
17522
17488
|
})), fetchingtype == 'custom' && /*#__PURE__*/React.createElement(React.Fragment, null, cardsrender()), fetchingtype != 'custom' && cardsrender()));
|
|
17523
17489
|
};
|
|
17524
17490
|
|
|
@@ -17589,7 +17555,7 @@ var InnerGroups = function InnerGroups(props) {
|
|
|
17589
17555
|
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; }
|
|
17590
17556
|
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(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; }
|
|
17591
17557
|
var PrivacyPolicy = function PrivacyPolicy(props) {
|
|
17592
|
-
var _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4;
|
|
17558
|
+
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4;
|
|
17593
17559
|
var _useState = useState(''),
|
|
17594
17560
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17595
17561
|
sectionproperties = _useState2[0],
|
|
@@ -17605,12 +17571,13 @@ var PrivacyPolicy = function PrivacyPolicy(props) {
|
|
|
17605
17571
|
props.actions.lang;
|
|
17606
17572
|
var langdetect = props.actions.langdetect;
|
|
17607
17573
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
17608
|
-
props.actions.ikimagecredcontext;
|
|
17574
|
+
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
17609
17575
|
props.actions;
|
|
17610
17576
|
var _useState5 = useState(''),
|
|
17611
17577
|
_useState6 = _slicedToArray(_useState5, 2);
|
|
17612
17578
|
_useState6[0];
|
|
17613
17579
|
var setCurrentPageId = _useState6[1];
|
|
17580
|
+
var routingcountext = props.actions.routingcountext;
|
|
17614
17581
|
useEffect(function () {
|
|
17615
17582
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
17616
17583
|
var _StatePagePropertiesC;
|
|
@@ -17636,9 +17603,9 @@ var PrivacyPolicy = function PrivacyPolicy(props) {
|
|
|
17636
17603
|
setFetchQueriesEngineContext(_objectSpread$25({}, tempFetchQueriesEngineContext));
|
|
17637
17604
|
}, []);
|
|
17638
17605
|
var _useState7 = useState([]),
|
|
17639
|
-
_useState8 = _slicedToArray(_useState7, 2)
|
|
17640
|
-
_useState8[0]
|
|
17641
|
-
|
|
17606
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
17607
|
+
bgimagesarray = _useState8[0],
|
|
17608
|
+
setbgimagesarray = _useState8[1];
|
|
17642
17609
|
useEffect(function () {
|
|
17643
17610
|
if (sectionproperties.length != 0) {
|
|
17644
17611
|
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
@@ -17661,11 +17628,12 @@ var PrivacyPolicy = function PrivacyPolicy(props) {
|
|
|
17661
17628
|
};
|
|
17662
17629
|
var policies_cssstyles = {
|
|
17663
17630
|
containerstyle: css({
|
|
17664
|
-
|
|
17665
|
-
|
|
17666
|
-
|
|
17667
|
-
|
|
17668
|
-
|
|
17631
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
17632
|
+
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
17633
|
+
backgroundColor: sectionproperties.backgroundColor,
|
|
17634
|
+
'@media (max-width: 800px)': {
|
|
17635
|
+
paddingTop: sectionproperties.paddingtopresponsive + 'px'
|
|
17636
|
+
}
|
|
17669
17637
|
}),
|
|
17670
17638
|
sectiontitle: css({
|
|
17671
17639
|
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
@@ -17687,7 +17655,65 @@ var PrivacyPolicy = function PrivacyPolicy(props) {
|
|
|
17687
17655
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17688
17656
|
className: ' col-lg-12 p-0 '
|
|
17689
17657
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17690
|
-
className: policies_cssstyles.containerstyle + ' row ml-0 mr-0 w-100
|
|
17658
|
+
className: policies_cssstyles.containerstyle + ' row ml-0 mr-0 w-100 '
|
|
17659
|
+
}, sectionproperties.image_height != 0 && /*#__PURE__*/React.createElement("div", {
|
|
17660
|
+
className: "col-lg-12 p-0 d-flex justify-content-center",
|
|
17661
|
+
style: {
|
|
17662
|
+
cursor: ((_bgimagesarray$ = bgimagesarray[0]) === null || _bgimagesarray$ === void 0 ? void 0 : _bgimagesarray$.IsClickable) == 'Yes' ? 'pointer' : 'default'
|
|
17663
|
+
},
|
|
17664
|
+
onClick: function onClick() {
|
|
17665
|
+
var _bgimagesarray$2;
|
|
17666
|
+
if (((_bgimagesarray$2 = bgimagesarray[0]) === null || _bgimagesarray$2 === void 0 ? void 0 : _bgimagesarray$2.IsClickable) == 'Yes') {
|
|
17667
|
+
var _bgimagesarray$3, _bgimagesarray$4;
|
|
17668
|
+
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) {
|
|
17669
|
+
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
17670
|
+
} else {
|
|
17671
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
17672
|
+
}
|
|
17673
|
+
}
|
|
17674
|
+
}
|
|
17675
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17676
|
+
"class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'h-sm-auto mb-sm-4' : '',
|
|
17677
|
+
style: {
|
|
17678
|
+
width: sectionproperties.image_width + 'vw',
|
|
17679
|
+
height: 'auto',
|
|
17680
|
+
marginBottom: sectionproperties.image_mb + 'px',
|
|
17681
|
+
position: 'relative'
|
|
17682
|
+
}
|
|
17683
|
+
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
17684
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
17685
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
17686
|
+
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) : '',
|
|
17687
|
+
"class": "d-flex d-sm-none",
|
|
17688
|
+
style: {
|
|
17689
|
+
height: '100%',
|
|
17690
|
+
width: '100%',
|
|
17691
|
+
margin: 0,
|
|
17692
|
+
padding: 0,
|
|
17693
|
+
borderRadius: sectionproperties.imageborderradius + 'px',
|
|
17694
|
+
zIndex: -1,
|
|
17695
|
+
objectFit: 'contain'
|
|
17696
|
+
}
|
|
17697
|
+
}), /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
17698
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
17699
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
17700
|
+
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) : '',
|
|
17701
|
+
"class": "d-none d-sm-flex",
|
|
17702
|
+
style: {
|
|
17703
|
+
height: '100%',
|
|
17704
|
+
width: '100%',
|
|
17705
|
+
margin: 0,
|
|
17706
|
+
padding: 0,
|
|
17707
|
+
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
17708
|
+
borderRadius: sectionproperties.imageborderradius + 'px',
|
|
17709
|
+
zIndex: -1
|
|
17710
|
+
}
|
|
17711
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
17712
|
+
"class": "row m-0 w-100 pl-md-4 pr-md-4",
|
|
17713
|
+
style: {
|
|
17714
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
17715
|
+
paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px'
|
|
17716
|
+
}
|
|
17691
17717
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17692
17718
|
"class": ' col-lg-12 p-0 text-start '
|
|
17693
17719
|
}, /*#__PURE__*/React.createElement("p", {
|
|
@@ -17706,13 +17732,13 @@ var PrivacyPolicy = function PrivacyPolicy(props) {
|
|
|
17706
17732
|
style: {
|
|
17707
17733
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
17708
17734
|
}
|
|
17709
|
-
})))));
|
|
17735
|
+
}))))));
|
|
17710
17736
|
};
|
|
17711
17737
|
|
|
17712
17738
|
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; }
|
|
17713
17739
|
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(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; }
|
|
17714
17740
|
var RefundPolicy = function RefundPolicy(props) {
|
|
17715
|
-
var _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4;
|
|
17741
|
+
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4;
|
|
17716
17742
|
var _useState = useState(''),
|
|
17717
17743
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17718
17744
|
sectionproperties = _useState2[0],
|
|
@@ -17728,12 +17754,13 @@ var RefundPolicy = function RefundPolicy(props) {
|
|
|
17728
17754
|
props.actions.lang;
|
|
17729
17755
|
var langdetect = props.actions.langdetect;
|
|
17730
17756
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
17731
|
-
props.actions.ikimagecredcontext;
|
|
17757
|
+
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
17732
17758
|
props.actions;
|
|
17733
17759
|
var _useState5 = useState(''),
|
|
17734
17760
|
_useState6 = _slicedToArray(_useState5, 2);
|
|
17735
17761
|
_useState6[0];
|
|
17736
17762
|
var setCurrentPageId = _useState6[1];
|
|
17763
|
+
var routingcountext = props.actions.routingcountext;
|
|
17737
17764
|
useEffect(function () {
|
|
17738
17765
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
17739
17766
|
var _StatePagePropertiesC;
|
|
@@ -17759,9 +17786,9 @@ var RefundPolicy = function RefundPolicy(props) {
|
|
|
17759
17786
|
setFetchQueriesEngineContext(_objectSpread$24({}, tempFetchQueriesEngineContext));
|
|
17760
17787
|
}, []);
|
|
17761
17788
|
var _useState7 = useState([]),
|
|
17762
|
-
_useState8 = _slicedToArray(_useState7, 2)
|
|
17763
|
-
_useState8[0]
|
|
17764
|
-
|
|
17789
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
17790
|
+
bgimagesarray = _useState8[0],
|
|
17791
|
+
setbgimagesarray = _useState8[1];
|
|
17765
17792
|
useEffect(function () {
|
|
17766
17793
|
if (sectionproperties.length != 0) {
|
|
17767
17794
|
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
@@ -17784,11 +17811,12 @@ var RefundPolicy = function RefundPolicy(props) {
|
|
|
17784
17811
|
};
|
|
17785
17812
|
var policies_cssstyles = {
|
|
17786
17813
|
containerstyle: css({
|
|
17787
|
-
|
|
17788
|
-
|
|
17789
|
-
|
|
17790
|
-
|
|
17791
|
-
|
|
17814
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
17815
|
+
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
17816
|
+
backgroundColor: sectionproperties.backgroundColor,
|
|
17817
|
+
'@media (max-width: 800px)': {
|
|
17818
|
+
paddingTop: sectionproperties.paddingtopresponsive + 'px'
|
|
17819
|
+
}
|
|
17792
17820
|
}),
|
|
17793
17821
|
sectiontitle: css({
|
|
17794
17822
|
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
@@ -17810,7 +17838,65 @@ var RefundPolicy = function RefundPolicy(props) {
|
|
|
17810
17838
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17811
17839
|
className: ' col-lg-12 p-0 '
|
|
17812
17840
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17813
|
-
className: policies_cssstyles.containerstyle + ' row ml-0 mr-0 w-100
|
|
17841
|
+
className: policies_cssstyles.containerstyle + ' row ml-0 mr-0 w-100 '
|
|
17842
|
+
}, sectionproperties.image_height != 0 && /*#__PURE__*/React.createElement("div", {
|
|
17843
|
+
className: "col-lg-12 p-0 d-flex justify-content-center",
|
|
17844
|
+
style: {
|
|
17845
|
+
cursor: ((_bgimagesarray$ = bgimagesarray[0]) === null || _bgimagesarray$ === void 0 ? void 0 : _bgimagesarray$.IsClickable) == 'Yes' ? 'pointer' : 'default'
|
|
17846
|
+
},
|
|
17847
|
+
onClick: function onClick() {
|
|
17848
|
+
var _bgimagesarray$2;
|
|
17849
|
+
if (((_bgimagesarray$2 = bgimagesarray[0]) === null || _bgimagesarray$2 === void 0 ? void 0 : _bgimagesarray$2.IsClickable) == 'Yes') {
|
|
17850
|
+
var _bgimagesarray$3, _bgimagesarray$4;
|
|
17851
|
+
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) {
|
|
17852
|
+
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
17853
|
+
} else {
|
|
17854
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
17855
|
+
}
|
|
17856
|
+
}
|
|
17857
|
+
}
|
|
17858
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17859
|
+
"class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'h-sm-auto mb-sm-4' : '',
|
|
17860
|
+
style: {
|
|
17861
|
+
width: sectionproperties.image_width + 'vw',
|
|
17862
|
+
height: 'auto',
|
|
17863
|
+
marginBottom: sectionproperties.image_mb + 'px',
|
|
17864
|
+
position: 'relative'
|
|
17865
|
+
}
|
|
17866
|
+
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
17867
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
17868
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
17869
|
+
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) : '',
|
|
17870
|
+
"class": "d-flex d-sm-none",
|
|
17871
|
+
style: {
|
|
17872
|
+
height: '100%',
|
|
17873
|
+
width: '100%',
|
|
17874
|
+
margin: 0,
|
|
17875
|
+
padding: 0,
|
|
17876
|
+
borderRadius: sectionproperties.imageborderradius + 'px',
|
|
17877
|
+
zIndex: -1,
|
|
17878
|
+
objectFit: 'contain'
|
|
17879
|
+
}
|
|
17880
|
+
}), /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
17881
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
17882
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
17883
|
+
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) : '',
|
|
17884
|
+
"class": "d-none d-sm-flex",
|
|
17885
|
+
style: {
|
|
17886
|
+
height: '100%',
|
|
17887
|
+
width: '100%',
|
|
17888
|
+
margin: 0,
|
|
17889
|
+
padding: 0,
|
|
17890
|
+
objectFit: sectionproperties.bgcovercontainresponsive,
|
|
17891
|
+
borderRadius: sectionproperties.imageborderradius + 'px',
|
|
17892
|
+
zIndex: -1
|
|
17893
|
+
}
|
|
17894
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
17895
|
+
"class": "row m-0 w-100 pl-md-4 pr-md-4",
|
|
17896
|
+
style: {
|
|
17897
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
17898
|
+
paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px'
|
|
17899
|
+
}
|
|
17814
17900
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17815
17901
|
"class": ' col-lg-12 p-0 text-start '
|
|
17816
17902
|
}, /*#__PURE__*/React.createElement("p", {
|
|
@@ -17829,7 +17915,7 @@ var RefundPolicy = function RefundPolicy(props) {
|
|
|
17829
17915
|
style: {
|
|
17830
17916
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
17831
17917
|
}
|
|
17832
|
-
})))));
|
|
17918
|
+
}))))));
|
|
17833
17919
|
};
|
|
17834
17920
|
|
|
17835
17921
|
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; }
|