@odynn/awayz-core 0.6.7 → 0.6.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/{AccountService-CPWv4uJS.js → AccountService-DSlN1q1q.js} +1 -1
- package/dist/{TripsService-CCdhF5uK.js → TripsService-BWc1KjO6.js} +2 -2
- package/dist/{_commonjsHelpers-B52_cu2H.js → _commonjsHelpers-MdHo5S7N.js} +2 -2
- package/dist/{arrayExtensions--Llcg40q.js → arrayExtensions-DlcBOj5a.js} +1 -1
- package/dist/cashUtils-BMWAlTGM.js +33 -0
- package/dist/components/Bookings/FlightBooking/FlightBooking.js +1 -1
- package/dist/components/Bookings/HotelBooking/HotelBooking.js +1 -1
- package/dist/components/CashValue/CashValue.js +330 -351
- package/dist/components/CashValue/CashValue.stories.js +2 -2
- package/dist/components/Menu/Menu.js +2 -2
- package/dist/components/Wallet/Card/Card.js +1 -1
- package/dist/components/Wallet/Card/Card.stories.js +2 -2
- package/dist/hooks/useAwayzAuth/useAwayzAuth.js +5 -5
- package/dist/hooks/useBookingManagement/useBookingManagement.js +4 -5
- package/dist/hooks/useBookingManagement/useBookingManagement.test.js +2 -3
- package/dist/hooks/useSearchLimit.js +2 -2
- package/dist/hooks/useTripManagement/useTripManagement.js +13 -14
- package/dist/hooks/useTripManagement/useTripManagement.test.js +3 -4
- package/dist/hooks/useWallet/useWallet.js +8 -9
- package/dist/hooks/useWallet/useWallet.test.js +2 -3
- package/dist/{index-C135U4OR.js → index-BC-KTkxU.js} +1 -1
- package/dist/{index-B7QVGqcx.js → index-Cv-wvFlM.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/providers/AwayzProvider.js +2 -2
- package/dist/services/account/AccountService.js +2 -2
- package/dist/services/bookings/BookingService.js +2 -2
- package/dist/services/currency/CurrencyService.js +4 -5
- package/dist/services/index.js +1 -1
- package/dist/services/instance.js +2 -2
- package/dist/services/instanceConfig.js +2 -2
- package/dist/services/noRetryInstance.js +1 -1
- package/dist/services/preferences/PreferencesService.js +1 -1
- package/dist/services/rewards/RewardsService.js +2 -2
- package/dist/services/trips/TripsService.js +3 -3
- package/dist/services/wallet/WalletService.js +2 -2
- package/dist/tests/TestWrapper.js +2 -2
- package/package.json +1 -2
- package/dist/currency-symbol-map-RM3-TVyB.js +0 -211
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var lt = Object.defineProperty;
|
|
2
2
|
var ft = (e, t, n) => t in e ? lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var U = (e, t, n) => ft(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import "./arrayExtensions
|
|
4
|
+
import "./arrayExtensions-DlcBOj5a.js";
|
|
5
5
|
import { a as L } from "./keys-D66VvSIm.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { getBaseUrl as qe } from "./configs/baseUrl.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _ = Object.defineProperty;
|
|
2
2
|
var g = (a, e, s) => e in a ? _(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
|
|
3
3
|
var r = (a, e, s) => g(a, typeof e != "symbol" ? e + "" : e, s);
|
|
4
|
-
import "./arrayExtensions
|
|
5
|
-
import { c as n, f as p, a as o, r as T } from "./AccountService-
|
|
4
|
+
import "./arrayExtensions-DlcBOj5a.js";
|
|
5
|
+
import { c as n, f as p, a as o, r as T } from "./AccountService-DSlN1q1q.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { EMyTripsEndpoints as i } from "./configs/endpoints.js";
|
|
8
8
|
import { EBookingType as m } from "./services/trips/TripService.types.js";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const c = (r, t) => {
|
|
2
|
+
var e = new Intl.NumberFormat("en-US", {
|
|
3
|
+
style: "currency",
|
|
4
|
+
currency: t ?? "USD"
|
|
5
|
+
});
|
|
6
|
+
if (!r) return e.format(0);
|
|
7
|
+
const n = parseFloat(r.toString());
|
|
8
|
+
return e.format(n);
|
|
9
|
+
}, a = (r, t) => {
|
|
10
|
+
var e = new Intl.NumberFormat("en-US", {
|
|
11
|
+
style: "currency",
|
|
12
|
+
currency: t ?? "USD"
|
|
13
|
+
});
|
|
14
|
+
return e.format(Math.round(r)).toString().split(".")[0];
|
|
15
|
+
}, m = (r, t, e = 0) => {
|
|
16
|
+
const n = parseFloat((r == null ? void 0 : r.toString()) || "0");
|
|
17
|
+
return new Intl.NumberFormat("en-US", {
|
|
18
|
+
style: "currency",
|
|
19
|
+
currency: t ?? "USD",
|
|
20
|
+
maximumFractionDigits: e
|
|
21
|
+
}).format(isNaN(n) ? 0 : n);
|
|
22
|
+
}, i = (r, t = "en") => 0 .toLocaleString(t, {
|
|
23
|
+
style: "currency",
|
|
24
|
+
currency: r,
|
|
25
|
+
minimumFractionDigits: 0,
|
|
26
|
+
maximumFractionDigits: 0
|
|
27
|
+
}).replace(/\d/g, "").trim();
|
|
28
|
+
export {
|
|
29
|
+
a,
|
|
30
|
+
c as b,
|
|
31
|
+
m as c,
|
|
32
|
+
i as g
|
|
33
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { h as t } from "../../../arrayExtensions
|
|
2
|
+
import { h as t } from "../../../arrayExtensions-DlcBOj5a.js";
|
|
3
3
|
import { E as o } from "../../../DateFormats-DZD30Nea.js";
|
|
4
4
|
import { E as r } from "../../../keys-D66VvSIm.js";
|
|
5
5
|
import "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as e, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { G as g } from "../../../index-CDh8vAM_.js";
|
|
3
|
-
import { h as k } from "../../../arrayExtensions
|
|
3
|
+
import { h as k } from "../../../arrayExtensions-DlcBOj5a.js";
|
|
4
4
|
import { E as N } from "../../../DateFormats-DZD30Nea.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import '../../../assets/_styles4.css';/* empty css */
|