@obb871001/api-integration-sdk 1.0.218 → 1.0.220

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,13 +1,13 @@
1
1
  import va, { createContext as fn, useContext as Un, useCallback as I, useRef as et, useMemo as wa, useEffect as ba } from "react";
2
- import { useQueries as yn, useQuery as ee, useQueryClient as Yn, useMutation as fe, QueryClient as Xn, QueryClientProvider as el } from "@tanstack/react-query";
3
- import al from "axios";
4
- import { get as De, find as Ae, isEmpty as me, entries as bn, map as ve, isArray as Le, toLower as at, omit as il, replace as it, includes as tl, isObject as Ti, flatMap as hi, values as nl, keys as tt } from "lodash";
5
- import ll from "react-dom";
2
+ import { useQueries as yn, useQuery as ee, useQueryClient as Xn, useMutation as fe, QueryClient as el, QueryClientProvider as al } from "@tanstack/react-query";
3
+ import il from "axios";
4
+ import { get as De, find as Ae, isEmpty as me, entries as bn, map as ve, isArray as Le, toLower as at, omit as tl, replace as it, includes as nl, isObject as Ti, flatMap as hi, values as ll, keys as tt } from "lodash";
5
+ import rl from "react-dom";
6
6
  var Pi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
7
  function zi(e) {
8
8
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
9
9
  }
