@odynn/awayz-core 0.5.10 → 0.5.12
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-C-V8tiGr.js → AccountService-BXmufsEA.js} +145 -145
- package/dist/{TripsService-Be2PKzKx.js → TripsService-DmFzLQDt.js} +1 -1
- package/dist/components/CashValue/CashValue.js +229 -225
- package/dist/components/CashValue/CashValue.stories.js +1 -1
- package/dist/components/Wallet/Card/Card.stories.js +1 -1
- package/dist/hooks/useAwayzAuth/useAwayzAuth.js +1 -1
- package/dist/hooks/useBookingManagement/useBookingManagement.js +1 -1
- package/dist/hooks/useBookingManagement/useBookingManagement.test.js +1 -1
- package/dist/hooks/useSearchLimit.js +1 -1
- package/dist/hooks/useTripManagement/useTripManagement.js +2 -2
- package/dist/hooks/useTripManagement/useTripManagement.test.js +5 -5
- package/dist/hooks/useWallet/useWallet.js +1 -1
- package/dist/hooks/useWallet/useWallet.test.js +1 -1
- package/dist/lib/components/CashValue/CashValue.d.ts +6 -1
- package/dist/lib/components/CashValue/CashValue.stories.d.ts +1 -1
- package/dist/main.js +1 -1
- package/dist/providers/AwayzProvider.js +1 -1
- package/dist/services/account/AccountService.js +1 -1
- package/dist/services/bookings/BookingService.js +1 -1
- package/dist/services/currency/CurrencyService.js +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/instance.js +1 -1
- package/dist/services/instanceConfig.js +1 -1
- package/dist/services/noRetryInstance.js +1 -1
- package/dist/services/preferences/PreferencesService.js +1 -1
- package/dist/services/rewards/RewardsService.js +1 -1
- package/dist/services/trips/TripsService.js +2 -2
- package/dist/services/wallet/WalletService.js +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ 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
4
|
import "./arrayExtensions-DlcBOj5a.js";
|
|
5
|
-
import { E as
|
|
5
|
+
import { E as L } from "./keys-DcSEucOc.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { getBaseUrl as qe } from "./configs/baseUrl.js";
|
|
8
8
|
import { EAuthEndpoints as O } from "./configs/endpoints.js";
|
|
@@ -11,9 +11,9 @@ import { awayzClient as W } from "./configs/awayzClient.js";
|
|
|
11
11
|
function pt(e) {
|
|
12
12
|
return e = e.replace(/^_+/, ""), e.replace(/_([a-z])/g, (t, n) => n.toUpperCase());
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const F = (e) => Array.isArray(e) ? e.map((t) => F(t)) : typeof e == "object" && e !== null ? Object.keys(e).reduce((t, n) => {
|
|
15
15
|
const r = pt(n);
|
|
16
|
-
return t[r] =
|
|
16
|
+
return t[r] = F(e[n]), t;
|
|
17
17
|
}, {}) : e;
|
|
18
18
|
function ht(e) {
|
|
19
19
|
return e.replace(/([A-Z])/g, "_$1").toLowerCase();
|
|
@@ -24,7 +24,7 @@ const ge = (e) => Array.isArray(e) ? e.map((t) => ge(t)) : typeof e == "object"
|
|
|
24
24
|
}, {}) : e, fr = (e) => (Object.keys(e).forEach(
|
|
25
25
|
(t) => !e[t] && delete e[t]
|
|
26
26
|
), e);
|
|
27
|
-
var $ = /* @__PURE__ */ ((e) => (e.LOCATIONS = "LOCATIONS", e.CHECK_USER = "CHECK_USER", e.USER_REGIONS = "USER_REGIONS", e.CONVERT_CURRENCY = "CONVERT_CURRENCY", e.CLIENT_COMPONENT_KEY = "CLIENT_COMPONENT_KEY", e.SEARCH_LIMIT = "SEARCH_LIMIT", e.PROGRAMS = "PROGRAMS", e.USER_PROGRAMS = "USER_PROGRAMS", e.LINKED_USER_PROGRAMS = "LINKED_USER_PROGRAMS", e.BANKS = "BANKS", e.CARDS = "CARDS", e.USER_CARDS = "USER_CARDS", e.TRIPS = "TRIPS", e.UNCATEGORISED_BOOKINGS = "UNCATEGORISED_BOOKINGS", e.BOOKING = "BOOKING", e.VALUE_CENTS = "VALUE_CENTS", e))($ || {}), mt = /* @__PURE__ */ ((e) => (e.HOTEL = "Hotel", e.AIRLINE = "Airline", e.BANK = "Bank", e))(mt || {});
|
|
27
|
+
var $ = /* @__PURE__ */ ((e) => (e.LOCATIONS = "LOCATIONS", e.CHECK_USER = "CHECK_USER", e.USER_REGIONS = "USER_REGIONS", e.CONVERT_CURRENCY = "CONVERT_CURRENCY", e.CLIENT_COMPONENT_KEY = "CLIENT_COMPONENT_KEY", e.SEARCH_LIMIT = "SEARCH_LIMIT", e.PROGRAMS = "PROGRAMS", e.USER_PROGRAMS = "USER_PROGRAMS", e.LINKED_USER_PROGRAMS = "LINKED_USER_PROGRAMS", e.BANKS = "BANKS", e.CARDS = "CARDS", e.USER_CARDS = "USER_CARDS", e.TRIPS = "TRIPS", e.UNCATEGORISED_BOOKINGS = "UNCATEGORISED_BOOKINGS", e.BOOKING = "BOOKING", e.VALUE_CENTS = "VALUE_CENTS", e.AVAILABILITY_ALERTS = "AVAILABILITY_ALERTS", e.ALERT_NOTIFICATIONS = "ALERT_NOTIFICATIONS", e))($ || {}), mt = /* @__PURE__ */ ((e) => (e.HOTEL = "Hotel", e.AIRLINE = "Airline", e.BANK = "Bank", e))(mt || {});
|
|
28
28
|
function Me(e, t) {
|
|
29
29
|
return function() {
|
|
30
30
|
return e.apply(t, arguments);
|
|
@@ -42,7 +42,7 @@ function Rt(e) {
|
|
|
42
42
|
let t;
|
|
43
43
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && je(e.buffer), t;
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const St = re("string"), _ = re("function"), ze = re("number"), se = (e) => e !== null && typeof e == "object", wt = (e) => e === !0 || e === !1, X = (e) => {
|
|
46
46
|
if (ne(e) !== "object")
|
|
47
47
|
return !1;
|
|
48
48
|
const t = ye(e);
|
|
@@ -51,7 +51,7 @@ const wt = re("string"), _ = re("function"), ze = re("number"), se = (e) => e !=
|
|
|
51
51
|
let t;
|
|
52
52
|
return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = ne(e)) === "formdata" || // detect form-data instance
|
|
53
53
|
t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
|
|
54
|
-
}, Nt = x("URLSearchParams"), [Ct, xt, Ut,
|
|
54
|
+
}, Nt = x("URLSearchParams"), [Ct, xt, Ut, It] = ["ReadableStream", "Request", "Response", "Headers"].map(x), kt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
55
55
|
function v(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
56
56
|
if (e === null || typeof e > "u")
|
|
57
57
|
return;
|
|
@@ -85,9 +85,9 @@ function fe() {
|
|
|
85
85
|
arguments[r] && v(arguments[r], n);
|
|
86
86
|
return t;
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const Lt = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, o) => {
|
|
89
89
|
n && _(s) ? e[o] = Me(s, n) : e[o] = s;
|
|
90
|
-
}, { allOwnKeys: r }), e),
|
|
90
|
+
}, { allOwnKeys: r }), e), Pt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ft = (e, t, n, r) => {
|
|
91
91
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
92
92
|
value: t.prototype
|
|
93
93
|
}), n && Object.assign(e.prototype, n);
|
|
@@ -160,8 +160,8 @@ const Ft = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, o) => {
|
|
|
160
160
|
});
|
|
161
161
|
};
|
|
162
162
|
return j(e) ? r(e) : r(String(e).split(t)), n;
|
|
163
|
-
},
|
|
164
|
-
},
|
|
163
|
+
}, Vt = () => {
|
|
164
|
+
}, Jt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
165
165
|
function Wt(e) {
|
|
166
166
|
return !!(e && _(e.append) && e[He] === "FormData" && e[te]);
|
|
167
167
|
}
|
|
@@ -195,15 +195,15 @@ const Xt = (e) => {
|
|
|
195
195
|
isBuffer: yt,
|
|
196
196
|
isFormData: _t,
|
|
197
197
|
isArrayBufferView: Rt,
|
|
198
|
-
isString:
|
|
198
|
+
isString: St,
|
|
199
199
|
isNumber: ze,
|
|
200
|
-
isBoolean:
|
|
200
|
+
isBoolean: wt,
|
|
201
201
|
isObject: se,
|
|
202
202
|
isPlainObject: X,
|
|
203
203
|
isReadableStream: Ct,
|
|
204
204
|
isRequest: xt,
|
|
205
205
|
isResponse: Ut,
|
|
206
|
-
isHeaders:
|
|
206
|
+
isHeaders: It,
|
|
207
207
|
isUndefined: G,
|
|
208
208
|
isDate: gt,
|
|
209
209
|
isFile: bt,
|
|
@@ -216,10 +216,10 @@ const Xt = (e) => {
|
|
|
216
216
|
isFileList: Ot,
|
|
217
217
|
forEach: v,
|
|
218
218
|
merge: fe,
|
|
219
|
-
extend:
|
|
220
|
-
trim:
|
|
221
|
-
stripBOM:
|
|
222
|
-
inherits:
|
|
219
|
+
extend: Lt,
|
|
220
|
+
trim: kt,
|
|
221
|
+
stripBOM: Pt,
|
|
222
|
+
inherits: Ft,
|
|
223
223
|
toFlatObject: Dt,
|
|
224
224
|
kindOf: ne,
|
|
225
225
|
kindOfTest: x,
|
|
@@ -235,8 +235,8 @@ const Xt = (e) => {
|
|
|
235
235
|
freezeMethods: Gt,
|
|
236
236
|
toObjectSet: vt,
|
|
237
237
|
toCamelCase: Kt,
|
|
238
|
-
noop:
|
|
239
|
-
toFiniteNumber:
|
|
238
|
+
noop: Vt,
|
|
239
|
+
toFiniteNumber: Jt,
|
|
240
240
|
findKey: Ke,
|
|
241
241
|
global: q,
|
|
242
242
|
isContextDefined: $e,
|
|
@@ -272,7 +272,7 @@ a.inherits(E, Error, {
|
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
|
-
const
|
|
275
|
+
const Ve = E.prototype, Je = {};
|
|
276
276
|
[
|
|
277
277
|
"ERR_BAD_OPTION_VALUE",
|
|
278
278
|
"ERR_BAD_OPTION",
|
|
@@ -288,12 +288,12 @@ const Je = E.prototype, Ve = {};
|
|
|
288
288
|
"ERR_INVALID_URL"
|
|
289
289
|
// eslint-disable-next-line func-names
|
|
290
290
|
].forEach((e) => {
|
|
291
|
-
|
|
291
|
+
Je[e] = { value: e };
|
|
292
292
|
});
|
|
293
|
-
Object.defineProperties(E,
|
|
294
|
-
Object.defineProperty(
|
|
293
|
+
Object.defineProperties(E, Je);
|
|
294
|
+
Object.defineProperty(Ve, "isAxiosError", { value: !0 });
|
|
295
295
|
E.from = (e, t, n, r, s, o) => {
|
|
296
|
-
const i = Object.create(
|
|
296
|
+
const i = Object.create(Ve);
|
|
297
297
|
return a.toFlatObject(e, i, function(f) {
|
|
298
298
|
return f !== Error.prototype;
|
|
299
299
|
}, (c) => c !== "isAxiosError"), E.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
@@ -338,15 +338,15 @@ function oe(e, t, n) {
|
|
|
338
338
|
return a.isArrayBuffer(h) || a.isTypedArray(h) ? f && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
339
339
|
}
|
|
340
340
|
function l(h, m, p) {
|
|
341
|
-
let
|
|
341
|
+
let S = h;
|
|
342
342
|
if (h && !p && typeof h == "object") {
|
|
343
343
|
if (a.endsWith(m, "{}"))
|
|
344
344
|
m = r ? m : m.slice(0, -2), h = JSON.stringify(h);
|
|
345
|
-
else if (a.isArray(h) && nn(h) || (a.isFileList(h) || a.endsWith(m, "[]")) && (
|
|
346
|
-
return m = We(m),
|
|
345
|
+
else if (a.isArray(h) && nn(h) || (a.isFileList(h) || a.endsWith(m, "[]")) && (S = a.toArray(h)))
|
|
346
|
+
return m = We(m), S.forEach(function(b, k) {
|
|
347
347
|
!(a.isUndefined(b) || b === null) && t.append(
|
|
348
348
|
// eslint-disable-next-line no-nested-ternary
|
|
349
|
-
i === !0 ? Te([m],
|
|
349
|
+
i === !0 ? Te([m], k, o) : i === null ? m : m + "[]",
|
|
350
350
|
u(b)
|
|
351
351
|
);
|
|
352
352
|
}), !1;
|
|
@@ -362,14 +362,14 @@ function oe(e, t, n) {
|
|
|
362
362
|
if (!a.isUndefined(h)) {
|
|
363
363
|
if (d.indexOf(h) !== -1)
|
|
364
364
|
throw Error("Circular reference detected in " + m.join("."));
|
|
365
|
-
d.push(h), a.forEach(h, function(
|
|
366
|
-
(!(a.isUndefined(
|
|
365
|
+
d.push(h), a.forEach(h, function(S, g) {
|
|
366
|
+
(!(a.isUndefined(S) || S === null) && s.call(
|
|
367
367
|
t,
|
|
368
|
-
|
|
368
|
+
S,
|
|
369
369
|
a.isString(g) ? g.trim() : g,
|
|
370
370
|
m,
|
|
371
371
|
y
|
|
372
|
-
)) === !0 && R(
|
|
372
|
+
)) === !0 && R(S, m ? m.concat(g) : [g]);
|
|
373
373
|
}), d.pop();
|
|
374
374
|
}
|
|
375
375
|
}
|
|
@@ -490,10 +490,10 @@ const Ze = {
|
|
|
490
490
|
Blob: cn
|
|
491
491
|
},
|
|
492
492
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
493
|
-
},
|
|
494
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", dn =
|
|
493
|
+
}, Se = typeof window < "u" && typeof document < "u", pe = typeof navigator == "object" && navigator || void 0, ln = Se && (!pe || ["ReactNative", "NativeScript", "NS"].indexOf(pe.product) < 0), fn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
494
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", dn = Se && window.location.href || "http://localhost", pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
495
495
|
__proto__: null,
|
|
496
|
-
hasBrowserEnv:
|
|
496
|
+
hasBrowserEnv: Se,
|
|
497
497
|
hasStandardBrowserEnv: ln,
|
|
498
498
|
hasStandardBrowserWebWorkerEnv: fn,
|
|
499
499
|
navigator: pe,
|
|
@@ -546,7 +546,7 @@ function yn(e, t, n) {
|
|
|
546
546
|
}
|
|
547
547
|
return (n || JSON.stringify)(e);
|
|
548
548
|
}
|
|
549
|
-
const
|
|
549
|
+
const V = {
|
|
550
550
|
transitional: Ze,
|
|
551
551
|
adapter: ["xhr", "http", "fetch"],
|
|
552
552
|
transformRequest: [function(t, n) {
|
|
@@ -575,7 +575,7 @@ const J = {
|
|
|
575
575
|
return o || s ? (n.setContentType("application/json", !1), yn(t)) : t;
|
|
576
576
|
}],
|
|
577
577
|
transformResponse: [function(t) {
|
|
578
|
-
const n = this.transitional ||
|
|
578
|
+
const n = this.transitional || V.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
579
579
|
if (a.isResponse(t) || a.isReadableStream(t))
|
|
580
580
|
return t;
|
|
581
581
|
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
@@ -613,7 +613,7 @@ const J = {
|
|
|
613
613
|
}
|
|
614
614
|
};
|
|
615
615
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
616
|
-
|
|
616
|
+
V.headers[e] = {};
|
|
617
617
|
});
|
|
618
618
|
const Rn = a.toObjectSet([
|
|
619
619
|
"age",
|
|
@@ -633,7 +633,7 @@ const Rn = a.toObjectSet([
|
|
|
633
633
|
"referer",
|
|
634
634
|
"retry-after",
|
|
635
635
|
"user-agent"
|
|
636
|
-
]),
|
|
636
|
+
]), Sn = (e) => {
|
|
637
637
|
const t = {};
|
|
638
638
|
let n, r, s;
|
|
639
639
|
return e && e.split(`
|
|
@@ -647,7 +647,7 @@ function K(e) {
|
|
|
647
647
|
function Y(e) {
|
|
648
648
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(Y) : String(e);
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function wn(e) {
|
|
651
651
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
652
652
|
let r;
|
|
653
653
|
for (; r = n.exec(e); )
|
|
@@ -696,7 +696,7 @@ let N = class {
|
|
|
696
696
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
697
697
|
i(t, n);
|
|
698
698
|
else if (a.isString(t) && (t = t.trim()) && !gn(t))
|
|
699
|
-
i(
|
|
699
|
+
i(Sn(t), n);
|
|
700
700
|
else if (a.isObject(t) && a.isIterable(t)) {
|
|
701
701
|
let c = {}, f, u;
|
|
702
702
|
for (const l of t) {
|
|
@@ -717,7 +717,7 @@ let N = class {
|
|
|
717
717
|
if (!n)
|
|
718
718
|
return s;
|
|
719
719
|
if (n === !0)
|
|
720
|
-
return
|
|
720
|
+
return wn(s);
|
|
721
721
|
if (a.isFunction(n))
|
|
722
722
|
return n.call(this, s, r);
|
|
723
723
|
if (a.isRegExp(n))
|
|
@@ -817,7 +817,7 @@ a.reduceDescriptors(N.prototype, ({ value: e }, t) => {
|
|
|
817
817
|
});
|
|
818
818
|
a.freezeMethods(N);
|
|
819
819
|
function ue(e, t) {
|
|
820
|
-
const n = this ||
|
|
820
|
+
const n = this || V, r = t || n, s = N.from(r.headers);
|
|
821
821
|
let o = r.data;
|
|
822
822
|
return a.forEach(e, function(c) {
|
|
823
823
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
@@ -1026,7 +1026,7 @@ const rt = (e) => {
|
|
|
1026
1026
|
u && i.set(s, u);
|
|
1027
1027
|
}
|
|
1028
1028
|
return t;
|
|
1029
|
-
},
|
|
1029
|
+
}, In = typeof XMLHttpRequest < "u", kn = In && function(e) {
|
|
1030
1030
|
return new Promise(function(n, r) {
|
|
1031
1031
|
const s = rt(e);
|
|
1032
1032
|
let o = s.data;
|
|
@@ -1037,7 +1037,7 @@ const rt = (e) => {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
let p = new XMLHttpRequest();
|
|
1039
1039
|
p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
|
|
1040
|
-
function
|
|
1040
|
+
function S() {
|
|
1041
1041
|
if (!p)
|
|
1042
1042
|
return;
|
|
1043
1043
|
const b = N.from(
|
|
@@ -1056,23 +1056,23 @@ const rt = (e) => {
|
|
|
1056
1056
|
r(D), m();
|
|
1057
1057
|
}, A), p = null;
|
|
1058
1058
|
}
|
|
1059
|
-
"onloadend" in p ? p.onloadend =
|
|
1060
|
-
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1059
|
+
"onloadend" in p ? p.onloadend = S : p.onreadystatechange = function() {
|
|
1060
|
+
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(S);
|
|
1061
1061
|
}, p.onabort = function() {
|
|
1062
1062
|
p && (r(new E("Request aborted", E.ECONNABORTED, e, p)), p = null);
|
|
1063
1063
|
}, p.onerror = function() {
|
|
1064
1064
|
r(new E("Network Error", E.ERR_NETWORK, e, p)), p = null;
|
|
1065
1065
|
}, p.ontimeout = function() {
|
|
1066
|
-
let
|
|
1066
|
+
let k = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1067
1067
|
const A = s.transitional || Ze;
|
|
1068
|
-
s.timeoutErrorMessage && (
|
|
1069
|
-
|
|
1068
|
+
s.timeoutErrorMessage && (k = s.timeoutErrorMessage), r(new E(
|
|
1069
|
+
k,
|
|
1070
1070
|
A.clarifyTimeoutError ? E.ETIMEDOUT : E.ECONNABORTED,
|
|
1071
1071
|
e,
|
|
1072
1072
|
p
|
|
1073
1073
|
)), p = null;
|
|
1074
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in p && a.forEach(i.toJSON(), function(
|
|
1075
|
-
p.setRequestHeader(A,
|
|
1074
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in p && a.forEach(i.toJSON(), function(k, A) {
|
|
1075
|
+
p.setRequestHeader(A, k);
|
|
1076
1076
|
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), u && ([y, h] = Q(u, !0), p.addEventListener("progress", y)), f && p.upload && ([d, R] = Q(f), p.upload.addEventListener("progress", d), p.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (l = (b) => {
|
|
1077
1077
|
p && (r(!b || b.type ? new z(null, e, p) : b), p.abort(), p = null);
|
|
1078
1078
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
@@ -1083,7 +1083,7 @@ const rt = (e) => {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
p.send(o || null);
|
|
1085
1085
|
});
|
|
1086
|
-
},
|
|
1086
|
+
}, Ln = (e, t) => {
|
|
1087
1087
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1088
1088
|
if (t || n) {
|
|
1089
1089
|
let r = new AbortController(), s;
|
|
@@ -1106,7 +1106,7 @@ const rt = (e) => {
|
|
|
1106
1106
|
const { signal: f } = r;
|
|
1107
1107
|
return f.unsubscribe = () => a.asap(c), f;
|
|
1108
1108
|
}
|
|
1109
|
-
},
|
|
1109
|
+
}, Pn = function* (e, t) {
|
|
1110
1110
|
let n = e.byteLength;
|
|
1111
1111
|
if (n < t) {
|
|
1112
1112
|
yield e;
|
|
@@ -1115,9 +1115,9 @@ const rt = (e) => {
|
|
|
1115
1115
|
let r = 0, s;
|
|
1116
1116
|
for (; r < n; )
|
|
1117
1117
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1118
|
-
},
|
|
1118
|
+
}, Fn = async function* (e, t) {
|
|
1119
1119
|
for await (const n of Dn(e))
|
|
1120
|
-
yield*
|
|
1120
|
+
yield* Pn(n, t);
|
|
1121
1121
|
}, Dn = async function* (e) {
|
|
1122
1122
|
if (e[Symbol.asyncIterator]) {
|
|
1123
1123
|
yield* e;
|
|
@@ -1135,7 +1135,7 @@ const rt = (e) => {
|
|
|
1135
1135
|
await t.cancel();
|
|
1136
1136
|
}
|
|
1137
1137
|
}, Ue = (e, t, n, r) => {
|
|
1138
|
-
const s =
|
|
1138
|
+
const s = Fn(e, t);
|
|
1139
1139
|
let o = 0, i, c = (f) => {
|
|
1140
1140
|
i || (i = !0, r && r(f));
|
|
1141
1141
|
};
|
|
@@ -1179,7 +1179,7 @@ const rt = (e) => {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
}).headers.has("Content-Type");
|
|
1181
1181
|
return e && !t;
|
|
1182
|
-
}),
|
|
1182
|
+
}), Ie = 64 * 1024, he = st && ot(() => a.isReadableStream(new Response("").body)), ee = {
|
|
1183
1183
|
stream: he && ((e) => e.body)
|
|
1184
1184
|
};
|
|
1185
1185
|
ie && ((e) => {
|
|
@@ -1222,7 +1222,7 @@ const Mn = async (e) => {
|
|
|
1222
1222
|
fetchOptions: y
|
|
1223
1223
|
} = rt(e);
|
|
1224
1224
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1225
|
-
let R =
|
|
1225
|
+
let R = Ln([s, o && o.toAbortSignal()], i), h;
|
|
1226
1226
|
const m = R && R.unsubscribe && (() => {
|
|
1227
1227
|
R.unsubscribe();
|
|
1228
1228
|
});
|
|
@@ -1233,17 +1233,17 @@ const Mn = async (e) => {
|
|
|
1233
1233
|
method: "POST",
|
|
1234
1234
|
body: r,
|
|
1235
1235
|
duplex: "half"
|
|
1236
|
-
}),
|
|
1237
|
-
if (a.isFormData(r) && (
|
|
1238
|
-
const [D,
|
|
1236
|
+
}), P;
|
|
1237
|
+
if (a.isFormData(r) && (P = A.headers.get("content-type")) && l.setContentType(P), A.body) {
|
|
1238
|
+
const [D, J] = Ne(
|
|
1239
1239
|
p,
|
|
1240
1240
|
Q(Ce(f))
|
|
1241
1241
|
);
|
|
1242
|
-
r = Ue(A.body,
|
|
1242
|
+
r = Ue(A.body, Ie, D, J);
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
1245
|
a.isString(d) || (d = d ? "include" : "omit");
|
|
1246
|
-
const
|
|
1246
|
+
const S = "credentials" in Request.prototype;
|
|
1247
1247
|
h = new Request(t, {
|
|
1248
1248
|
...y,
|
|
1249
1249
|
signal: R,
|
|
@@ -1251,31 +1251,31 @@ const Mn = async (e) => {
|
|
|
1251
1251
|
headers: l.normalize().toJSON(),
|
|
1252
1252
|
body: r,
|
|
1253
1253
|
duplex: "half",
|
|
1254
|
-
credentials:
|
|
1254
|
+
credentials: S ? d : void 0
|
|
1255
1255
|
});
|
|
1256
1256
|
let g = await fetch(h);
|
|
1257
1257
|
const b = he && (u === "stream" || u === "response");
|
|
1258
1258
|
if (he && (c || b && m)) {
|
|
1259
1259
|
const A = {};
|
|
1260
|
-
["status", "statusText", "headers"].forEach((
|
|
1261
|
-
A[
|
|
1260
|
+
["status", "statusText", "headers"].forEach((we) => {
|
|
1261
|
+
A[we] = g[we];
|
|
1262
1262
|
});
|
|
1263
|
-
const
|
|
1264
|
-
|
|
1263
|
+
const P = a.toFiniteNumber(g.headers.get("content-length")), [D, J] = c && Ne(
|
|
1264
|
+
P,
|
|
1265
1265
|
Q(Ce(c), !0)
|
|
1266
1266
|
) || [];
|
|
1267
1267
|
g = new Response(
|
|
1268
|
-
Ue(g.body,
|
|
1269
|
-
|
|
1268
|
+
Ue(g.body, Ie, D, () => {
|
|
1269
|
+
J && J(), m && m();
|
|
1270
1270
|
}),
|
|
1271
1271
|
A
|
|
1272
1272
|
);
|
|
1273
1273
|
}
|
|
1274
1274
|
u = u || "text";
|
|
1275
|
-
let
|
|
1276
|
-
return !b && m && m(), await new Promise((A,
|
|
1277
|
-
tt(A,
|
|
1278
|
-
data:
|
|
1275
|
+
let k = await ee[a.findKey(ee, u) || "text"](g, e);
|
|
1276
|
+
return !b && m && m(), await new Promise((A, P) => {
|
|
1277
|
+
tt(A, P, {
|
|
1278
|
+
data: k,
|
|
1279
1279
|
headers: N.from(g.headers),
|
|
1280
1280
|
status: g.status,
|
|
1281
1281
|
statusText: g.statusText,
|
|
@@ -1283,17 +1283,17 @@ const Mn = async (e) => {
|
|
|
1283
1283
|
request: h
|
|
1284
1284
|
});
|
|
1285
1285
|
});
|
|
1286
|
-
} catch (
|
|
1287
|
-
throw m && m(),
|
|
1286
|
+
} catch (S) {
|
|
1287
|
+
throw m && m(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
|
|
1288
1288
|
new E("Network Error", E.ERR_NETWORK, e, h),
|
|
1289
1289
|
{
|
|
1290
|
-
cause:
|
|
1290
|
+
cause: S.cause || S
|
|
1291
1291
|
}
|
|
1292
|
-
) : E.from(
|
|
1292
|
+
) : E.from(S, S && S.code, e, h);
|
|
1293
1293
|
}
|
|
1294
1294
|
}), me = {
|
|
1295
1295
|
http: tn,
|
|
1296
|
-
xhr:
|
|
1296
|
+
xhr: kn,
|
|
1297
1297
|
fetch: jn
|
|
1298
1298
|
};
|
|
1299
1299
|
a.forEach(me, (e, t) => {
|
|
@@ -1305,7 +1305,7 @@ a.forEach(me, (e, t) => {
|
|
|
1305
1305
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1306
1306
|
}
|
|
1307
1307
|
});
|
|
1308
|
-
const
|
|
1308
|
+
const ke = (e) => `- ${e}`, zn = (e) => a.isFunction(e) || e === null || e === !1, it = {
|
|
1309
1309
|
getAdapter: (e) => {
|
|
1310
1310
|
e = a.isArray(e) ? e : [e];
|
|
1311
1311
|
const { length: t } = e;
|
|
@@ -1325,8 +1325,8 @@ const Pe = (e) => `- ${e}`, zn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1325
1325
|
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1326
1326
|
);
|
|
1327
1327
|
let i = t ? o.length > 1 ? `since :
|
|
1328
|
-
` + o.map(
|
|
1329
|
-
`) : " " +
|
|
1328
|
+
` + o.map(ke).join(`
|
|
1329
|
+
`) : " " + ke(o[0]) : "as no adapter specified";
|
|
1330
1330
|
throw new E(
|
|
1331
1331
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1332
1332
|
"ERR_NOT_SUPPORT"
|
|
@@ -1340,11 +1340,11 @@ function le(e) {
|
|
|
1340
1340
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1341
1341
|
throw new z(null, e);
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function Le(e) {
|
|
1344
1344
|
return le(e), e.headers = N.from(e.headers), e.data = ue.call(
|
|
1345
1345
|
e,
|
|
1346
1346
|
e.transformRequest
|
|
1347
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), it.getAdapter(e.adapter ||
|
|
1347
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), it.getAdapter(e.adapter || V.adapter)(e).then(function(r) {
|
|
1348
1348
|
return le(e), r.data = ue.call(
|
|
1349
1349
|
e,
|
|
1350
1350
|
e.transformResponse,
|
|
@@ -1364,7 +1364,7 @@ const at = "1.9.0", ae = {};
|
|
|
1364
1364
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1365
1365
|
};
|
|
1366
1366
|
});
|
|
1367
|
-
const
|
|
1367
|
+
const Pe = {};
|
|
1368
1368
|
ae.transitional = function(t, n, r) {
|
|
1369
1369
|
function s(o, i) {
|
|
1370
1370
|
return "[Axios v" + at + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
@@ -1375,7 +1375,7 @@ ae.transitional = function(t, n, r) {
|
|
|
1375
1375
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1376
1376
|
E.ERR_DEPRECATED
|
|
1377
1377
|
);
|
|
1378
|
-
return n && !
|
|
1378
|
+
return n && !Pe[i] && (Pe[i] = !0, console.warn(
|
|
1379
1379
|
s(
|
|
1380
1380
|
i,
|
|
1381
1381
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -1406,7 +1406,7 @@ function Kn(e, t, n) {
|
|
|
1406
1406
|
const Z = {
|
|
1407
1407
|
assertOptions: Kn,
|
|
1408
1408
|
validators: ae
|
|
1409
|
-
},
|
|
1409
|
+
}, I = Z.validators;
|
|
1410
1410
|
let M = class {
|
|
1411
1411
|
constructor(t) {
|
|
1412
1412
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -1443,17 +1443,17 @@ let M = class {
|
|
|
1443
1443
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = H(this.defaults, n);
|
|
1444
1444
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1445
1445
|
r !== void 0 && Z.assertOptions(r, {
|
|
1446
|
-
silentJSONParsing:
|
|
1447
|
-
forcedJSONParsing:
|
|
1448
|
-
clarifyTimeoutError:
|
|
1446
|
+
silentJSONParsing: I.transitional(I.boolean),
|
|
1447
|
+
forcedJSONParsing: I.transitional(I.boolean),
|
|
1448
|
+
clarifyTimeoutError: I.transitional(I.boolean)
|
|
1449
1449
|
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1450
1450
|
serialize: s
|
|
1451
1451
|
} : Z.assertOptions(s, {
|
|
1452
|
-
encode:
|
|
1453
|
-
serialize:
|
|
1452
|
+
encode: I.function,
|
|
1453
|
+
serialize: I.function
|
|
1454
1454
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Z.assertOptions(n, {
|
|
1455
|
-
baseUrl:
|
|
1456
|
-
withXsrfToken:
|
|
1455
|
+
baseUrl: I.spelling("baseURL"),
|
|
1456
|
+
withXsrfToken: I.spelling("withXSRFToken")
|
|
1457
1457
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1458
1458
|
let i = o && a.merge(
|
|
1459
1459
|
o.common,
|
|
@@ -1476,7 +1476,7 @@ let M = class {
|
|
|
1476
1476
|
});
|
|
1477
1477
|
let l, d = 0, y;
|
|
1478
1478
|
if (!f) {
|
|
1479
|
-
const h = [
|
|
1479
|
+
const h = [Le.bind(this), void 0];
|
|
1480
1480
|
for (h.unshift.apply(h, c), h.push.apply(h, u), y = h.length, l = Promise.resolve(n); d < y; )
|
|
1481
1481
|
l = l.then(h[d++], h[d++]);
|
|
1482
1482
|
return l;
|
|
@@ -1493,7 +1493,7 @@ let M = class {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
1495
1495
|
try {
|
|
1496
|
-
l =
|
|
1496
|
+
l = Le.call(this, R);
|
|
1497
1497
|
} catch (h) {
|
|
1498
1498
|
return Promise.reject(h);
|
|
1499
1499
|
}
|
|
@@ -1686,35 +1686,35 @@ function ut(e) {
|
|
|
1686
1686
|
return ut(H(e, s));
|
|
1687
1687
|
}, n;
|
|
1688
1688
|
}
|
|
1689
|
-
const
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1689
|
+
const w = ut(V);
|
|
1690
|
+
w.Axios = M;
|
|
1691
|
+
w.CanceledError = z;
|
|
1692
|
+
w.CancelToken = $n;
|
|
1693
|
+
w.isCancel = et;
|
|
1694
|
+
w.VERSION = at;
|
|
1695
|
+
w.toFormData = oe;
|
|
1696
|
+
w.AxiosError = E;
|
|
1697
|
+
w.Cancel = w.CanceledError;
|
|
1698
|
+
w.all = function(t) {
|
|
1699
1699
|
return Promise.all(t);
|
|
1700
1700
|
};
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1701
|
+
w.spread = Gn;
|
|
1702
|
+
w.isAxiosError = vn;
|
|
1703
|
+
w.mergeConfig = H;
|
|
1704
|
+
w.AxiosHeaders = N;
|
|
1705
|
+
w.formToJSON = (e) => Qe(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1706
|
+
w.getAdapter = it.getAdapter;
|
|
1707
|
+
w.HttpStatusCode = Ee;
|
|
1708
|
+
w.default = w;
|
|
1709
1709
|
const {
|
|
1710
1710
|
Axios: hr,
|
|
1711
|
-
AxiosError:
|
|
1711
|
+
AxiosError: Vn,
|
|
1712
1712
|
CanceledError: mr,
|
|
1713
1713
|
isCancel: Er,
|
|
1714
1714
|
CancelToken: yr,
|
|
1715
1715
|
VERSION: Rr,
|
|
1716
|
-
all:
|
|
1717
|
-
Cancel:
|
|
1716
|
+
all: Sr,
|
|
1717
|
+
Cancel: wr,
|
|
1718
1718
|
isAxiosError: gr,
|
|
1719
1719
|
spread: br,
|
|
1720
1720
|
toFormData: Tr,
|
|
@@ -1723,7 +1723,7 @@ const {
|
|
|
1723
1723
|
formToJSON: Ar,
|
|
1724
1724
|
getAdapter: _r,
|
|
1725
1725
|
mergeConfig: Nr
|
|
1726
|
-
} =
|
|
1726
|
+
} = w, Jn = (e) => (e.baseURL = qe(), e.headers.Authorization = localStorage.getItem(L.TOKEN), e.headers["client-id"] = localStorage.getItem(L.CLIENT_ID), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }), Fe = (e, t, n) => {
|
|
1727
1727
|
for (const r of e)
|
|
1728
1728
|
t ? r.rej(t) : r.res(n);
|
|
1729
1729
|
}, Wn = async (e) => new Promise((t, n) => {
|
|
@@ -1731,7 +1731,7 @@ const {
|
|
|
1731
1731
|
}), Xn = async (e, t) => (await Wn(t), e()), De = (e, t) => {
|
|
1732
1732
|
var s, o;
|
|
1733
1733
|
let n = "", r = t;
|
|
1734
|
-
typeof t == "string" ? n = t : t instanceof
|
|
1734
|
+
typeof t == "string" ? n = t : t instanceof Vn ? (n = t.message, r = {
|
|
1735
1735
|
message: t.message,
|
|
1736
1736
|
cause: t.cause,
|
|
1737
1737
|
status: t.status,
|
|
@@ -1742,7 +1742,7 @@ const {
|
|
|
1742
1742
|
);
|
|
1743
1743
|
}, Yn = async (e, t, n, r, s) => {
|
|
1744
1744
|
var f, u, l;
|
|
1745
|
-
const o = t.config, i = localStorage.getItem(
|
|
1745
|
+
const o = t.config, i = localStorage.getItem(L.REFRESH_TOKEN), c = ((f = t.response) == null ? void 0 : f.status) || B.InternalServerError;
|
|
1746
1746
|
if (!o || o.__retries === n)
|
|
1747
1747
|
throw t;
|
|
1748
1748
|
if (c === B.Unauthorized && o.url !== O.REFRESH_EMBED_TOKEN && o.url !== O.REFRESH_TOKEN && o.url !== O.SIGN_IN && o.url !== O.SIGN_UP) {
|
|
@@ -1752,16 +1752,16 @@ const {
|
|
|
1752
1752
|
"no refresh token found to reauthenticate user"
|
|
1753
1753
|
), t;
|
|
1754
1754
|
if (r)
|
|
1755
|
-
return new Promise((p,
|
|
1756
|
-
e.push({ res: p, rej:
|
|
1755
|
+
return new Promise((p, S) => {
|
|
1756
|
+
e.push({ res: p, rej: S });
|
|
1757
1757
|
}).then((p) => (o.headers && (o.headers.Authorization = `Bearer ${p}`), s(o))).catch((p) => {
|
|
1758
1758
|
throw p;
|
|
1759
1759
|
});
|
|
1760
1760
|
r = !0;
|
|
1761
|
-
const y = localStorage.getItem(
|
|
1761
|
+
const y = localStorage.getItem(L.AUTH_FLOW) === dt.POST_MESSAGE ? Be.refreshEmbedToken : Be.refreshToken, { data: R, success: h, message: m } = await y(i);
|
|
1762
1762
|
if (!h)
|
|
1763
|
-
throw (u = o == null ? void 0 : o.url) != null && u.includes(O.EXCHANGE_TOKEN) || De("refresh_token", m), r = !1,
|
|
1764
|
-
return (l = o.url) != null && l.includes(O.EXCHANGE_TOKEN) && "id_token" in R && (o.data = JSON.stringify({ idToken: R.id_token })), r = !1, o.headers && (o.headers.Authorization = `Bearer ${R.token}`),
|
|
1763
|
+
throw (u = o == null ? void 0 : o.url) != null && u.includes(O.EXCHANGE_TOKEN) || De("refresh_token", m), r = !1, Fe(e, t), t;
|
|
1764
|
+
return (l = o.url) != null && l.includes(O.EXCHANGE_TOKEN) && "id_token" in R && (o.data = JSON.stringify({ idToken: R.id_token })), r = !1, o.headers && (o.headers.Authorization = `Bearer ${R.token}`), Fe(e, null, R.token), s(o);
|
|
1765
1765
|
}
|
|
1766
1766
|
if ([
|
|
1767
1767
|
B.Unauthorized,
|
|
@@ -1776,10 +1776,10 @@ const {
|
|
|
1776
1776
|
Math.pow(10, o.__retries + 1) / 2
|
|
1777
1777
|
// Exponential backoff 50ms, 500ms, 5000ms
|
|
1778
1778
|
);
|
|
1779
|
-
}, Zn =
|
|
1780
|
-
Zn.interceptors.request.use((e) => (e.baseURL = qe(), e.headers.Authorization = localStorage.getItem(
|
|
1781
|
-
const C =
|
|
1782
|
-
C.interceptors.request.use((e) => (e =
|
|
1779
|
+
}, Zn = w.create();
|
|
1780
|
+
Zn.interceptors.request.use((e) => (e.baseURL = qe(), e.headers.Authorization = localStorage.getItem(L.TOKEN), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }));
|
|
1781
|
+
const C = w.create();
|
|
1782
|
+
C.interceptors.request.use((e) => (e = Jn(e), e));
|
|
1783
1783
|
const Qn = 3;
|
|
1784
1784
|
let er = !1;
|
|
1785
1785
|
const tr = [];
|
|
@@ -1810,10 +1810,10 @@ class nr {
|
|
|
1810
1810
|
}), f = await W.ensureQueryData({
|
|
1811
1811
|
queryKey: [$.USER_REGIONS],
|
|
1812
1812
|
queryFn: this.getRegions
|
|
1813
|
-
}), u =
|
|
1814
|
-
return localStorage.setItem(
|
|
1813
|
+
}), u = F(c.data), l = (n = c.data) == null ? void 0 : n.accessToken;
|
|
1814
|
+
return localStorage.setItem(L.TOKEN, l), {
|
|
1815
1815
|
success: !0,
|
|
1816
|
-
data:
|
|
1816
|
+
data: F({
|
|
1817
1817
|
...c.data,
|
|
1818
1818
|
token: (r = c.data) == null ? void 0 : r.accessToken,
|
|
1819
1819
|
user: {
|
|
@@ -1852,8 +1852,8 @@ class nr {
|
|
|
1852
1852
|
}), u = await W.ensureQueryData({
|
|
1853
1853
|
queryKey: [$.USER_REGIONS],
|
|
1854
1854
|
queryFn: this.getRegions
|
|
1855
|
-
}), l =
|
|
1856
|
-
return localStorage.setItem(
|
|
1855
|
+
}), l = F(f.data), d = (n = f.data) == null ? void 0 : n.tokens.accessToken;
|
|
1856
|
+
return localStorage.setItem(L.TOKEN, d), {
|
|
1857
1857
|
success: !0,
|
|
1858
1858
|
data: {
|
|
1859
1859
|
accessToken: (r = f.data) == null ? void 0 : r.tokens.accessToken,
|
|
@@ -1905,7 +1905,7 @@ class nr {
|
|
|
1905
1905
|
}), i = await W.ensureQueryData({
|
|
1906
1906
|
queryKey: [$.USER_REGIONS],
|
|
1907
1907
|
queryFn: this.getRegions
|
|
1908
|
-
}), c =
|
|
1908
|
+
}), c = F(o.data);
|
|
1909
1909
|
return {
|
|
1910
1910
|
success: !0,
|
|
1911
1911
|
data: {
|
|
@@ -1943,7 +1943,7 @@ class nr {
|
|
|
1943
1943
|
};
|
|
1944
1944
|
return {
|
|
1945
1945
|
success: !0,
|
|
1946
|
-
data:
|
|
1946
|
+
data: F(r)
|
|
1947
1947
|
};
|
|
1948
1948
|
} catch (t) {
|
|
1949
1949
|
console.error(t);
|
|
@@ -1968,7 +1968,7 @@ class nr {
|
|
|
1968
1968
|
refreshToken: t
|
|
1969
1969
|
}
|
|
1970
1970
|
), r = n.data.token;
|
|
1971
|
-
return localStorage.setItem(
|
|
1971
|
+
return localStorage.setItem(L.TOKEN, r), {
|
|
1972
1972
|
success: !0,
|
|
1973
1973
|
data: n.data
|
|
1974
1974
|
};
|
|
@@ -1993,7 +1993,7 @@ class nr {
|
|
|
1993
1993
|
refreshToken: t
|
|
1994
1994
|
}
|
|
1995
1995
|
), r = n.data.accessToken;
|
|
1996
|
-
return localStorage.setItem(
|
|
1996
|
+
return localStorage.setItem(L.TOKEN, r), {
|
|
1997
1997
|
success: !0,
|
|
1998
1998
|
data: {
|
|
1999
1999
|
...n.data,
|
|
@@ -2022,7 +2022,7 @@ class nr {
|
|
|
2022
2022
|
U(this, "getRegions", async () => {
|
|
2023
2023
|
var n;
|
|
2024
2024
|
const t = await C.get(O.REGIONS);
|
|
2025
|
-
return
|
|
2025
|
+
return F((n = t.data) == null ? void 0 : n.data);
|
|
2026
2026
|
});
|
|
2027
2027
|
}
|
|
2028
2028
|
}
|
|
@@ -2031,17 +2031,17 @@ export {
|
|
|
2031
2031
|
Be as A,
|
|
2032
2032
|
$ as E,
|
|
2033
2033
|
mt as a,
|
|
2034
|
-
|
|
2034
|
+
F as b,
|
|
2035
2035
|
C as c,
|
|
2036
|
-
|
|
2037
|
-
|
|
2036
|
+
w as d,
|
|
2037
|
+
Vn as e,
|
|
2038
2038
|
ge as f,
|
|
2039
|
-
|
|
2039
|
+
Jn as g,
|
|
2040
2040
|
Yn as h,
|
|
2041
2041
|
Zn as i,
|
|
2042
2042
|
Wn as j,
|
|
2043
2043
|
Xn as k,
|
|
2044
2044
|
De as l,
|
|
2045
|
-
|
|
2045
|
+
Fe as p,
|
|
2046
2046
|
fr as r
|
|
2047
2047
|
};
|