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.cjs.js
CHANGED
|
@@ -1224,6 +1224,71 @@ styleInject(css_248z$J);
|
|
|
1224
1224
|
|
|
1225
1225
|
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; }
|
|
1226
1226
|
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; }
|
|
1227
|
+
var selectcustomStyles = {
|
|
1228
|
+
option: function option(provided, state) {
|
|
1229
|
+
return _objectSpread$2D(_objectSpread$2D({}, provided), {}, {
|
|
1230
|
+
borderBottom: '1px solid #e6e6e6',
|
|
1231
|
+
backgroundColor: state.isSelected ? '' : '',
|
|
1232
|
+
padding: 5,
|
|
1233
|
+
textTransform: 'capitalize',
|
|
1234
|
+
color: state.isSelected ? '#eac435' : '#022648',
|
|
1235
|
+
transition: '.3s',
|
|
1236
|
+
'&:hover': {
|
|
1237
|
+
color: '#eac435',
|
|
1238
|
+
cursor: 'pointer'
|
|
1239
|
+
}
|
|
1240
|
+
});
|
|
1241
|
+
},
|
|
1242
|
+
control: function control() {
|
|
1243
|
+
return {
|
|
1244
|
+
border: '1px solid #e6e6e6',
|
|
1245
|
+
// boxShadow: '0 0 10px #e6e6e6',
|
|
1246
|
+
borderRadius: '5px',
|
|
1247
|
+
display: 'flex',
|
|
1248
|
+
cursor: 'pointer',
|
|
1249
|
+
transition: '.3s',
|
|
1250
|
+
'&:hover': {
|
|
1251
|
+
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1254
|
+
}
|
|
1255
|
+
};
|
|
1256
|
+
var selectcustomStylesTranslated = {
|
|
1257
|
+
option: function option(provided, state) {
|
|
1258
|
+
return _objectSpread$2D(_objectSpread$2D({}, provided), {}, {
|
|
1259
|
+
borderBottom: '1px solid #e6e6e6',
|
|
1260
|
+
backgroundColor: state.isSelected ? '' : '',
|
|
1261
|
+
padding: 5,
|
|
1262
|
+
textTransform: 'capitalize',
|
|
1263
|
+
color: state.isSelected ? '#eac435' : '#ffffff',
|
|
1264
|
+
transition: '.3s',
|
|
1265
|
+
textAlign: 'right',
|
|
1266
|
+
'&:hover': {
|
|
1267
|
+
color: '#eac435',
|
|
1268
|
+
cursor: 'pointer'
|
|
1269
|
+
}
|
|
1270
|
+
});
|
|
1271
|
+
},
|
|
1272
|
+
control: function control() {
|
|
1273
|
+
return {
|
|
1274
|
+
border: '2px solid #e6e6e6',
|
|
1275
|
+
// boxShadow: '0 0 10px #e6e6e6',
|
|
1276
|
+
borderRadius: '10px',
|
|
1277
|
+
display: 'flex',
|
|
1278
|
+
cursor: 'pointer',
|
|
1279
|
+
transition: '.3s',
|
|
1280
|
+
textAlign: 'right',
|
|
1281
|
+
'&:hover': {
|
|
1282
|
+
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1283
|
+
}
|
|
1284
|
+
};
|
|
1285
|
+
},
|
|
1286
|
+
placeholder: function placeholder(provided, state) {
|
|
1287
|
+
return _objectSpread$2D(_objectSpread$2D({}, provided), {}, {
|
|
1288
|
+
textAlign: 'right'
|
|
1289
|
+
});
|
|
1290
|
+
}
|
|
1291
|
+
};
|
|
1227
1292
|
var defaultstyles = {
|
|
1228
1293
|
option: function option(provided, state) {
|
|
1229
1294
|
return _objectSpread$2D(_objectSpread$2D({}, provided), {}, {
|
|
@@ -1487,7 +1552,7 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1487
1552
|
}
|
|
1488
1553
|
if (item.optionname == 'color' || item.optionname == 'Color') {
|
|
1489
1554
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1490
|
-
className: productinfostyles.color_container + ' mr-2 variabttcontainer ' + "".concat(productinfostyles.color_container_active)
|
|
1555
|
+
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)
|
|
1491
1556
|
// `${isoptionvalueselected == 1 ? productinfostyles.color_container_active : ''}`
|
|
1492
1557
|
,
|
|
1493
1558
|
onClick: function onClick() {
|
|
@@ -5349,7 +5414,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
5349
5414
|
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; }
|
|
5350
5415
|
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; }
|
|
5351
5416
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
5352
|
-
var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer22, _fetchProductInfoQuer23;
|
|
5417
|
+
var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _authdetailsContext$i, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer22, _fetchProductInfoQuer23;
|
|
5353
5418
|
var langdetect = props.actions.langdetect;
|
|
5354
5419
|
var lang = props.actions.lang;
|
|
5355
5420
|
var sectionproperties = props.actions.sectionproperties;
|
|
@@ -5379,10 +5444,6 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
5379
5444
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
5380
5445
|
tabsarray = _useState2[0];
|
|
5381
5446
|
_useState2[1];
|
|
5382
|
-
// const excludeDates = [
|
|
5383
|
-
// new Date(2024, 12, 20), // Dec 25, 2024
|
|
5384
|
-
// new Date(2024, 12, 31), // Dec 31, 2024
|
|
5385
|
-
// ];
|
|
5386
5447
|
var _useState3 = React.useState(''),
|
|
5387
5448
|
_useState4 = _slicedToArray__default["default"](_useState3, 2);
|
|
5388
5449
|
_useState4[0];
|
|
@@ -5793,7 +5854,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
5793
5854
|
"class": "col-lg-12 col-md-12 col-sm-12 mb-2"
|
|
5794
5855
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5795
5856
|
"class": "row m-0 w-100"
|
|
5796
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5857
|
+
}, (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", {
|
|
5797
5858
|
"class": "col-lg-12 d-flex justify-content-start p-0"
|
|
5798
5859
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
5799
5860
|
"class": TabsStyles.inputfield_label + ' m-0 pb-2 '
|
|
@@ -17147,7 +17208,7 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
|
|
|
17147
17208
|
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; }
|
|
17148
17209
|
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; }
|
|
17149
17210
|
var OrderSuccess = function OrderSuccess(props) {
|
|
17150
|
-
var _props$actions2, _authdetailsContext$i, _lastOrderinfoObj$dat, _logoarrayofobjects$, _logoarrayofobjects$2, _lastOrderinfoObj$
|
|
17211
|
+
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;
|
|
17151
17212
|
var lang = props.actions.lang;
|
|
17152
17213
|
var langdetect = props.actions.langdetect;
|
|
17153
17214
|
var routingcountext = props.actions.routingcountext;
|
|
@@ -17313,6 +17374,7 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
17313
17374
|
})
|
|
17314
17375
|
};
|
|
17315
17376
|
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));
|
|
17377
|
+
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));
|
|
17316
17378
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17317
17379
|
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 ',
|
|
17318
17380
|
style: {}
|
|
@@ -17361,9 +17423,9 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
17361
17423
|
style: {
|
|
17362
17424
|
fontSize: 15
|
|
17363
17425
|
}
|
|
17364
|
-
}, "Order #", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17426
|
+
}, "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", {
|
|
17365
17427
|
"class": "col-12 p-0 text-start mb-4 font-weight-500"
|
|
17366
|
-
}, langdetect == 'en' ? 'Thank you,' : 'شكرا،', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17428
|
+
}, 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", {
|
|
17367
17429
|
"class": "col-12 p-0 text-start font-weight-500"
|
|
17368
17430
|
}, langdetect == 'en' ? 'Your order has been placed.' : 'الطلب تم بنجاح'), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17369
17431
|
"class": "col-12 p-0 text-start font-weight-500"
|
|
@@ -17397,9 +17459,9 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
17397
17459
|
}
|
|
17398
17460
|
}, langdetect == 'en' ? 'Contact Information' : 'بياتات العميل')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17399
17461
|
"class": "col-12 p-0 text-start"
|
|
17400
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17462
|
+
}, /*#__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", {
|
|
17401
17463
|
"class": "col-12 p-0 text-start"
|
|
17402
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17464
|
+
}, /*#__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", {
|
|
17403
17465
|
"class": "col-12 p-0 text-start mb-2"
|
|
17404
17466
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17405
17467
|
style: {
|
|
@@ -17409,7 +17471,7 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
17409
17471
|
"class": "m-0"
|
|
17410
17472
|
}, langdetect == 'en' ? 'Shipping address' : 'عنوان الشحن')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17411
17473
|
"class": "col-12 p-0 text-start"
|
|
17412
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17474
|
+
}, /*#__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", {
|
|
17413
17475
|
"class": "col-6 col-md-12"
|
|
17414
17476
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17415
17477
|
"class": "col-12 p-0 text-start mb-2"
|
|
@@ -17421,7 +17483,7 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
17421
17483
|
"class": "m-0"
|
|
17422
17484
|
}, langdetect == 'en' ? 'Payment method' : 'طريقة الدفع')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17423
17485
|
"class": "col-12 p-0 text-start"
|
|
17424
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", null, (lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17486
|
+
}, /*#__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", {
|
|
17425
17487
|
"class": "col-6 col-md-12 p-md-0"
|
|
17426
17488
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17427
17489
|
"class": "row m-0 w-100 mb-auto mt-md-4"
|
|
@@ -17441,8 +17503,8 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
17441
17503
|
maxHeight: '40vh',
|
|
17442
17504
|
overflowY: 'auto'
|
|
17443
17505
|
}
|
|
17444
|
-
}, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17445
|
-
var _lastOrderinfoObj$
|
|
17506
|
+
}, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat0 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat0 === void 0 ? void 0 : _lastOrderinfoObj$dat0.orderitems.map(function (item, index) {
|
|
17507
|
+
var _lastOrderinfoObj$dat1, _lastOrderinfoObj$dat10;
|
|
17446
17508
|
var variantoptions = [];
|
|
17447
17509
|
if (item.isvariant == 1) {
|
|
17448
17510
|
var decodevariantoptions = JSON.parse(item.variantoptions);
|
|
@@ -17484,7 +17546,7 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
17484
17546
|
className: "col-4 d-flex text-end"
|
|
17485
17547
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17486
17548
|
"class": "m-0 p-0 font-weight-500 mb-auto"
|
|
17487
|
-
}, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17549
|
+
}, 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", {
|
|
17488
17550
|
"class": "col-12 my-2"
|
|
17489
17551
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17490
17552
|
style: {
|
|
@@ -17508,7 +17570,7 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
17508
17570
|
"class": "col-6 text-end"
|
|
17509
17571
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17510
17572
|
className: "m-0 p-0 font-weight-500"
|
|
17511
|
-
}, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17573
|
+
}, 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", {
|
|
17512
17574
|
"class": "col-lg-12 p-0 mt-1",
|
|
17513
17575
|
style: {
|
|
17514
17576
|
fontSize: 16
|
|
@@ -17523,7 +17585,7 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
17523
17585
|
"class": "col-6 text-end"
|
|
17524
17586
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17525
17587
|
className: "m-0 p-0 font-weight-500"
|
|
17526
|
-
}, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17588
|
+
}, 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", {
|
|
17527
17589
|
"class": "col-lg-12 p-0 my-3"
|
|
17528
17590
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17529
17591
|
style: {
|
|
@@ -17546,7 +17608,7 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
17546
17608
|
"class": "col-6 text-end"
|
|
17547
17609
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
17548
17610
|
className: "m-0 p-0 font-weight-500"
|
|
17549
|
-
}, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$
|
|
17611
|
+
}, 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", {
|
|
17550
17612
|
"class": "col-12 allcentered mt-5 mb-3"
|
|
17551
17613
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17552
17614
|
"class": ' allcentered cursor-pointer ',
|
|
@@ -17567,7 +17629,28 @@ var OrderSuccess = function OrderSuccess(props) {
|
|
|
17567
17629
|
}
|
|
17568
17630
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
17569
17631
|
"class": ''
|
|
17570
|
-
}, 'Send it to whatsApp'))))
|
|
17632
|
+
}, '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", {
|
|
17633
|
+
"class": "col-12 allcentered mt-5 mb-3"
|
|
17634
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17635
|
+
"class": ' allcentered cursor-pointer ',
|
|
17636
|
+
style: {
|
|
17637
|
+
width: '200px',
|
|
17638
|
+
height: 40,
|
|
17639
|
+
borderRadius: 10,
|
|
17640
|
+
color: 'white',
|
|
17641
|
+
background: '#22cd5b'
|
|
17642
|
+
}
|
|
17643
|
+
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
17644
|
+
href: langdetect == 'en' ? whatsappUrlshelghada : whatsappUrlshelghada,
|
|
17645
|
+
target: "_blank",
|
|
17646
|
+
rel: "noopener noreferrer",
|
|
17647
|
+
"class": ' allcentered cursor-pointer ',
|
|
17648
|
+
style: {
|
|
17649
|
+
color: 'white'
|
|
17650
|
+
}
|
|
17651
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
17652
|
+
"class": ''
|
|
17653
|
+
}, 'Send your passport number via whatsApp'))))), sectionproperties.cardstyletype != 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17571
17654
|
className: "col-lg-12 allcentered flex-column "
|
|
17572
17655
|
}, /*#__PURE__*/React__default["default"].createElement(IoBagCheckOutline.IoBagCheckOutline, {
|
|
17573
17656
|
size: sectionproperties.icontextfontsize,
|
|
@@ -61939,7 +62022,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
61939
62022
|
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; }
|
|
61940
62023
|
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; }
|
|
61941
62024
|
var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props) {
|
|
61942
|
-
var _css,
|
|
62025
|
+
var _css, _fetchProductFeatures;
|
|
61943
62026
|
var _useState = React.useState(''),
|
|
61944
62027
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
61945
62028
|
sectionproperties = _useState2[0],
|
|
@@ -61955,7 +62038,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
61955
62038
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
61956
62039
|
imagesarray = _useState6[0],
|
|
61957
62040
|
setimagesarray = _useState6[1];
|
|
61958
|
-
|
|
62041
|
+
props.actions.lang;
|
|
61959
62042
|
var langdetect = props.actions.langdetect;
|
|
61960
62043
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
61961
62044
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
@@ -61966,7 +62049,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
61966
62049
|
var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
|
|
61967
62050
|
var fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
|
|
61968
62051
|
var fetchproductsfilerobjcontext = props.actions.fetchproductsfilerobjcontext;
|
|
61969
|
-
props.actions.fetchProductFeaturesQueryContext;
|
|
62052
|
+
var fetchProductFeaturesQueryContext = props.actions.fetchProductFeaturesQueryContext;
|
|
61970
62053
|
var routingcountext = props.actions.routingcountext;
|
|
61971
62054
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
61972
62055
|
// const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
@@ -61987,21 +62070,21 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
61987
62070
|
_useState10[0];
|
|
61988
62071
|
_useState10[1];
|
|
61989
62072
|
var _useState11 = React.useState([]),
|
|
61990
|
-
_useState12 = _slicedToArray__default["default"](_useState11, 2)
|
|
61991
|
-
_useState12[0]
|
|
61992
|
-
_useState12[1];
|
|
62073
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
62074
|
+
productfeatuesarr = _useState12[0],
|
|
62075
|
+
setproductfeatuesarr = _useState12[1];
|
|
61993
62076
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
61994
62077
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
61995
62078
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
61996
62079
|
props.actions.fetchcollectionsQueryContext;
|
|
61997
62080
|
var _useState13 = React.useState(''),
|
|
61998
|
-
_useState14 = _slicedToArray__default["default"](_useState13, 2)
|
|
61999
|
-
_useState14[0]
|
|
62000
|
-
_useState14[1];
|
|
62081
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
62082
|
+
from_date_filter_input = _useState14[0],
|
|
62083
|
+
setfrom_date_filter_input = _useState14[1];
|
|
62001
62084
|
var _useState15 = React.useState(''),
|
|
62002
|
-
_useState16 = _slicedToArray__default["default"](_useState15, 2)
|
|
62003
|
-
_useState16[0]
|
|
62004
|
-
_useState16[1];
|
|
62085
|
+
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
62086
|
+
to_date_filter_input = _useState16[0],
|
|
62087
|
+
setto_date_filter_input = _useState16[1];
|
|
62005
62088
|
React.useEffect(function () {
|
|
62006
62089
|
var tempFetchQueriesEngineContext = _objectSpread$1g({}, FetchQueriesEngineContext);
|
|
62007
62090
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
@@ -62040,17 +62123,6 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
62040
62123
|
}
|
|
62041
62124
|
}
|
|
62042
62125
|
}, [sectionproperties]);
|
|
62043
|
-
var options = [{
|
|
62044
|
-
value: 'chocolate',
|
|
62045
|
-
label: 'السعودية'
|
|
62046
|
-
}];
|
|
62047
|
-
var optionsSTATE = [{
|
|
62048
|
-
value: 'chocolate',
|
|
62049
|
-
label: 'جدة'
|
|
62050
|
-
}, {
|
|
62051
|
-
value: 'chocolate',
|
|
62052
|
-
label: 'مكة'
|
|
62053
|
-
}];
|
|
62054
62126
|
var sectionstyles = {
|
|
62055
62127
|
form_control: glamor.css((_css = {
|
|
62056
62128
|
position: 'relative',
|
|
@@ -62126,8 +62198,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
62126
62198
|
marginRight: sectionproperties.card_marginRight + 'px',
|
|
62127
62199
|
backgroundColor: 'white',
|
|
62128
62200
|
'@media (max-width: 800px)': {
|
|
62129
|
-
height: sectionproperties.height_responsive + 'vh'
|
|
62130
|
-
marginTop: sectionproperties.marginTopResp + 'px'
|
|
62201
|
+
height: sectionproperties.height_responsive + 'vh'
|
|
62131
62202
|
}
|
|
62132
62203
|
})
|
|
62133
62204
|
};
|
|
@@ -62213,7 +62284,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
62213
62284
|
}, langdetect == 'en' ? sectionproperties.formRightText2 : sectionproperties.formRightText2_ar), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62214
62285
|
"class": "row m-0 w-100 justify-content-center"
|
|
62215
62286
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
62216
|
-
"class": sectionstyles.btnstyles + ' allcentered
|
|
62287
|
+
"class": sectionstyles.btnstyles + ' allcentered '
|
|
62217
62288
|
// onClick={() => {
|
|
62218
62289
|
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent);
|
|
62219
62290
|
// }}
|
|
@@ -62298,7 +62369,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
62298
62369
|
placeholder: ''
|
|
62299
62370
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62300
62371
|
"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'
|
|
62301
|
-
},
|
|
62372
|
+
}, /*#__PURE__*/React__default["default"].createElement(CustomerAddressForm, {
|
|
62302
62373
|
payloadobj: payloadobj,
|
|
62303
62374
|
setpayloadobj: setpayloadobj,
|
|
62304
62375
|
sectionproperties: sectionproperties
|
|
@@ -62311,30 +62382,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
62311
62382
|
fetchTabexCountriesQueryContext: fetchTabexCountriesQueryContext,
|
|
62312
62383
|
fetchTabexStatesQueryContext: fetchTabexStatesQueryContext,
|
|
62313
62384
|
fetchTabexCitiesQueryContext: fetchTabexCitiesQueryContext
|
|
62314
|
-
}),
|
|
62315
|
-
className: "row m-0 w-100",
|
|
62316
|
-
style: {
|
|
62317
|
-
display: sectionproperties.hidecountrystatecity == 'Show' ? 'flex' : sectionproperties.hideaddress == 'Show' ? 'flex' : 'none'
|
|
62318
|
-
}
|
|
62319
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62320
|
-
className: 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
62321
|
-
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62322
|
-
className: formstyles.input_label_name + ' d-flex justify-content-start '
|
|
62323
|
-
}, lang.country), /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
62324
|
-
options: options,
|
|
62325
|
-
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
62326
|
-
placeholder: '',
|
|
62327
|
-
isSearchable: true
|
|
62328
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62329
|
-
className: 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
62330
|
-
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62331
|
-
className: formstyles.input_label_name + ' d-flex justify-content-start '
|
|
62332
|
-
}, 'المنطقة'), /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
62333
|
-
options: optionsSTATE,
|
|
62334
|
-
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
62335
|
-
placeholder: '',
|
|
62336
|
-
isSearchable: true
|
|
62337
|
-
})))), sectionproperties.showpricerange == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62385
|
+
})), sectionproperties.showpricerange == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62338
62386
|
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 '
|
|
62339
62387
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62340
62388
|
className: "".concat(sectionstyles.input_label_name) + ' mb-3 '
|
|
@@ -62357,7 +62405,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
62357
62405
|
}))))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62358
62406
|
"class": 'col-lg-12 mt-3 p-0 allcentered'
|
|
62359
62407
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
62360
|
-
"class": sectionstyles.btnstyles + ' allcentered
|
|
62408
|
+
"class": sectionstyles.btnstyles + ' allcentered ',
|
|
62361
62409
|
onClick: function onClick() {
|
|
62362
62410
|
var _payloadobj$countryid, _payloadobj$stateid, _payloadobj$cityid, _pricevalue$min, _pricevalue$max;
|
|
62363
62411
|
var tempfetchproductsfilerobjcontext = _objectSpread$1g({}, fetchproductsfilerobjcontext);
|
|
@@ -62402,7 +62450,301 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
62402
62450
|
routingcountext(StaticPagesLinksContext.Innervendor, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
62403
62451
|
}
|
|
62404
62452
|
}
|
|
62405
|
-
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar))))))
|
|
62453
|
+
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)))))), sectionproperties.sectionstyletype == 'Style 3' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62454
|
+
"class": "row m-0 w-100 allcentered mt-auto mb-4 px-4",
|
|
62455
|
+
style: {
|
|
62456
|
+
zIndex: 2
|
|
62457
|
+
}
|
|
62458
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62459
|
+
"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'
|
|
62460
|
+
}, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62461
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-start"
|
|
62462
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62463
|
+
"class": "wordbreak",
|
|
62464
|
+
style: {
|
|
62465
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
62466
|
+
color: sectionproperties.sectionTitleColor,
|
|
62467
|
+
textTransform: sectionproperties.sectionTitleTextTransform,
|
|
62468
|
+
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
62469
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
62470
|
+
marginBottom: sectionproperties.prodCatShow == 'Show' ? 0 : 20
|
|
62471
|
+
}
|
|
62472
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62473
|
+
"class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
|
|
62474
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62475
|
+
style: {
|
|
62476
|
+
fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
62477
|
+
color: sectionproperties.prodCatColor,
|
|
62478
|
+
textTransform: sectionproperties.prodCatTextTranform,
|
|
62479
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
62480
|
+
maxWidth: '500px'
|
|
62481
|
+
}
|
|
62482
|
+
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62483
|
+
"class": 'col-lg-11 col-md-12 col-sm-12 allcentered mt-3',
|
|
62484
|
+
style: {
|
|
62485
|
+
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
62486
|
+
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
62487
|
+
paddingTop: sectionproperties.reservation_padding_top + 'px',
|
|
62488
|
+
paddingBottom: sectionproperties.reservation_padding_bottom + 'px',
|
|
62489
|
+
paddingLeft: sectionproperties.reservation_padding_left + 'px',
|
|
62490
|
+
paddingRight: sectionproperties.reservation_padding_right + 'px'
|
|
62491
|
+
}
|
|
62492
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62493
|
+
"class": "row m-0 w-100 allcentered"
|
|
62494
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62495
|
+
"class": "col-lg-12 p-0"
|
|
62496
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62497
|
+
"class": "row m-0 w-100 d-flex align-items-center justify-content-start"
|
|
62498
|
+
}, (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) {
|
|
62499
|
+
if (item.type == 'Selectbox') {
|
|
62500
|
+
var _item$featuresselectb;
|
|
62501
|
+
var selectboxarr = [];
|
|
62502
|
+
item === null || item === void 0 || (_item$featuresselectb = item.featuresselectbovalue) === null || _item$featuresselectb === void 0 || _item$featuresselectb.forEach(function (slecitem) {
|
|
62503
|
+
var itemlabel = '';
|
|
62504
|
+
if (langdetect == 'en') {
|
|
62505
|
+
itemlabel = slecitem.value_en;
|
|
62506
|
+
} else {
|
|
62507
|
+
itemlabel = slecitem.value_ar;
|
|
62508
|
+
}
|
|
62509
|
+
selectboxarr.push({
|
|
62510
|
+
label: itemlabel,
|
|
62511
|
+
value: slecitem.value_en
|
|
62512
|
+
});
|
|
62513
|
+
});
|
|
62514
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62515
|
+
"class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
|
|
62516
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62517
|
+
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
62518
|
+
style: {
|
|
62519
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
62520
|
+
}
|
|
62521
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62522
|
+
"class": 'col-lg-12 p-0'
|
|
62523
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
62524
|
+
options: selectboxarr,
|
|
62525
|
+
styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
|
|
62526
|
+
placeholder: '',
|
|
62527
|
+
onChange: function onChange(e) {
|
|
62528
|
+
var isattrexists = false;
|
|
62529
|
+
var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
|
|
62530
|
+
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
62531
|
+
if (attritem.id == item.id) {
|
|
62532
|
+
tempproductfeatuesarr[attrindex].value = e.value;
|
|
62533
|
+
isattrexists = true;
|
|
62534
|
+
}
|
|
62535
|
+
});
|
|
62536
|
+
if (isattrexists == false) {
|
|
62537
|
+
tempproductfeatuesarr.push({
|
|
62538
|
+
id: item.id,
|
|
62539
|
+
value: e.value
|
|
62540
|
+
});
|
|
62541
|
+
}
|
|
62542
|
+
setproductfeatuesarr(_toConsumableArray__default["default"](tempproductfeatuesarr));
|
|
62543
|
+
}
|
|
62544
|
+
})));
|
|
62545
|
+
}
|
|
62546
|
+
if (item.type == 'Number') {
|
|
62547
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62548
|
+
"class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
|
|
62549
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62550
|
+
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
62551
|
+
style: {
|
|
62552
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
62553
|
+
}
|
|
62554
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62555
|
+
"class": 'col-lg-12 p-0 mt-1'
|
|
62556
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
62557
|
+
type: "number",
|
|
62558
|
+
className: "".concat(formstyles.form_control, " ").concat(sectionstyles.form_control),
|
|
62559
|
+
placeholder: '',
|
|
62560
|
+
onChange: function onChange(e) {
|
|
62561
|
+
var isattrexists = false;
|
|
62562
|
+
var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
|
|
62563
|
+
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
62564
|
+
if (attritem.id == item.id) {
|
|
62565
|
+
tempproductfeatuesarr[attrindex].value = e.target.value;
|
|
62566
|
+
isattrexists = true;
|
|
62567
|
+
}
|
|
62568
|
+
});
|
|
62569
|
+
if (isattrexists == false) {
|
|
62570
|
+
tempproductfeatuesarr.push({
|
|
62571
|
+
id: item.id,
|
|
62572
|
+
value: e.target.value
|
|
62573
|
+
});
|
|
62574
|
+
}
|
|
62575
|
+
setproductfeatuesarr(_toConsumableArray__default["default"](tempproductfeatuesarr));
|
|
62576
|
+
}
|
|
62577
|
+
})));
|
|
62578
|
+
}
|
|
62579
|
+
if (item.type == 'NumberRange') {
|
|
62580
|
+
var temppricevalue = {
|
|
62581
|
+
min: 0,
|
|
62582
|
+
max: 10000
|
|
62583
|
+
};
|
|
62584
|
+
var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
|
|
62585
|
+
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
62586
|
+
if (attritem.id == item.id) {
|
|
62587
|
+
var _attritem$value, _attritem$valuemax;
|
|
62588
|
+
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) {
|
|
62589
|
+
temppricevalue.min = attritem.value;
|
|
62590
|
+
}
|
|
62591
|
+
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) {
|
|
62592
|
+
temppricevalue.max = attritem.valuemax;
|
|
62593
|
+
}
|
|
62594
|
+
}
|
|
62595
|
+
});
|
|
62596
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62597
|
+
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-3 col-md-12 col-sm-12 mb-3 '
|
|
62598
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62599
|
+
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100',
|
|
62600
|
+
style: {
|
|
62601
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
62602
|
+
}
|
|
62603
|
+
}, langdetect == 'en' ? item.name_en : item.name_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62604
|
+
"class": 'col-lg-12 pl-4 pr-4 mt-2 mb-2',
|
|
62605
|
+
style: {
|
|
62606
|
+
direction: 'ltr'
|
|
62607
|
+
}
|
|
62608
|
+
}, /*#__PURE__*/React__default["default"].createElement(InputRange__default["default"], {
|
|
62609
|
+
draggableTrack: true,
|
|
62610
|
+
formatLabel: function formatLabel(value) {
|
|
62611
|
+
return "".concat(value);
|
|
62612
|
+
},
|
|
62613
|
+
maxValue: parseInt(sectionproperties.filterpricemaxvalue),
|
|
62614
|
+
minValue: parseInt(sectionproperties.filterpriceminvalue),
|
|
62615
|
+
value: temppricevalue,
|
|
62616
|
+
onChange: function onChange(e) {
|
|
62617
|
+
// setpricevalue({ ...value });
|
|
62618
|
+
var isattrexists = false;
|
|
62619
|
+
var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
|
|
62620
|
+
tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
|
|
62621
|
+
if (attritem.id == item.id) {
|
|
62622
|
+
tempproductfeatuesarr[attrindex].value = e.min;
|
|
62623
|
+
tempproductfeatuesarr[attrindex].valuemax = e.max;
|
|
62624
|
+
isattrexists = true;
|
|
62625
|
+
}
|
|
62626
|
+
});
|
|
62627
|
+
if (isattrexists == false) {
|
|
62628
|
+
tempproductfeatuesarr.push({
|
|
62629
|
+
id: item.id,
|
|
62630
|
+
value: e.min,
|
|
62631
|
+
valuemax: e.max
|
|
62632
|
+
});
|
|
62633
|
+
}
|
|
62634
|
+
setproductfeatuesarr(_toConsumableArray__default["default"](tempproductfeatuesarr));
|
|
62635
|
+
}
|
|
62636
|
+
})));
|
|
62637
|
+
}
|
|
62638
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62639
|
+
"class": "col-lg-3 col-md-12"
|
|
62640
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62641
|
+
"class": "row m-0 w-100"
|
|
62642
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62643
|
+
"class": "col-lg-12 p-0 text-start"
|
|
62644
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62645
|
+
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
62646
|
+
style: {
|
|
62647
|
+
color: sectionproperties.form_labelcolor,
|
|
62648
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
62649
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
62650
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
62651
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0,
|
|
62652
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
62653
|
+
}
|
|
62654
|
+
}, langdetect == 'en' ? 'From' : 'من')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62655
|
+
"class": "col-lg-12 p-0 text-start"
|
|
62656
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
62657
|
+
type: 'date',
|
|
62658
|
+
onChange: function onChange(e) {
|
|
62659
|
+
setfrom_date_filter_input(e.target.value);
|
|
62660
|
+
},
|
|
62661
|
+
value: from_date_filter_input,
|
|
62662
|
+
className: "".concat(formstyles.form_control, " ").concat(sectionstyles.form_control)
|
|
62663
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62664
|
+
"class": "col-lg-3 col-md-12"
|
|
62665
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62666
|
+
"class": "col-lg-12 p-0 text-start"
|
|
62667
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
62668
|
+
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
62669
|
+
style: {
|
|
62670
|
+
color: sectionproperties.form_labelcolor,
|
|
62671
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
62672
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
62673
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
62674
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0,
|
|
62675
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
62676
|
+
}
|
|
62677
|
+
}, langdetect == 'en' ? 'To' : 'الى')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62678
|
+
"class": "col-lg-12 p-0 text-start"
|
|
62679
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
62680
|
+
type: 'date',
|
|
62681
|
+
onChange: function onChange(e) {
|
|
62682
|
+
setto_date_filter_input(e.target.value);
|
|
62683
|
+
},
|
|
62684
|
+
value: to_date_filter_input,
|
|
62685
|
+
className: "".concat(formstyles.form_control, " ").concat(sectionstyles.form_control)
|
|
62686
|
+
})), "\xA0"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
62687
|
+
"class": "col-lg-2 col-md-12 text-end",
|
|
62688
|
+
style: {
|
|
62689
|
+
marginLeft: langdetect == 'en' ? 'auto' : '',
|
|
62690
|
+
marginRight: langdetect == 'ar' ? 'auto' : ''
|
|
62691
|
+
}
|
|
62692
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
62693
|
+
"class": sectionstyles.btnstyles + ' allcentered ',
|
|
62694
|
+
onClick: function onClick() {
|
|
62695
|
+
var _payloadobj$countryid2, _payloadobj$stateid2, _payloadobj$cityid2, _pricevalue$min2, _pricevalue$max2;
|
|
62696
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$1g({}, fetchproductsfilerobjcontext);
|
|
62697
|
+
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) {
|
|
62698
|
+
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.generalbtnonclick) == 'Products') {
|
|
62699
|
+
tempfetchproductsfilerobjcontext.country_ids = [payloadobj.countryid];
|
|
62700
|
+
} else {
|
|
62701
|
+
tempfetchproductsfilerobjcontext.countryid = payloadobj.countryid;
|
|
62702
|
+
}
|
|
62703
|
+
}
|
|
62704
|
+
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) {
|
|
62705
|
+
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.generalbtnonclick) == 'Products') {
|
|
62706
|
+
tempfetchproductsfilerobjcontext.state_ids = [payloadobj.stateid];
|
|
62707
|
+
} else {
|
|
62708
|
+
tempfetchproductsfilerobjcontext.stateid = payloadobj.stateid;
|
|
62709
|
+
}
|
|
62710
|
+
}
|
|
62711
|
+
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) {
|
|
62712
|
+
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.generalbtnonclick) == 'Products') {
|
|
62713
|
+
tempfetchproductsfilerobjcontext.city_ids = [payloadobj.cityid];
|
|
62714
|
+
} else {
|
|
62715
|
+
tempfetchproductsfilerobjcontext.cityid = payloadobj.cityid;
|
|
62716
|
+
}
|
|
62717
|
+
}
|
|
62718
|
+
if ((payloadobj === null || payloadobj === void 0 ? void 0 : payloadobj.collections) != null && payloadobj.collections.length != 0) {
|
|
62719
|
+
tempfetchproductsfilerobjcontext.collections = payloadobj.collections;
|
|
62720
|
+
}
|
|
62721
|
+
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) {
|
|
62722
|
+
tempfetchproductsfilerobjcontext.price_min = pricevalue.min;
|
|
62723
|
+
}
|
|
62724
|
+
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) {
|
|
62725
|
+
if (sectionproperties.showpricerange == 'Hide') {
|
|
62726
|
+
tempfetchproductsfilerobjcontext.price_max = 99999999999999;
|
|
62727
|
+
} else {
|
|
62728
|
+
tempfetchproductsfilerobjcontext.price_max = pricevalue.max;
|
|
62729
|
+
}
|
|
62730
|
+
}
|
|
62731
|
+
if (productfeatuesarr != undefined && productfeatuesarr != null && Array.isArray(productfeatuesarr) && (productfeatuesarr === null || productfeatuesarr === void 0 ? void 0 : productfeatuesarr.length) != 0) {
|
|
62732
|
+
tempfetchproductsfilerobjcontext.prod_featruesar = productfeatuesarr;
|
|
62733
|
+
}
|
|
62734
|
+
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) {
|
|
62735
|
+
tempfetchproductsfilerobjcontext.from_date_filter = from_date_filter_input;
|
|
62736
|
+
}
|
|
62737
|
+
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) {
|
|
62738
|
+
tempfetchproductsfilerobjcontext.to_date_filter = to_date_filter_input;
|
|
62739
|
+
}
|
|
62740
|
+
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.generalbtnonclick) == 'Products') {
|
|
62741
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
62742
|
+
}
|
|
62743
|
+
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.generalbtnonclick) == 'Vendors') {
|
|
62744
|
+
routingcountext(StaticPagesLinksContext.Innervendor, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
62745
|
+
}
|
|
62746
|
+
}
|
|
62747
|
+
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)))))))));
|
|
62406
62748
|
};
|
|
62407
62749
|
|
|
62408
62750
|
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; }
|