10
- function rl(e) {
10
+ function ol(e) {
11
11
  if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
12
12
  var s = e.default;
13
13
  if (typeof s == "function") {
@@ -33,7 +33,7 @@ function rl(e) {
33
33
  }
34
34
  var Ra = { exports: {} }, _a = {};
35
35
  var nt;
36
- function ol() {
36
+ function ml() {
37
37
  if (nt) return _a;
38
38
  nt = 1;
39
39
  var e = va, s = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
@@ -48,7 +48,7 @@ function ol() {
48
48
  }
49
49
  var fa = {};
50
50
  var lt;
51
- function ml() {
51
+ function sl() {
52
52
  return lt || (lt = 1, process.env.NODE_ENV !== "production" && (function() {
53
53
  var e = va, s = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), c = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), t = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), l = Symbol.for("react.lazy"), r = Symbol.for("react.offscreen"), o = Symbol.iterator, f = "@@iterator";
54
54
  function _(T) {
@@ -611,17 +611,17 @@ Check the top-level render call using <` + V + ">.");
611
611
  La(ke, T);
612
612
  }
613
613
  if (Se.call(B, "key")) {
614
- var $e = N(T), Ce = Object.keys(B).filter(function(Qn) {
615
- return Qn !== "key";
614
+ var $e = N(T), Ce = Object.keys(B).filter(function(Yn) {
615
+ return Yn !== "key";
616
616
  }), Ri = Ce.length > 0 ? "{key: someKey, " + Ce.join(": ..., ") + ": ...}" : "{key: someKey}";
617
617
  if (!ca[$e + Ri]) {
618
- var $n = Ce.length > 0 ? "{" + Ce.join(": ..., ") + ": ...}" : "{}";
618
+ var Qn = Ce.length > 0 ? "{" + Ce.join(": ..., ") + ": ...}" : "{}";
619
619
  u(`A props object containing a "key" prop is being spread into JSX:
620
620
  let props = %s;
621
621
  <%s {...props} />
622
622
  React keys must be passed directly to JSX without using spread:
623
623
  let props = %s;
624
- <%s key={someKey} {...props} />`, Ri, $e, $n, $e), ca[$e + Ri] = !0;
624
+ <%s key={someKey} {...props} />`, Ri, $e, Qn, $e), ca[$e + Ri] = !0;
625
625
  }
626
626
  }
627
627
  return T === i ? Gi(re) : Ga(re), re;
@@ -633,15 +633,15 @@ React keys must be passed directly to JSX without using spread:
633
633
  function Ma(T, B, V) {
634
634
  return ge(T, B, V, !1);
635
635
  }
636
- var Mi = Ma, jn = Ne;
637
- fa.Fragment = i, fa.jsx = Mi, fa.jsxs = jn;
636
+ var Mi = Ma, $n = Ne;
637
+ fa.Fragment = i, fa.jsx = Mi, fa.jsxs = $n;
638
638
  })()), fa;
639
639
  }
640
640
  var rt;
641
- function sl() {
642
- return rt || (rt = 1, process.env.NODE_ENV === "production" ? Ra.exports = ol() : Ra.exports = ml()), Ra.exports;
641
+ function ul() {
642
+ return rt || (rt = 1, process.env.NODE_ENV === "production" ? Ra.exports = ml() : Ra.exports = sl()), Ra.exports;
643
643
  }
644
- var Oa = sl();
644
+ var Oa = ul();
645
645
  const Cn = fn(null), te = () => {
646
646
  const e = Un(Cn);
647
647
  if (!e)
@@ -666,7 +666,7 @@ const Cn = fn(null), te = () => {
666
666
  default:
667
667
  return e;
668
668
  }
669
- }, Be = "https://d1h3qe8voog6w4.cloudfront.net", ot = "https://d3jx2uvukujuvn.cloudfront.net", vn = (e) => `${Be}/reward_icon/${e}.avif`, Tn = () => `${Be}/reward_icon/background_deposit.avif`, hn = "ds88platformIcon", ul = {
669
+ }, Be = "https://d1h3qe8voog6w4.cloudfront.net", ot = "https://d3jx2uvukujuvn.cloudfront.net", vn = (e) => `${Be}/reward_icon/${e}.avif`, Tn = () => `${Be}/reward_icon/background_deposit.avif`, hn = "ds88platformIcon", kn = {
670
670
  zh_TW: "系統提示",
671
671
  zh_CN: "系统提示",
672
672
  en_US: "System Prompt",
@@ -686,7 +686,7 @@ function mt({
686
686
  currency: c,
687
687
  toasterOpen: g = !1
688
688
  } = {}) {
689
- const a = al.create({
689
+ const a = il.create({
690
690
  baseURL: e,
691
691
  timeout: n,
692
692
  headers: {
@@ -713,7 +713,7 @@ function mt({
713
713
  p?.dispatch({
714
714
  type: "ui/showToast",
715
715
  payload: {
716
- title: ul[l] || "System Prompt",
716
+ title: kn[l] || "System Prompt",
717
717
  description: m,
718
718
  status: "error",
719
719
  duration: 3e3
@@ -724,8 +724,8 @@ function mt({
724
724
  }
725
725
  ), a;
726
726
  }
727
- const kn = fn(null), Qo = () => {
728
- const e = Un(kn);
727
+ const xn = fn(null), Qo = () => {
728
+ const e = Un(xn);
729
729
  if (!e)
730
730
  throw new Error(
731
731
  "useGameInfoContext must be used within a GameInfoCtx.Provider"
@@ -757,7 +757,7 @@ const kn = fn(null), Qo = () => {
757
757
  minimumFractionDigits: 2,
758
758
  maximumFractionDigits: 2
759
759
  }).format(s);
760
- }, xn = (e = [], s) => Ae(e, { gameTypeName: s })?.gameTypeUid, Sn = (e = [], s) => Ae(e, { platform: s })?.platformUid, Dn = (e = [], s) => Ae(e, { SubPlatformEnum: s }), En = (e = [], s, n) => me(e) ? [] : e.filter((i) => n ? String(i?.SubPlatformEnumUid) === String(n?.SubPlatformEnumUid) : String(i.platformUid) === String(s)), pl = (e = []) => me(e) ? {} : e.reduce((s, n) => {
760
+ }, Sn = (e = [], s) => Ae(e, { gameTypeName: s })?.gameTypeUid, Dn = (e = [], s) => Ae(e, { platform: s })?.platformUid, En = (e = [], s) => Ae(e, { SubPlatformEnum: s }), Nn = (e = [], s, n) => me(e) ? [] : e.filter((i) => n ? String(i?.SubPlatformEnumUid) === String(n?.SubPlatformEnumUid) : String(i.platformUid) === String(s)), pl = (e = []) => me(e) ? {} : e.reduce((s, n) => {
761
761
  const i = n?.game_subtype || "UNKNOWN";
762
762
  return s[i] || (s[i] = []), s[i].push(n), s;
763
763
  }, {}), gl = ({
@@ -767,9 +767,9 @@ const kn = fn(null), Qo = () => {
767
767
  allGameTypes: i,
768
768
  allPlatforms: p
769
769
  }) => {
770
- const d = xn(i, e);
770
+ const d = Sn(i, e);
771
771
  return d ? s.reduce((C, c) => {
772
- const g = Sn(p, c), a = Dn(p, c), t = n[d] || [], m = En(
772
+ const g = Dn(p, c), a = En(p, c), t = n[d] || [], m = Nn(
773
773
  t,
774
774
  g,
775
775
  a
@@ -781,7 +781,7 @@ const kn = fn(null), Qo = () => {
781
781
  gamesOfType: s = [],
782
782
  allPlatforms: n = []
783
783
  }) => {
784
- const i = Sn(n, e), p = Dn(n, e), d = En(
784
+ const i = Dn(n, e), p = En(n, e), d = Nn(
785
785
  s,
786
786
  i,
787
787
  p
@@ -1076,7 +1076,7 @@ var Ha = { exports: {} };
1076
1076
  const yl = {}, bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1077
1077
  __proto__: null,
1078
1078
  default: yl
1079
- }, Symbol.toStringTag, { value: "Module" })), Cl = /* @__PURE__ */ rl(bl);
1079
+ }, Symbol.toStringTag, { value: "Module" })), Cl = /* @__PURE__ */ ol(bl);
1080
1080
  var vl = Ha.exports, ut;
1081
1081
  function $() {
1082
1082
  return ut || (ut = 1, (function(e, s) {
@@ -2148,7 +2148,7 @@ function ta() {
2148
2148
  })(Ia)), Ia.exports;
2149
2149
  }
2150
2150
  var Ka = { exports: {} }, Gl = Ka.exports, Ut;
2151
- function Nn() {
2151
+ function Ln() {
2152
2152
  return Ut || (Ut = 1, (function(e, s) {
2153
2153
  (function(n, i) {
2154
2154
  e.exports = i($());
@@ -2274,7 +2274,7 @@ function Pl() {
2274
2274
  })(ja)), ja.exports;
2275
2275
  }
2276
2276
  var $a = { exports: {} }, Fl = $a.exports, Ct;
2277
- function Ln() {
2277
+ function Gn() {
2278
2278
  return Ct || (Ct = 1, (function(e, s) {
2279
2279
  (function(n, i, p) {
2280
2280
  e.exports = i($(), ki());
@@ -2418,7 +2418,7 @@ var Qa = { exports: {} }, wl = Qa.exports, vt;
2418
2418
  function Ol() {
2419
2419
  return vt || (vt = 1, (function(e, s) {
2420
2420
  (function(n, i, p) {
2421
- e.exports = i($(), ki(), Ln());
2421
+ e.exports = i($(), ki(), Gn());
2422
2422
  })(wl, function(n) {
2423
2423
  return (function() {
2424
2424
  var i = n, p = i.x64, d = p.Word, C = p.WordArray, c = i.algo, g = c.SHA512, a = c.SHA384 = g.extend({
@@ -3086,7 +3086,7 @@ var ii = { exports: {} }, Jl = ii.exports, St;
3086
3086
  function Je() {
3087
3087
  return St || (St = 1, (function(e, s) {
3088
3088
  (function(n, i, p) {
3089
- e.exports = i($(), Nn(), Zi());
3089
+ e.exports = i($(), Ln(), Zi());
3090
3090
  })(Jl, function(n) {
3091
3091
  return (function() {
3092
3092
  var i = n, p = i.lib, d = p.Base, C = p.WordArray, c = i.algo, g = c.MD5, a = c.EvpKDF = d.extend({
@@ -6039,14 +6039,14 @@ var Dr = Ba.exports, Jt;
6039
6039
  function Er() {
6040
6040
  return Jt || (Jt = 1, (function(e, s) {
6041
6041
  (function(n, i, p) {
6042
- e.exports = i($(), ki(), kl(), Sl(), ia(), Nl(), ta(), Nn(), Vi(), Pl(), Ln(), Ol(), Bl(), Wl(), Zi(), Zl(), Je(), se(), ql(), $l(), Yl(), er(), ir(), nr(), rr(), mr(), ur(), gr(), cr(), fr(), yr(), Cr(), Tr(), kr(), Sr());
6042
+ e.exports = i($(), ki(), kl(), Sl(), ia(), Nl(), ta(), Ln(), Vi(), Pl(), Gn(), Ol(), Bl(), Wl(), Zi(), Zl(), Je(), se(), ql(), $l(), Yl(), er(), ir(), nr(), rr(), mr(), ur(), gr(), cr(), fr(), yr(), Cr(), Tr(), kr(), Sr());
6043
6043
  })(Dr, function(n) {
6044
6044
  return n;
6045
6045
  });
6046
6046
  })(Ba)), Ba.exports;
6047
6047
  }
6048
- var Gn = Er();
6049
- const Qe = /* @__PURE__ */ zi(Gn), Ye = (e) => {
6048
+ var Mn = Er();
6049
+ const Qe = /* @__PURE__ */ zi(Mn), Ye = (e) => {
6050
6050
  const s = "mySecretPassphrase", n = Qe.lib.WordArray.random(16), i = Qe.PBKDF2(s, n, {
6051
6051
  keySize: 128 / 32,
6052
6052
  iterations: 1e3
@@ -6424,7 +6424,7 @@ function Ki() {
6424
6424
  return Fe.setUpSocketIOPing = i, Fe;
6425
6425
  }
6426
6426
  var Pa = {}, jt;
6427
- function Mn() {
6427
+ function Rn() {
6428
6428
  if (jt) return Pa;
6429
6429
  jt = 1, Object.defineProperty(Pa, "__esModule", { value: !0 }), Pa.heartbeat = n;
6430
6430
  var e = Ge();
@@ -6511,7 +6511,7 @@ function Gr() {
6511
6511
  }, e.apply(this, arguments);
6512
6512
  };
6513
6513
  Object.defineProperty(Xe, "__esModule", { value: !0 }), Xe.attachListeners = void 0;
6514
- var s = Ki(), n = Mn(), i = Ge(), p = ji(), d = function(t, m, l, r) {
6514
+ var s = Ki(), n = Rn(), i = Ge(), p = ji(), d = function(t, m, l, r) {
6515
6515
  t.onmessage = function(o) {
6516
6516
  var f;
6517
6517
  m.current.onMessage && m.current.onMessage(o), typeof r?.current == "number" && (r.current = Date.now()), !(typeof m.current.filter == "function" && m.current.filter(o) !== !0) && (m.current.heartbeat && typeof m.current.heartbeat != "boolean" && ((f = m.current.heartbeat) === null || f === void 0 ? void 0 : f.returnMessage) === o.data || l(o));
@@ -6581,7 +6581,7 @@ function Mr() {
6581
6581
  }, e.apply(this, arguments);
6582
6582
  };
6583
6583
  Object.defineProperty(ea, "__esModule", { value: !0 }), ea.attachSharedListeners = void 0;
6584
- var s = Ii(), n = Ge(), i = qi(), p = Ki(), d = Mn(), C = function(m, l, r) {
6584
+ var s = Ii(), n = Ge(), i = qi(), p = Ki(), d = Rn(), C = function(m, l, r) {
6585
6585
  m.onmessage = function(o) {
6586
6586
  (0, i.getSubscribers)(l).forEach(function(f) {
6587
6587
  var _;
@@ -6929,7 +6929,7 @@ function $i() {
6929
6929
  return l && l.__esModule ? l : { default: l };
6930
6930
  };
6931
6931
  Object.defineProperty(he, "__esModule", { value: !0 }), he.useWebSocket = void 0;
6932
- var p = va, d = ll, C = Ge(), c = Rr(), g = Pr(), a = i(Fr()), t = ji(), m = function(l, r, o) {
6932
+ var p = va, d = rl, C = Ge(), c = Rr(), g = Pr(), a = i(Fr()), t = ji(), m = function(l, r, o) {
6933
6933
  r === void 0 && (r = C.DEFAULT_OPTIONS), o === void 0 && (o = !0);
6934
6934
  var f = (0, p.useState)(null), _ = f[0], U = f[1], u = (0, p.useState)({}), y = u[0], b = u[1], v = (0, p.useMemo)(function() {
6935
6935
  if (!r.disableJson && _)
@@ -7149,7 +7149,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7149
7149
  options: n = {},
7150
7150
  memberInfo: i = {}
7151
7151
  }) => {
7152
- const { store: p, openNotification: d, lng: C } = te(), c = Yn(), g = Ze(C), a = et(!1), t = et(s), m = De(i, "uid", null), {
7152
+ const { store: p, openNotification: d, lng: C } = te(), c = Xn(), g = Ze(C), a = et(!1), t = et(s), m = De(i, "uid", null), {
7153
7153
  sendMessage: l,
7154
7154
  // 發送普通訊息
7155
7155
  sendJsonMessage: r,
@@ -7168,7 +7168,6 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7168
7168
  reconnectInterval: 1e3,
7169
7169
  ...n
7170
7170
  }), _ = wa(() => {
7171
- console.log(o);
7172
7171
  try {
7173
7172
  return JSON.parse(o?.data);
7174
7173
  } catch {
@@ -7182,8 +7181,20 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7182
7181
  );
7183
7182
  return () => clearInterval(u);
7184
7183
  }, [l]);
7185
- const U = I(() => {
7186
- }, [d, p, g]);
7184
+ const U = I(
7185
+ (u, y) => {
7186
+ d && (console.log("Trigger Open Notification"), p.dispatch({
7187
+ type: "ui/openNotificationModal",
7188
+ payload: {
7189
+ title: kn[g] || "System Prompt",
7190
+ content: u,
7191
+ type: "warning",
7192
+ props: y
7193
+ }
7194
+ })), console.log("Trigger No Open Notification");
7195
+ },
7196
+ [d, p, g]
7197
+ );
7187
7198
  return ba(() => {
7188
7199
  t.current = s;
7189
7200
  }, [s]), ba(() => {
@@ -7521,7 +7532,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7521
7532
  inboxListQuery: s,
7522
7533
  readInboxMutation: n
7523
7534
  };
7524
- }, Rn = () => {
7535
+ }, Pn = () => {
7525
7536
  const { client: e } = te();
7526
7537
  return {
7527
7538
  newsListApi: I(
@@ -7578,7 +7589,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7578
7589
  ...e.other
7579
7590
  }
7580
7591
  ], um = ({ options: e, formData: s } = {}) => {
7581
- const { lng: n } = te(), { newsListApi: i } = Rn(), p = Ze(n);
7592
+ const { lng: n } = te(), { newsListApi: i } = Pn(), p = Ze(n);
7582
7593
  return ee({
7583
7594
  queryKey: ["newsList"],
7584
7595
  queryFn: () => {
@@ -7604,7 +7615,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7604
7615
  ...e
7605
7616
  });
7606
7617
  }, pm = ({ options: e, formData: s } = {}) => {
7607
- const { lng: n } = te(), { newsListApi: i } = Rn(), p = Ze(n);
7618
+ const { lng: n } = te(), { newsListApi: i } = Pn(), p = Ze(n);
7608
7619
  return ee({
7609
7620
  queryKey: ["newsList"],
7610
7621
  queryFn: () => {
@@ -7665,7 +7676,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7665
7676
  withdrawal_amount: t,
7666
7677
  bank_account_number: m,
7667
7678
  currency_code: l,
7668
- withdrawal_code: Gn.MD5(r).toString(),
7679
+ withdrawal_code: Mn.MD5(r).toString(),
7669
7680
  payment_type: "ThirdParty"
7670
7681
  }
7671
7682
  });
@@ -7818,10 +7829,10 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7818
7829
  eventTransaction: o,
7819
7830
  withdrawTransaction: f
7820
7831
  };
7821
- }, Pn = "3.7.8", io = Pn, sa = typeof Buffer == "function", mn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, sn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, to = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ca = Array.prototype.slice.call(to), Fa = ((e) => {
7832
+ }, Fn = "3.7.8", io = Fn, sa = typeof Buffer == "function", mn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, sn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, to = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ca = Array.prototype.slice.call(to), Fa = ((e) => {
7822
7833
  let s = {};
7823
7834
  return e.forEach((n, i) => s[n] = i), s;
7824
- })(Ca), no = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, ue = String.fromCharCode.bind(String), un = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), Fn = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (s) => s == "+" ? "-" : "_"), wn = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), On = (e) => {
7835
+ })(Ca), no = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, ue = String.fromCharCode.bind(String), un = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), wn = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (s) => s == "+" ? "-" : "_"), On = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), An = (e) => {
7825
7836
  let s, n, i, p, d = "";
7826
7837
  const C = e.length % 3;
7827
7838
  for (let c = 0; c < e.length; ) {
@@ -7830,12 +7841,12 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7830
7841
  s = n << 16 | i << 8 | p, d += Ca[s >> 18 & 63] + Ca[s >> 12 & 63] + Ca[s >> 6 & 63] + Ca[s & 63];
7831
7842
  }
7832
7843
  return C ? d.slice(0, C - 3) + "===".substring(C) : d;
7833
- }, Yi = typeof btoa == "function" ? (e) => btoa(e) : sa ? (e) => Buffer.from(e, "binary").toString("base64") : On, Hi = sa ? (e) => Buffer.from(e).toString("base64") : (e) => {
7844
+ }, Yi = typeof btoa == "function" ? (e) => btoa(e) : sa ? (e) => Buffer.from(e, "binary").toString("base64") : An, Hi = sa ? (e) => Buffer.from(e).toString("base64") : (e) => {
7834
7845
  let n = [];
7835
7846
  for (let i = 0, p = e.length; i < p; i += 4096)
7836
7847
  n.push(ue.apply(null, e.subarray(i, i + 4096)));
7837
7848
  return Yi(n.join(""));
7838
- }, vi = (e, s = !1) => s ? Fn(Hi(e)) : Hi(e), lo = (e) => {
7849
+ }, vi = (e, s = !1) => s ? wn(Hi(e)) : Hi(e), lo = (e) => {
7839
7850
  if (e.length < 2) {
7840
7851
  var s = e.charCodeAt(0);
7841
7852
  return s < 128 ? e : s < 2048 ? ue(192 | s >>> 6) + ue(128 | s & 63) : ue(224 | s >>> 12 & 15) + ue(128 | s >>> 6 & 63) + ue(128 | s & 63);
@@ -7843,7 +7854,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7843
7854
  var s = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
7844
7855
  return ue(240 | s >>> 18 & 7) + ue(128 | s >>> 12 & 63) + ue(128 | s >>> 6 & 63) + ue(128 | s & 63);
7845
7856
  }
7846
- }, ro = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, An = (e) => e.replace(ro, lo), pn = sa ? (e) => Buffer.from(e, "utf8").toString("base64") : sn ? (e) => Hi(sn.encode(e)) : (e) => Yi(An(e)), ma = (e, s = !1) => s ? Fn(pn(e)) : pn(e), gn = (e) => ma(e, !0), oo = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, mo = (e) => {
7857
+ }, ro = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Bn = (e) => e.replace(ro, lo), pn = sa ? (e) => Buffer.from(e, "utf8").toString("base64") : sn ? (e) => Hi(sn.encode(e)) : (e) => Yi(Bn(e)), ma = (e, s = !1) => s ? wn(pn(e)) : pn(e), gn = (e) => ma(e, !0), oo = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, mo = (e) => {
7847
7858
  switch (e.length) {
7848
7859
  case 4:
7849
7860
  var s = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), n = s - 65536;
@@ -7853,7 +7864,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7853
7864
  default:
7854
7865
  return ue((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
7855
7866
  }
7856
- }, Bn = (e) => e.replace(oo, mo), Hn = (e) => {
7867
+ }, Hn = (e) => e.replace(oo, mo), Wn = (e) => {
7857
7868
  if (e = e.replace(/\s+/g, ""), !no.test(e))
7858
7869
  throw new TypeError("malformed base64.");
7859
7870
  e += "==".slice(2 - (e.length & 3));
@@ -7861,18 +7872,18 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7861
7872
  for (let d = 0; d < e.length; )
7862
7873
  s = Fa[e.charAt(d++)] << 18 | Fa[e.charAt(d++)] << 12 | (n = Fa[e.charAt(d++)]) << 6 | (i = Fa[e.charAt(d++)]), n === 64 ? p.push(ue(s >> 16 & 255)) : i === 64 ? p.push(ue(s >> 16 & 255, s >> 8 & 255)) : p.push(ue(s >> 16 & 255, s >> 8 & 255, s & 255));
7863
7874
  return p.join("");
7864
- }, Xi = typeof atob == "function" ? (e) => atob(wn(e)) : sa ? (e) => Buffer.from(e, "base64").toString("binary") : Hn, Wn = sa ? (e) => un(Buffer.from(e, "base64")) : (e) => un(Xi(e).split("").map((s) => s.charCodeAt(0))), zn = (e) => Wn(Vn(e)), so = sa ? (e) => Buffer.from(e, "base64").toString("utf8") : mn ? (e) => mn.decode(Wn(e)) : (e) => Bn(Xi(e)), Vn = (e) => wn(e.replace(/[-_]/g, (s) => s == "-" ? "+" : "/")), Wi = (e) => so(Vn(e)), uo = (e) => {
7875
+ }, Xi = typeof atob == "function" ? (e) => atob(On(e)) : sa ? (e) => Buffer.from(e, "base64").toString("binary") : Wn, zn = sa ? (e) => un(Buffer.from(e, "base64")) : (e) => un(Xi(e).split("").map((s) => s.charCodeAt(0))), Vn = (e) => zn(Zn(e)), so = sa ? (e) => Buffer.from(e, "base64").toString("utf8") : mn ? (e) => mn.decode(zn(e)) : (e) => Hn(Xi(e)), Zn = (e) => On(e.replace(/[-_]/g, (s) => s == "-" ? "+" : "/")), Wi = (e) => so(Zn(e)), uo = (e) => {
7865
7876
  if (typeof e != "string")
7866
7877
  return !1;
7867
7878
  const s = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
7868
7879
  return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
7869
- }, Zn = (e) => ({
7880
+ }, Jn = (e) => ({
7870
7881
  value: e,
7871
7882
  enumerable: !1,
7872
7883
  writable: !0,
7873
7884
  configurable: !0
7874
- }), Jn = function() {
7875
- const e = (s, n) => Object.defineProperty(String.prototype, s, Zn(n));
7885
+ }), In = function() {
7886
+ const e = (s, n) => Object.defineProperty(String.prototype, s, Jn(n));
7876
7887
  e("fromBase64", function() {
7877
7888
  return Wi(this);
7878
7889
  }), e("toBase64", function(s) {
@@ -7882,10 +7893,10 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7882
7893
  }), e("toBase64URL", function() {
7883
7894
  return ma(this, !0);
7884
7895
  }), e("toUint8Array", function() {
7885
- return zn(this);
7896
+ return Vn(this);
7886
7897
  });
7887
- }, In = function() {
7888
- const e = (s, n) => Object.defineProperty(Uint8Array.prototype, s, Zn(n));
7898
+ }, Kn = function() {
7899
+ const e = (s, n) => Object.defineProperty(Uint8Array.prototype, s, Jn(n));
7889
7900
  e("toBase64", function(s) {
7890
7901
  return vi(this, s);
7891
7902
  }), e("toBase64URI", function() {
@@ -7894,27 +7905,27 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7894
7905
  return vi(this, !0);
7895
7906
  });
7896
7907
  }, po = () => {
7897
- Jn(), In();
7908
+ In(), Kn();
7898
7909
  }, go = {
7899
- version: Pn,
7910
+ version: Fn,
7900
7911
  VERSION: io,
7901
7912
  atob: Xi,
7902
- atobPolyfill: Hn,
7913
+ atobPolyfill: Wn,
7903
7914
  btoa: Yi,
7904
- btoaPolyfill: On,
7915
+ btoaPolyfill: An,
7905
7916
  fromBase64: Wi,
7906
7917
  toBase64: ma,
7907
7918
  encode: ma,
7908
7919
  encodeURI: gn,
7909
7920
  encodeURL: gn,
7910
- utob: An,
7911
- btou: Bn,
7921
+ utob: Bn,
7922
+ btou: Hn,
7912
7923
  decode: Wi,
7913
7924
  isValid: uo,
7914
7925
  fromUint8Array: vi,
7915
- toUint8Array: zn,
7916
- extendString: Jn,
7917
- extendUint8Array: In,
7926
+ toUint8Array: Vn,
7927
+ extendString: In,
7928
+ extendUint8Array: Kn,
7918
7929
  extendBuiltins: po
7919
7930
  }, dm = (e, s) => {
7920
7931
  const { playGameApi: n } = Ji();
@@ -7950,22 +7961,22 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
7950
7961
  enabled: !!e?.gameCode,
7951
7962
  ...s
7952
7963
  });
7953
- }, Kn = () => {
7964
+ }, qn = () => {
7954
7965
  const { client: e } = te(), s = I(async () => await e.get("/rebate"), [e]), n = I(async () => await e.post("/withdraw/rebate"), [e]);
7955
7966
  return {
7956
7967
  currentRebateApi: s,
7957
7968
  receiveRebateApi: n
7958
7969
  };
7959
7970
  }, co = ({ options: e } = {}) => {
7960
- const { currentRebateApi: s } = Kn();
7971
+ const { currentRebateApi: s } = qn();
7961
7972
  return ee({
7962
7973
  queryKey: ["currentRebate"],
7963
7974
  queryFn: () => s(),
7964
- select: (n) => il(n, ["code", "status"]),
7975
+ select: (n) => tl(n, ["code", "status"]),
7965
7976
  ...e
7966
7977
  });
7967
7978
  }, _o = ({ options: e } = {}) => {
7968
- const { receiveRebateApi: s } = Kn();
7979
+ const { receiveRebateApi: s } = qn();
7969
7980
  return fe({
7970
7981
  mutationKey: ["receiveRebate"],
7971
7982
  mutationFn: async () => s(),
@@ -8200,14 +8211,14 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
8200
8211
  userRebate: a,
8201
8212
  userBindCard: t
8202
8213
  };
8203
- }, qn = () => {
8214
+ }, jn = () => {
8204
8215
  const { client: e } = te(), s = I(async () => await e.get("/vip/list"), [e]), n = I(async () => await e.get("/vip/check"), [e]);
8205
8216
  return {
8206
8217
  vipListApi: s,
8207
8218
  vipInfoApi: n
8208
8219
  };
8209
8220
  }, Um = ({ options: e } = {}) => {
8210
- const { store: s } = te(), n = s?.getState()?.isMemberInfo || s?.getState()?.member?.member || {}, { vipInfoApi: i } = qn();
8221
+ const { store: s } = te(), n = s?.getState()?.isMemberInfo || s?.getState()?.member?.member || {}, { vipInfoApi: i } = jn();
8211
8222
  return ee({
8212
8223
  queryKey: ["vipInfo"],
8213
8224
  queryFn: async () => i(),
@@ -8222,7 +8233,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
8222
8233
  ...e
8223
8234
  });
8224
8235
  }, Go = ({ options: e } = {}) => {
8225
- const { store: s } = te(), n = s?.getState()?.isWalletCurrency || s?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } = qn();
8236
+ const { store: s } = te(), n = s?.getState()?.isWalletCurrency || s?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } = jn();
8226
8237
  return ee({
8227
8238
  queryKey: ["vipList"],
8228
8239
  queryFn: async () => {
@@ -8344,7 +8355,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
8344
8355
  gameImageUrl: h,
8345
8356
  gameImageUrlAnimated: S
8346
8357
  };
8347
- }, Mo = (e, s = !1) => tl([
8358
+ }, Mo = (e, s = !1) => nl([
8348
8359
  "EVO",
8349
8360
  "IMSPRIBE",
8350
8361
  "SABA",
@@ -8418,7 +8429,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
8418
8429
  allGamePlatform: i = [],
8419
8430
  allGameList: p = {}
8420
8431
  } = {}) => !Array.isArray(e) || !Array.isArray(s) ? {} : e.reduce((d, C) => {
8421
- const c = xn(n, C);
8432
+ const c = Sn(n, C);
8422
8433
  if (!c) return d;
8423
8434
  const g = p[c] || [], a = s.reduce((t, m) => {
8424
8435
  const l = dl({
@@ -8469,7 +8480,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
8469
8480
  };
8470
8481
  }), y = Oo(m, i), b = Bo(U), v = Ho(b), h = bn(U).reduce(
8471
8482
  (D, [O, k]) => {
8472
- const x = hi(nl(k));
8483
+ const x = hi(ll(k));
8473
8484
  return D[O] = x, D;
8474
8485
  },
8475
8486
  {}
@@ -35109,7 +35120,7 @@ const Hr = /* @__PURE__ */ zi(Br), xe = {
35109
35120
  n && Zo(!0);
35110
35121
  }, [n]);
35111
35122
  const i = Vo({ enabled: s });
35112
- return /* @__PURE__ */ Oa.jsx(kn.Provider, { value: i, children: e });
35123
+ return /* @__PURE__ */ Oa.jsx(xn.Provider, { value: i, children: e });
35113
35124
  };
35114
35125
  function hm({
35115
35126
  children: e,
@@ -35122,7 +35133,7 @@ function hm({
35122
35133
  () => mt({ ...p, formData: !0 }),
35123
35134
  [p]
35124
35135
  ), c = wa(
35125
- () => new Xn({
35136
+ () => new el({
35126
35137
  defaultOptions: {
35127
35138
  queries: {
35128
35139
  refetchOnWindowFocus: !1,
@@ -35132,12 +35143,12 @@ function hm({
35132
35143
  }),
35133
35144
  []
35134
35145
  ), g = i || c;
35135
- return /* @__PURE__ */ Oa.jsx(el, { client: g, children: /* @__PURE__ */ Oa.jsx(Cn.Provider, { value: { client: d, formDataClient: C, ...p }, children: /* @__PURE__ */ Oa.jsx(Jo, { autoFetch: s, mockData: n, children: e }) }) });
35146
+ return /* @__PURE__ */ Oa.jsx(al, { client: g, children: /* @__PURE__ */ Oa.jsx(Cn.Provider, { value: { client: d, formDataClient: C, ...p }, children: /* @__PURE__ */ Oa.jsx(Jo, { autoFetch: s, mockData: n, children: e }) }) });
35136
35147
  }
35137
35148
  export {
35138
35149
  Cn as ApiCtx,
35139
35150
  hm as ApiProvider,
35140
- kn as GamesInfoCtx,
35151
+ xn as GamesInfoCtx,
35141
35152
  Ao as buildMultiTypes,
35142
35153
  vm as buildMultiTypesWithSubTypes,
35143
35154
  dl as buildSinglePlatformWithSubTypes,
@@ -35148,10 +35159,10 @@ export {
35148
35159
  Fo as extractGameSubTypeNames,
35149
35160
  Po as extractGameTypeNames,
35150
35161
  _n as extractPlatformNames,
35151
- En as filterGamesByPlatform,
35152
- xn as findGameTypeUid,
35153
- Sn as findPlatformUid,
35154
- Dn as findSubPlatform,
35162
+ Nn as filterGamesByPlatform,
35163
+ Sn as findGameTypeUid,
35164
+ Dn as findPlatformUid,
35165
+ En as findSubPlatform,
35155
35166
  Ro as flattenAllGames,
35156
35167
  wo as flattenFavoriteGames,
35157
35168
  Xo as formatNumber,
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.218",
4
+ "version": "1.0.220",
5
5
  "description": "集成API",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",