kupos-ui-components-lib 10.4.53 → 10.4.55

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.
@@ -168,7 +168,7 @@ function PeruServiceItemDesktop({ serviceItem, onBookButtonPress, colors, metaDa
168
168
  };
169
169
  // Seat type icon logic
170
170
  const getSeatTypeIcon = (seatLabel) => {
171
- var _a, _b, _c, _d;
171
+ var _a, _b, _c, _d, _e;
172
172
  // Icon keys follow the seat{degrees}Icon format in serviceItem.icons
173
173
  if (seatLabel.includes("180°"))
174
174
  return (_a = serviceItem.icons) === null || _a === void 0 ? void 0 : _a.seat180Icon;
@@ -176,7 +176,9 @@ function PeruServiceItemDesktop({ serviceItem, onBookButtonPress, colors, metaDa
176
176
  return (_b = serviceItem.icons) === null || _b === void 0 ? void 0 : _b.seat160Icon;
177
177
  if (seatLabel.includes("140°"))
178
178
  return (_c = serviceItem.icons) === null || _c === void 0 ? void 0 : _c.seat140Icon;
179
- return (_d = serviceItem.icons) === null || _d === void 0 ? void 0 : _d.seatFallBackIcon;
179
+ if (seatLabel.includes("145°"))
180
+ return (_d = serviceItem.icons) === null || _d === void 0 ? void 0 : _d.seat145Icon;
181
+ return (_e = serviceItem.icons) === null || _e === void 0 ? void 0 : _e.seatFallBackIcon;
180
182
  };
181
183
  const getSeatNames = () => {
182
184
  const uniqueSeats = getUniqueSeats();
@@ -497,14 +497,11 @@ export const PaymentCardMobile = (props) => {
497
497
  ? Math.round(Math.max(0, ((removeDiscountAtomValue
498
498
  ? 0
499
499
  : (netFare !== null && netFare !== void 0 ? netFare : 0)) -
500
- (walletMoney !== null && walletMoney !== void 0 ? walletMoney : 0) -
501
- (virtualMoney !== null && virtualMoney !== void 0 ? virtualMoney : 0)) *
500
+ (walletMoney !== null && walletMoney !== void 0 ? walletMoney : 0)) *
502
501
  100)) / 100
503
502
  : removeDiscountAtomValue
504
503
  ? 0
505
- : Math.max(0, (netFare !== null && netFare !== void 0 ? netFare : 0) -
506
- (walletMoney !== null && walletMoney !== void 0 ? walletMoney : 0) -
507
- (virtualMoney !== null && virtualMoney !== void 0 ? virtualMoney : 0)), currencySign))))));
504
+ : Math.max(0, (netFare !== null && netFare !== void 0 ? netFare : 0) - (walletMoney !== null && walletMoney !== void 0 ? walletMoney : 0)), currencySign))))));
508
505
  } }),
509
506
  React.createElement("div", { style: {
510
507
  display: "flex",
@@ -60,7 +60,7 @@ function hasInclinationSeatTypes(seatTypes) {
60
60
  return (seatTypes !== null && seatTypes !== void 0 ? seatTypes : []).some((seat) => { var _a; return String((_a = seat === null || seat === void 0 ? void 0 : seat.label) !== null && _a !== void 0 ? _a : "").includes("°"); });
61
61
  }
62
62
  function getSeatTypeIcon(label, serviceItem) {
63
- var _a, _b, _c, _d;
63
+ var _a, _b, _c, _d, _e;
64
64
  const seatLabel = String(label !== null && label !== void 0 ? label : "");
65
65
  if (seatLabel.includes("180°"))
66
66
  return (_a = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _a === void 0 ? void 0 : _a.seat180Icon;
@@ -68,7 +68,9 @@ function getSeatTypeIcon(label, serviceItem) {
68
68
  return (_b = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _b === void 0 ? void 0 : _b.seat160Icon;
69
69
  if (seatLabel.includes("140°"))
70
70
  return (_c = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _c === void 0 ? void 0 : _c.seat140Icon;
71
- return (_d = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _d === void 0 ? void 0 : _d.seatFallBackIcon;
71
+ if (seatLabel.includes("145°"))
72
+ return (_d = serviceItem.icons) === null || _d === void 0 ? void 0 : _d.seat145Icon;
73
+ return (_e = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _e === void 0 ? void 0 : _e.seatFallBackIcon;
72
74
  }
73
75
  function PeruSeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currencySign, removeDuplicateSeats, serviceItem, renderIcon, discountSeatPriceColor, isSeatIcon, }) {
74
76
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "10.4.53",
3
+ "version": "10.4.55",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -263,6 +263,7 @@ function PeruServiceItemDesktop({
263
263
  if (seatLabel.includes("180°")) return serviceItem.icons?.seat180Icon;
264
264
  if (seatLabel.includes("160°")) return serviceItem.icons?.seat160Icon;
265
265
  if (seatLabel.includes("140°")) return serviceItem.icons?.seat140Icon;
266
+ if (seatLabel.includes("145°")) return serviceItem.icons?.seat145Icon;
266
267
 
267
268
  return serviceItem.icons?.seatFallBackIcon;
268
269
  };
@@ -969,19 +969,13 @@ export const PaymentCardMobile: React.FC<PaymentSideBarProps> = (props) => {
969
969
  ((removeDiscountAtomValue
970
970
  ? 0
971
971
  : (netFare ?? 0)) -
972
- (walletMoney ?? 0) -
973
- (virtualMoney ?? 0)) *
972
+ (walletMoney ?? 0)) *
974
973
  100,
975
974
  ),
976
975
  ) / 100
977
976
  : removeDiscountAtomValue
978
977
  ? 0
979
- : Math.max(
980
- 0,
981
- (netFare ?? 0) -
982
- (walletMoney ?? 0) -
983
- (virtualMoney ?? 0),
984
- ),
978
+ : Math.max(0, (netFare ?? 0) - (walletMoney ?? 0)),
985
979
  currencySign,
986
980
  )}
987
981
  </span>
@@ -105,6 +105,7 @@ function getSeatTypeIcon(label: string, serviceItem: any) {
105
105
  if (seatLabel.includes("180°")) return serviceItem?.icons?.seat180Icon;
106
106
  if (seatLabel.includes("160°")) return serviceItem?.icons?.seat160Icon;
107
107
  if (seatLabel.includes("140°")) return serviceItem?.icons?.seat140Icon;
108
+ if (seatLabel.includes("145°")) return serviceItem.icons?.seat145Icon;
108
109
  return serviceItem?.icons?.seatFallBackIcon;
109
110
  }
110
111