tabexseriescomponents 0.0.354 → 0.0.356
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 +425 -45
- package/dist/index.esm.js +425 -45
- package/dist/index.umd.js +425 -45
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -12862,6 +12862,13 @@ var Filter$1 = function Filter(props) {
|
|
|
12862
12862
|
var routingcountext = props.actions.routingcountext;
|
|
12863
12863
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
12864
12864
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
12865
|
+
var _useState = React.useState({
|
|
12866
|
+
min: 0,
|
|
12867
|
+
max: 10000
|
|
12868
|
+
}),
|
|
12869
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
12870
|
+
pricevalue = _useState2[0],
|
|
12871
|
+
setpricevalue = _useState2[1];
|
|
12865
12872
|
var fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
|
|
12866
12873
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
12867
12874
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
@@ -12869,40 +12876,40 @@ var Filter$1 = function Filter(props) {
|
|
|
12869
12876
|
var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
|
|
12870
12877
|
var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
|
|
12871
12878
|
var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
|
|
12872
|
-
var
|
|
12873
|
-
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
12874
|
-
sectionproperties = _useState2[0],
|
|
12875
|
-
setsectionproperties = _useState2[1];
|
|
12876
|
-
var _useState3 = React.useState(_toConsumableArray__default["default"](authdetailsContext.instinfo.instfilters)),
|
|
12879
|
+
var _useState3 = React.useState(''),
|
|
12877
12880
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
12878
|
-
|
|
12879
|
-
|
|
12880
|
-
var _useState5 = React.useState([]),
|
|
12881
|
+
sectionproperties = _useState4[0],
|
|
12882
|
+
setsectionproperties = _useState4[1];
|
|
12883
|
+
var _useState5 = React.useState(_toConsumableArray__default["default"](authdetailsContext.instinfo.instfilters)),
|
|
12881
12884
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
var _useState7 = React.useState(
|
|
12885
|
+
instfilters = _useState6[0],
|
|
12886
|
+
setinstfilters = _useState6[1];
|
|
12887
|
+
var _useState7 = React.useState([]),
|
|
12885
12888
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
var _useState9 = React.useState(_toConsumableArray__default["default"](authdetailsContext
|
|
12889
|
+
collectionstobevisible = _useState8[0],
|
|
12890
|
+
setcollectionstobevisible = _useState8[1];
|
|
12891
|
+
var _useState9 = React.useState(_toConsumableArray__default["default"](authdetailsContext.instinfo.instcollections)),
|
|
12889
12892
|
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
12890
|
-
|
|
12891
|
-
|
|
12893
|
+
instcollections = _useState10[0],
|
|
12894
|
+
setinstcollections = _useState10[1];
|
|
12895
|
+
var _useState11 = React.useState(_toConsumableArray__default["default"](authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instcategories)),
|
|
12896
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
12897
|
+
instcategories = _useState12[0],
|
|
12898
|
+
setinstcategories = _useState12[1];
|
|
12892
12899
|
// const [sortby, setSortby] = useState('Sort by');
|
|
12893
|
-
var
|
|
12900
|
+
var _useState13 = React.useState({
|
|
12894
12901
|
min: 0,
|
|
12895
12902
|
max: 5
|
|
12896
12903
|
}),
|
|
12897
|
-
|
|
12898
|
-
raterangevalue =
|
|
12899
|
-
setraterangevalue =
|
|
12904
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
12905
|
+
raterangevalue = _useState14[0],
|
|
12906
|
+
setraterangevalue = _useState14[1];
|
|
12900
12907
|
var timeoutRef = React__default["default"].useRef(null);
|
|
12901
|
-
var
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
var setsortbycontext =
|
|
12905
|
-
var
|
|
12908
|
+
var _useState15 = React.useState(''),
|
|
12909
|
+
_useState16 = _slicedToArray__default["default"](_useState15, 2);
|
|
12910
|
+
_useState16[0];
|
|
12911
|
+
var setsortbycontext = _useState16[1];
|
|
12912
|
+
var _useState17 = React.useState([{
|
|
12906
12913
|
payloadvalue: 'sortprice',
|
|
12907
12914
|
name: lang.price,
|
|
12908
12915
|
filterarray: [{
|
|
@@ -12927,9 +12934,9 @@ var Filter$1 = function Filter(props) {
|
|
|
12927
12934
|
isfilterselected: false
|
|
12928
12935
|
}]
|
|
12929
12936
|
}]),
|
|
12930
|
-
|
|
12931
|
-
otherfilters =
|
|
12932
|
-
|
|
12937
|
+
_useState18 = _slicedToArray__default["default"](_useState17, 2),
|
|
12938
|
+
otherfilters = _useState18[0];
|
|
12939
|
+
_useState18[1];
|
|
12933
12940
|
React.useEffect(function () {
|
|
12934
12941
|
filterupdater();
|
|
12935
12942
|
}, []);
|
|
@@ -13377,6 +13384,310 @@ var Filter$1 = function Filter(props) {
|
|
|
13377
13384
|
className: "mt-3 mb-3"
|
|
13378
13385
|
})));
|
|
13379
13386
|
};
|
|
13387
|
+
var DynamicFilter = function DynamicFilter() {
|
|
13388
|
+
var _ref, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
13389
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13390
|
+
"class": "row m-0 w-100"
|
|
13391
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13392
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
13393
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13394
|
+
className: ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 ',
|
|
13395
|
+
style: (_ref = {
|
|
13396
|
+
color: sectionproperties.filtertitle_color
|
|
13397
|
+
}, _defineProperty__default["default"](_ref, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty__default["default"](_ref, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty__default["default"](_ref, "color", sectionproperties.filtertitle_color), _ref)
|
|
13398
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13399
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
13400
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
13401
|
+
className: langdetect == 'en' ? ' m-0 p-0 ' : ' m-0 p-0 text-right'
|
|
13402
|
+
}, langdetect == 'en' ? 'Car Brand' : 'الماركة'))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13403
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
13404
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13405
|
+
className: 'col-lg-12 p-0'
|
|
13406
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
13407
|
+
options: [{
|
|
13408
|
+
name: 'Tesla',
|
|
13409
|
+
value: 'Tesla'
|
|
13410
|
+
}, {
|
|
13411
|
+
name: 'VW',
|
|
13412
|
+
value: 'VW'
|
|
13413
|
+
}, {
|
|
13414
|
+
name: 'Mercedes',
|
|
13415
|
+
value: 'Mercedes'
|
|
13416
|
+
}],
|
|
13417
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
13418
|
+
var crname = '';
|
|
13419
|
+
if (langdetect == 'en') {
|
|
13420
|
+
crname = option.name;
|
|
13421
|
+
} else if (langdetect == 'ar') {
|
|
13422
|
+
if (option.name_ar != null) {
|
|
13423
|
+
crname = option.name_ar;
|
|
13424
|
+
} else {
|
|
13425
|
+
crname = option.name;
|
|
13426
|
+
}
|
|
13427
|
+
}
|
|
13428
|
+
return crname;
|
|
13429
|
+
},
|
|
13430
|
+
getOptionValue: function getOptionValue(option) {
|
|
13431
|
+
return option.id;
|
|
13432
|
+
},
|
|
13433
|
+
value: '',
|
|
13434
|
+
onChange: function onChange(option) {},
|
|
13435
|
+
styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
|
|
13436
|
+
isSearchable: true,
|
|
13437
|
+
placeholder: ''
|
|
13438
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13439
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
13440
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13441
|
+
className: ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 ',
|
|
13442
|
+
style: _defineProperty__default["default"]({
|
|
13443
|
+
color: sectionproperties.filtertitle_color,
|
|
13444
|
+
fontSize: sectionproperties.filtertitle_fontsize + 'px',
|
|
13445
|
+
fontWeight: sectionproperties.filtertitle_fontweight
|
|
13446
|
+
}, "color", sectionproperties.filtertitle_color)
|
|
13447
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13448
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
13449
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
13450
|
+
className: langdetect == 'en' ? ' m-0 p-0 ' : ' m-0 p-0 text-right'
|
|
13451
|
+
}, langdetect == 'en' ? 'Car Model' : 'النوع'))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13452
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
13453
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13454
|
+
className: 'col-lg-12 p-0'
|
|
13455
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
13456
|
+
options: [{
|
|
13457
|
+
name: 'ID.4',
|
|
13458
|
+
value: 'ID.4'
|
|
13459
|
+
}, {
|
|
13460
|
+
name: 'ID.6',
|
|
13461
|
+
value: 'ID.6'
|
|
13462
|
+
}],
|
|
13463
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
13464
|
+
var crname = '';
|
|
13465
|
+
if (langdetect == 'en') {
|
|
13466
|
+
crname = option.name;
|
|
13467
|
+
} else if (langdetect == 'ar') {
|
|
13468
|
+
if (option.name_ar != null) {
|
|
13469
|
+
crname = option.name_ar;
|
|
13470
|
+
} else {
|
|
13471
|
+
crname = option.name;
|
|
13472
|
+
}
|
|
13473
|
+
}
|
|
13474
|
+
return crname;
|
|
13475
|
+
},
|
|
13476
|
+
getOptionValue: function getOptionValue(option) {
|
|
13477
|
+
return option.id;
|
|
13478
|
+
},
|
|
13479
|
+
value: '',
|
|
13480
|
+
onChange: function onChange(option) {},
|
|
13481
|
+
styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
|
|
13482
|
+
isSearchable: true,
|
|
13483
|
+
placeholder: ''
|
|
13484
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13485
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
13486
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13487
|
+
className: ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 ',
|
|
13488
|
+
style: (_ref3 = {
|
|
13489
|
+
color: sectionproperties.filtertitle_color
|
|
13490
|
+
}, _defineProperty__default["default"](_ref3, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref3, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty__default["default"](_ref3, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty__default["default"](_ref3, "color", sectionproperties.filtertitle_color), _ref3)
|
|
13491
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13492
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
13493
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
13494
|
+
className: langdetect == 'en' ? ' m-0 p-0 ' : ' m-0 p-0 text-right'
|
|
13495
|
+
}, " ", langdetect == 'en' ? 'Kilometers (From)' : 'كيلومترات (من)'))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13496
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
13497
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13498
|
+
className: 'col-lg-12 p-0'
|
|
13499
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
13500
|
+
options: [{
|
|
13501
|
+
name: '10000',
|
|
13502
|
+
value: '10000'
|
|
13503
|
+
}, {
|
|
13504
|
+
name: '20000',
|
|
13505
|
+
value: '20000'
|
|
13506
|
+
}],
|
|
13507
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
13508
|
+
var crname = '';
|
|
13509
|
+
if (langdetect == 'en') {
|
|
13510
|
+
crname = option.name;
|
|
13511
|
+
} else if (langdetect == 'ar') {
|
|
13512
|
+
if (option.name_ar != null) {
|
|
13513
|
+
crname = option.name_ar;
|
|
13514
|
+
} else {
|
|
13515
|
+
crname = option.name;
|
|
13516
|
+
}
|
|
13517
|
+
}
|
|
13518
|
+
return crname;
|
|
13519
|
+
},
|
|
13520
|
+
getOptionValue: function getOptionValue(option) {
|
|
13521
|
+
return option.id;
|
|
13522
|
+
},
|
|
13523
|
+
value: '',
|
|
13524
|
+
onChange: function onChange(option) {},
|
|
13525
|
+
styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
|
|
13526
|
+
isSearchable: true,
|
|
13527
|
+
placeholder: ''
|
|
13528
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13529
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
13530
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13531
|
+
className: ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 ',
|
|
13532
|
+
style: (_ref4 = {
|
|
13533
|
+
color: sectionproperties.filtertitle_color
|
|
13534
|
+
}, _defineProperty__default["default"](_ref4, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref4, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty__default["default"](_ref4, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty__default["default"](_ref4, "color", sectionproperties.filtertitle_color), _ref4)
|
|
13535
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13536
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
13537
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
13538
|
+
className: langdetect == 'en' ? ' m-0 p-0 ' : ' m-0 p-0 text-right'
|
|
13539
|
+
}, langdetect == 'en' ? 'Kilometers (To)' : 'كيلومترات (الى)'))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13540
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
13541
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13542
|
+
className: 'col-lg-12 p-0'
|
|
13543
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
13544
|
+
options: [{
|
|
13545
|
+
name: '10000',
|
|
13546
|
+
value: '10000'
|
|
13547
|
+
}, {
|
|
13548
|
+
name: '20000',
|
|
13549
|
+
value: '20000'
|
|
13550
|
+
}],
|
|
13551
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
13552
|
+
var crname = '';
|
|
13553
|
+
if (langdetect == 'en') {
|
|
13554
|
+
crname = option.name;
|
|
13555
|
+
} else if (langdetect == 'ar') {
|
|
13556
|
+
if (option.name_ar != null) {
|
|
13557
|
+
crname = option.name_ar;
|
|
13558
|
+
} else {
|
|
13559
|
+
crname = option.name;
|
|
13560
|
+
}
|
|
13561
|
+
}
|
|
13562
|
+
return crname;
|
|
13563
|
+
},
|
|
13564
|
+
getOptionValue: function getOptionValue(option) {
|
|
13565
|
+
return option.id;
|
|
13566
|
+
},
|
|
13567
|
+
value: '',
|
|
13568
|
+
onChange: function onChange(option) {},
|
|
13569
|
+
styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
|
|
13570
|
+
isSearchable: true,
|
|
13571
|
+
placeholder: ''
|
|
13572
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13573
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
13574
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13575
|
+
className: ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 ',
|
|
13576
|
+
style: (_ref5 = {
|
|
13577
|
+
color: sectionproperties.filtertitle_color
|
|
13578
|
+
}, _defineProperty__default["default"](_ref5, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref5, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty__default["default"](_ref5, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty__default["default"](_ref5, "color", sectionproperties.filtertitle_color), _ref5)
|
|
13579
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13580
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
13581
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
13582
|
+
className: langdetect == 'en' ? ' m-0 p-0 ' : ' m-0 p-0 text-right'
|
|
13583
|
+
}, langdetect == 'en' ? 'Year of built (From)' : 'سنة الصنع (من)'))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13584
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
13585
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13586
|
+
className: 'col-lg-12 p-0'
|
|
13587
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
13588
|
+
options: [{
|
|
13589
|
+
name: '2020',
|
|
13590
|
+
value: '2020'
|
|
13591
|
+
}, {
|
|
13592
|
+
name: '2021',
|
|
13593
|
+
value: '2021'
|
|
13594
|
+
}],
|
|
13595
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
13596
|
+
var crname = '';
|
|
13597
|
+
if (langdetect == 'en') {
|
|
13598
|
+
crname = option.name;
|
|
13599
|
+
} else if (langdetect == 'ar') {
|
|
13600
|
+
if (option.name_ar != null) {
|
|
13601
|
+
crname = option.name_ar;
|
|
13602
|
+
} else {
|
|
13603
|
+
crname = option.name;
|
|
13604
|
+
}
|
|
13605
|
+
}
|
|
13606
|
+
return crname;
|
|
13607
|
+
},
|
|
13608
|
+
getOptionValue: function getOptionValue(option) {
|
|
13609
|
+
return option.id;
|
|
13610
|
+
},
|
|
13611
|
+
value: '',
|
|
13612
|
+
onChange: function onChange(option) {},
|
|
13613
|
+
styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
|
|
13614
|
+
isSearchable: true,
|
|
13615
|
+
placeholder: ''
|
|
13616
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13617
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
13618
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13619
|
+
className: ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 ',
|
|
13620
|
+
style: (_ref6 = {
|
|
13621
|
+
color: sectionproperties.filtertitle_color
|
|
13622
|
+
}, _defineProperty__default["default"](_ref6, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref6, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty__default["default"](_ref6, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty__default["default"](_ref6, "color", sectionproperties.filtertitle_color), _ref6)
|
|
13623
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13624
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
13625
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
13626
|
+
className: langdetect == 'en' ? ' m-0 p-0 ' : ' m-0 p-0 text-right'
|
|
13627
|
+
}, langdetect == 'en' ? 'Year of built (To)' : 'سنة الصنع (الى)'))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13628
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
13629
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13630
|
+
className: 'col-lg-12 p-0'
|
|
13631
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select$1, {
|
|
13632
|
+
options: [{
|
|
13633
|
+
name: '2020',
|
|
13634
|
+
value: '2020'
|
|
13635
|
+
}, {
|
|
13636
|
+
name: '2021',
|
|
13637
|
+
value: '2021'
|
|
13638
|
+
}],
|
|
13639
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
13640
|
+
var crname = '';
|
|
13641
|
+
if (langdetect == 'en') {
|
|
13642
|
+
crname = option.name;
|
|
13643
|
+
} else if (langdetect == 'ar') {
|
|
13644
|
+
if (option.name_ar != null) {
|
|
13645
|
+
crname = option.name_ar;
|
|
13646
|
+
} else {
|
|
13647
|
+
crname = option.name;
|
|
13648
|
+
}
|
|
13649
|
+
}
|
|
13650
|
+
return crname;
|
|
13651
|
+
},
|
|
13652
|
+
getOptionValue: function getOptionValue(option) {
|
|
13653
|
+
return option.id;
|
|
13654
|
+
},
|
|
13655
|
+
value: '',
|
|
13656
|
+
onChange: function onChange(option) {},
|
|
13657
|
+
styles: langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated,
|
|
13658
|
+
isSearchable: true,
|
|
13659
|
+
placeholder: ''
|
|
13660
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13661
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
13662
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13663
|
+
className: ' row m-0 p-0 mb-4 pl-md-3 pr-md-3 ',
|
|
13664
|
+
style: (_ref7 = {
|
|
13665
|
+
color: sectionproperties.filtertitle_color
|
|
13666
|
+
}, _defineProperty__default["default"](_ref7, "color", sectionproperties.filtertitle_color), _defineProperty__default["default"](_ref7, "fontSize", sectionproperties.filtertitle_fontsize + 'px'), _defineProperty__default["default"](_ref7, "fontWeight", sectionproperties.filtertitle_fontweight), _defineProperty__default["default"](_ref7, "color", sectionproperties.filtertitle_color), _ref7)
|
|
13667
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13668
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0"
|
|
13669
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
13670
|
+
className: langdetect == 'en' ? ' m-0 p-0 ' : ' m-0 p-0 text-right'
|
|
13671
|
+
}, langdetect == 'en' ? 'Price' : 'السعر'))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13672
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3"
|
|
13673
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13674
|
+
className: 'col-lg-12 p-0 px-md-4',
|
|
13675
|
+
style: {
|
|
13676
|
+
direction: 'ltr'
|
|
13677
|
+
}
|
|
13678
|
+
}, /*#__PURE__*/React__default["default"].createElement(InputRange__default["default"], {
|
|
13679
|
+
draggableTrack: true,
|
|
13680
|
+
formatLabel: function formatLabel(value) {
|
|
13681
|
+
return "".concat(value);
|
|
13682
|
+
},
|
|
13683
|
+
maxValue: parseInt(sectionproperties.filterpricemaxvalue),
|
|
13684
|
+
minValue: parseInt(sectionproperties.filterpriceminvalue),
|
|
13685
|
+
value: pricevalue,
|
|
13686
|
+
onChange: function onChange(value) {
|
|
13687
|
+
setpricevalue(_objectSpread$26({}, value));
|
|
13688
|
+
}
|
|
13689
|
+
})))));
|
|
13690
|
+
};
|
|
13380
13691
|
var InstFilters = function InstFilters() {
|
|
13381
13692
|
return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
13382
13693
|
allowMultipleExpanded: true,
|
|
@@ -13696,10 +14007,10 @@ var Filter$1 = function Filter(props) {
|
|
|
13696
14007
|
isSearchable: true
|
|
13697
14008
|
})))));
|
|
13698
14009
|
};
|
|
13699
|
-
var
|
|
13700
|
-
|
|
13701
|
-
checked =
|
|
13702
|
-
setChecked =
|
|
14010
|
+
var _useState19 = React.useState(false),
|
|
14011
|
+
_useState20 = _slicedToArray__default["default"](_useState19, 2),
|
|
14012
|
+
checked = _useState20[0],
|
|
14013
|
+
setChecked = _useState20[1];
|
|
13703
14014
|
// const queryParameters = new URLSearchParams(window.location.search);
|
|
13704
14015
|
// useEffect(() => {
|
|
13705
14016
|
// // setsortbycontext('Sort By');
|
|
@@ -14030,7 +14341,9 @@ var Filter$1 = function Filter(props) {
|
|
|
14030
14341
|
"class": "row m-0 w-100"
|
|
14031
14342
|
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14032
14343
|
"class": "row m-0 w-100"
|
|
14033
|
-
}, CollectionsFilter()), sectionproperties.
|
|
14344
|
+
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14345
|
+
"class": "row m-0 w-100"
|
|
14346
|
+
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters()))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14034
14347
|
className: "col-lg-12"
|
|
14035
14348
|
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas, {
|
|
14036
14349
|
show: props === null || props === void 0 ? void 0 : props.openFilterSlider,
|
|
@@ -14167,7 +14480,9 @@ var Filter$1 = function Filter(props) {
|
|
|
14167
14480
|
"class": "row m-0 w-100"
|
|
14168
14481
|
}, CategoriesFilter()), sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14169
14482
|
"class": "row m-0 w-100"
|
|
14170
|
-
}, CollectionsFilter()), sectionproperties.
|
|
14483
|
+
}, CollectionsFilter()), sectionproperties.showdynamicfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14484
|
+
"class": "row m-0 w-100"
|
|
14485
|
+
}, DynamicFilter()), sectionproperties.showvariantsfilter == 'Show' && InstFilters())))))));
|
|
14171
14486
|
};
|
|
14172
14487
|
|
|
14173
14488
|
function ownKeys$25(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -47780,7 +48095,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
47780
48095
|
maxWidth: '500px'
|
|
47781
48096
|
}
|
|
47782
48097
|
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47783
|
-
"class": 'col-lg-
|
|
48098
|
+
"class": 'col-lg-11 col-md-12 col-sm-12 allcentered mt-3',
|
|
47784
48099
|
style: {
|
|
47785
48100
|
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
47786
48101
|
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
@@ -47796,13 +48111,13 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
47796
48111
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47797
48112
|
"class": "row m-0 w-100 d-flex align-items-center justify-content-start"
|
|
47798
48113
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47799
|
-
"class": "col-lg-
|
|
48114
|
+
"class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
|
|
47800
48115
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
47801
48116
|
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
47802
48117
|
style: {
|
|
47803
48118
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
47804
48119
|
}
|
|
47805
|
-
}, langdetect == 'en' ? 'Brand' : 'الماركة'), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48120
|
+
}, langdetect == 'en' ? 'Car Brand' : 'الماركة'), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47806
48121
|
"class": 'col-lg-12 p-0'
|
|
47807
48122
|
}, /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
47808
48123
|
options: [{
|
|
@@ -47818,13 +48133,32 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
47818
48133
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
47819
48134
|
placeholder: ''
|
|
47820
48135
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47821
|
-
"class": "col-lg-
|
|
48136
|
+
"class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
|
|
47822
48137
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
47823
48138
|
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
47824
48139
|
style: {
|
|
47825
48140
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
47826
48141
|
}
|
|
47827
|
-
}, langdetect == 'en' ? '
|
|
48142
|
+
}, langdetect == 'en' ? 'Car Model' : 'النوع'), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48143
|
+
"class": 'col-lg-12 p-0'
|
|
48144
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
48145
|
+
options: [{
|
|
48146
|
+
label: 'ID.4',
|
|
48147
|
+
value: 1
|
|
48148
|
+
}, {
|
|
48149
|
+
label: 'ID.6',
|
|
48150
|
+
value: 0
|
|
48151
|
+
}],
|
|
48152
|
+
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
48153
|
+
placeholder: ''
|
|
48154
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48155
|
+
"class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
|
|
48156
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
48157
|
+
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
48158
|
+
style: {
|
|
48159
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
48160
|
+
}
|
|
48161
|
+
}, langdetect == 'en' ? 'Kilometers (From)' : 'كيلومترات (من)'), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47828
48162
|
"class": 'col-lg-12 p-0'
|
|
47829
48163
|
}, /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
47830
48164
|
options: [{
|
|
@@ -47840,13 +48174,35 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
47840
48174
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
47841
48175
|
placeholder: ''
|
|
47842
48176
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47843
|
-
"class": "col-lg-
|
|
48177
|
+
"class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
|
|
47844
48178
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
47845
48179
|
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
47846
48180
|
style: {
|
|
47847
48181
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
47848
48182
|
}
|
|
47849
|
-
}, langdetect == 'en' ? '
|
|
48183
|
+
}, langdetect == 'en' ? 'Kilometers (To)' : 'كيلومترات (الى)'), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48184
|
+
"class": 'col-lg-12 p-0'
|
|
48185
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
48186
|
+
options: [{
|
|
48187
|
+
label: '100000',
|
|
48188
|
+
value: 1
|
|
48189
|
+
}, {
|
|
48190
|
+
label: '50000',
|
|
48191
|
+
value: 0
|
|
48192
|
+
}, {
|
|
48193
|
+
label: '30000',
|
|
48194
|
+
value: 0
|
|
48195
|
+
}],
|
|
48196
|
+
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
48197
|
+
placeholder: ''
|
|
48198
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48199
|
+
"class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
|
|
48200
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
48201
|
+
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
48202
|
+
style: {
|
|
48203
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
48204
|
+
}
|
|
48205
|
+
}, langdetect == 'en' ? 'Year of built (From)' : 'سنة الصنع (من)'), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47850
48206
|
"class": 'col-lg-12 p-0'
|
|
47851
48207
|
}, /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
47852
48208
|
options: [{
|
|
@@ -47862,7 +48218,29 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
47862
48218
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
47863
48219
|
placeholder: ''
|
|
47864
48220
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47865
|
-
|
|
48221
|
+
"class": "col-lg-3 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3"
|
|
48222
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
48223
|
+
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100 ',
|
|
48224
|
+
style: {
|
|
48225
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
48226
|
+
}
|
|
48227
|
+
}, langdetect == 'en' ? 'Year of built (To)' : 'سنة الصنع (الى)'), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48228
|
+
"class": 'col-lg-12 p-0'
|
|
48229
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
48230
|
+
options: [{
|
|
48231
|
+
label: '2023',
|
|
48232
|
+
value: 1
|
|
48233
|
+
}, {
|
|
48234
|
+
label: '2022',
|
|
48235
|
+
value: 0
|
|
48236
|
+
}, {
|
|
48237
|
+
label: '2021',
|
|
48238
|
+
value: 0
|
|
48239
|
+
}],
|
|
48240
|
+
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
48241
|
+
placeholder: ''
|
|
48242
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48243
|
+
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-3 col-md-12 col-sm-12 mb-3 '
|
|
47866
48244
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
47867
48245
|
className: "".concat(sectionstyles.input_label_name) + ' mb-3 w-100',
|
|
47868
48246
|
style: {
|
|
@@ -47885,9 +48263,11 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
47885
48263
|
setpricevalue(_objectSpread$17({}, value));
|
|
47886
48264
|
}
|
|
47887
48265
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47888
|
-
"class": "col-lg-
|
|
47889
|
-
|
|
47890
|
-
|
|
48266
|
+
"class": "col-lg-2 col-md-12 text-end",
|
|
48267
|
+
style: {
|
|
48268
|
+
marginLeft: langdetect == 'en' ? 'auto' : '',
|
|
48269
|
+
marginRight: langdetect == 'ar' ? 'auto' : ''
|
|
48270
|
+
}
|
|
47891
48271
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
47892
48272
|
"class": sectionstyles.btnstyles + ' allcentered ',
|
|
47893
48273
|
onClick: function onClick() {
|