kupos-ui-components-lib 9.1.6 → 9.1.8

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/styles.css CHANGED
@@ -18,6 +18,9 @@
18
18
  .static {
19
19
  position: static;
20
20
  }
21
+ .-top-\[6px\] {
22
+ top: calc(6px * -1);
23
+ }
21
24
  .-top-\[7px\] {
22
25
  top: calc(7px * -1);
23
26
  }
@@ -42,6 +45,9 @@
42
45
  .top-\[24px\] {
43
46
  top: 24px;
44
47
  }
48
+ .top-\[25px\] {
49
+ top: 25px;
50
+ }
45
51
  .top-\[30px\] {
46
52
  top: 30px;
47
53
  }
@@ -63,27 +69,30 @@
63
69
  .-bottom-\[36px\] {
64
70
  bottom: calc(36px * -1);
65
71
  }
66
- .-bottom-\[160px\] {
67
- bottom: calc(160px * -1);
68
- }
69
72
  .-left-\[7px\] {
70
73
  left: calc(7px * -1);
71
74
  }
72
75
  .-left-\[8px\] {
73
76
  left: calc(8px * -1);
74
77
  }
78
+ .-left-\[30px\] {
79
+ left: calc(30px * -1);
80
+ }
75
81
  .left-1\/2 {
76
82
  left: calc(1/2 * 100%);
77
83
  }
78
84
  .left-\[11\%\] {
79
85
  left: 11%;
80
86
  }
87
+ .left-\[30px\] {
88
+ left: 30px;
89
+ }
90
+ .left-\[31px\] {
91
+ left: 31px;
92
+ }
81
93
  .left-\[50\%\] {
82
94
  left: 50%;
83
95
  }
84
- .left-\[80px\] {
85
- left: 80px;
86
- }
87
96
  .-z-9 {
88
97
  z-index: calc(9 * -1);
89
98
  }
@@ -135,6 +144,9 @@
135
144
  .mt-\[3px\] {
136
145
  margin-top: 3px;
137
146
  }
147
+ .mt-\[4px\] {
148
+ margin-top: 4px;
149
+ }
138
150
  .mt-\[5px\] {
139
151
  margin-top: 5px;
140
152
  }
@@ -282,6 +294,9 @@
282
294
  .h-\[24px\] {
283
295
  height: 24px;
284
296
  }
297
+ .h-\[30px\] {
298
+ height: 30px;
299
+ }
285
300
  .h-\[100\%\] {
286
301
  height: 100%;
287
302
  }
@@ -360,9 +375,6 @@
360
375
  .w-\[260px\] {
361
376
  width: 260px;
362
377
  }
363
- .w-\[280px\] {
364
- width: 280px;
365
- }
366
378
  .w-\[auto\] {
367
379
  width: auto;
368
380
  }
@@ -454,6 +466,9 @@
454
466
  .justify-end {
455
467
  justify-content: flex-end;
456
468
  }
469
+ .gap-\[1px\] {
470
+ gap: 1px;
471
+ }
457
472
  .gap-\[2\%\] {
458
473
  gap: 2%;
459
474
  }
@@ -481,6 +496,9 @@
481
496
  .gap-\[12px\] {
482
497
  gap: 12px;
483
498
  }
499
+ .gap-\[14px\] {
500
+ gap: 14px;
501
+ }
484
502
  .gap-x-\[2\%\] {
485
503
  -moz-column-gap: 2%;
486
504
  column-gap: 2%;
@@ -516,6 +534,10 @@
516
534
  border-bottom-right-radius: 10px;
517
535
  border-bottom-left-radius: 10px;
518
536
  }
537
+ .rounded-b-\[13px\] {
538
+ border-bottom-right-radius: 13px;
539
+ border-bottom-left-radius: 13px;
540
+ }
519
541
  .rounded-b-\[14px\] {
520
542
  border-bottom-right-radius: 14px;
521
543
  border-bottom-left-radius: 14px;
@@ -524,9 +546,9 @@
524
546
  border-style: var(--tw-border-style);
525
547
  border-width: 1px;
526
548
  }
