kupos-ui-components-lib 9.11.6 → 9.11.7

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.
@@ -73,7 +73,8 @@ function SeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currenc
73
73
  };
74
74
  const renderSeatPrices = () => {
75
75
  if (isPeru) {
76
- const isMovilBus = (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.operator_service_name) === "MovilBus" || "Movil Bus";
76
+ const isMovilBus = (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.operator_service_name) === "MovilBus" ||
77
+ (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.operator_service_name) === "Movil Bus";
77
78
  // Multiple unique seat types → show a price row for each (MovilBus only)
78
79
  if (isMovilBus && uniqueSeats.length > 1) {
79
80
  return uniqueSeats
@@ -141,7 +142,8 @@ function SeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currenc
141
142
  })();
142
143
  const renderLabels = () => {
143
144
  if (isPeru) {
144
- const isMovilBus = (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.operator_service_name) === "MovilBus" || "Movil Bus";
145
+ const isMovilBus = (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.operator_service_name) === "MovilBus" ||
146
+ (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.operator_service_name) === "Movil Bus";
145
147
  // Multiple unique seat types → show a label row for each (MovilBus only)
146
148
  if (isMovilBus && uniqueSeats.length > 1) {
147
149
  return uniqueSeats
@@ -64,7 +64,8 @@ function SeatSectionMobile({ seatTypes: seatTypesData, isSoldOut, isPeru, seatPr
64
64
  if (lowestFare === null)
65
65
  return null;
66
66
  const priceColor = isSoldOut ? "#bbb" : seatPriceColor;
67
- const isMovilBus = (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.operator_service_name) === "MovilBus" || "Movil Bus";
67
+ const isMovilBus = (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.operator_service_name) === "MovilBus" ||
68
+ (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.operator_service_name) === "Movil Bus";
68
69
  // Fetch ALL unique seats (no slice limit) for the multi-row MovilBus case
69
70
  const uniqueSeats = getUniqueSeats(seatTypesData !== null && seatTypesData !== void 0 ? seatTypesData : [], Infinity);
70
71
  // MovilBus + multiple unique seat types → render a row per seat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "9.11.6",
3
+ "version": "9.11.7",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -139,7 +139,8 @@ function SeatSection({
139
139
  const renderSeatPrices = () => {
140
140
  if (isPeru) {
141
141
  const isMovilBus =
142
- serviceItem?.operator_service_name === "MovilBus" || "Movil Bus";
142
+ serviceItem?.operator_service_name === "MovilBus" ||
143
+ serviceItem?.operator_service_name === "Movil Bus";
143
144
 
144
145
  // Multiple unique seat types → show a price row for each (MovilBus only)
145
146
  if (isMovilBus && uniqueSeats.length > 1) {
@@ -260,7 +261,8 @@ function SeatSection({
260
261
  const renderLabels = () => {
261
262
  if (isPeru) {
262
263
  const isMovilBus =
263
- serviceItem?.operator_service_name === "MovilBus" || "Movil Bus";
264
+ serviceItem?.operator_service_name === "MovilBus" ||
265
+ serviceItem?.operator_service_name === "Movil Bus";
264
266
 
265
267
  // Multiple unique seat types → show a label row for each (MovilBus only)
266
268
  if (isMovilBus && uniqueSeats.length > 1) {
@@ -150,7 +150,8 @@ function SeatSectionMobile({
150
150
 
151
151
  const priceColor = isSoldOut ? "#bbb" : seatPriceColor;
152
152
  const isMovilBus =
153
- serviceItem?.operator_service_name === "MovilBus" || "Movil Bus";
153
+ serviceItem?.operator_service_name === "MovilBus" ||
154
+ serviceItem?.operator_service_name === "Movil Bus";
154
155
 
155
156
  // Fetch ALL unique seats (no slice limit) for the multi-row MovilBus case
156
157
  const uniqueSeats = getUniqueSeats(seatTypesData ?? [], Infinity as number);