@obb871001/api-integration-sdk 1.0.314 → 1.0.315

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.js CHANGED
@@ -1,4 +1,4 @@
1
- import de, { createContext as Vi, useContext as ut, useState as tt, useMemo as Ba, useCallback as I, useRef as ee, useEffect as ge } from "react";
1
+ import de, { createContext as Vi, useContext as ut, useState as tt, useMemo as Oa, useCallback as I, useRef as ee, useEffect as ge } from "react";
2
2
  import { useQueries as Hn, useQuery as Q, useQueryClient as pt, useMutation as re, QueryClient as Ol, QueryClientProvider as Bl } from "@tanstack/react-query";
3
3
  import Hl from "axios";
4
4
  import { get as le, find as qe, isEmpty as Ee, entries as Wn, forEach as Wl, map as Be, isArray as la, toLower as Tt, omit as zl, replace as kt, includes as Il, isObject as Ji, flatMap as Zi, values as Vl, keys as xt } from "lodash";
@@ -288,7 +288,7 @@ function ql() {
288
288
  } finally {
289
289
  ae = !1, q.current = pe, K(), Error.prepareStackTrace = me;
290
290
  }
291
- var wa = h ? h.displayName || h.name : "", Ca = wa ? Z(wa) : "";
291
+ var Pa = h ? h.displayName || h.name : "", Ca = Pa ? Z(Pa) : "";
292
292
  return typeof h == "function" && te.set(h, Ca), Ca;
293
293
  }
