@odynn/awayz-core 0.2.20 → 0.2.22
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-DpJ2-tgy.js → AccountService-C0p4I_Ww.js} +56 -56
- package/dist/components/CashValue/CashValue.js +2597 -2584
- package/dist/components/CashValue/CashValueTypes.js +5 -0
- package/dist/components/index.js +4 -3
- package/dist/configs/awayzClient.js +7 -3
- package/dist/hooks/useAwayzAuth/useAwayzAuth.js +1 -1
- package/dist/hooks/useSearchLimit.js +13 -13
- package/dist/lib/components/CashValue/CashValue.d.ts +3 -7
- package/dist/lib/components/CashValue/CashValueTypes.d.ts +28 -0
- package/dist/lib/components/index.d.ts +2 -1
- package/dist/main.js +8 -7
- package/dist/providers/AwayzProvider.js +1 -1
- package/dist/services/account/AccountService.js +1 -1
- package/dist/services/currency/CurrencyService.js +1 -1
- package/dist/services/instance.js +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var Ob = Object.defineProperty;
|
|
|
2
2
|
var cb = (M, z, b) => z in M ? Ob(M, z, { enumerable: !0, configurable: !0, writable: !0, value: b }) : M[z] = b;
|
|
3
3
|
var r0 = (M, z, b) => cb(M, typeof z != "symbol" ? z + "" : z, b);
|
|
4
4
|
import "react";
|
|
5
|
-
import { EAuthEndpoints as
|
|
5
|
+
import { EAuthEndpoints as Q } from "./configs/endpoints.js";
|
|
6
6
|
import { awayzClient as N1 } from "./configs/awayzClient.js";
|
|
7
7
|
import { getBaseUrl as gM } from "./configs/baseUrl.js";
|
|
8
8
|
import { EAuthFlow as ob } from "./types/EAuthFlow.js";
|
|
@@ -36,7 +36,7 @@ function m2(M) {
|
|
|
36
36
|
return !1;
|
|
37
37
|
return !0;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Z(M) {
|
|
40
40
|
return M === void 0;
|
|
41
41
|
}
|
|
42
42
|
function g0(M) {
|
|
@@ -107,9 +107,9 @@ function U1(M) {
|
|
|
107
107
|
var pM = f.momentProperties = [], A2 = !1;
|
|
108
108
|
function S2(M, z) {
|
|
109
109
|
var b, p, O, c = pM.length;
|
|
110
|
-
if (
|
|
110
|
+
if (Z(z._isAMomentObject) || (M._isAMomentObject = z._isAMomentObject), Z(z._i) || (M._i = z._i), Z(z._f) || (M._f = z._f), Z(z._l) || (M._l = z._l), Z(z._strict) || (M._strict = z._strict), Z(z._tzm) || (M._tzm = z._tzm), Z(z._isUTC) || (M._isUTC = z._isUTC), Z(z._offset) || (M._offset = z._offset), Z(z._pf) || (M._pf = T(z)), Z(z._locale) || (M._locale = z._locale), c > 0)
|
|
111
111
|
for (b = 0; b < c; b++)
|
|
112
|
-
p = pM[b], O = z[p],
|
|
112
|
+
p = pM[b], O = z[p], Z(O) || (M[p] = O);
|
|
113
113
|
return M;
|
|
114
114
|
}
|
|
115
115
|
function s1(M) {
|
|
@@ -981,7 +981,7 @@ function K1(M) {
|
|
|
981
981
|
}
|
|
982
982
|
function w0(M, z) {
|
|
983
983
|
var b;
|
|
984
|
-
return M && (
|
|
984
|
+
return M && (Z(z) ? b = S0(M) : b = U2(M, z), b ? i1 = b : typeof console < "u" && console.warn && console.warn(
|
|
985
985
|
"Locale " + M + " not found. Did you forget to load it?"
|
|
986
986
|
)), i1._abbr;
|
|
987
987
|
}
|
|
@@ -1276,7 +1276,7 @@ function $M(M) {
|
|
|
1276
1276
|
}
|
|
1277
1277
|
function Yp(M) {
|
|
1278
1278
|
var z = M._i;
|
|
1279
|
-
|
|
1279
|
+
Z(z) ? M._d = new Date(f.now()) : d1(z) ? M._d = new Date(z.valueOf()) : typeof z == "string" ? vp(M) : n0(z) ? (M._a = yM(z.slice(0), function(b) {
|
|
1280
1280
|
return parseInt(b, 10);
|
|
1281
1281
|
}), x2(M)) : U0(z) ? Hp(M) : g0(z) ? M._d = new Date(z) : f.createFromInputFallback(M);
|
|
1282
1282
|
}
|
|
@@ -1436,7 +1436,7 @@ function e3() {
|
|
|
1436
1436
|
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
1437
1437
|
}
|
|
1438
1438
|
function n3() {
|
|
1439
|
-
if (!
|
|
1439
|
+
if (!Z(this._isDSTShifted))
|
|
1440
1440
|
return this._isDSTShifted;
|
|
1441
1441
|
var M = {}, z;
|
|
1442
1442
|
return S2(M, this), M = $M(M), M._a ? (z = M._isUTC ? R0(M._a) : P(M._a), this._isDSTShifted = this.isValid() && z3(M._a, z.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
@@ -5725,22 +5725,22 @@ const { toString: Rc } = Object.prototype, { getPrototypeOf: J2 } = Object, { it
|
|
|
5725
5725
|
return M[b] || (M[b] = b.slice(8, -1).toLowerCase());
|
|
5726
5726
|
})(/* @__PURE__ */ Object.create(null)), t0 = (M) => (M = M.toLowerCase(), (z) => $1(z) === M), M2 = (M) => (z) => typeof z === M, { isArray: z1 } = Array, r1 = M2("undefined");
|
|
5727
5727
|
function Lc(M) {
|
|
5728
|
-
return M !== null && !r1(M) && M.constructor !== null && !r1(M.constructor) &&
|
|
5728
|
+
return M !== null && !r1(M) && M.constructor !== null && !r1(M.constructor) && M0(M.constructor.isBuffer) && M.constructor.isBuffer(M);
|
|
5729
5729
|
}
|
|
5730
5730
|
const Nz = t0("ArrayBuffer");
|
|
5731
5731
|
function lc(M) {
|
|
5732
5732
|
let z;
|
|
5733
5733
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? z = ArrayBuffer.isView(M) : z = M && M.buffer && Nz(M.buffer), z;
|
|
5734
5734
|
}
|
|
5735
|
-
const Nc = M2("string"),
|
|
5735
|
+
const Nc = M2("string"), M0 = M2("function"), Bz = M2("number"), z2 = (M) => M !== null && typeof M == "object", Bc = (M) => M === !0 || M === !1, y1 = (M) => {
|
|
5736
5736
|
if ($1(M) !== "object")
|
|
5737
5737
|
return !1;
|
|
5738
5738
|
const z = J2(M);
|
|
5739
5739
|
return (z === null || z === Object.prototype || Object.getPrototypeOf(z) === null) && !(lz in M) && !(Z1 in M);
|
|
5740
|
-
}, Xc = t0("Date"), hc = t0("File"), Tc = t0("Blob"), mc = t0("FileList"), gc = (M) => z2(M) &&
|
|
5740
|
+
}, Xc = t0("Date"), hc = t0("File"), Tc = t0("Blob"), mc = t0("FileList"), gc = (M) => z2(M) && M0(M.pipe), Sc = (M) => {
|
|
5741
5741
|
let z;
|
|
5742
|
-
return M && (typeof FormData == "function" && M instanceof FormData ||
|
|
5743
|
-
z === "object" &&
|
|
5742
|
+
return M && (typeof FormData == "function" && M instanceof FormData || M0(M.append) && ((z = $1(M)) === "formdata" || // detect form-data instance
|
|
5743
|
+
z === "object" && M0(M.toString) && M.toString() === "[object FormData]"));
|
|
5744
5744
|
}, yc = t0("URLSearchParams"), [Ec, Cc, _c, wc] = ["ReadableStream", "Request", "Response", "Headers"].map(t0), Dc = (M) => M.trim ? M.trim() : M.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
5745
5745
|
function R1(M, z, { allOwnKeys: b = !1 } = {}) {
|
|
5746
5746
|
if (M === null || typeof M > "u")
|
|
@@ -5776,7 +5776,7 @@ function l2() {
|
|
|
5776
5776
|
return z;
|
|
5777
5777
|
}
|
|
5778
5778
|
const Pc = (M, z, b, { allOwnKeys: p } = {}) => (R1(z, (O, c) => {
|
|
5779
|
-
b &&
|
|
5779
|
+
b && M0(O) ? M[c] = Lz(O, b) : M[c] = O;
|
|
5780
5780
|
}, { allOwnKeys: p }), M), kc = (M) => (M.charCodeAt(0) === 65279 && (M = M.slice(1)), M), vc = (M, z, b, p) => {
|
|
5781
5781
|
M.prototype = Object.create(z.prototype, p), M.prototype.constructor = M, Object.defineProperty(M, "super", {
|
|
5782
5782
|
value: z.prototype
|
|
@@ -5830,10 +5830,10 @@ const Pc = (M, z, b, { allOwnKeys: p } = {}) => (R1(z, (O, c) => {
|
|
|
5830
5830
|
}), Object.defineProperties(M, p);
|
|
5831
5831
|
}, Vc = (M) => {
|
|
5832
5832
|
Tz(M, (z, b) => {
|
|
5833
|
-
if (
|
|
5833
|
+
if (M0(M) && ["arguments", "caller", "callee"].indexOf(b) !== -1)
|
|
5834
5834
|
return !1;
|
|
5835
5835
|
const p = M[b];
|
|
5836
|
-
if (
|
|
5836
|
+
if (M0(p)) {
|
|
5837
5837
|
if (z.enumerable = !1, "writable" in z) {
|
|
5838
5838
|
z.writable = !1;
|
|
5839
5839
|
return;
|
|
@@ -5853,7 +5853,7 @@ const Pc = (M, z, b, { allOwnKeys: p } = {}) => (R1(z, (O, c) => {
|
|
|
5853
5853
|
}, Qc = () => {
|
|
5854
5854
|
}, Zc = (M, z) => M != null && Number.isFinite(M = +M) ? M : z;
|
|
5855
5855
|
function $c(M) {
|
|
5856
|
-
return !!(M &&
|
|
5856
|
+
return !!(M && M0(M.append) && M[lz] === "FormData" && M[Z1]);
|
|
5857
5857
|
}
|
|
5858
5858
|
const Mo = (M) => {
|
|
5859
5859
|
const z = new Array(10), b = (p, O) => {
|
|
@@ -5872,14 +5872,14 @@ const Mo = (M) => {
|
|
|
5872
5872
|
return p;
|
|
5873
5873
|
};
|
|
5874
5874
|
return b(M, 0);
|
|
5875
|
-
}, zo = t0("AsyncFunction"), bo = (M) => M && (z2(M) ||
|
|
5875
|
+
}, zo = t0("AsyncFunction"), bo = (M) => M && (z2(M) || M0(M)) && M0(M.then) && M0(M.catch), mz = ((M, z) => M ? setImmediate : z ? ((b, p) => (I0.addEventListener("message", ({ source: O, data: c }) => {
|
|
5876
5876
|
O === I0 && c === b && p.length && p.shift()();
|
|
5877
5877
|
}, !1), (O) => {
|
|
5878
5878
|
p.push(O), I0.postMessage(b, "*");
|
|
5879
5879
|
}))(`axios@${Math.random()}`, []) : (b) => setTimeout(b))(
|
|
5880
5880
|
typeof setImmediate == "function",
|
|
5881
|
-
|
|
5882
|
-
), po = typeof queueMicrotask < "u" ? queueMicrotask.bind(I0) : typeof process < "u" && process.nextTick || mz, Oo = (M) => M != null &&
|
|
5881
|
+
M0(I0.postMessage)
|
|
5882
|
+
), po = typeof queueMicrotask < "u" ? queueMicrotask.bind(I0) : typeof process < "u" && process.nextTick || mz, Oo = (M) => M != null && M0(M[Z1]), e = {
|
|
5883
5883
|
isArray: z1,
|
|
5884
5884
|
isArrayBuffer: Nz,
|
|
5885
5885
|
isBuffer: Lc,
|
|
@@ -5899,7 +5899,7 @@ const Mo = (M) => {
|
|
|
5899
5899
|
isFile: hc,
|
|
5900
5900
|
isBlob: Tc,
|
|
5901
5901
|
isRegExp: Kc,
|
|
5902
|
-
isFunction:
|
|
5902
|
+
isFunction: M0,
|
|
5903
5903
|
isStream: gc,
|
|
5904
5904
|
isURLSearchParams: yc,
|
|
5905
5905
|
isTypedArray: xc,
|
|
@@ -6369,7 +6369,7 @@ function To(M, z) {
|
|
|
6369
6369
|
});
|
|
6370
6370
|
});
|
|
6371
6371
|
}
|
|
6372
|
-
let
|
|
6372
|
+
let z0 = class {
|
|
6373
6373
|
constructor(z) {
|
|
6374
6374
|
z && this.set(z);
|
|
6375
6375
|
}
|
|
@@ -6495,8 +6495,8 @@ let M0 = class {
|
|
|
6495
6495
|
return e.isArray(z) ? z.forEach(c) : c(z), this;
|
|
6496
6496
|
}
|
|
6497
6497
|
};
|
|
6498
|
-
|
|
6499
|
-
e.reduceDescriptors(
|
|
6498
|
+
z0.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
6499
|
+
e.reduceDescriptors(z0.prototype, ({ value: M }, z) => {
|
|
6500
6500
|
let b = z[0].toUpperCase() + z.slice(1);
|
|
6501
6501
|
return {
|
|
6502
6502
|
get: () => M,
|
|
@@ -6505,9 +6505,9 @@ e.reduceDescriptors(M0.prototype, ({ value: M }, z) => {
|
|
|
6505
6505
|
}
|
|
6506
6506
|
};
|
|
6507
6507
|
});
|
|
6508
|
-
e.freezeMethods(
|
|
6508
|
+
e.freezeMethods(z0);
|
|
6509
6509
|
function t2(M, z) {
|
|
6510
|
-
const b = this || L1, p = z || b, O =
|
|
6510
|
+
const b = this || L1, p = z || b, O = z0.from(p.headers);
|
|
6511
6511
|
let c = p.data;
|
|
6512
6512
|
return e.forEach(M, function(A) {
|
|
6513
6513
|
c = A.call(b, c, O.normalize(), z ? z.status : void 0);
|
|
@@ -6630,7 +6630,7 @@ function kz(M, z, b) {
|
|
|
6630
6630
|
let p = !Co(z);
|
|
6631
6631
|
return M && (p || b == !1) ? _o(M, z) : z;
|
|
6632
6632
|
}
|
|
6633
|
-
const uM = (M) => M instanceof
|
|
6633
|
+
const uM = (M) => M instanceof z0 ? { ...M } : M;
|
|
6634
6634
|
function x0(M, z) {
|
|
6635
6635
|
z = z || {};
|
|
6636
6636
|
const b = {};
|
|
@@ -6698,7 +6698,7 @@ function x0(M, z) {
|
|
|
6698
6698
|
const vz = (M) => {
|
|
6699
6699
|
const z = x0({}, M);
|
|
6700
6700
|
let { data: b, withXSRFToken: p, xsrfHeaderName: O, xsrfCookieName: c, headers: o, auth: A } = z;
|
|
6701
|
-
z.headers = o =
|
|
6701
|
+
z.headers = o = z0.from(o), z.url = Cz(kz(z.baseURL, z.url, z.allowAbsoluteUrls), M.params, M.paramsSerializer), A && o.set(
|
|
6702
6702
|
"Authorization",
|
|
6703
6703
|
"Basic " + btoa((A.username || "") + ":" + (A.password ? unescape(encodeURIComponent(A.password)) : ""))
|
|
6704
6704
|
);
|
|
@@ -6720,7 +6720,7 @@ const vz = (M) => {
|
|
|
6720
6720
|
return new Promise(function(b, p) {
|
|
6721
6721
|
const O = vz(M);
|
|
6722
6722
|
let c = O.data;
|
|
6723
|
-
const o =
|
|
6723
|
+
const o = z0.from(O.headers).normalize();
|
|
6724
6724
|
let { responseType: A, onUploadProgress: a, onDownloadProgress: n } = O, W, s, N, v, R;
|
|
6725
6725
|
function X() {
|
|
6726
6726
|
v && v(), R && R(), O.cancelToken && O.cancelToken.unsubscribe(W), O.signal && O.signal.removeEventListener("abort", W);
|
|
@@ -6730,7 +6730,7 @@ const vz = (M) => {
|
|
|
6730
6730
|
function I() {
|
|
6731
6731
|
if (!L)
|
|
6732
6732
|
return;
|
|
6733
|
-
const Y =
|
|
6733
|
+
const Y = z0.from(
|
|
6734
6734
|
"getAllResponseHeaders" in L && L.getAllResponseHeaders()
|
|
6735
6735
|
), H = {
|
|
6736
6736
|
data: !A || A === "text" || A === "json" ? L.responseText : L.response,
|
|
@@ -6966,7 +6966,7 @@ const xo = async (M) => {
|
|
|
6966
6966
|
return !Y && X && X(), await new Promise((H, A0) => {
|
|
6967
6967
|
Pz(H, A0, {
|
|
6968
6968
|
data: o0,
|
|
6969
|
-
headers:
|
|
6969
|
+
headers: z0.from(w.headers),
|
|
6970
6970
|
status: w.status,
|
|
6971
6971
|
statusText: w.statusText,
|
|
6972
6972
|
config: M,
|
|
@@ -7031,7 +7031,7 @@ function i2(M) {
|
|
|
7031
7031
|
throw new b1(null, M);
|
|
7032
7032
|
}
|
|
7033
7033
|
function NM(M) {
|
|
7034
|
-
return i2(M), M.headers =
|
|
7034
|
+
return i2(M), M.headers = z0.from(M.headers), M.data = t2.call(
|
|
7035
7035
|
M,
|
|
7036
7036
|
M.transformRequest
|
|
7037
7037
|
), ["post", "put", "patch"].indexOf(M.method) !== -1 && M.headers.setContentType("application/x-www-form-urlencoded", !1), Fz.getAdapter(M.adapter || L1.adapter)(M).then(function(p) {
|
|
@@ -7039,13 +7039,13 @@ function NM(M) {
|
|
|
7039
7039
|
M,
|
|
7040
7040
|
M.transformResponse,
|
|
7041
7041
|
p
|
|
7042
|
-
), p.headers =
|
|
7042
|
+
), p.headers = z0.from(p.headers), p;
|
|
7043
7043
|
}, function(p) {
|
|
7044
7044
|
return Dz(p) || (i2(M), p && p.response && (p.response.data = t2.call(
|
|
7045
7045
|
M,
|
|
7046
7046
|
M.transformResponse,
|
|
7047
7047
|
p.response
|
|
7048
|
-
), p.response.headers =
|
|
7048
|
+
), p.response.headers = z0.from(p.response.headers))), Promise.reject(p);
|
|
7049
7049
|
});
|
|
7050
7050
|
}
|
|
7051
7051
|
const xz = "1.9.0", O2 = {};
|
|
@@ -7154,7 +7154,7 @@ let F0 = class {
|
|
|
7154
7154
|
(R) => {
|
|
7155
7155
|
delete c[R];
|
|
7156
7156
|
}
|
|
7157
|
-
), b.headers =
|
|
7157
|
+
), b.headers = z0.concat(o, c);
|
|
7158
7158
|
const A = [];
|
|
7159
7159
|
let a = !0;
|
|
7160
7160
|
this.interceptors.request.forEach(function(X) {
|
|
@@ -7391,7 +7391,7 @@ x.all = function(z) {
|
|
|
7391
7391
|
x.spread = Vo;
|
|
7392
7392
|
x.isAxiosError = Jo;
|
|
7393
7393
|
x.mergeConfig = x0;
|
|
7394
|
-
x.AxiosHeaders =
|
|
7394
|
+
x.AxiosHeaders = z0;
|
|
7395
7395
|
x.formToJSON = (M) => wz(e.isHTMLForm(M) ? new FormData(M) : M);
|
|
7396
7396
|
x.getAdapter = Fz.getAdapter;
|
|
7397
7397
|
x.HttpStatusCode = T2;
|
|
@@ -7415,19 +7415,19 @@ const {
|
|
|
7415
7415
|
mergeConfig: XA
|
|
7416
7416
|
} = x, Zo = x.create();
|
|
7417
7417
|
Zo.interceptors.request.use((M) => (M.baseURL = gM(), M.headers.Authorization = localStorage.getItem(f0.TOKEN), M.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...M }));
|
|
7418
|
-
const
|
|
7419
|
-
|
|
7418
|
+
const $ = x.create();
|
|
7419
|
+
$.interceptors.request.use((M) => (M.baseURL = gM(), M.headers.Authorization = localStorage.getItem(f0.TOKEN), M.headers["client-id"] = localStorage.getItem(f0.CLIENT_ID), M.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...M }));
|
|
7420
7420
|
const Yz = [], XM = (M, z) => {
|
|
7421
7421
|
for (const b of Yz)
|
|
7422
7422
|
M ? b.rej(M) : b.res(z);
|
|
7423
7423
|
}, hM = 3;
|
|
7424
7424
|
let h1 = !1;
|
|
7425
|
-
|
|
7425
|
+
$.interceptors.response.use(null, async (M) => {
|
|
7426
7426
|
var O, c, o;
|
|
7427
7427
|
const z = M.config, b = localStorage.getItem(f0.REFRESH_TOKEN), p = (O = M.response) == null ? void 0 : O.status;
|
|
7428
7428
|
if (!z || z.__retries === hM)
|
|
7429
7429
|
throw M;
|
|
7430
|
-
if (p === q1.Unauthorized && z.url !==
|
|
7430
|
+
if (p === q1.Unauthorized && z.url !== Q.REFRESH_EMBED_TOKEN && z.url !== Q.REFRESH_TOKEN && z.url !== Q.SIGN_IN && z.url !== Q.SIGN_UP) {
|
|
7431
7431
|
if (!b)
|
|
7432
7432
|
throw TM(
|
|
7433
7433
|
"refresh_token",
|
|
@@ -7436,14 +7436,14 @@ Z.interceptors.response.use(null, async (M) => {
|
|
|
7436
7436
|
if (h1)
|
|
7437
7437
|
return new Promise((N, v) => {
|
|
7438
7438
|
Yz.push({ res: N, rej: v });
|
|
7439
|
-
}).then((N) => (z.headers && (z.headers.Authorization = `Bearer ${N}`),
|
|
7439
|
+
}).then((N) => (z.headers && (z.headers.Authorization = `Bearer ${N}`), $(z))).catch((N) => {
|
|
7440
7440
|
throw N;
|
|
7441
7441
|
});
|
|
7442
7442
|
h1 = !0;
|
|
7443
7443
|
const a = localStorage.getItem(f0.AUTH_FLOW) === ob.POST_MESSAGE ? mM.refreshEmbedToken : mM.refreshToken, { data: n, success: W, message: s } = await a(b);
|
|
7444
7444
|
if (!W)
|
|
7445
|
-
throw (c = z == null ? void 0 : z.url) != null && c.includes(
|
|
7446
|
-
return (o = z.url) != null && o.includes(
|
|
7445
|
+
throw (c = z == null ? void 0 : z.url) != null && c.includes(Q.EXCHANGE_TOKEN) || TM("refresh_token", s), h1 = !1, XM(M), M;
|
|
7446
|
+
return (o = z.url) != null && o.includes(Q.EXCHANGE_TOKEN) && "id_token" in n && (z.data = JSON.stringify({ idToken: n.id_token })), h1 = !1, z.headers && (z.headers.Authorization = `Bearer ${n.token}`), XM(null, n.token), $(z);
|
|
7447
7447
|
}
|
|
7448
7448
|
if ([
|
|
7449
7449
|
q1.Unauthorized,
|
|
@@ -7453,7 +7453,7 @@ Z.interceptors.response.use(null, async (M) => {
|
|
|
7453
7453
|
].includes(p) || (z.__retries || (z.__retries = 0), z.__retries += 1, z.__retries > hM))
|
|
7454
7454
|
throw M;
|
|
7455
7455
|
return MA(
|
|
7456
|
-
() =>
|
|
7456
|
+
() => $(z),
|
|
7457
7457
|
Math.pow(10, z.__retries + 1) / 2
|
|
7458
7458
|
// Exponential backoff 50ms, 500ms, 5000ms
|
|
7459
7459
|
);
|
|
@@ -7484,7 +7484,7 @@ class zA {
|
|
|
7484
7484
|
r0(this, "login", async (z) => {
|
|
7485
7485
|
var b, p, O, c, o;
|
|
7486
7486
|
try {
|
|
7487
|
-
const { data: A } = await
|
|
7487
|
+
const { data: A } = await $.post(Q.SIGN_IN, {
|
|
7488
7488
|
email_address: z.email,
|
|
7489
7489
|
password: z.password
|
|
7490
7490
|
}), a = await N1.ensureQueryData({
|
|
@@ -7520,7 +7520,7 @@ class zA {
|
|
|
7520
7520
|
r0(this, "signUp", async (z) => {
|
|
7521
7521
|
var b, p, O, c, o, A;
|
|
7522
7522
|
try {
|
|
7523
|
-
const { data: a } = await
|
|
7523
|
+
const { data: a } = await $.post(Q.SIGN_UP, {
|
|
7524
7524
|
user: {
|
|
7525
7525
|
email_address: z.email,
|
|
7526
7526
|
password: z.password,
|
|
@@ -7556,8 +7556,8 @@ class zA {
|
|
|
7556
7556
|
r0(this, "resendVerificationEmail", async (z) => {
|
|
7557
7557
|
var b, p, O;
|
|
7558
7558
|
try {
|
|
7559
|
-
return (await
|
|
7560
|
-
|
|
7559
|
+
return (await $.post(
|
|
7560
|
+
Q.RESEND_VERIFICATION_EMAIL,
|
|
7561
7561
|
{
|
|
7562
7562
|
email_address: z.email,
|
|
7563
7563
|
success_url: z.successUrl,
|
|
@@ -7580,7 +7580,7 @@ class zA {
|
|
|
7580
7580
|
r0(this, "authenticateWithToken", async (z) => {
|
|
7581
7581
|
var b, p, O;
|
|
7582
7582
|
try {
|
|
7583
|
-
const { data: c } = await
|
|
7583
|
+
const { data: c } = await $.post(Q.EXCHANGE_TOKEN, {
|
|
7584
7584
|
idToken: z
|
|
7585
7585
|
}), o = await N1.ensureQueryData({
|
|
7586
7586
|
queryKey: [e1.USER_REGIONS],
|
|
@@ -7612,7 +7612,7 @@ class zA {
|
|
|
7612
7612
|
*/
|
|
7613
7613
|
r0(this, "checkUser", async () => {
|
|
7614
7614
|
try {
|
|
7615
|
-
const { data: z } = await
|
|
7615
|
+
const { data: z } = await $.get(Q.ME), b = await N1.ensureQueryData({
|
|
7616
7616
|
queryKey: [e1.USER_REGIONS],
|
|
7617
7617
|
queryFn: this.getRegions
|
|
7618
7618
|
}), p = {
|
|
@@ -7642,8 +7642,8 @@ class zA {
|
|
|
7642
7642
|
*/
|
|
7643
7643
|
r0(this, "refreshEmbedToken", async (z) => {
|
|
7644
7644
|
try {
|
|
7645
|
-
const { data: b } = await
|
|
7646
|
-
|
|
7645
|
+
const { data: b } = await $.post(
|
|
7646
|
+
Q.REFRESH_EMBED_TOKEN,
|
|
7647
7647
|
{
|
|
7648
7648
|
refreshToken: z
|
|
7649
7649
|
}
|
|
@@ -7667,8 +7667,8 @@ class zA {
|
|
|
7667
7667
|
*/
|
|
7668
7668
|
r0(this, "refreshToken", async (z) => {
|
|
7669
7669
|
try {
|
|
7670
|
-
const { data: b } = await
|
|
7671
|
-
|
|
7670
|
+
const { data: b } = await $.post(
|
|
7671
|
+
Q.REFRESH_TOKEN,
|
|
7672
7672
|
{
|
|
7673
7673
|
refreshToken: z
|
|
7674
7674
|
}
|
|
@@ -7693,7 +7693,7 @@ class zA {
|
|
|
7693
7693
|
*
|
|
7694
7694
|
* @returns A promise that resolves to a service response containing the request limit data.
|
|
7695
7695
|
*/
|
|
7696
|
-
r0(this, "getRequestLimit", async () => (await
|
|
7696
|
+
r0(this, "getRequestLimit", async () => (await $.get(Q.REQUEST_LIMIT)).data);
|
|
7697
7697
|
/**
|
|
7698
7698
|
* Retrieves the regions available for user registration.
|
|
7699
7699
|
*
|
|
@@ -7701,7 +7701,7 @@ class zA {
|
|
|
7701
7701
|
*/
|
|
7702
7702
|
r0(this, "getRegions", async () => {
|
|
7703
7703
|
var b;
|
|
7704
|
-
const z = await
|
|
7704
|
+
const z = await $.get(Q.REGIONS);
|
|
7705
7705
|
return E0((b = z.data) == null ? void 0 : b.data);
|
|
7706
7706
|
});
|
|
7707
7707
|
}
|
|
@@ -7712,7 +7712,7 @@ export {
|
|
|
7712
7712
|
f0 as E,
|
|
7713
7713
|
mM as a,
|
|
7714
7714
|
e1 as b,
|
|
7715
|
-
|
|
7715
|
+
$ as c,
|
|
7716
7716
|
E0 as d,
|
|
7717
7717
|
eA as g,
|
|
7718
7718
|
Zo as i
|