tabexseriescomponents 0.2.855 → 0.2.856
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 +416 -74
- package/dist/index.esm.js +416 -74
- package/dist/index.umd.js +416 -74
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1034,6 +1034,71 @@
|
|
|
1034
1034
|
|
|
1035
1035
|
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; }
|
|
1036
1036
|
function _objectSpread$2D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2D(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1037
|
+
var selectcustomStyles = {
|
|
1038
|
+
option: function option(provided, state) {
|
|
1039
|
+
return _objectSpread$2D(_objectSpread$2D({}, provided), {}, {
|
|
1040
|
+
borderBottom: '1px solid #e6e6e6',
|
|
1041
|
+
backgroundColor: state.isSelected ? '' : '',
|
|
1042
|
+
padding: 5,
|
|
1043
|
+
textTransform: 'capitalize',
|
|
1044
|
+
color: state.isSelected ? '#eac435' : '#022648',
|
|
1045
|
+
transition: '.3s',
|
|
1046
|
+
'&:hover': {
|
|
1047
|
+
color: '#eac435',
|
|
1048
|
+
cursor: 'pointer'
|
|
1049
|
+
}
|
|
1050
|
+
});
|
|
1051
|
+
},
|
|
1052
|
+
control: function control() {
|
|
1053
|
+
return {
|
|
1054
|
+
border: '1px solid #e6e6e6',
|
|
1055
|
+
// boxShadow: '0 0 10px #e6e6e6',
|
|
1056
|
+
borderRadius: '5px',
|
|
1057
|
+
display: 'flex',
|
|
1058
|
+
cursor: 'pointer',
|
|
1059
|
+
transition: '.3s',
|
|
1060
|
+
'&:hover': {
|
|
1061
|
+
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1062
|
+
}
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
};
|
|
1066
|
+
var selectcustomStylesTranslated = {
|
|
1067
|
+
option: function option(provided, state) {
|
|
1068
|
+
return _objectSpread$2D(_objectSpread$2D({}, provided), {}, {
|
|
1069
|
+
borderBottom: '1px solid #e6e6e6',
|
|
1070
|
+
backgroundColor: state.isSelected ? '' : '',
|
|
1071
|
+
padding: 5,
|
|
1072
|
+
textTransform: 'capitalize',
|
|
1073
|
+
color: state.isSelected ? '#eac435' : '#ffffff',
|
|
1074
|
+
transition: '.3s',
|
|
1075
|
+
textAlign: 'right',
|
|
1076
|
+
'&:hover': {
|
|
1077
|
+
color: '#eac435',
|
|
1078
|
+
cursor: 'pointer'
|
|
1079
|
+
}
|
|
1080
|
+
});
|
|
1081
|
+
},
|
|
1082
|
+
control: function control() {
|
|
1083
|
+
return {
|
|
1084
|
+
border: '2px solid #e6e6e6',
|
|
1085
|
+
// boxShadow: '0 0 10px #e6e6e6',
|
|
1086
|
+
borderRadius: '10px',
|
|
1087
|
+
display: 'flex',
|
|
1088
|
+
cursor: 'pointer',
|
|
1089
|
+
transition: '.3s',
|
|
1090
|
+
textAlign: 'right',
|
|
1091
|
+
'&:hover': {
|
|
1092
|
+
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1093
|
+
}
|
|
1094
|
+
};
|
|
1095
|
+
},
|
|
1096
|
+
placeholder: function placeholder(provided, state) {
|
|
1097
|
+
return _objectSpread$2D(_objectSpread$2D({}, provided), {}, {
|
|
1098
|
+
textAlign: 'right'
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
};
|
|
1037
1102
|
var defaultstyles = {
|
|
1038
1103
|
option: function option(provided, state) {
|
|
1039
1104
|
return _objectSpread$2D(_objectSpread$2D({}, provided), {}, {
|
|
@@ -1297,7 +1362,7 @@
|
|
|
1297
1362
|
}
|
|
1298
1363
|
if (item.optionname == 'color' || item.optionname == 'Color') {
|
|
1299
1364
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1300
|
-
className: productinfostyles.color_container + ' mr-2 variabttcontainer ' + "".concat(productinfostyles.color_container_active)
|
|
1365
|
+
className: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' ? productinfostyles.color_container + ' mr-2 variabttcontainer showcrossiconcolor ' + "".concat(productinfostyles.color_container_active) : productinfostyles.color_container + ' mr-2 variabttcontainer ' + "".concat(productinfostyles.color_container_active)
|
|
1301
1366
|
// `${isoptionvalueselected == 1 ? productinfostyles.color_container_active : ''}`
|
|
1302
1367
|
,
|
|
1303
1368
|
onClick: function onClick() {
|
|
@@ -5159,7 +5224,7 @@
|
|
|
5159
5224
|
function ownKeys$2y(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; }
|
|
5160
5225
|
function _objectSpread$2y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2y(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5161
5226
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
5162
|
-
var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer22, _fetchProductInfoQuer23;
|
|
5227
|
+
var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _authdetailsContext$i, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer22, _fetchProductInfoQuer23;
|
|
5163
5228
|
var langdetect = props.actions.langdetect;
|
|
5164
5229
|
var lang = props.actions.lang;
|
|
5165
5230
|
var sectionproperties = props.actions.sectionproperties;
|
|
@@ -5189,10 +5254,6 @@
|
|
|
5189
5254
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
5190
5255
|
tabsarray = _useState2[0];
|
|
5191
5256
|
_useState2[1];
|
|
5192
|
-
// const excludeDates = [
|
|
5193
|
-
// new Date(2024, 12, 20), // Dec 25, 2024
|
|
5194
|
-
// new Date(2024, 12, 31), // Dec 31, 2024
|
|
5195
|
-
// ];
|
|
5196
5257
|
var _useState3 = React.useState(''),
|
|
5197
5258
|
_useState4 = _slicedToArray__default["default"](_useState3, 2);
|
|
5198
5259
|
_useState4[0];
|
|
@@ -5603,7 +5664,7 @@
|
|
|
5603
5664
|
"class": "col-lg-12 col-md-12 col-sm-12 mb-2"
|
|
5604
5665
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5605
5666
|
"class": "row m-0 w-100"
|
|
5606
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5667
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.contactinfo.instid) != '66cf4427e144e' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5607
5668
|
"class": "col-lg-12 d-flex justify-content-start p-0"
|
|
5608
5669
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5609
5670
|
"class": TabsStyles.inputfield_label + ' m-0 pb-2 '
|
|
@@ -16957,7 +17018,7 @@
|
|
|
16957
17018
|
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; }
|
|
16958
17019
|
function _objectSpread$2j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2j(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16959
17020
|
var OrderSuccess = function OrderSuccess(props) {
|
|
16960
|
-
var _props$actions2, _authdetailsContext$i, _lastOrderinfoObj$dat, _logoarrayofobjects$, _logoarrayofobjects$2, _lastOrderinfoObj$
|
|
17021
|
+
var _props$actions2, _authdetailsContext$i, _lastOrderinfoObj$dat, _authdetailsContext$i2, _lastOrderinfoObj$dat2, _logoarrayofobjects$, _logoarrayofobjects$2, _lastOrderinfoObj$dat3, _lastOrderinfoObj$dat4, _lastOrderinfoObj$dat5, _lastOrderinfoObj$dat6, _lastOrderinfoObj$dat7, _lastOrderinfoObj$dat8, _lastOrderinfoObj$dat9, _lastOrderinfoObj$dat0, _lastOrderinfoObj$dat11, _lastOrderinfoObj$dat12, _lastOrderinfoObj$dat13, _lastOrderinfoObj$dat14, _lastOrderinfoObj$dat15, _lastOrderinfoObj$dat16, _lastOrderinfoObj$dat17, _lastOrderinfoObj$dat18, _lastOrderinfoObj$dat19, _authdetailsContext$i3, _authdetailsContext$i4;
|
|
16961
17022
|
var lang = props.actions.lang;
|
|
16962
17023
|
var langdetect = props.actions.langdetect;
|
|
16963
17024
|
var routingcountext = props.actions.routingcountext;
|
|
@@ -17123,6 +17184,7 @@
|
|
|
17123
17184
|
})
|
|
17124
17185
|
};
|
|
17125
17186
|
var whatsappUrl = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber, "?text=").concat('My order number is ' + (lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat === void 0 || (_lastOrderinfoObj$dat = _lastOrderinfoObj$dat.orderinfo) === null || _lastOrderinfoObj$dat === void 0 ? void 0 : _lastOrderinfoObj$dat.orderid));
|
|
17187
|
+
var whatsappUrlshelghada = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.whatsappnumber, "?text=").concat('My reservation number is ' + (lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat2 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat2 === void 0 || (_lastOrderinfoObj$dat2 = _lastOrderinfoObj$dat2.orderinfo) === null || _lastOrderinfoObj$dat2 === void 0 ? void 0 : _lastOrderinfoObj$dat2.orderid));
|
|
17126
17188
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17127
17189
|
className: ordersuccessstyle.containerstyle + ' row ml-0 mr-0 w-100 justify-content-center pl-md-3 pr-md-3 pl-sm-2 pr-sm-2 ',
|
|
17128
17190
|
style: {}
|
|
@@ -17171,9 +17233,9 @@
|
|
|
17171
17233
|
style: {
|
|
17172
17234
|
fontSize: 15
|
|
17173
17235
|
}
|
|
17174
|
-
}, "Order #", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17236
|
+
}, "Order #", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat3 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat3 === void 0 || (_lastOrderinfoObj$dat3 = _lastOrderinfoObj$dat3.orderinfo) === null || _lastOrderinfoObj$dat3 === void 0 ? void 0 : _lastOrderinfoObj$dat3.orderid), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17175
17237
|
"class": "col-12 p-0 text-start mb-4 font-weight-500"
|
|
17176
|
-
}, langdetect == 'en' ? 'Thank you,' : 'شكرا،', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17238
|
+
}, langdetect == 'en' ? 'Thank you,' : 'شكرا،', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat4 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat4 === void 0 || (_lastOrderinfoObj$dat4 = _lastOrderinfoObj$dat4.orderinfo) === null || _lastOrderinfoObj$dat4 === void 0 ? void 0 : _lastOrderinfoObj$dat4.customername), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17177
17239
|
"class": "col-12 p-0 text-start font-weight-500"
|
|
17178
17240
|
}, langdetect == 'en' ? 'Your order has been placed.' : 'الطلب تم بنجاح'), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17179
17241
|
"class": "col-12 p-0 text-start font-weight-500"
|
|
@@ -17207,9 +17269,9 @@
|
|
|
17207
17269
|
}
|
|
17208
17270
|
}, langdetect == 'en' ? 'Contact Information' : 'بياتات العميل')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17209
17271
|
"class": "col-12 p-0 text-start"
|
|
17210
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17272
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat5 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat5 === void 0 || (_lastOrderinfoObj$dat5 = _lastOrderinfoObj$dat5.orderinfo) === null || _lastOrderinfoObj$dat5 === void 0 ? void 0 : _lastOrderinfoObj$dat5.customeremail)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17211
17273
|
"class": "col-12 p-0 text-start"
|
|
17212
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17274
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat6 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat6 === void 0 || (_lastOrderinfoObj$dat6 = _lastOrderinfoObj$dat6.orderinfo) === null || _lastOrderinfoObj$dat6 === void 0 ? void 0 : _lastOrderinfoObj$dat6.customerphonenumber)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17213
17275
|
"class": "col-12 p-0 text-start mb-2"
|
|
17214
17276
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17215
17277
|
style: {
|
|
@@ -17219,7 +17281,7 @@
|
|
|
17219
17281
|
"class": "m-0"
|
|
17220
17282
|
}, langdetect == 'en' ? 'Shipping address' : 'عنوان الشحن')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17221
17283
|
"class": "col-12 p-0 text-start"
|
|
17222
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17284
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat7 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat7 === void 0 || (_lastOrderinfoObj$dat7 = _lastOrderinfoObj$dat7.orderinfo) === null || _lastOrderinfoObj$dat7 === void 0 ? void 0 : _lastOrderinfoObj$dat7.address)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17223
17285
|
"class": "col-6 col-md-12"
|
|
17224
17286
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17225
17287
|
"class": "col-12 p-0 text-start mb-2"
|
|
@@ -17231,7 +17293,7 @@
|
|
|
17231
17293
|
"class": "m-0"
|
|
17232
17294
|
}, langdetect == 'en' ? 'Payment method' : 'طريقة الدفع')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17233
17295
|
"class": "col-12 p-0 text-start"
|
|
17234
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", null, (lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17296
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", null, (lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat8 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat8 === void 0 || (_lastOrderinfoObj$dat8 = _lastOrderinfoObj$dat8.orderinfo) === null || _lastOrderinfoObj$dat8 === void 0 ? void 0 : _lastOrderinfoObj$dat8.paymentmethod) == 'cod' ? langdetect == 'en' ? 'Cash on delivery' : 'الدفع عند الاستلام' : lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat9 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat9 === void 0 || (_lastOrderinfoObj$dat9 = _lastOrderinfoObj$dat9.orderinfo) === null || _lastOrderinfoObj$dat9 === void 0 ? void 0 : _lastOrderinfoObj$dat9.paymentmethod))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17235
17297
|
"class": "col-6 col-md-12 p-md-0"
|
|
17236
17298
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17237
17299
|
"class": "row m-0 w-100 mb-auto mt-md-4"
|
|
@@ -17251,8 +17313,8 @@
|
|
|
17251
17313
|
maxHeight: '40vh',
|
|
17252
17314
|
overflowY: 'auto'
|
|
17253
17315
|
}
|
|
17254
|
-
}, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17255
|
-
var _lastOrderinfoObj$
|
|
17316
|
+
}, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat0 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat0 === void 0 ? void 0 : _lastOrderinfoObj$dat0.orderitems.map(function (item, index) {
|
|
17317
|
+
var _lastOrderinfoObj$dat1, _lastOrderinfoObj$dat10;
|
|
17256
17318
|
var variantoptions = [];
|
|
17257
17319
|
if (item.isvariant == 1) {
|
|
17258
17320
|
var decodevariantoptions = JSON.parse(item.variantoptions);
|
|
@@ -17294,7 +17356,7 @@
|
|
|
17294
17356
|
className: "col-4 d-flex text-end"
|
|
17295
17357
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17296
17358
|
"class": "m-0 p-0 font-weight-500 mb-auto"
|
|
17297
|
-
}, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17359
|
+
}, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat1 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat1 === void 0 || (_lastOrderinfoObj$dat1 = _lastOrderinfoObj$dat1.orderinfo) === null || _lastOrderinfoObj$dat1 === void 0 ? void 0 : _lastOrderinfoObj$dat1.currencyname_en : '', " ", item.finalprice, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat10 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat10 === void 0 || (_lastOrderinfoObj$dat10 = _lastOrderinfoObj$dat10.orderinfo) === null || _lastOrderinfoObj$dat10 === void 0 ? void 0 : _lastOrderinfoObj$dat10.currencyname_ar : '')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17298
17360
|
"class": "col-12 my-2"
|
|
17299
17361
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17300
17362
|
style: {
|
|
@@ -17318,7 +17380,7 @@
|
|
|
17318
17380
|
"class": "col-6 text-end"
|
|
17319
17381
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17320
17382
|
className: "m-0 p-0 font-weight-500"
|
|
17321
|
-
}, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17383
|
+
}, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat11 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat11 === void 0 || (_lastOrderinfoObj$dat11 = _lastOrderinfoObj$dat11.orderinfo) === null || _lastOrderinfoObj$dat11 === void 0 ? void 0 : _lastOrderinfoObj$dat11.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat12 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat12 === void 0 ? void 0 : _lastOrderinfoObj$dat12.totalitemsprice, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat13 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat13 === void 0 || (_lastOrderinfoObj$dat13 = _lastOrderinfoObj$dat13.orderinfo) === null || _lastOrderinfoObj$dat13 === void 0 ? void 0 : _lastOrderinfoObj$dat13.currencyname_ar : '')))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17322
17384
|
"class": "col-lg-12 p-0 mt-1",
|
|
17323
17385
|
style: {
|
|
17324
17386
|
fontSize: 16
|
|
@@ -17333,7 +17395,7 @@
|
|
|
17333
17395
|
"class": "col-6 text-end"
|
|
17334
17396
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17335
17397
|
className: "m-0 p-0 font-weight-500"
|
|
17336
|
-
}, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17398
|
+
}, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat14 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat14 === void 0 || (_lastOrderinfoObj$dat14 = _lastOrderinfoObj$dat14.orderinfo) === null || _lastOrderinfoObj$dat14 === void 0 ? void 0 : _lastOrderinfoObj$dat14.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat15 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat15 === void 0 ? void 0 : _lastOrderinfoObj$dat15.ordershippingfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat16 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat16 === void 0 || (_lastOrderinfoObj$dat16 = _lastOrderinfoObj$dat16.orderinfo) === null || _lastOrderinfoObj$dat16 === void 0 ? void 0 : _lastOrderinfoObj$dat16.currencyname_ar : '')))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17337
17399
|
"class": "col-lg-12 p-0 my-3"
|
|
17338
17400
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17339
17401
|
style: {
|
|
@@ -17356,7 +17418,7 @@
|
|
|
17356
17418
|
"class": "col-6 text-end"
|
|
17357
17419
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17358
17420
|
className: "m-0 p-0 font-weight-500"
|
|
17359
|
-
}, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17421
|
+
}, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat17 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat17 === void 0 || (_lastOrderinfoObj$dat17 = _lastOrderinfoObj$dat17.orderinfo) === null || _lastOrderinfoObj$dat17 === void 0 ? void 0 : _lastOrderinfoObj$dat17.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat18 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat18 === void 0 ? void 0 : _lastOrderinfoObj$dat18.totalorderfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat19 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat19 === void 0 || (_lastOrderinfoObj$dat19 = _lastOrderinfoObj$dat19.orderinfo) === null || _lastOrderinfoObj$dat19 === void 0 ? void 0 : _lastOrderinfoObj$dat19.currencyname_ar : '')))))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.instid) == '67d5d6dfefe6d' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17360
17422
|
"class": "col-12 allcentered mt-5 mb-3"
|
|
17361
17423
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17362
17424
|
"class": ' allcentered cursor-pointer ',
|
|
@@ -17377,7 +17439,28 @@
|
|
|
17377
17439
|
}
|
|
17378
17440
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
17379
17441
|
"class": ''
|
|
17380
|
-
}, 'Send it to whatsApp'))))
|
|
17442
|
+
}, 'Send it to whatsApp')))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.instid) == '681d303ba75f2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17443
|
+
"class": "col-12 allcentered mt-5 mb-3"
|
|
17444
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17445
|
+
"class": ' allcentered cursor-pointer ',
|
|
17446
|
+
style: {
|
|
17447
|
+
width: '200px',
|
|
17448
|
+
height: 40,
|
|
17449
|
+
borderRadius: 10,
|
|
17450
|
+
color: 'white',
|
|
17451
|
+
background: '#22cd5b'
|
|
17452
|
+
}
|
|
17453
|
+
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
17454
|
+
href: langdetect == 'en' ? whatsappUrlshelghada : whatsappUrlshelghada,
|
|
17455
|
+
target: "_blank",
|
|
17456
|
+
rel: "noopener noreferrer",
|
|
17457
|
+
"class": ' allcentered cursor-pointer ',
|
|
17458
|
+
style: {
|
|
17459
|
+
color: 'white'
|
|
17460
|
+
}
|
|
17461
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
17462
|
+
"class": ''
|
|
17463
|
+
}, 'Send your passport number via whatsApp'))))), sectionproperties.cardstyletype != 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17381
17464
|
className: "col-lg-12 allcentered flex-column "
|
|
17382
17465
|
}, /*#__PURE__*/React__default["default"].createElement(IoBagCheckOutline.IoBagCheckOutline, {
|
|
17383
17466
|
size: sectionproperties.icontextfontsize,
|
|
@@ -61749,7 +61832,7 @@
|
|
|
61749
61832
|
function ownKeys$1g(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; }
|
|
61750
61833
|
function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1g(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
61751
61834
|
var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props) {
|
|
61752
|
-
var _css,
|
|
61835
|
+
var _css, _fetchProductFeatures;
|
|
61753
61836
|
var _useState = React.useState(''),
|
|
61754
61837
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
61755
61838
|
sectionproperties = _useState2[0],
|
|
@@ -61765,7 +61848,7 @@
|
|
|
61765
61848
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
61766
61849
|
imagesarray = _useState6[0],
|
|
61767
61850
|
setimagesarray = _useState6[1];
|
|
61768
|
-
|
|
61851
|
+
props.actions.lang;
|
|
61769
61852
|
var langdetect = props.actions.langdetect;
|
|
61770
61853
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
61771
61854
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
@@ -61776,7 +61859,7 @@
|
|
|
61776
61859
|
var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
|
|
61777
61860
|
var fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
|
|
61778
61861
|
var fetchproductsfilerobjcontext = props.actions.fetchproductsfilerobjcontext;
|
|
61779
|
-
props.actions.fetchProductFeaturesQueryContext;
|
|
61862
|
+
var fetchProductFeaturesQueryContext = props.actions.fetchProductFeaturesQueryContext;
|
|
61780
61863
|
var routingcountext = props.actions.routingcountext;
|
|
61781
61864
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
61782
61865
|
// const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
@@ -61797,21 +61880,21 @@
|
|
|
61797
61880
|
_useState10[0];
|
|
61798
61881
|
_useState10[1];
|
|
61799
61882
|
var _useState11 = React.useState([]),
|
|
61800
|
-
_useState12 = _slicedToArray__default["default"](_useState11, 2)
|
|
61801
|
-
_useState12[0]
|
|
61802
|
-
_useState12[1];
|
|
61883
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
61884
|
+
productfeatuesarr = _useState12[0],
|
|
61885
|
+
setproductfeatuesarr = _useState12[1];
|
|
61803
61886
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
61804
61887
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
61805
61888
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
61806
61889
|
props.actions.fetchcollectionsQueryContext;
|
|
61807
61890
|
var _useState13 = React.useState(''),
|
|
61808
|
-
_useState14 = _slicedToArray__default["default"](_useState13, 2)
|
|
61809
|
-
_useState14[0]
|
|
61810
|
-
_useState14[1];
|
|
61891
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
61892
|
+
from_date_filter_input = _useState14[0],
|
|
61893
|
+
setfrom_date_filter_input = _useState14[1];
|
|
61811
61894
|
var _useState15 = React.useState(''),
|
|
61812
|
-
_useState16 = _slicedToArray__default["default"](_useState15, 2)
|
|
61813
|
-
_useState16[0]
|
|
61814
|
-
_useState16[1];
|
|
61895
|
+
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
61896
|
+
to_date_filter_input = _useState16[0],
|
|
61897
|
+
setto_date_filter_input = _useState16[1];
|
|
61815
61898
|
React.useEffect(function () {
|
|
61816
61899
|
var tempFetchQueriesEngineContext = _objectSpread$1g({}, FetchQueriesEngineContext);
|
|
61817
61900
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
@@ -61850,17 +61933,6 @@
|
|
|
61850
61933
|
}
|
|
61851
61934
|
}
|
|
61852
61935
|
}, [sectionproperties]);
|
|
61853
|
-
var options = [{
|
|
61854
|
-
value: 'chocolate',
|
|
61855
|
-
label: 'السعودية'
|
|
61856
|
-
}];
|
|
61857
|
-
var optionsSTATE = [{
|
|
61858
|
-
value: 'chocolate',
|
|
61859
|
-
label: 'جدة'
|
|
61860
|
-
}, {
|
|
61861
|
-
value: 'chocolate',
|
|
61862
|
-
label: 'مكة'
|
|
61863
|
-
}];
|
|
61864
61936
|
var sectionstyles = {
|
|
61865
61937
|
form_control: glamor.css((_css = {
|
|
61866
61938
|
position: 'relative',
|
|
@@ -61936,8 +62008,7 @@
|
|
|
61936
62008
|
marginRight: sectionproperties.card_marginRight + 'px',
|
|
61937
62009
|
backgroundColor: 'white',
|
|
61938
62010
|
'@media (max-width: 800px)': {
|
|
61939
|
-
height: sectionproperties.height_responsive + 'vh'
|
|
61940
|
-
marginTop: sectionproperties.marginTopResp + 'px'
|
|
62011
|
+
height: sectionproperties.height_responsive + 'vh'
|
|
61941
62012
|
}
|
|
61942
62013
|
})
|
|
61943
62014
|
};
|
|
@@ -62023,7 +62094,7 @@
|
|
|
62023
62094
|
}, langdetect == 'en' ? sectionproperties.formRightText2 : sectionproperties.formRightText2_ar), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62024
62095
|
"class": "row m-0 w-100 justify-content-center"
|
|
62025
62096
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
62026
|
-
"class": sectionstyles.btnstyles + ' allcentered
|
|
62097
|
+
"class": sectionstyles.btnstyles + ' allcentered '
|
|
62027
62098
|
// onClick={() => {
|
|
62028
62099
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent);
|
|
62029
62100
|
// }}
|
|
@@ -62108,7 +62179,7 @@
|
|
|
62108
62179
|
placeholder: ''
|
|
62109
62180
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62110
62181
|
"class": sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showpricerange == 'Show' && sectionproperties.showpricerange == 'Show' ? 'col-lg-8 p-0' : sectionproperties.showpricerange == 'Show' ? 'col-lg-9 p-0' : sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showpricerange == 'Hide' ? 'col-lg-8 p-0' : 'col-lg-12 p-0'
|
|
62111
|
-
},
|
|
62182
|
+
}, /*#__PURE__*/React__default["default"].createElement(CustomerAddressForm, {
|
|
62112
62183
|
payloadobj: payloadobj,
|
|
62113
62184
|
setpayloadobj: setpayloadobj,
|
|
62114
62185
|
sectionproperties: sectionproperties
|
|
@@ -62121,30 +62192,7 @@
|
|
|
62121
62192
|
fetchTabexCountriesQueryContext: fetchTabexCountriesQueryContext,
|
|
62122
62193
|
fetchTabexStatesQueryContext: fetchTabexStatesQueryContext,
|
|
62123
62194
|
fetchTabexCitiesQueryContext: fetchTabexCitiesQueryContext
|
|
62124
|
-
}),
|
|
62125
|
-
className: "row m-0 w-100",
|
|
62126
|
-
style: {
|
|
62127
|
-
display: sectionproperties.hidecountrystatecity == 'Show' ? 'flex' : sectionproperties.hideaddress == 'Show' ? 'flex' : 'none'
|
|
62128
|
-
}
|
|
62129
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62130
|
-
className: 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
62131
|
-
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62132
|
-
className: formstyles.input_label_name + ' d-flex justify-content-start '
|
|
62133
|
-
}, lang.country), /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
62134
|
-
options: options,
|
|
62135
|
-
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
62136
|
-
placeholder: '',
|
|
62137
|
-
isSearchable: true
|
|
62138
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62139
|
-
className: 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
62140
|
-
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62141
|
-
className: formstyles.input_label_name + ' d-flex justify-content-start '
|
|
62142
|
-
}, 'المنطقة'), /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
62143
|
-
options: optionsSTATE,
|
|
62144
|
-
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
62145
|
-
placeholder: '',
|
|
62146
|
-
isSearchable: true
|
|
62147
|
-
})))), sectionproperties.showpricerange == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62195
|
+
})), sectionproperties.showpricerange == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62148
62196
|
className: sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showpricerange == 'Show' && sectionproperties.showpricerange == 'Show' ? "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-2 col-md-12 col-sm-12 mb-sm-3 ' : "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-3 col-md-12 col-sm-12 mb-sm-3 '
|
|
62149
62197
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62150
62198
|
className: "".concat(sectionstyles.input_label_name) + ' mb-3 '
|
|
@@ -62167,7 +62215,7 @@
|
|
|
62167
62215
|
}))))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62168
62216
|
"class": 'col-lg-12 mt-3 p-0 allcentered'
|
|
62169
62217
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
62170
|
-
"class": sectionstyles.btnstyles + ' allcentered
|
|
62218
|
+
"class": sectionstyles.btnstyles + ' allcentered ',
|
|
62171
62219
|
onClick: function onClick() {
|
|
62172
62220
|
var _payloadobj$countryid, _payloadobj$stateid, _payloadobj$cityid, _pricevalue$min, _pricevalue$max;
|
|
62173
62221
|
var tempfetchproductsfilerobjcontext = _objectSpread$1g({}, fetchproductsfilerobjcontext);
|
|
@@ -62212,7 +62260,301 @@
|
|
|
62212
62260
|
routingcountext(StaticPagesLinksContext.Innervendor, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
62213
62261
|
}
|
|
62214
62262
|
}
|
|
62215
|
-
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar))))))
|
|
62263
|
+
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)))))), sectionproperties.sectionstyletype == 'Style 3' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62264
|
+
"class": "row m-0 w-100 allcentered mt-auto mb-4 px-4",
|
|
62265
|
+
style: {
|
|
62266
|
+
zIndex: 2
|
|
62267
|
+
}
|
|
62268
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62269
|
+
"class": imagesarray.length != 0 ? 'row m-0 w-100 d-flex align-items-center justify-content-start' : 'row m-0 w-100 d-flex align-items-center justify-content-center'
|
|
62270
|
+
}, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62271
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-start"
|
|
62272
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62273
|
+
"class": "wordbreak",
|
|
62274
|
+
style: {
|
|
62275
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
62276
|
+
color: sectionproperties.sectionTitleColor,
|
|
62277
|
+
textTransform: sectionproperties.sectionTitleTextTransform,
|
|
62278
|
+
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
62279
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
62280
|
+
marginBottom: sectionproperties.prodCatShow == 'Show' ? 0 : 20
|
|
62281
|
+
}
|
|
62282
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62283
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
|
|
62284
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62285
|
+
style: {
|
|
62286
|
+
fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
62287
|
+
color: sectionproperties.prodCatColor,
|
|
62288
|
+
textTransform: sectionproperties.prodCatTextTranform,
|
|
62289
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
62290
|
+
maxWidth: '500px'
|
|
62291
|
+
}
|
|
62292
|
+
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62293
|
+
"class": 'col-lg-11 col-md-12 col-sm-12 allcentered mt-3',
|
|
62294
|
+
style: {
|
|
62295
|
+
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
62296
|
+
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
62297
|
+
paddingTop: sectionproperties.reservation_padding_top + 'px',
|
|
62298
|
+
paddingBottom: sectionproperties.reservation_padding_bottom + 'px',
|
|
62299
|
+
paddingLeft: sectionproperties.reservation_padding_left + 'px',
|
|
62300
|
+
paddingRight: sectionproperties.reservation_padding_right + 'px'
|
|
62301
|
+
}
|
|
62302
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62303
|
+
"class": "row m-0 w-100 allcentered"
|
|
62304
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62305
|
+
"class": "col-lg-12 p-0"
|
|
62306
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62307
|
+
"class": "row m-0 w-100 d-flex align-items-center justify-content-start"
|
|
62308
|
+
}, (fetchProductFeaturesQueryContext === null || fetchProductFeaturesQueryContext === void 0 ? void 0 : fetchProductFeaturesQueryContext.isSuccess) && (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) {
|
|
62309
|
+
if (item.type == 'Selectbox') {
|
|
62310
|
+
var _item$featuresselectb;
|
|
62311
|
+
var selectboxarr = [];
|
|
62312
|
+
item === null || item === void 0 || (_item$featuresselectb = item.featuresselectbovalue) === null || _item$featuresselectb === void 0 || _item$featuresselectb.forEach(function (slecitem) {
|
|
62313
|
+
var itemlabel = '';
|
|
62314
|
+
if (langdetect == 'en') {
|
|
62315
|
+
itemlabel = slecitem.value_en;
|
|
62316
|
+
} else {
|
|
62317
|
+
itemlabel = slecitem.value_ar;
|
|
62318
|
+
}
|
|
62319
|
+
selectboxarr.push({
|
|
62320
|
+
label: itemlabel,
|
|
62321
|
+
value: slecitem.value_en
|
|
62322
|
+
});
|
|
62323
|
+
});
|
|
62324
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62325
|
+
"class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
|
|
62326
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62327
|
+
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
62328
|
+
style: {
|
|
62329
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
62330
|
+
}
|
|
62331
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62332
|
+
"class": 'col-lg-12 p-0'
|
|
62333
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
62334
|
+
options: selectboxarr,
|
|
62335
|
+
styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
|
|
62336
|
+
placeholder: '',
|
|
62337
|
+
onChange: function onChange(e) {
|
|
62338
|
+
var isattrexists = false;
|
|
62339
|
+
var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
|
|
62340
|
+
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
62341
|
+
if (attritem.id == item.id) {
|
|
62342
|
+
tempproductfeatuesarr[attrindex].value = e.value;
|
|
62343
|
+
isattrexists = true;
|
|
62344
|
+
}
|
|
62345
|
+
});
|
|
62346
|
+
if (isattrexists == false) {
|
|
62347
|
+
tempproductfeatuesarr.push({
|
|
62348
|
+
id: item.id,
|
|
62349
|
+
value: e.value
|
|
62350
|
+
});
|
|
62351
|
+
}
|
|
62352
|
+
setproductfeatuesarr(_toConsumableArray__default["default"](tempproductfeatuesarr));
|
|
62353
|
+
}
|
|
62354
|
+
})));
|
|
62355
|
+
}
|
|
62356
|
+
if (item.type == 'Number') {
|
|
62357
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62358
|
+
"class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
|
|
62359
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62360
|
+
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
62361
|
+
style: {
|
|
62362
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
62363
|
+
}
|
|
62364
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62365
|
+
"class": 'col-lg-12 p-0 mt-1'
|
|
62366
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
62367
|
+
type: "number",
|
|
62368
|
+
className: "".concat(formstyles.form_control, " ").concat(sectionstyles.form_control),
|
|
62369
|
+
placeholder: '',
|
|
62370
|
+
onChange: function onChange(e) {
|
|
62371
|
+
var isattrexists = false;
|
|
62372
|
+
var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
|
|
62373
|
+
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
62374
|
+
if (attritem.id == item.id) {
|
|
62375
|
+
tempproductfeatuesarr[attrindex].value = e.target.value;
|
|
62376
|
+
isattrexists = true;
|
|
62377
|
+
}
|
|
62378
|
+
});
|
|
62379
|
+
if (isattrexists == false) {
|
|
62380
|
+
tempproductfeatuesarr.push({
|
|
62381
|
+
id: item.id,
|
|
62382
|
+
value: e.target.value
|
|
62383
|
+
});
|
|
62384
|
+
}
|
|
62385
|
+
setproductfeatuesarr(_toConsumableArray__default["default"](tempproductfeatuesarr));
|
|
62386
|
+
}
|
|
62387
|
+
})));
|
|
62388
|
+
}
|
|
62389
|
+
if (item.type == 'NumberRange') {
|
|
62390
|
+
var temppricevalue = {
|
|
62391
|
+
min: 0,
|
|
62392
|
+
max: 10000
|
|
62393
|
+
};
|
|
62394
|
+
var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
|
|
62395
|
+
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
62396
|
+
if (attritem.id == item.id) {
|
|
62397
|
+
var _attritem$value, _attritem$valuemax;
|
|
62398
|
+
if (attritem.value != undefined && attritem.value != null && (attritem === null || attritem === void 0 || (_attritem$value = attritem.value) === null || _attritem$value === void 0 ? void 0 : _attritem$value.length) != 0) {
|
|
62399
|
+
temppricevalue.min = attritem.value;
|
|
62400
|
+
}
|
|
62401
|
+
if (attritem.valuemax != undefined && attritem.valuemax != null && (attritem === null || attritem === void 0 || (_attritem$valuemax = attritem.valuemax) === null || _attritem$valuemax === void 0 ? void 0 : _attritem$valuemax.length) != 0) {
|
|
62402
|
+
temppricevalue.max = attritem.valuemax;
|
|
62403
|
+
}
|
|
62404
|
+
}
|
|
62405
|
+
});
|
|
62406
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62407
|
+
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-3 col-md-12 col-sm-12 mb-3 '
|
|
62408
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62409
|
+
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100',
|
|
62410
|
+
style: {
|
|
62411
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
62412
|
+
}
|
|
62413
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62414
|
+
"class": 'col-lg-12 pl-4 pr-4 mt-2 mb-2',
|
|
62415
|
+
style: {
|
|
62416
|
+
direction: 'ltr'
|
|
62417
|
+
}
|
|
62418
|
+
}, /*#__PURE__*/React__default["default"].createElement(InputRange__default["default"], {
|
|
62419
|
+
draggableTrack: true,
|
|
62420
|
+
formatLabel: function formatLabel(value) {
|
|
62421
|
+
return "".concat(value);
|
|
62422
|
+
},
|
|
62423
|
+
maxValue: parseInt(sectionproperties.filterpricemaxvalue),
|
|
62424
|
+
minValue: parseInt(sectionproperties.filterpriceminvalue),
|
|
62425
|
+
value: temppricevalue,
|
|
62426
|
+
onChange: function onChange(e) {
|
|
62427
|
+
// setpricevalue({ ...value });
|
|
62428
|
+
var isattrexists = false;
|
|
62429
|
+
var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
|
|
62430
|
+
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
62431
|
+
if (attritem.id == item.id) {
|
|
62432
|
+
tempproductfeatuesarr[attrindex].value = e.min;
|
|
62433
|
+
tempproductfeatuesarr[attrindex].valuemax = e.max;
|
|
62434
|
+
isattrexists = true;
|
|
62435
|
+
}
|
|
62436
|
+
});
|
|
62437
|
+
if (isattrexists == false) {
|
|
62438
|
+
tempproductfeatuesarr.push({
|
|
62439
|
+
id: item.id,
|
|
62440
|
+
value: e.min,
|
|
62441
|
+
valuemax: e.max
|
|
62442
|
+
});
|
|
62443
|
+
}
|
|
62444
|
+
setproductfeatuesarr(_toConsumableArray__default["default"](tempproductfeatuesarr));
|
|
62445
|
+
}
|
|
62446
|
+
})));
|
|
62447
|
+
}
|
|
62448
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62449
|
+
"class": "col-lg-3 col-md-12"
|
|
62450
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62451
|
+
"class": "row m-0 w-100"
|
|
62452
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62453
|
+
"class": "col-lg-12 p-0 text-start"
|
|
62454
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62455
|
+
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
62456
|
+
style: {
|
|
62457
|
+
color: sectionproperties.form_labelcolor,
|
|
62458
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
62459
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
62460
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
62461
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0,
|
|
62462
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
62463
|
+
}
|
|
62464
|
+
}, langdetect == 'en' ? 'From' : 'من')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62465
|
+
"class": "col-lg-12 p-0 text-start"
|
|
62466
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
62467
|
+
type: 'date',
|
|
62468
|
+
onChange: function onChange(e) {
|
|
62469
|
+
setfrom_date_filter_input(e.target.value);
|
|
62470
|
+
},
|
|
62471
|
+
value: from_date_filter_input,
|
|
62472
|
+
className: "".concat(formstyles.form_control, " ").concat(sectionstyles.form_control)
|
|
62473
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62474
|
+
"class": "col-lg-3 col-md-12"
|
|
62475
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62476
|
+
"class": "col-lg-12 p-0 text-start"
|
|
62477
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62478
|
+
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
62479
|
+
style: {
|
|
62480
|
+
color: sectionproperties.form_labelcolor,
|
|
62481
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
62482
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
62483
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
62484
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0,
|
|
62485
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
62486
|
+
}
|
|
62487
|
+
}, langdetect == 'en' ? 'To' : 'الى')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62488
|
+
"class": "col-lg-12 p-0 text-start"
|
|
62489
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
62490
|
+
type: 'date',
|
|
62491
|
+
onChange: function onChange(e) {
|
|
62492
|
+
setto_date_filter_input(e.target.value);
|
|
62493
|
+
},
|
|
62494
|
+
value: to_date_filter_input,
|
|
62495
|
+
className: "".concat(formstyles.form_control, " ").concat(sectionstyles.form_control)
|
|
62496
|
+
})), "\xA0"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62497
|
+
"class": "col-lg-2 col-md-12 text-end",
|
|
62498
|
+
style: {
|
|
62499
|
+
marginLeft: langdetect == 'en' ? 'auto' : '',
|
|
62500
|
+
marginRight: langdetect == 'ar' ? 'auto' : ''
|
|
62501
|
+
}
|
|
62502
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
62503
|
+
"class": sectionstyles.btnstyles + ' allcentered ',
|
|
62504
|
+
onClick: function onClick() {
|
|
62505
|
+
var _payloadobj$countryid2, _payloadobj$stateid2, _payloadobj$cityid2, _pricevalue$min2, _pricevalue$max2;
|
|
62506
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$1g({}, fetchproductsfilerobjcontext);
|
|
62507
|
+
if ((payloadobj === null || payloadobj === void 0 ? void 0 : payloadobj.countryid) != null && (payloadobj === null || payloadobj === void 0 || (_payloadobj$countryid2 = payloadobj.countryid) === null || _payloadobj$countryid2 === void 0 ? void 0 : _payloadobj$countryid2.length) != 0) {
|
|
62508
|
+
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.generalbtnonclick) == 'Products') {
|
|
62509
|
+
tempfetchproductsfilerobjcontext.country_ids = [payloadobj.countryid];
|
|
62510
|
+
} else {
|
|
62511
|
+
tempfetchproductsfilerobjcontext.countryid = payloadobj.countryid;
|
|
62512
|
+
}
|
|
62513
|
+
}
|
|
62514
|
+
if ((payloadobj === null || payloadobj === void 0 ? void 0 : payloadobj.stateid) != null && (payloadobj === null || payloadobj === void 0 || (_payloadobj$stateid2 = payloadobj.stateid) === null || _payloadobj$stateid2 === void 0 ? void 0 : _payloadobj$stateid2.length) != 0) {
|
|
62515
|
+
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.generalbtnonclick) == 'Products') {
|
|
62516
|
+
tempfetchproductsfilerobjcontext.state_ids = [payloadobj.stateid];
|
|
62517
|
+
} else {
|
|
62518
|
+
tempfetchproductsfilerobjcontext.stateid = payloadobj.stateid;
|
|
62519
|
+
}
|
|
62520
|
+
}
|
|
62521
|
+
if ((payloadobj === null || payloadobj === void 0 ? void 0 : payloadobj.cityid) != null && (payloadobj === null || payloadobj === void 0 || (_payloadobj$cityid2 = payloadobj.cityid) === null || _payloadobj$cityid2 === void 0 ? void 0 : _payloadobj$cityid2.length) != 0) {
|
|
62522
|
+
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.generalbtnonclick) == 'Products') {
|
|
62523
|
+
tempfetchproductsfilerobjcontext.city_ids = [payloadobj.cityid];
|
|
62524
|
+
} else {
|
|
62525
|
+
tempfetchproductsfilerobjcontext.cityid = payloadobj.cityid;
|
|
62526
|
+
}
|
|
62527
|
+
}
|
|
62528
|
+
if ((payloadobj === null || payloadobj === void 0 ? void 0 : payloadobj.collections) != null && payloadobj.collections.length != 0) {
|
|
62529
|
+
tempfetchproductsfilerobjcontext.collections = payloadobj.collections;
|
|
62530
|
+
}
|
|
62531
|
+
if ((pricevalue === null || pricevalue === void 0 ? void 0 : pricevalue.min) != null && (pricevalue === null || pricevalue === void 0 || (_pricevalue$min2 = pricevalue.min) === null || _pricevalue$min2 === void 0 ? void 0 : _pricevalue$min2.length) != 0) {
|
|
62532
|
+
tempfetchproductsfilerobjcontext.price_min = pricevalue.min;
|
|
62533
|
+
}
|
|
62534
|
+
if ((pricevalue === null || pricevalue === void 0 ? void 0 : pricevalue.max) != null && (pricevalue === null || pricevalue === void 0 || (_pricevalue$max2 = pricevalue.max) === null || _pricevalue$max2 === void 0 ? void 0 : _pricevalue$max2.length) != 0) {
|
|
62535
|
+
if (sectionproperties.showpricerange == 'Hide') {
|
|
62536
|
+
tempfetchproductsfilerobjcontext.price_max = 99999999999999;
|
|
62537
|
+
} else {
|
|
62538
|
+
tempfetchproductsfilerobjcontext.price_max = pricevalue.max;
|
|
62539
|
+
}
|
|
62540
|
+
}
|
|
62541
|
+
if (productfeatuesarr != undefined && productfeatuesarr != null && Array.isArray(productfeatuesarr) && (productfeatuesarr === null || productfeatuesarr === void 0 ? void 0 : productfeatuesarr.length) != 0) {
|
|
62542
|
+
tempfetchproductsfilerobjcontext.prod_featruesar = productfeatuesarr;
|
|
62543
|
+
}
|
|
62544
|
+
if (from_date_filter_input != undefined && from_date_filter_input != null && (from_date_filter_input === null || from_date_filter_input === void 0 ? void 0 : from_date_filter_input.length) != 0) {
|
|
62545
|
+
tempfetchproductsfilerobjcontext.from_date_filter = from_date_filter_input;
|
|
62546
|
+
}
|
|
62547
|
+
if (to_date_filter_input != undefined && to_date_filter_input != null && (to_date_filter_input === null || to_date_filter_input === void 0 ? void 0 : to_date_filter_input.length) != 0) {
|
|
62548
|
+
tempfetchproductsfilerobjcontext.to_date_filter = to_date_filter_input;
|
|
62549
|
+
}
|
|
62550
|
+
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.generalbtnonclick) == 'Products') {
|
|
62551
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
62552
|
+
}
|
|
62553
|
+
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.generalbtnonclick) == 'Vendors') {
|
|
62554
|
+
routingcountext(StaticPagesLinksContext.Innervendor, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
62555
|
+
}
|
|
62556
|
+
}
|
|
62557
|
+
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)))))))));
|
|
62216
62558
|
};
|
|
62217
62559
|
|
|
62218
62560
|
function ownKeys$1f(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; }
|