527
- .border-\[2px\] {
549
+ .border-\[1px\] {
528
550
  border-style: var(--tw-border-style);
529
- border-width: 2px;
551
+ border-width: 1px;
530
552
  }
531
553
  .border-t {
532
554
  border-top-style: var(--tw-border-style);
@@ -540,6 +562,14 @@
540
562
  border-right-style: var(--tw-border-style);
541
563
  border-right-width: 8px;
542
564
  }
565
+ .border-r-\[7px\] {
566
+ border-right-style: var(--tw-border-style);
567
+ border-right-width: 7px;
568
+ }
569
+ .border-r-\[8px\] {
570
+ border-right-style: var(--tw-border-style);
571
+ border-right-width: 8px;
572
+ }
543
573
  .border-b {
544
574
  border-bottom-style: var(--tw-border-style);
545
575
  border-bottom-width: 1px;
@@ -548,10 +578,26 @@
548
578
  border-bottom-style: var(--tw-border-style);
549
579
  border-bottom-width: 8px;
550
580
  }
581
+ .border-b-\[7px\] {
582
+ border-bottom-style: var(--tw-border-style);
583
+ border-bottom-width: 7px;
584
+ }
585
+ .border-b-\[8px\] {
586
+ border-bottom-style: var(--tw-border-style);
587
+ border-bottom-width: 8px;
588
+ }
551
589
  .border-l-8 {
552
590
  border-left-style: var(--tw-border-style);
553
591
  border-left-width: 8px;
554
592
  }
593
+ .border-l-\[7px\] {
594
+ border-left-style: var(--tw-border-style);
595
+ border-left-width: 7px;
596
+ }
597
+ .border-l-\[8px\] {
598
+ border-left-style: var(--tw-border-style);
599
+ border-left-width: 8px;
600
+ }
555
601
  .border-none {
556
602
  --tw-border-style: none;
557
603
  border-style: none;
@@ -620,6 +666,9 @@
620
666
  .p-\[16px_20px\] {
621
667
  padding: 16px 20px;
622
668
  }
669
+ .p-\[18px\] {
670
+ padding: 18px;
671
+ }
623
672
  .p-\[30px_20px\] {
624
673
  padding: 30px 20px;
625
674
  }
@@ -647,6 +696,9 @@
647
696
  .py-\[6px\] {
648
697
  padding-block: 6px;
649
698
  }
699
+ .py-\[8px\] {
700
+ padding-block: 8px;
701
+ }
650
702
  .py-\[10px\] {
651
703
  padding-block: 10px;
652
704
  }
@@ -737,10 +789,17 @@
737
789
  .text-\[17px\] {
738
790
  font-size: 17px;
739
791
  }
792
+ .text-\[42px\] {
793
+ font-size: 42px;
794
+ }
740
795
  .leading-\[1\.3\] {
741
796
  --tw-leading: 1.3;
742
797
  line-height: 1.3;
743
798
  }
799
+ .leading-none {
800
+ --tw-leading: 1;
801
+ line-height: 1;
802
+ }
744
803
  .font-\[14px\] {
745
804
  --tw-font-weight: 14px;
746
805
  font-weight: 14px;
@@ -1,11 +1,3 @@
1
1
  import React from "react";
2
- declare const RatingBlock: ({ showRating, serviceItem, isSoldOut, colors, t, translation, isPeru, }: {
3
- showRating: any;
4
- serviceItem: any;
5
- isSoldOut: any;
6
- colors: any;
7
- t: any;
8
- translation: any;
9
- isPeru: any;
10
- }) => React.JSX.Element;
2
+ declare const RatingBlock: ({ showRating, serviceItem, isSoldOut, colors, t, translation, isPeru, }: any) => React.JSX.Element;
11
3
  export default RatingBlock;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import RatingHover from "../components/ServiceItem/RatingHover";
3
- const RatingBlock = ({ showRating, serviceItem, isSoldOut, colors, t, translation, isPeru, }) => (React.createElement("div", { className: "flex items-center whitespace-nowrap" },
3
+ const RatingBlock = ({ showRating, serviceItem, isSoldOut, colors, t, translation, isPeru = false, }) => (React.createElement("div", { className: "flex items-center whitespace-nowrap" },
4
4
  showRating && (React.createElement(RatingHover, { serviceItem: serviceItem, isSoldOut: isSoldOut, colors: colors, t: t, translation: translation, isPeru: isPeru })),
5
5
  React.createElement("div", { className: "group relative ml-[10px] text-[13.33px]", style: {
6
6
  marginLeft: showRating ? "10px" : "0",
@@ -9,13 +9,7 @@ function BottomAmenitiesMobile({ isSoldOut, amenitiesNodes, hoursIcon, duration,
9
9
  "\u00A0",
10
10
  React.createElement("div", { className: `cursor-default group min-[420]:text-[13px] text-[12px] ${isSoldOut ? "text-[#c0c0c0]" : ""}`, style: { lineHeight: "normal" } },
11
11
  duration,
12
- "hrs")),
13
- isDirectTrip && (React.createElement("div", { className: `flex items-center gap-[2px] text-white min-[420]:text-[12px] text-[10px] z-20 `, style: {
14
- // backgroundColor: isSoldOut ? "#ddd" : colors.tooltipBgColor,
15
- color: isSoldOut ? "#bbb" : directoColor,
16
- } },
17
- React.createElement(LottiePlayer, { animationData: directoAnim, width: "14px", height: "14px" }),
18
- React.createElement("div", { className: "ml-[5px]" }, "Directo")))),
12
+ "hrs"))),
19
13
  React.createElement("div", { className: "flex items-center" },
20
14
  React.createElement("div", null, (isChangeTicket || isPetSeat) && (React.createElement("div", { className: "flex items-center" },
21
15
  petSeatInfo && Object.keys(petSeatInfo).length > 0 ? (React.createElement("div", { className: "flex items-center" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "9.1.6",
3
+ "version": "9.1.8",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1 +1 @@
1
- {"nm":"Main Scene","ddd":0,"h":500,"w":500,"meta":{"g":"@lottiefiles/creator 1.86.1"},"layers":[{"ty":4,"nm":"Shape Layer - SVG","sr":1,"st":0,"op":90,"ip":0,"hd":false,"ln":"Capa_1","ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[38.5,32.5]},"s":{"a":0,"k":[596.2908,596.2908]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[103.191,249.995],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[103.191,249.995],"t":24},{"s":[221.8237,249.9635],"t":39}]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":24},{"s":[100],"t":30}]}},"shapes":[{"ty":"gr","bm":0,"hd":false,"nm":"Group 1","it":[{"ty":"sh","bm":0,"hd":false,"nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0.2699999999999996,0.37000000000000455],[-0.5899999999999999,0.759999999999998],[0,0],[0,0],[0,0.5100000000000002],[-0.2700000000000031,0.3600000000000001],[-0.39000000000000057,0],[-0.2699999999999996,-0.37000000000000005],[0,0],[0.5700000000000003,-0.759999999999998],[0,0],[0.39000000000000057,0]],"o":[[-0.39000000000000057,0],[-0.5700000000000003,-0.75],[0,0],[0,0],[-0.28000000000000114,-0.33999999999999986],[0,-0.5100000000000002],[0.28000000000000114,-0.36],[0.39000000000000057,0],[0,0],[0.5700000000000003,0.75],[0,0],[-0.28000000000000114,0.35999999999999943],[0,0]],"v":[[26.98,65],[25.96,64.44],[25.96,61.71],[48.010000000000005,32.269999999999996],[25.94,3.28],[25.52,1.9299999999999997],[25.94,0.5599999999999996],[26.98,-4.440892098500626e-16],[28,0.5599999999999996],[51.07,30.88],[51.07,33.61],[28.01,64.43],[26.970000000000002,65.01]]}}},{"ty":"st","bm":0,"hd":false,"nm":"Stroke","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100},"w":{"a":0,"k":0.87},"c":{"a":0,"k":[0.2745,0.2745,0.2784]}},{"ty":"fl","bm":0,"hd":false,"nm":"Fill","c":{"a":0,"k":[0.2745,0.2745,0.2784]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[0,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]}],"ind":1},{"ty":4,"nm":"Shape Layer - SVG 1","sr":1,"st":0,"op":90,"ip":0,"hd":false,"ln":"Capa_1","ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[38.5,32.5]},"s":{"a":0,"k":[596.2908,596.2908]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[80.0835,249.995],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[80.0835,249.995],"t":2},{"s":[395.1269,249.9635],"t":24}]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[100],"t":4}]}},"shapes":[{"ty":"gr","bm":0,"hd":false,"nm":"Group 1","it":[{"ty":"sh","bm":0,"hd":false,"nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0.2699999999999996,0.37000000000000455],[-0.5899999999999999,0.759999999999998],[0,0],[0,0],[0,0.5100000000000002],[-0.2700000000000031,0.3600000000000001],[-0.39000000000000057,0],[-0.2699999999999996,-0.37000000000000005],[0,0],[0.5700000000000003,-0.759999999999998],[0,0],[0.39000000000000057,0]],"o":[[-0.39000000000000057,0],[-0.5700000000000003,-0.75],[0,0],[0,0],[-0.28000000000000114,-0.33999999999999986],[0,-0.5100000000000002],[0.28000000000000114,-0.36],[0.39000000000000057,0],[0,0],[0.5700000000000003,0.75],[0,0],[-0.28000000000000114,0.35999999999999943],[0,0]],"v":[[26.98,65],[25.96,64.44],[25.96,61.71],[48.010000000000005,32.269999999999996],[25.94,3.28],[25.52,1.9299999999999997],[25.94,0.5599999999999996],[26.98,-4.440892098500626e-16],[28,0.5599999999999996],[51.07,30.88],[51.07,33.61],[28.01,64.43],[26.970000000000002,65.01]]}}},{"ty":"st","bm":0,"hd":false,"nm":"Stroke","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100},"w":{"a":0,"k":0.87},"c":{"a":0,"k":[0.2745,0.2745,0.2784]}},{"ty":"fl","bm":0,"hd":false,"nm":"Fill","c":{"a":0,"k":[0.2745,0.2745,0.2784]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[0,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]}],"ind":2}],"v":"5.7.0","fr":30,"op":90,"ip":0,"assets":[]}
1
+ {"nm":"Main Scene","ddd":0,"h":500,"w":500,"meta":{"g":"@lottiefiles/creator 1.25.0"},"layers":[{"ty":0,"nm":" Main Scene","sr":1,"st":0,"op":90,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[250,250]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[250,250]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}},"w":500,"h":500,"refId":"precomp_Main Scene_c6717324-fe11-4912-8421-1a94a5c0a552","ind":1}],"v":"5.7.0","fr":30,"op":90,"ip":0,"assets":[{"nm":"Main Scene","id":"precomp_Main Scene_c6717324-fe11-4912-8421-1a94a5c0a552","layers":[{"ty":4,"nm":"Shape Layer - SVG","sr":1,"st":0,"op":90,"ip":0,"hd":false,"ln":"Capa_1","ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[38.5,32.5]},"s":{"a":0,"k":[596.2908,596.2908]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[103.191,249.995],"t":24},{"s":[221.8237,249.9635],"t":39}]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":24},{"s":[100],"t":30}]}},"shapes":[{"ty":"gr","bm":0,"hd":false,"nm":"Group 1","it":[{"ty":"sh","bm":0,"hd":false,"nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0.2699999999999996,0.37000000000000455],[-0.5899999999999999,0.759999999999998],[0,0],[0,0],[0,0.5100000000000002],[-0.2700000000000031,0.3600000000000001],[-0.39000000000000057,0],[-0.2699999999999996,-0.37000000000000005],[0,0],[0.5700000000000003,-0.759999999999998],[0,0],[0.39000000000000057,0]],"o":[[-0.39000000000000057,0],[-0.5700000000000003,-0.75],[0,0],[0,0],[-0.28000000000000114,-0.33999999999999986],[0,-0.5100000000000002],[0.28000000000000114,-0.36],[0.39000000000000057,0],[0,0],[0.5700000000000003,0.75],[0,0],[-0.28000000000000114,0.35999999999999943],[0,0]],"v":[[26.98,65],[25.96,64.44],[25.96,61.71],[48.010000000000005,32.269999999999996],[25.94,3.28],[25.52,1.9299999999999997],[25.94,0.5599999999999996],[26.98,-4.440892098500626e-16],[28,0.5599999999999996],[51.07,30.88],[51.07,33.61],[28.01,64.43],[26.970000000000002,65.01]]}}},{"ty":"st","bm":0,"hd":false,"nm":"Stroke","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100},"w":{"a":0,"k":0.87},"c":{"a":0,"k":[1,1,1]}},{"ty":"fl","bm":0,"hd":false,"nm":"Fill","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[0,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]}],"ind":1},{"ty":4,"nm":"Shape Layer - SVG 1","sr":1,"st":0,"op":90,"ip":0,"hd":false,"ln":"Capa_1","ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[38.5,32.5]},"s":{"a":0,"k":[596.2908,596.2908]},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[80.0835,249.995],"t":2},{"s":[395.1269,249.9635],"t":24}]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[100],"t":4}]}},"shapes":[{"ty":"gr","bm":0,"hd":false,"nm":"Group 1","it":[{"ty":"sh","bm":0,"hd":false,"nm":"Path 1","d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0.2699999999999996,0.37000000000000455],[-0.5899999999999999,0.759999999999998],[0,0],[0,0],[0,0.5100000000000002],[-0.2700000000000031,0.3600000000000001],[-0.39000000000000057,0],[-0.2699999999999996,-0.37000000000000005],[0,0],[0.5700000000000003,-0.759999999999998],[0,0],[0.39000000000000057,0]],"o":[[-0.39000000000000057,0],[-0.5700000000000003,-0.75],[0,0],[0,0],[-0.28000000000000114,-0.33999999999999986],[0,-0.5100000000000002],[0.28000000000000114,-0.36],[0.39000000000000057,0],[0,0],[0.5700000000000003,0.75],[0,0],[-0.28000000000000114,0.35999999999999943],[0,0]],"v":[[26.98,65],[25.96,64.44],[25.96,61.71],[48.010000000000005,32.269999999999996],[25.94,3.28],[25.52,1.9299999999999997],[25.94,0.5599999999999996],[26.98,-4.440892098500626e-16],[28,0.5599999999999996],[51.07,30.88],[51.07,33.61],[28.01,64.43],[26.970000000000002,65.01]]}}},{"ty":"st","bm":0,"hd":false,"nm":"Stroke","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100},"w":{"a":0,"k":0.87},"c":{"a":0,"k":[1,1,1]}},{"ty":"fl","bm":0,"hd":false,"nm":"Fill","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[0,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]}],"ind":2}]}]}
@@ -1,4 +1,4 @@
1
- import React, { useEffect } from "react";
1
+ import React from "react";
2
2
  import { FilterBarProps } from "./tyoes";
3
3
  import commonService from "../../utils/CommonService";
4
4
  import ServiceFilter from "./ServiceFilter";
@@ -25,7 +25,50 @@ const FilterBarDesktop = ({
25
25
  hideOperator,
26
26
  setCoachLoading,
27
27
  setCoachKey,
28
+ isAllinBus,
28
29
  }: FilterBarProps) => {
30
+ const getEnrichedFilters = () => {
31
+ if (!isAllinBus || !allSchedules?.length) return filtersArray;
32
+
33
+ const hasSpecialDeparture = filtersArray.some(
34
+ (f: any) => f.type === "special_departure" && f.options?.length > 0,
35
+ );
36
+ if (hasSpecialDeparture) return filtersArray;
37
+
38
+ const stageMap = new Map<string, string>();
39
+ allSchedules.forEach((schedule: any) => {
40
+ if (schedule.stage_details_arr?.length) {
41
+ const stageObj = schedule.stage_details_arr[0];
42
+ const stageId = Object.keys(stageObj)[0];
43
+ const stageName = stageObj[stageId]?.[0]?.split(", ")[0];
44
+ if (stageId && stageName) {
45
+ stageMap.set(stageId, stageName);
46
+ }
47
+ }
48
+ });
49
+
50
+ if (stageMap.size === 0) return filtersArray;
51
+
52
+ const specialDeptOptions = Array.from(stageMap.entries()).map(
53
+ ([id, name]) => ({
54
+ label: name,
55
+ value: id,
56
+ active: false,
57
+ }),
58
+ );
59
+
60
+ return [
61
+ ...filtersArray,
62
+ {
63
+ type: "special_departure",
64
+ title: "SPECIAL_DEPARTURE",
65
+ options: specialDeptOptions,
66
+ },
67
+ ];
68
+ };
69
+
70
+ const enrichedFilters = getEnrichedFilters();
71
+
29
72
  const filterBy = (filters) => {
30
73
  try {
31
74
  let routes = allSchedules;
@@ -213,7 +256,7 @@ const FilterBarDesktop = ({
213
256
  const onFilterSelected = (key: number, i: number) => {
214
257
  setCoachLoading(null);
215
258
  setCoachKey(null);
216
- let filters = commonService.copyObject(filtersArray);
259
+ let filters = commonService.copyObject(enrichedFilters);
217
260
  filters[key].options[i].active = !filters[key].options[i].active;
218
261
  filterBy(filters);
219
262
  setFiltersArray(filters);
@@ -221,7 +264,7 @@ const FilterBarDesktop = ({
221
264
 
222
265
  return (
223
266
  <ServiceFilter
224
- filtersArray={filtersArray}
267
+ filtersArray={enrichedFilters}
225
268
  onFilterSelected={onFilterSelected}
226
269
  onFilterClear={(val) => {
227
270
  setFiltersArray(val);
@@ -34,5 +34,6 @@ export interface FilterBarProps {
34
34
  isPeru?: boolean;
35
35
  setCoachLoading?: any;
36
36
  setCoachKey?: any;
37
+ isAllinBus?: boolean;
37
38
 
38
39
  }