294
294
  function se(h, z, J) {
@@ -403,7 +403,7 @@ function ql() {
403
403
  function za(h, z) {
404
404
  typeof h.ref == "string" && Re.current;
405
405
  }
406
- function Na(h, z) {
406
+ function Ea(h, z) {
407
407
  {
408
408
  var J = function() {
409
409
  oa || (oa = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", z));
@@ -414,7 +414,7 @@ function ql() {
414
414
  });
415
415
  }
416
416
  }
417
- function La(h, z) {
417
+ function Na(h, z) {
418
418
  {
419
419
  var J = function() {
420
420
  ga || (ga = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", z));
@@ -467,7 +467,7 @@ function ql() {
467
467
  }
468
468
  if (X || Oe) {
469
469
  var he = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
470
- X && Na(ne, he), Oe && La(ne, he);
470
+ X && Ea(ne, he), Oe && Na(ne, he);
471
471
  }
472
472
  return Ia(h, X, Oe, me, $, Re.current, ne);
473
473
  }
@@ -485,7 +485,7 @@ function ql() {
485
485
  function fa(h) {
486
486
  return typeof h == "object" && h !== null && h.$$typeof === n;
487
487
  }
488
- function Ga() {
488
+ function La() {
489
489
  {
490
490
  if (da.current) {
491
491
  var h = B(da.current.type);
@@ -497,13 +497,13 @@ Check the render method of \`` + h + "`.";
497
497
  return "";
498
498
  }
499
499
  }
500
- function Ma(h) {
500
+ function Ga(h) {
501
501
  return "";
502
502
  }
503
503
  var ba = {};
504
- function Ra(h) {
504
+ function Ma(h) {
505
505
  {
506
- var z = Ga();
506
+ var z = La();
507
507
  if (!z) {
508
508
  var J = typeof h == "string" ? h : h.displayName || h.name;
509
509
  J && (z = `
@@ -513,12 +513,12 @@ Check the top-level render call using <` + J + ">.");
513
513
  return z;
514
514
  }
515
515
  }
516
- function Pa(h, z) {
516
+ function Ra(h, z) {
517
517
  {
518
518
  if (!h._store || h._store.validated || h.key != null)
519
519
  return;
520
520
  h._store.validated = !0;
521
- var J = Ra(z);
521
+ var J = Ma(z);
522
522
  if (ba[J])
523
523
  return;
524
524
  ba[J] = !0;
@@ -533,7 +533,7 @@ Check the top-level render call using <` + J + ">.");
533
533
  if (ve(h))
534
534
  for (var J = 0; J < h.length; J++) {
535
535
  var $ = h[J];
536
- fa($) && Pa($, z);
536
+ fa($) && Ra($, z);
537
537
  }
538
538
  else if (fa(h))
539
539
  h._store && (h._store.validated = !0);
@@ -541,7 +541,7 @@ Check the top-level render call using <` + J + ">.");
541
541
  var me = f(h);
542
542
  if (typeof me == "function" && me !== h.entries)
543
543
  for (var pe = me.call(h), ne; !(ne = pe.next()).done; )
544
- fa(ne.value) && Pa(ne.value, z);
544
+ fa(ne.value) && Ra(ne.value, z);
545
545
  }
546
546
  }
547
547
  }
@@ -589,8 +589,8 @@ Check the top-level render call using <` + J + ">.");
589
589
  if (!ne) {
590
590
  var X = "";
591
591
  (h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (X += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
592
- var Oe = Ma();
593
- Oe ? X += Oe : X += Ga();
592
+ var Oe = Ga();
593
+ Oe ? X += Oe : X += La();
594
594
  var be;
595
595
  h === null ? be = "null" : ve(h) ? be = "array" : h !== void 0 && h.$$typeof === n ? (be = "<" + (B(h.type) || "Unknown") + " />", X = " Did you accidentally export a JSX literal instead of a component?") : be = typeof h, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", be, X);
596
596
  }
@@ -602,8 +602,8 @@ Check the top-level render call using <` + J + ">.");
602
602
  if (Ke !== void 0)
603
603
  if ($)
604
604
  if (ve(Ke)) {
605
- for (var wa = 0; wa < Ke.length; wa++)
606
- Se(Ke[wa], h);
605
+ for (var Pa = 0; Pa < Ke.length; Pa++)
606
+ Se(Ke[Pa], h);
607
607
  Object.freeze && Object.freeze(Ke);
608
608
  } else
609
609
  _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -651,7 +651,7 @@ const zn = Vi(null), oe = () => {
651
651
  READY: "ready",
652
652
  PENDING: "pending"
653
653
  }, In = Vi(null), Ql = ({ children: e }) => {
654
- const [n, i] = tt(Ka.PENDING), l = Ba(() => {
654
+ const [n, i] = tt(Ka.PENDING), l = Oa(() => {
655
655
  const p = n === Ka.READY, g = n === Ka.PENDING;
656
656
  return {
657
657
  status: n,
@@ -2410,10 +2410,10 @@ function el() {
2410
2410
  if (Me < 16)
2411
2411
  He = aa.high = m[c + Me * 2] | 0, ve = aa.low = m[c + Me * 2 + 1] | 0;
2412
2412
  else {
2413
- var ia = s[Me - 15], xe = ia.high, Re = ia.low, Qe = (xe >>> 1 | Re << 31) ^ (xe >>> 8 | Re << 24) ^ xe >>> 7, oa = (Re >>> 1 | xe << 31) ^ (Re >>> 8 | xe << 24) ^ (Re >>> 7 | xe << 25), ga = s[Me - 2], Ve = ga.high, je = ga.low, za = (Ve >>> 19 | je << 13) ^ (Ve << 3 | je >>> 29) ^ Ve >>> 6, Na = (je >>> 19 | Ve << 13) ^ (je << 3 | Ve >>> 29) ^ (je >>> 6 | Ve << 26), La = s[Me - 7], Ia = La.high, Va = La.low, da = s[Me - 16], Ua = da.high, Ze = da.low;
2414
- ve = oa + Va, He = Qe + Ia + (ve >>> 0 < oa >>> 0 ? 1 : 0), ve = ve + Na, He = He + za + (ve >>> 0 < Na >>> 0 ? 1 : 0), ve = ve + Ze, He = He + Ua + (ve >>> 0 < Ze >>> 0 ? 1 : 0), aa.high = He, aa.low = ve;
2413
+ var ia = s[Me - 15], xe = ia.high, Re = ia.low, Qe = (xe >>> 1 | Re << 31) ^ (xe >>> 8 | Re << 24) ^ xe >>> 7, oa = (Re >>> 1 | xe << 31) ^ (Re >>> 8 | xe << 24) ^ (Re >>> 7 | xe << 25), ga = s[Me - 2], Ve = ga.high, je = ga.low, za = (Ve >>> 19 | je << 13) ^ (Ve << 3 | je >>> 29) ^ Ve >>> 6, Ea = (je >>> 19 | Ve << 13) ^ (je << 3 | Ve >>> 29) ^ (je >>> 6 | Ve << 26), Na = s[Me - 7], Ia = Na.high, Va = Na.low, da = s[Me - 16], Ua = da.high, Ze = da.low;
2414
+ ve = oa + Va, He = Qe + Ia + (ve >>> 0 < oa >>> 0 ? 1 : 0), ve = ve + Ea, He = He + za + (ve >>> 0 < Ea >>> 0 ? 1 : 0), ve = ve + Ze, He = He + Ua + (ve >>> 0 < Ze >>> 0 ? 1 : 0), aa.high = He, aa.low = ve;
2415
2415
  }
2416
- var ca = se & ke ^ ~se & Ie, fa = ce & Ue ^ ~ce & Ce, Ga = K & j ^ K & ae ^ j & ae, Ma = q & Z ^ q & te ^ Z & te, ba = (K >>> 28 | q << 4) ^ (K << 30 | q >>> 2) ^ (K << 25 | q >>> 7), Ra = (q >>> 28 | K << 4) ^ (q << 30 | K >>> 2) ^ (q << 25 | K >>> 7), Pa = (se >>> 14 | ce << 18) ^ (se >>> 18 | ce << 14) ^ (se << 23 | ce >>> 9), Se = (ce >>> 14 | se << 18) ^ (ce >>> 18 | se << 14) ^ (ce << 23 | se >>> 9), V = o[Me], De = V.high, ta = V.low, Pe = ea + Se, na = Ge + Pa + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ta, na = na + De + (Pe >>> 0 < ta >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + He + (Pe >>> 0 < ve >>> 0 ? 1 : 0), ei = Ra + Ma, qi = ba + Ga + (ei >>> 0 < Ra >>> 0 ? 1 : 0);
2416
+ var ca = se & ke ^ ~se & Ie, fa = ce & Ue ^ ~ce & Ce, La = K & j ^ K & ae ^ j & ae, Ga = q & Z ^ q & te ^ Z & te, ba = (K >>> 28 | q << 4) ^ (K << 30 | q >>> 2) ^ (K << 25 | q >>> 7), Ma = (q >>> 28 | K << 4) ^ (q << 30 | K >>> 2) ^ (q << 25 | K >>> 7), Ra = (se >>> 14 | ce << 18) ^ (se >>> 18 | ce << 14) ^ (se << 23 | ce >>> 9), Se = (ce >>> 14 | se << 18) ^ (ce >>> 18 | se << 14) ^ (ce << 23 | se >>> 9), V = o[Me], De = V.high, ta = V.low, Pe = ea + Se, na = Ge + Ra + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ta, na = na + De + (Pe >>> 0 < ta >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + He + (Pe >>> 0 < ve >>> 0 ? 1 : 0), ei = Ma + Ga, qi = ba + La + (ei >>> 0 < Ma >>> 0 ? 1 : 0);
2417
2417
  Ge = Ie, ea = Ce, Ie = ke, Ce = Ue, ke = se, Ue = ce, ce = ye + Pe | 0, se = _e + na + (ce >>> 0 < ye >>> 0 ? 1 : 0) | 0, _e = ae, ye = te, ae = j, te = Z, j = K, Z = q, q = Pe + ei | 0, K = na + qi + (q >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
2418
2418
  }
2419
2419
  k = y.low = k + q, y.high = W + K + (k >>> 0 < q >>> 0 ? 1 : 0), O = _.low = O + Z, _.high = T + j + (O >>> 0 < Z >>> 0 ? 1 : 0), w = U.low = w + te, U.high = B + ae + (w >>> 0 < te >>> 0 ? 1 : 0), P = C.low = P + ye, C.high = R + _e + (P >>> 0 < ye >>> 0 ? 1 : 0), L = v.low = L + ce, v.high = N + se + (L >>> 0 < ce >>> 0 ? 1 : 0), H = x.low = H + Ue, x.high = F + ke + (H >>> 0 < Ue >>> 0 ? 1 : 0), E = S.low = E + Ce, S.high = D + Ie + (E >>> 0 < Ce >>> 0 ? 1 : 0), M = G.low = M + ea, G.high = A + Ge + (M >>> 0 < ea >>> 0 ? 1 : 0);
@@ -7402,7 +7402,7 @@ const Eo = /* @__PURE__ */ gt(Do), No = ({
7402
7402
  }
7403
7403
  });
7404
7404
  } };
7405
- }, Ea = () => {
7405
+ }, Ha = () => {
7406
7406
  const { client: e } = oe(), n = I(async () => {
7407
7407
  const { data: d } = await e.get("/carousels");
7408
7408
  return d;
@@ -7616,14 +7616,14 @@ const Eo = /* @__PURE__ */ gt(Do), No = ({
7616
7616
  ...e
7617
7617
  });
7618
7618
  }, wm = ({ options: e, paramsData: n } = {}) => {
7619
- const { verifyPhoneBarApi: i } = Ea();
7619
+ const { verifyPhoneBarApi: i } = Ha();
7620
7620
  return Q({
7621
7621
  queryKey: ["verifyPhoneBar", n],
7622
7622
  queryFn: async () => i(n),
7623
7623
  ...e
7624
7624
  });
7625
7625
  }, Fm = ({ options: e, paramsData: n } = {}) => {
7626
- const { verifyDonationCodeApi: i } = Ea();
7626
+ const { verifyDonationCodeApi: i } = Ha();
7627
7627
  return Q({
7628
7628
  queryKey: ["verifyDonationCode", n],
7629
7629
  queryFn: async () => i(n),
@@ -7637,7 +7637,7 @@ const Eo = /* @__PURE__ */ gt(Do), No = ({
7637
7637
  ...e
7638
7638
  });
7639
7639
  }, Om = ({ options: e, bonusData: n } = {}) => {
7640
- const { getJackpotApi: i } = Ea();
7640
+ const { getJackpotApi: i } = ue();
7641
7641
  return Q({
7642
7642
  queryKey: ["getJackpotData"],
7643
7643
  queryFn: async () => i(),
@@ -7764,7 +7764,7 @@ const Eo = /* @__PURE__ */ gt(Do), No = ({
7764
7764
  reconnectAttempts: 9999,
7765
7765
  reconnectInterval: 1e3,
7766
7766
  ...i
7767
- }), T = Ba(() => {
7767
+ }), T = Oa(() => {
7768
7768
  try {
7769
7769
  return JSON.parse(W?.data);
7770
7770
  } catch {
@@ -8142,7 +8142,7 @@ const Eo = /* @__PURE__ */ gt(Do), No = ({
8142
8142
  checkEventStatusQuery: l
8143
8143
  };
8144
8144
  }, Vm = () => {
8145
- const { lng: e, data2URL: n } = oe(), { commonCarouselApi: i } = Ea(), l = $e(e);
8145
+ const { lng: e, data2URL: n } = oe(), { commonCarouselApi: i } = Ha(), l = $e(e);
8146
8146
  return Q({
8147
8147
  queryKey: ["getCarouselList"],
8148
8148
  queryFn: async () => {
@@ -8163,7 +8163,7 @@ const Eo = /* @__PURE__ */ gt(Do), No = ({
8163
8163
  })
8164
8164
  });
8165
8165
  }, Jm = () => {
8166
- const { lng: e } = oe(), { commonMarqueeApi: n } = Ea(), i = $e(e);
8166
+ const { lng: e } = oe(), { commonMarqueeApi: n } = Ha(), i = $e(e);
8167
8167
  return Q({
8168
8168
  queryKey: ["getMarqueeList"],
8169
8169
  queryFn: async () => {
@@ -8254,12 +8254,12 @@ var pa = (typeof window > "u" ? "undefined" : typeof window) == "object", Ye = {
8254
8254
  function ts(e) {
8255
8255
  Ye.setTimeout = e.setTimeout, Ye.clearTimeout = e.clearTimeout, Ye.setInterval = e.setInterval, Ye.clearInterval = e.clearInterval;
8256
8256
  }
8257
- var Fa = {}, ns = class {
8257
+ var wa = {}, ns = class {
8258
8258
  name;
8259
8259
  closed = !1;
8260
8260
  mc = new MessageChannel();
8261
8261
  constructor(e) {
8262
- this.name = e, Fa[e] = Fa[e] || [], Fa[e].push(this), this.mc.port1.start(), this.mc.port2.start(), this.onStorage = this.onStorage.bind(this), window.addEventListener("storage", this.onStorage);
8262
+ this.name = e, wa[e] = wa[e] || [], wa[e].push(this), this.mc.port1.start(), this.mc.port2.start(), this.onStorage = this.onStorage.bind(this), window.addEventListener("storage", this.onStorage);
8263
8263
  }
8264
8264
  onStorage(e) {
8265
8265
  if (e.storageArea !== window.localStorage || e.key.substring(0, this.name.length) !== this.name || e.newValue === null) return;
@@ -8271,15 +8271,15 @@ var Fa = {}, ns = class {
8271
8271
  let n = JSON.stringify(e), i = `${this.name}:${String(Date.now())}${String(Math.random())}`;
8272
8272
  window.localStorage.setItem(i, n), Ye.setTimeout(() => {
8273
8273
  window.localStorage.removeItem(i);
8274
- }, 500), Fa[this.name].forEach((l) => {
8274
+ }, 500), wa[this.name].forEach((l) => {
8275
8275
  l !== this && l.mc.port2.postMessage(JSON.parse(n));
8276
8276
  });
8277
8277
  }
8278
8278
  close() {
8279
8279
  if (this.closed) return;
8280
8280
  this.closed = !0, this.mc.port1.close(), this.mc.port2.close(), window.removeEventListener("storage", this.onStorage);
8281
- let e = Fa[this.name].indexOf(this);
8282
- Fa[this.name].splice(e, 1);
8281
+ let e = wa[this.name].indexOf(this);
8282
+ wa[this.name].splice(e, 1);
8283
8283
  }
8284
8284
  get onmessage() {
8285
8285
  return this.mc.port1.onmessage;
@@ -8510,7 +8510,7 @@ function it(e, n) {
8510
8510
  if (!(p - i < n)) return i = p, e(...l);
8511
8511
  };
8512
8512
  }
8513
- var Te = () => Date.now(), Aa = 2147483647;
8513
+ var Te = () => Date.now(), Fa = 2147483647;
8514
8514
  function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle: i = 0, element: l = ms, events: p = us, timers: g = void 0, immediateEvents: b = [], onPresenceChange: d = () => {
8515
8515
  }, onPrompt: r = () => {
8516
8516
  }, onIdle: a = () => {
@@ -8521,9 +8521,9 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8521
8521
  let G = ee(Te()), W = ee(Te()), k = ee(null), T = ee(null), O = ee(0), B = ee(0), w = ee(0), R = ee(0), P = ee(!1), N = ee(!1), L = ee(!1), F = ee(!0), H = ee(!1), D = ee(null), E = ee(null), A = ee(e), M = ee(0);
8522
8522
  ge(() => {
8523
8523
  if (n && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), i && n) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
8524
- if (e >= Aa) throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Aa}.`);
8525
- if (n >= Aa) throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Aa}.`);
8526
- if (i >= Aa) throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${Aa}.`);
8524
+ if (e >= Fa) throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Fa}.`);
8525
+ if (n >= Fa) throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Fa}.`);
8526
+ if (i >= Fa) throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${Fa}.`);
8527
8527
  if (i >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
8528
8528
  if (i ? (A.current = e - i, M.current = i) : (A.current = e, M.current = n), !F.current) {
8529
8529
  if (y || S) return;
@@ -8562,7 +8562,7 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8562
8562
  ge(() => {
8563
8563
  ke.current = s;
8564
8564
  }, [s]);
8565
- let Ue = Ba(() => {
8565
+ let Ue = Oa(() => {
8566
8566
  let V = (De, ta) => ce.current(De, ta);
8567
8567
  return u > 0 ? ps(V, u) : m > 0 ? it(V, m) : V;
8568
8568
  }, [m, u]), Ie = ee();
@@ -8618,14 +8618,14 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8618
8618
  pa && j.current && (H.current || V) && (Z.current.forEach((De) => {
8619
8619
  j.current.removeEventListener(De, ia.current, { capture: !0 });
8620
8620
  }), H.current = !1);
8621
- }, Qe = I((V) => ae.current ? !1 : (Ce(), xe(), P.current = !1, N.current = !1, L.current = !1, R.current = 0, w.current = 0, E.current && !V && E.current.start(), Ge(), !0), [D, P, ae, A, E]), oa = I((V) => ae.current ? !1 : (Ce(), xe(), W.current = Te(), O.current += Te() - k.current, B.current += Te() - k.current, O.current = 0, P.current = !1, N.current = !1, L.current = !1, R.current = 0, w.current = 0, E.current && !V && E.current.reset(), y || Ge(), !0), [D, P, A, y, ae, E]), ga = I((V) => ae.current ? !1 : (Ce(), xe(), (P.current || N.current) && ve(), P.current = !1, N.current = !1, L.current = !1, R.current = 0, w.current = 0, W.current = Te(), E.current && !V && E.current.activate(), Ge(), !0), [D, P, N, ae, A, E]), Ve = I((V = !1) => ae.current || L.current ? !1 : (R.current = Ua(), L.current = !0, Re(), Ce(), E.current && !V && E.current.pause(), !0), [D, ae, E]), je = I((V = !1) => ae.current || !L.current ? !1 : (L.current = !1, N.current || xe(), P.current || Ge(R.current), w.current && (w.current = Te()), E.current && !V && E.current.resume(), !0), [D, A, ae, R, E]), za = I((V, De) => (E.current ? (De && ke.current(V, Se), E.current.message(V)) : De && ke.current(V, Se), !0), [s]), Na = I(() => P.current, [P]), La = I(() => N.current, [N]), Ia = I(() => E.current ? E.current.isLeader : null, [E]), Va = I(() => E.current ? E.current.isLastActive : null, [E]), da = I(() => E.current ? E.current.token : null, [E]), Ua = I(() => {
8621
+ }, Qe = I((V) => ae.current ? !1 : (Ce(), xe(), P.current = !1, N.current = !1, L.current = !1, R.current = 0, w.current = 0, E.current && !V && E.current.start(), Ge(), !0), [D, P, ae, A, E]), oa = I((V) => ae.current ? !1 : (Ce(), xe(), W.current = Te(), O.current += Te() - k.current, B.current += Te() - k.current, O.current = 0, P.current = !1, N.current = !1, L.current = !1, R.current = 0, w.current = 0, E.current && !V && E.current.reset(), y || Ge(), !0), [D, P, A, y, ae, E]), ga = I((V) => ae.current ? !1 : (Ce(), xe(), (P.current || N.current) && ve(), P.current = !1, N.current = !1, L.current = !1, R.current = 0, w.current = 0, W.current = Te(), E.current && !V && E.current.activate(), Ge(), !0), [D, P, N, ae, A, E]), Ve = I((V = !1) => ae.current || L.current ? !1 : (R.current = Ua(), L.current = !0, Re(), Ce(), E.current && !V && E.current.pause(), !0), [D, ae, E]), je = I((V = !1) => ae.current || !L.current ? !1 : (L.current = !1, N.current || xe(), P.current || Ge(R.current), w.current && (w.current = Te()), E.current && !V && E.current.resume(), !0), [D, A, ae, R, E]), za = I((V, De) => (E.current ? (De && ke.current(V, Se), E.current.message(V)) : De && ke.current(V, Se), !0), [s]), Ea = I(() => P.current, [P]), Na = I(() => N.current, [N]), Ia = I(() => E.current ? E.current.isLeader : null, [E]), Va = I(() => E.current ? E.current.isLastActive : null, [E]), da = I(() => E.current ? E.current.token : null, [E]), Ua = I(() => {
8622
8622
  if (L.current) return R.current;
8623
8623
  let V = R.current ? R.current : M.current + A.current, De = T.current ? Te() - T.current : 0, ta = Math.floor(V - De);
8624
8624
  return ta < 0 ? 0 : Math.abs(ta);
8625
- }, [A, M, N, R, T]), Ze = I(() => Math.round(Te() - W.current), [W]), ca = I(() => Math.round(Te() - G.current), [G]), fa = I(() => k.current ? new Date(k.current) : null, [k]), Ga = I(() => T.current ? new Date(T.current) : null, [T]), Ma = I(() => P.current ? Math.round(Te() - k.current + O.current) : Math.round(O.current), [k, O]), ba = I(() => P.current ? Math.round(Te() - k.current + B.current) : Math.round(B.current), [k, B]), Ra = I(() => {
8626
- let V = Math.round(Ze() - Ma());
8625
+ }, [A, M, N, R, T]), Ze = I(() => Math.round(Te() - W.current), [W]), ca = I(() => Math.round(Te() - G.current), [G]), fa = I(() => k.current ? new Date(k.current) : null, [k]), La = I(() => T.current ? new Date(T.current) : null, [T]), Ga = I(() => P.current ? Math.round(Te() - k.current + O.current) : Math.round(O.current), [k, O]), ba = I(() => P.current ? Math.round(Te() - k.current + B.current) : Math.round(B.current), [k, B]), Ma = I(() => {
8626
+ let V = Math.round(Ze() - Ga());
8627
8627
  return V >= 0 ? V : 0;
8628
- }, [k, O]), Pa = I(() => {
8628
+ }, [k, O]), Ra = I(() => {
8629
8629
  let V = Math.round(ca() - ba());
8630
8630
  return V >= 0 ? V : 0;
8631
8631
  }, [k, O]);
@@ -8659,7 +8659,7 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8659
8659
  }, [l, JSON.stringify(p), JSON.stringify(b), F, S, y, f]), ge(() => {
8660
8660
  F.current && (F.current = !1);
8661
8661
  }, [F]);
8662
- let Se = { message: za, start: Qe, reset: oa, activate: ga, pause: Ve, resume: je, isIdle: Na, isPrompted: La, isLeader: Ia, isLastActiveTab: Va, getTabId: da, getRemainingTime: Ua, getElapsedTime: Ze, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: Ga, getIdleTime: Ma, getTotalIdleTime: ba, getActiveTime: Ra, getTotalActiveTime: Pa, setOnPresenceChange: (V) => {
8662
+ let Se = { message: za, start: Qe, reset: oa, activate: ga, pause: Ve, resume: je, isIdle: Ea, isPrompted: Na, isLeader: Ia, isLastActiveTab: Va, getTabId: da, getRemainingTime: Ua, getElapsedTime: Ze, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: La, getIdleTime: Ga, getTotalIdleTime: ba, getActiveTime: Ma, getTotalActiveTime: Ra, setOnPresenceChange: (V) => {
8663
8663
  d = V, te.current = V;
8664
8664
  }, setOnPrompt: (V) => {
8665
8665
  r = V, _e.current = V;
@@ -8683,7 +8683,7 @@ const Km = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => gs({
8683
8683
  timeout: l,
8684
8684
  throttle: 500
8685
8685
  }), cs = ({ options: e } = {}) => {
8686
- const { commonInboxApi: n } = Ea(), { getToken: i, lng: l } = oe(), p = i?.(), g = $e(l);
8686
+ const { commonInboxApi: n } = Ha(), { getToken: i, lng: l } = oe(), p = i?.(), g = $e(l);
8687
8687
  return Q({
8688
8688
  queryKey: ["inboxList"],
8689
8689
  queryFn: async () => await n(),
@@ -8704,7 +8704,7 @@ const Km = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => gs({
8704
8704
  ...e
8705
8705
  });
8706
8706
  }, fs = ({ options: e } = {}) => {
8707
- const { commonReadInboxApi: n } = Ea();
8707
+ const { commonReadInboxApi: n } = Ha();
8708
8708
  return re({
8709
8709
  mutationKey: ["readInbox"],
8710
8710
  mutationFn: async (i) => await n(i),
@@ -9170,7 +9170,7 @@ const Km = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => gs({
9170
9170
  var n = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
9171
9171
  return Le(240 | n >>> 18 & 7) + Le(128 | n >>> 12 & 63) + Le(128 | n >>> 6 & 63) + Le(128 | n & 63);
9172
9172
  }
9173
- }, Ns = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, pl = (e) => e.replace(Ns, Es), Rn = Wa ? (e) => Buffer.from(e, "utf8").toString("base64") : Gn ? (e) => rt(Gn.encode(e)) : (e) => vt(pl(e)), Ha = (e, n = !1) => n ? sl(Rn(e)) : Rn(e), Pn = (e) => Ha(e, !0), Ls = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Gs = (e) => {
9173
+ }, Ns = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, pl = (e) => e.replace(Ns, Es), Rn = Wa ? (e) => Buffer.from(e, "utf8").toString("base64") : Gn ? (e) => rt(Gn.encode(e)) : (e) => vt(pl(e)), Ba = (e, n = !1) => n ? sl(Rn(e)) : Rn(e), Pn = (e) => Ba(e, !0), Ls = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Gs = (e) => {
9174
9174
  switch (e.length) {
9175
9175
  case 4:
9176
9176
  var n = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), i = n - 65536;
@@ -9203,11 +9203,11 @@ const Km = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => gs({
9203
9203
  e("fromBase64", function() {
9204
9204
  return ot(this);
9205
9205
  }), e("toBase64", function(n) {
9206
- return Ha(this, n);
9206
+ return Ba(this, n);
9207
9207
  }), e("toBase64URI", function() {
9208
- return Ha(this, !0);
9208
+ return Ba(this, !0);
9209
9209
  }), e("toBase64URL", function() {
9210
- return Ha(this, !0);
9210
+ return Ba(this, !0);
9211
9211
  }), e("toUint8Array", function() {
9212
9212
  return fl(this);
9213
9213
  });
@@ -9230,8 +9230,8 @@ const Km = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => gs({
9230
9230
  btoa: vt,
9231
9231
  btoaPolyfill: ul,
9232
9232
  fromBase64: ot,
9233
- toBase64: Ha,
9234
- encode: Ha,
9233
+ toBase64: Ba,
9234
+ encode: Ba,
9235
9235
  encodeURI: Pn,
9236
9236
  encodeURL: Pn,
9237
9237
  utob: pl,
@@ -36409,10 +36409,10 @@ function yu({
36409
36409
  queryClient: l,
36410
36410
  ...p
36411
36411
  }) {
36412
- const g = Ba(() => Lt(p), [p]), b = Ba(
36412
+ const g = Oa(() => Lt(p), [p]), b = Oa(
36413
36413
  () => Lt({ ...p, formData: !0 }),
36414
36414
  [p]
36415
- ), d = Ba(
36415
+ ), d = Oa(
36416
36416
  () => new Ol({
36417
36417
  defaultOptions: {
36418
36418
  queries: {
@@ -37023,12 +37023,12 @@ var xa;
37023
37023
  i.NUMERIC = new i(1, [10, 12, 14]), i.ALPHANUMERIC = new i(2, [9, 11, 13]), i.BYTE = new i(4, [8, 16, 16]), i.KANJI = new i(8, [8, 10, 12]), i.ECI = new i(7, [0, 0, 0]), n.Mode = i;
37024
37024
  })(e.QrSegment || (e.QrSegment = {}));
37025
37025
  })(xa || (xa = {}));
37026
- var Oa = xa;
37026
+ var Aa = xa;
37027
37027
  var lm = {
37028
- L: Oa.QrCode.Ecc.LOW,
37029
- M: Oa.QrCode.Ecc.MEDIUM,
37030
- Q: Oa.QrCode.Ecc.QUARTILE,
37031
- H: Oa.QrCode.Ecc.HIGH
37028
+ L: Aa.QrCode.Ecc.LOW,
37029
+ M: Aa.QrCode.Ecc.MEDIUM,
37030
+ Q: Aa.QrCode.Ecc.QUARTILE,
37031
+ H: Aa.QrCode.Ecc.HIGH
37032
37032
  }, xl = 128, Sl = "L", Dl = "#FFFFFF", El = "#000000", Nl = !1, Ll = 1, rm = 4, om = 0, sm = 0.1;
37033
37033
  function Gl(e, n = 0) {
37034
37034
  const i = [];
@@ -37082,8 +37082,8 @@ function Rl({
37082
37082
  boostLevel: d
37083
37083
  }) {
37084
37084
  let r = de.useMemo(() => {
37085
- const m = (Array.isArray(e) ? e : [e]).reduce((c, f) => (c.push(...Oa.QrSegment.makeSegments(f)), c), []);
37086
- return Oa.QrCode.encodeSegments(
37085
+ const m = (Array.isArray(e) ? e : [e]).reduce((c, f) => (c.push(...Aa.QrSegment.makeSegments(f)), c), []);
37086
+ return Aa.QrCode.encodeSegments(
37087
37087
  m,
37088
37088
  lm[n],
37089
37089
  i,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@obb871001/api-integration-sdk",
3
3
  "private": false,
4
- "version": "1.0.314",
4
+ "version": "1.0.315",
5
5
  "description": "集成API",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",