@obb871001/api-integration-sdk 1.0.416 → 1.0.417
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/index.cjs +4 -4
- package/dist/index.js +55 -55
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,10 +31,10 @@ function tl(e) {
|
|
|
31
31
|
});
|
|
32
32
|
}), a;
|
|
33
33
|
}
|
|
34
|
-
var ot = { exports: {} },
|
|
34
|
+
var ot = { exports: {} }, Qa = {};
|
|
35
35
|
var Ri;
|
|
36
36
|
function il() {
|
|
37
|
-
if (Ri) return
|
|
37
|
+
if (Ri) return Qa;
|
|
38
38
|
Ri = 1;
|
|
39
39
|
var e = Ce, n = /* @__PURE__ */ Symbol.for("react.element"), a = /* @__PURE__ */ Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, u = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
40
40
|
function y(d, l, t) {
|
|
@@ -44,9 +44,9 @@ function il() {
|
|
|
44
44
|
if (d && d.defaultProps) for (i in l = d.defaultProps, l) o[i] === void 0 && (o[i] = l[i]);
|
|
45
45
|
return { $$typeof: n, type: d, key: s, ref: p, props: o, _owner: u.current };
|
|
46
46
|
}
|
|
47
|
-
return
|
|
47
|
+
return Qa.Fragment = a, Qa.jsx = y, Qa.jsxs = y, Qa;
|
|
48
48
|
}
|
|
49
|
-
var
|
|
49
|
+
var ja = {};
|
|
50
50
|
var Pi;
|
|
51
51
|
function nl() {
|
|
52
52
|
return Pi || (Pi = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
@@ -400,7 +400,7 @@ function nl() {
|
|
|
400
400
|
}
|
|
401
401
|
return k.key !== void 0;
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Ka(k, J) {
|
|
404
404
|
typeof k.ref == "string" && Be.current;
|
|
405
405
|
}
|
|
406
406
|
function Ma(k, J) {
|
|
@@ -425,7 +425,7 @@ function nl() {
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var
|
|
428
|
+
var qa = function(k, J, $, ae, de, ye, ue) {
|
|
429
429
|
var le = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
431
|
$$typeof: n,
|
|
@@ -454,10 +454,10 @@ function nl() {
|
|
|
454
454
|
value: de
|
|
455
455
|
}), Object.freeze && (Object.freeze(le.props), Object.freeze(le)), le;
|
|
456
456
|
};
|
|
457
|
-
function
|
|
457
|
+
function $a(k, J, $, ae, de) {
|
|
458
458
|
{
|
|
459
459
|
var ye, ue = {}, le = null, ze = null;
|
|
460
|
-
$ !== void 0 && (Ge($), le = "" + $), ia(J) && (Ge(J.key), le = "" + J.key), Ke(J) && (ze = J.ref,
|
|
460
|
+
$ !== void 0 && (Ge($), le = "" + $), ia(J) && (Ge(J.key), le = "" + J.key), Ke(J) && (ze = J.ref, Ka(J, de));
|
|
461
461
|
for (ye in J)
|
|
462
462
|
Te.call(J, ye) && !ta.hasOwnProperty(ye) && (ue[ye] = J[ye]);
|
|
463
463
|
if (k && k.defaultProps) {
|
|
@@ -469,7 +469,7 @@ function nl() {
|
|
|
469
469
|
var Se = typeof k == "function" ? k.displayName || k.name || "Unknown" : k;
|
|
470
470
|
le && Ma(ue, Se), ze && Ra(ue, Se);
|
|
471
471
|
}
|
|
472
|
-
return
|
|
472
|
+
return qa(k, le, ze, de, ae, Be.current, ue);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
var fa = b.ReactCurrentOwner, Ca = b.ReactDebugCurrentFrame;
|
|
@@ -594,7 +594,7 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
594
594
|
var ke;
|
|
595
595
|
k === null ? ke = "null" : _e(k) ? ke = "array" : k !== void 0 && k.$$typeof === n ? (ke = "<" + (P(k.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : ke = typeof k, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ke, le);
|
|
596
596
|
}
|
|
597
|
-
var Se =
|
|
597
|
+
var Se = $a(k, J, $, de, ye);
|
|
598
598
|
if (Se == null)
|
|
599
599
|
return Se;
|
|
600
600
|
if (ue) {
|
|
@@ -634,8 +634,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
634
634
|
return He(k, J, $, !1);
|
|
635
635
|
}
|
|
636
636
|
var ti = rt, Vr = la;
|
|
637
|
-
|
|
638
|
-
})()),
|
|
637
|
+
ja.Fragment = r, ja.jsx = ti, ja.jsxs = Vr;
|
|
638
|
+
})()), ja;
|
|
639
639
|
}
|
|
640
640
|
var wi;
|
|
641
641
|
function rl() {
|
|
@@ -647,19 +647,19 @@ const jn = Yt(null), oe = () => {
|
|
|
647
647
|
if (!e)
|
|
648
648
|
throw new Error("useApiContext must be used within ApiProvider");
|
|
649
649
|
return e;
|
|
650
|
-
},
|
|
650
|
+
}, Ya = {
|
|
651
651
|
READY: "ready",
|
|
652
652
|
PENDING: "pending"
|
|
653
653
|
}, Yn = Yt(null), ll = ({ children: e }) => {
|
|
654
|
-
const [n, a] = da(
|
|
655
|
-
const u = n ===
|
|
654
|
+
const [n, a] = da(Ya.READY), r = Ia(() => {
|
|
655
|
+
const u = n === Ya.READY, g = n === Ya.PENDING;
|
|
656
656
|
return {
|
|
657
657
|
status: n,
|
|
658
658
|
setStatus: a,
|
|
659
659
|
isReady: u,
|
|
660
660
|
isPending: g,
|
|
661
|
-
setAsReady: () => a(
|
|
662
|
-
setAsPending: () => a(
|
|
661
|
+
setAsReady: () => a(Ya.READY),
|
|
662
|
+
setAsPending: () => a(Ya.PENDING)
|
|
663
663
|
};
|
|
664
664
|
}, [n]);
|
|
665
665
|
return /* @__PURE__ */ pe.jsx(Yn.Provider, { value: r, children: e });
|
|
@@ -2437,8 +2437,8 @@ function mr() {
|
|
|
2437
2437
|
if (ge < 16)
|
|
2438
2438
|
xe = Ie.high = m[f + ge * 2] | 0, _e = Ie.low = m[f + ge * 2 + 1] | 0;
|
|
2439
2439
|
else {
|
|
2440
|
-
var Ze = s[ge - 15], Ge = Ze.high, Be = Ze.low, ta = (Ge >>> 1 | Be << 31) ^ (Ge >>> 8 | Be << 24) ^ Ge >>> 7, sa = (Be >>> 1 | Ge << 31) ^ (Be >>> 8 | Ge << 24) ^ (Be >>> 7 | Ge << 25), ca = s[ge - 2], Ke = ca.high, ia = ca.low,
|
|
2441
|
-
_e = sa +
|
|
2440
|
+
var Ze = s[ge - 15], Ge = Ze.high, Be = Ze.low, ta = (Ge >>> 1 | Be << 31) ^ (Ge >>> 8 | Be << 24) ^ Ge >>> 7, sa = (Be >>> 1 | Ge << 31) ^ (Be >>> 8 | Ge << 24) ^ (Be >>> 7 | Ge << 25), ca = s[ge - 2], Ke = ca.high, ia = ca.low, Ka = (Ke >>> 19 | ia << 13) ^ (Ke << 3 | ia >>> 29) ^ Ke >>> 6, Ma = (ia >>> 19 | Ke << 13) ^ (ia << 3 | Ke >>> 29) ^ (ia >>> 6 | Ke << 26), Ra = s[ge - 7], qa = Ra.high, $a = Ra.low, fa = s[ge - 16], Ca = fa.high, Xe = fa.low;
|
|
2441
|
+
_e = sa + $a, xe = ta + qa + (_e >>> 0 < sa >>> 0 ? 1 : 0), _e = _e + Ma, xe = xe + Ka + (_e >>> 0 < Ma >>> 0 ? 1 : 0), _e = _e + Xe, xe = xe + Ca + (_e >>> 0 < Xe >>> 0 ? 1 : 0), Ie.high = xe, Ie.low = _e;
|
|
2442
2442
|
}
|
|
2443
2443
|
var _a = se & Ne ^ ~se & je, ya = be & Te ^ ~be & ve, Pa = W & K ^ W & Q ^ K & Q, wa = V & Z ^ V & X ^ Z & X, va = (W >>> 28 | V << 4) ^ (W << 30 | V >>> 2) ^ (W << 25 | V >>> 7), Fa = (V >>> 28 | W << 4) ^ (V << 30 | W >>> 2) ^ (V << 25 | W >>> 7), Aa = (se >>> 14 | be << 18) ^ (se >>> 18 | be << 14) ^ (se << 23 | be >>> 9), Me = (be >>> 14 | se << 18) ^ (be >>> 18 | se << 14) ^ (be << 23 | se >>> 9), q = o[ge], Re = q.high, ra = q.low, He = Ye + Me, la = Le + Aa + (He >>> 0 < Ye >>> 0 ? 1 : 0), He = He + ya, la = la + _a + (He >>> 0 < ya >>> 0 ? 1 : 0), He = He + ra, la = la + Re + (He >>> 0 < ra >>> 0 ? 1 : 0), He = He + _e, la = la + xe + (He >>> 0 < _e >>> 0 ? 1 : 0), rt = Fa + wa, ti = va + Pa + (rt >>> 0 < Fa >>> 0 ? 1 : 0);
|
|
2444
2444
|
Le = je, Ye = ve, je = Ne, ve = Te, Ne = se, Te = be, be = j + He | 0, se = fe + la + (be >>> 0 < j >>> 0 ? 1 : 0) | 0, fe = Q, j = X, Q = K, X = Z, K = W, Z = V, V = He + rt | 0, W = la + ti + (V >>> 0 < He >>> 0 ? 1 : 0) | 0;
|
|
@@ -6093,8 +6093,8 @@ function Eo() {
|
|
|
6093
6093
|
});
|
|
6094
6094
|
})(ct)), ct.exports;
|
|
6095
6095
|
}
|
|
6096
|
-
var
|
|
6097
|
-
const ba = /* @__PURE__ */ Ui(
|
|
6096
|
+
var tt = Eo();
|
|
6097
|
+
const ba = /* @__PURE__ */ Ui(tt), Sa = (e) => {
|
|
6098
6098
|
const n = "mySecretPassphrase", a = ba.lib.WordArray.random(16), r = ba.PBKDF2(n, a, {
|
|
6099
6099
|
keySize: 128 / 32,
|
|
6100
6100
|
iterations: 1e3,
|
|
@@ -6105,7 +6105,7 @@ const ba = /* @__PURE__ */ Ui(Va), Sa = (e) => {
|
|
|
6105
6105
|
padding: ba.pad.Pkcs7
|
|
6106
6106
|
}), g = a.toString(ba.enc.Base64), y = ba.enc.Base64.stringify(u.ciphertext);
|
|
6107
6107
|
return g + ":" + y;
|
|
6108
|
-
}, Do = (e) => e === "aes" ? Sa : (n) =>
|
|
6108
|
+
}, Do = (e) => e === "aes" ? Sa : (n) => tt.MD5(n).toString(), ne = () => {
|
|
6109
6109
|
const {
|
|
6110
6110
|
client: e,
|
|
6111
6111
|
formDataClient: n,
|
|
@@ -6189,7 +6189,7 @@ const ba = /* @__PURE__ */ Ui(Va), Sa = (e) => {
|
|
|
6189
6189
|
[e, a]
|
|
6190
6190
|
), f = B(
|
|
6191
6191
|
async (W) => {
|
|
6192
|
-
const { newPwd: V } = W, K =
|
|
6192
|
+
const { newPwd: V } = W, K = tt.MD5(V).toString();
|
|
6193
6193
|
return await e.post("/member/initset", {
|
|
6194
6194
|
password: K,
|
|
6195
6195
|
password_confirmation: K
|
|
@@ -6361,9 +6361,9 @@ const ba = /* @__PURE__ */ Ui(Va), Sa = (e) => {
|
|
|
6361
6361
|
), I = B(
|
|
6362
6362
|
async (W) => {
|
|
6363
6363
|
const { mobile: V, password: K, invite: Z } = W;
|
|
6364
|
-
return
|
|
6364
|
+
return await e.post("/goMobileByPassword", {
|
|
6365
6365
|
mobile: V,
|
|
6366
|
-
password:
|
|
6366
|
+
password: tt.MD5(K).toString(),
|
|
6367
6367
|
invite: Z
|
|
6368
6368
|
});
|
|
6369
6369
|
},
|
|
@@ -6696,7 +6696,7 @@ function oa() {
|
|
|
6696
6696
|
e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && u();
|
|
6697
6697
|
})(li)), li;
|
|
6698
6698
|
}
|
|
6699
|
-
var
|
|
6699
|
+
var Xa = {}, oi = {}, hn;
|
|
6700
6700
|
function Ti() {
|
|
6701
6701
|
return hn || (hn = 1, (function(e) {
|
|
6702
6702
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
|
|
@@ -6772,7 +6772,7 @@ function ur() {
|
|
|
6772
6772
|
}
|
|
6773
6773
|
return ut;
|
|
6774
6774
|
}
|
|
6775
|
-
var
|
|
6775
|
+
var et = {}, si = {}, xn;
|
|
6776
6776
|
function xi() {
|
|
6777
6777
|
return xn || (xn = 1, (function(e) {
|
|
6778
6778
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
|
|
@@ -6805,8 +6805,8 @@ function xi() {
|
|
|
6805
6805
|
}
|
|
6806
6806
|
var Sn;
|
|
6807
6807
|
function Si() {
|
|
6808
|
-
if (Sn) return
|
|
6809
|
-
Sn = 1, Object.defineProperty(
|
|
6808
|
+
if (Sn) return et;
|
|
6809
|
+
Sn = 1, Object.defineProperty(et, "__esModule", { value: !0 }), et.assertIsWebSocket = a, et.resetGlobalState = r;
|
|
6810
6810
|
var e = Ti(), n = xi();
|
|
6811
6811
|
function a(u, g) {
|
|
6812
6812
|
if (!g && !(u instanceof WebSocket))
|
|
@@ -6815,7 +6815,7 @@ function Si() {
|
|
|
6815
6815
|
function r(u) {
|
|
6816
6816
|
(0, n.resetSubscribers)(u), (0, e.resetWebSockets)(u);
|
|
6817
6817
|
}
|
|
6818
|
-
return
|
|
6818
|
+
return et;
|
|
6819
6819
|
}
|
|
6820
6820
|
var En;
|
|
6821
6821
|
function Mo() {
|
|
@@ -6951,8 +6951,8 @@ function Ro() {
|
|
|
6951
6951
|
}
|
|
6952
6952
|
var Nn;
|
|
6953
6953
|
function Po() {
|
|
6954
|
-
if (Nn) return
|
|
6955
|
-
Nn = 1, Object.defineProperty(
|
|
6954
|
+
if (Nn) return Xa;
|
|
6955
|
+
Nn = 1, Object.defineProperty(Xa, "__esModule", { value: !0 }), Xa.createOrJoinSocket = void 0;
|
|
6956
6956
|
var e = Ti(), n = oa(), a = Mo(), r = Ro(), u = xi(), g = function(d, l, t, i, o) {
|
|
6957
6957
|
return function() {
|
|
6958
6958
|
if ((0, u.removeSubscriber)(d, l), !(0, u.hasSubscribers)(d)) {
|
|
@@ -6990,7 +6990,7 @@ function Po() {
|
|
|
6990
6990
|
}, i, s.current, p, m, f);
|
|
6991
6991
|
}
|
|
6992
6992
|
};
|
|
6993
|
-
return
|
|
6993
|
+
return Xa.createOrJoinSocket = y, Xa;
|
|
6994
6994
|
}
|
|
6995
6995
|
var ua = {}, Ln;
|
|
6996
6996
|
function wo() {
|
|
@@ -8221,7 +8221,7 @@ const Wo = /* @__PURE__ */ Ui(Ho), Io = ({
|
|
|
8221
8221
|
simulateSocketMessage: H
|
|
8222
8222
|
// 測試用:模擬收到某型別的 WS 訊息
|
|
8223
8223
|
};
|
|
8224
|
-
},
|
|
8224
|
+
}, Ja = () => {
|
|
8225
8225
|
const { client: e } = oe(), n = B(
|
|
8226
8226
|
async ({ paramsData: d } = {}) => {
|
|
8227
8227
|
const { uid: l } = d || {};
|
|
@@ -8269,7 +8269,7 @@ const Wo = /* @__PURE__ */ Ui(Ho), Io = ({
|
|
|
8269
8269
|
memberEventSettleApi: y
|
|
8270
8270
|
};
|
|
8271
8271
|
}, ms = ({ paramsData: e, options: n } = {}) => {
|
|
8272
|
-
const { store: a, lng: r, data2URL: u } = oe(), { eventListApi: g } =
|
|
8272
|
+
const { store: a, lng: r, data2URL: u } = oe(), { eventListApi: g } = Ja(), y = a?.getState()?.isWalletCurrency || a?.getState()?.currency?.currentCurrency || "TWD", d = Je(r);
|
|
8273
8273
|
return Y({
|
|
8274
8274
|
queryKey: ["eventList", e],
|
|
8275
8275
|
queryFn: () => g({ paramsData: e }),
|
|
@@ -8407,21 +8407,21 @@ const Wo = /* @__PURE__ */ Ui(Ho), Io = ({
|
|
|
8407
8407
|
...n
|
|
8408
8408
|
});
|
|
8409
8409
|
}, _u = ({ options: e } = {}) => {
|
|
8410
|
-
const { redeemEventRewardApi: n } =
|
|
8410
|
+
const { redeemEventRewardApi: n } = Ja();
|
|
8411
8411
|
return te({
|
|
8412
8412
|
mutationKey: ["redeemEventReward"],
|
|
8413
8413
|
mutationFn: async (a) => n(a),
|
|
8414
8414
|
...e
|
|
8415
8415
|
});
|
|
8416
8416
|
}, us = ({ options: e, formData: n } = {}) => {
|
|
8417
|
-
const { checkCurrentEventProgessApi: a } =
|
|
8417
|
+
const { checkCurrentEventProgessApi: a } = Ja();
|
|
8418
8418
|
return Y({
|
|
8419
8419
|
queryKey: ["checkEventProgress"],
|
|
8420
8420
|
queryFn: async () => a(n),
|
|
8421
8421
|
...e
|
|
8422
8422
|
});
|
|
8423
8423
|
}, ps = ({ options: e, formData: n } = {}) => {
|
|
8424
|
-
const { checkEventStatusApi: a } =
|
|
8424
|
+
const { checkEventStatusApi: a } = Ja();
|
|
8425
8425
|
return Y({
|
|
8426
8426
|
queryKey: ["checkEventStatus"],
|
|
8427
8427
|
queryFn: async () => a(n),
|
|
@@ -8429,14 +8429,14 @@ const Wo = /* @__PURE__ */ Ui(Ho), Io = ({
|
|
|
8429
8429
|
...e
|
|
8430
8430
|
});
|
|
8431
8431
|
}, yu = ({ options: e } = {}) => {
|
|
8432
|
-
const { settleEventApi: n } =
|
|
8432
|
+
const { settleEventApi: n } = Ja();
|
|
8433
8433
|
return te({
|
|
8434
8434
|
mutationKey: ["settleEvent"],
|
|
8435
8435
|
mutationFn: async (a) => n(a),
|
|
8436
8436
|
...e
|
|
8437
8437
|
});
|
|
8438
8438
|
}, bu = ({ options: e } = {}) => {
|
|
8439
|
-
const { memberEventSettleApi: n } =
|
|
8439
|
+
const { memberEventSettleApi: n } = Ja();
|
|
8440
8440
|
return te({
|
|
8441
8441
|
mutationKey: ["memberEventSettle"],
|
|
8442
8442
|
mutationFn: async (a) => n(a),
|
|
@@ -9080,7 +9080,7 @@ function Ls({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
9080
9080
|
ga && K.current && (z.current || q) && (Z.current.forEach((Re) => {
|
|
9081
9081
|
K.current.removeEventListener(Re, Ze.current, { capture: !0 });
|
|
9082
9082
|
}), z.current = !1);
|
|
9083
|
-
}, ta = B((q) => Q.current ? !1 : (ve(), Ge(), L.current = !1, I.current = !1, H.current = !1, G.current = 0, M.current = 0, E.current && !q && E.current.start(), Le(), !0), [D, L, Q, w, E]), sa = B((q) => Q.current ? !1 : (ve(), Ge(), O.current = Ee(), F.current += Ee() - T.current, P.current += Ee() - T.current, F.current = 0, L.current = !1, I.current = !1, H.current = !1, G.current = 0, M.current = 0, E.current && !q && E.current.reset(), b || Le(), !0), [D, L, w, b, Q, E]), ca = B((q) => Q.current ? !1 : (ve(), Ge(), (L.current || I.current) && _e(), L.current = !1, I.current = !1, H.current = !1, G.current = 0, M.current = 0, O.current = Ee(), E.current && !q && E.current.activate(), Le(), !0), [D, L, I, Q, w, E]), Ke = B((q = !1) => Q.current || H.current ? !1 : (G.current = Ca(), H.current = !0, Be(), ve(), E.current && !q && E.current.pause(), !0), [D, Q, E]), ia = B((q = !1) => Q.current || !H.current ? !1 : (H.current = !1, I.current || Ge(), L.current || Le(G.current), M.current && (M.current = Ee()), E.current && !q && E.current.resume(), !0), [D, w, Q, G, E]),
|
|
9083
|
+
}, ta = B((q) => Q.current ? !1 : (ve(), Ge(), L.current = !1, I.current = !1, H.current = !1, G.current = 0, M.current = 0, E.current && !q && E.current.start(), Le(), !0), [D, L, Q, w, E]), sa = B((q) => Q.current ? !1 : (ve(), Ge(), O.current = Ee(), F.current += Ee() - T.current, P.current += Ee() - T.current, F.current = 0, L.current = !1, I.current = !1, H.current = !1, G.current = 0, M.current = 0, E.current && !q && E.current.reset(), b || Le(), !0), [D, L, w, b, Q, E]), ca = B((q) => Q.current ? !1 : (ve(), Ge(), (L.current || I.current) && _e(), L.current = !1, I.current = !1, H.current = !1, G.current = 0, M.current = 0, O.current = Ee(), E.current && !q && E.current.activate(), Le(), !0), [D, L, I, Q, w, E]), Ke = B((q = !1) => Q.current || H.current ? !1 : (G.current = Ca(), H.current = !0, Be(), ve(), E.current && !q && E.current.pause(), !0), [D, Q, E]), ia = B((q = !1) => Q.current || !H.current ? !1 : (H.current = !1, I.current || Ge(), L.current || Le(G.current), M.current && (M.current = Ee()), E.current && !q && E.current.resume(), !0), [D, w, Q, G, E]), Ka = B((q, Re) => (E.current ? (Re && Ne.current(q, Me), E.current.message(q)) : Re && Ne.current(q, Me), !0), [s]), Ma = B(() => L.current, [L]), Ra = B(() => I.current, [I]), qa = B(() => E.current ? E.current.isLeader : null, [E]), $a = B(() => E.current ? E.current.isLastActive : null, [E]), fa = B(() => E.current ? E.current.token : null, [E]), Ca = B(() => {
|
|
9084
9084
|
if (H.current) return G.current;
|
|
9085
9085
|
let q = G.current ? G.current : R.current + w.current, Re = x.current ? Ee() - x.current : 0, ra = Math.floor(q - Re);
|
|
9086
9086
|
return ra < 0 ? 0 : Math.abs(ra);
|
|
@@ -9121,7 +9121,7 @@ function Ls({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
9121
9121
|
}, [r, JSON.stringify(u), JSON.stringify(y), A, S, b, c]), ce(() => {
|
|
9122
9122
|
A.current && (A.current = !1);
|
|
9123
9123
|
}, [A]);
|
|
9124
|
-
let Me = { message:
|
|
9124
|
+
let Me = { message: Ka, start: ta, reset: sa, activate: ca, pause: Ke, resume: ia, isIdle: Ma, isPrompted: Ra, isLeader: qa, isLastActiveTab: $a, getTabId: fa, getRemainingTime: Ca, getElapsedTime: Xe, getTotalElapsedTime: _a, getLastIdleTime: ya, getLastActiveTime: Pa, getIdleTime: wa, getTotalIdleTime: va, getActiveTime: Fa, getTotalActiveTime: Aa, setOnPresenceChange: (q) => {
|
|
9125
9125
|
d = q, X.current = q;
|
|
9126
9126
|
}, setOnPrompt: (q) => {
|
|
9127
9127
|
l = q, fe.current = q;
|
|
@@ -9327,7 +9327,7 @@ const Nu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ls({
|
|
|
9327
9327
|
withdrawal_amount: b,
|
|
9328
9328
|
bank_account_number: _,
|
|
9329
9329
|
currency_code: U,
|
|
9330
|
-
withdrawal_code:
|
|
9330
|
+
withdrawal_code: tt.MD5(C).toString(),
|
|
9331
9331
|
payment_type: "ThirdParty"
|
|
9332
9332
|
}
|
|
9333
9333
|
});
|
|
@@ -9656,19 +9656,19 @@ const Nu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ls({
|
|
|
9656
9656
|
eventTransaction: m,
|
|
9657
9657
|
withdrawTransaction: f
|
|
9658
9658
|
};
|
|
9659
|
-
}, _r = "3.8.0", zs = _r,
|
|
9659
|
+
}, _r = "3.8.0", zs = _r, Za = typeof Buffer == "function", An = typeof TextDecoder == "function" ? new TextDecoder("utf-8", { ignoreBOM: !0 }) : void 0, On = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Vs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", at = Array.prototype.slice.call(Vs), pt = ((e) => {
|
|
9660
9660
|
let n = {};
|
|
9661
9661
|
return e.forEach((a, r) => n[a] = r), n;
|
|
9662
|
-
})(
|
|
9662
|
+
})(at), Js = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Oe = String.fromCharCode.bind(String), Bn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), yr = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (n) => n == "+" ? "-" : "_"), br = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), Ur = (e) => {
|
|
9663
9663
|
let n, a, r, u, g = "";
|
|
9664
9664
|
const y = e.length % 3;
|
|
9665
9665
|
for (let d = 0; d < e.length; ) {
|
|
9666
9666
|
if ((a = e.charCodeAt(d++)) > 255 || (r = e.charCodeAt(d++)) > 255 || (u = e.charCodeAt(d++)) > 255)
|
|
9667
9667
|
throw new TypeError("invalid character found");
|
|
9668
|
-
n = a << 16 | r << 8 | u, g +=
|
|
9668
|
+
n = a << 16 | r << 8 | u, g += at[n >> 18 & 63] + at[n >> 12 & 63] + at[n >> 6 & 63] + at[n & 63];
|
|
9669
9669
|
}
|
|
9670
9670
|
return y ? g.slice(0, y - 3) + "===".substring(y) : g;
|
|
9671
|
-
}, Ni = typeof btoa == "function" ? (e) => btoa(e) :
|
|
9671
|
+
}, Ni = typeof btoa == "function" ? (e) => btoa(e) : Za ? (e) => Buffer.from(e, "binary").toString("base64") : Ur, ci = Za ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
9672
9672
|
let a = [];
|
|
9673
9673
|
for (let r = 0, u = e.length; r < u; r += 4096)
|
|
9674
9674
|
a.push(Oe.apply(null, e.subarray(r, r + 4096)));
|
|
@@ -9681,7 +9681,7 @@ const Nu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ls({
|
|
|
9681
9681
|
var n = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
9682
9682
|
return Oe(240 | n >>> 18 & 7) + Oe(128 | n >>> 12 & 63) + Oe(128 | n >>> 6 & 63) + Oe(128 | n & 63);
|
|
9683
9683
|
}
|
|
9684
|
-
}, Ks = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Cr = (e) => e.replace(Ks, Zs), Hn =
|
|
9684
|
+
}, Ks = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Cr = (e) => e.replace(Ks, Zs), Hn = Za ? (e) => Buffer.from(e, "utf8").toString("base64") : On ? (e) => ci(On.encode(e)) : (e) => Ni(Cr(e)), Va = (e, n = !1) => n ? yr(Hn(e)) : Hn(e), Wn = (e) => Va(e, !0), qs = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, $s = (e) => {
|
|
9685
9685
|
switch (e.length) {
|
|
9686
9686
|
case 4:
|
|
9687
9687
|
var n = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), a = n - 65536;
|
|
@@ -9699,7 +9699,7 @@ const Nu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ls({
|
|
|
9699
9699
|
for (let g = 0; g < e.length; )
|
|
9700
9700
|
n = pt[e.charAt(g++)] << 18 | pt[e.charAt(g++)] << 12 | (a = pt[e.charAt(g++)]) << 6 | (r = pt[e.charAt(g++)]), a === 64 ? u.push(Oe(n >> 16 & 255)) : r === 64 ? u.push(Oe(n >> 16 & 255, n >> 8 & 255)) : u.push(Oe(n >> 16 & 255, n >> 8 & 255, n & 255));
|
|
9701
9701
|
return u.join("");
|
|
9702
|
-
}, Li = typeof atob == "function" ? (e) => atob(br(e)) :
|
|
9702
|
+
}, Li = typeof atob == "function" ? (e) => atob(br(e)) : Za ? (e) => Buffer.from(e, "base64").toString("binary") : hr, Tr = Za ? (e) => Bn(Buffer.from(e, "base64")) : (e) => Bn(Li(e).split("").map((n) => n.charCodeAt(0))), kr = (e) => Tr(xr(e)), Qs = Za ? (e) => Buffer.from(e, "base64").toString("utf8") : An ? (e) => An.decode(Tr(e)) : (e) => vr(Li(e)), xr = (e) => br(e.replace(/[-_]/g, (n) => n == "-" ? "+" : "/")), fi = (e) => Qs(xr(e)), js = (e) => {
|
|
9703
9703
|
if (typeof e != "string")
|
|
9704
9704
|
return !1;
|
|
9705
9705
|
const n = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
@@ -9714,11 +9714,11 @@ const Nu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ls({
|
|
|
9714
9714
|
e("fromBase64", function() {
|
|
9715
9715
|
return fi(this);
|
|
9716
9716
|
}), e("toBase64", function(n) {
|
|
9717
|
-
return
|
|
9717
|
+
return Va(this, n);
|
|
9718
9718
|
}), e("toBase64URI", function() {
|
|
9719
|
-
return
|
|
9719
|
+
return Va(this, !0);
|
|
9720
9720
|
}), e("toBase64URL", function() {
|
|
9721
|
-
return
|
|
9721
|
+
return Va(this, !0);
|
|
9722
9722
|
}), e("toUint8Array", function() {
|
|
9723
9723
|
return kr(this);
|
|
9724
9724
|
});
|
|
@@ -9741,8 +9741,8 @@ const Nu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ls({
|
|
|
9741
9741
|
btoa: Ni,
|
|
9742
9742
|
btoaPolyfill: Ur,
|
|
9743
9743
|
fromBase64: fi,
|
|
9744
|
-
toBase64:
|
|
9745
|
-
encode:
|
|
9744
|
+
toBase64: Va,
|
|
9745
|
+
encode: Va,
|
|
9746
9746
|
encodeURI: Wn,
|
|
9747
9747
|
encodeURL: Wn,
|
|
9748
9748
|
utob: Cr,
|
|
@@ -38796,7 +38796,7 @@ export {
|
|
|
38796
38796
|
s0 as LineQrCode,
|
|
38797
38797
|
Di as MONTH_CARD_QUERY_KEY,
|
|
38798
38798
|
Ue as SOCKET_TYPE,
|
|
38799
|
-
|
|
38799
|
+
Ya as STATUS_TYPES,
|
|
38800
38800
|
Yn as StatusContext,
|
|
38801
38801
|
ll as StatusProvider,
|
|
38802
38802
|
m0 as TermsDialog,
|