@obb871001/api-integration-sdk 1.0.425 → 1.0.426

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,7 +1,7 @@
1
1
  import Ce, { createContext as Yt, useContext as bi, useState as da, useMemo as Ia, useCallback as O, useRef as re, useEffect as _e } from "react";
2
- import { useQueries as $n, useQuery as X, useQueryClient as Ea, useMutation as te, QueryClient as Kr, QueryClientProvider as qr } from "@tanstack/react-query";
2
+ import { useQueries as $n, useQuery as ee, useQueryClient as Ea, useMutation as te, QueryClient as Kr, QueryClientProvider as qr } from "@tanstack/react-query";
3
3
  import $r from "axios";
4
- import { get as ee, replace as tt, isEmpty as we, find as We, entries as jn, forEach as jr, map as De, isArray as aa, toLower as Gi, omit as Qr, keyBy as Yr, includes as Xr, isObject as Xt, flatMap as ei, values as el, keys as Mi } from "lodash";
4
+ import { get as X, replace as tt, isEmpty as we, find as We, entries as jn, forEach as jr, map as De, isArray as aa, toLower as Gi, omit as Qr, keyBy as Yr, includes as Xr, isObject as Xt, flatMap as ei, values as el, keys as Mi } from "lodash";
5
5
  import al from "react-dom";
6
6
  var ni = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
7
  function Ui(e) {
@@ -732,7 +732,7 @@ function Fi({
732
732
  }), t.interceptors.response.use(
733
733
  (n) => n.data,
734
734
  (n) => {
735
- const o = ee(
735
+ const o = X(
736
736
  n,
737
737
  "response.data.message",
738
738
  "發生錯誤,請稍後再試。"
@@ -6497,19 +6497,19 @@ const Pe = /* @__PURE__ */ Ui(No), Ha = (e) => {
6497
6497
  userFavoriteGameApi: a,
6498
6498
  userGameListApi: l,
6499
6499
  userCurrencyExchangeApi: u
6500
- } = ie(), g = X({
6500
+ } = ie(), g = ee({
6501
6501
  queryKey: ["getMemInfo"],
6502
6502
  queryFn: async () => i(),
6503
6503
  enabled: e
6504
- }), b = X({
6504
+ }), b = ee({
6505
6505
  queryKey: ["getFavoriteGame"],
6506
6506
  queryFn: async () => a(),
6507
6507
  enabled: e && g.isSuccess
6508
- }), d = X({
6508
+ }), d = ee({
6509
6509
  queryKey: ["getUserGameList"],
6510
6510
  queryFn: async () => l(),
6511
6511
  enabled: e && g.isSuccess && b.isSuccess
6512
- }), r = X({
6512
+ }), r = ee({
6513
6513
  queryKey: ["getUserCurrencyExchange"],
6514
6514
  queryFn: async () => u(),
6515
6515
  enabled: e && g.isSuccess && b.isSuccess && d.isSuccess
@@ -6588,7 +6588,7 @@ const Pe = /* @__PURE__ */ Ui(No), Ha = (e) => {
6588
6588
  return { playGameApi: l, betRecordApi: u, betRecordDetailApi: g };
6589
6589
  }, Go = ({ options: e, formData: i } = {}) => {
6590
6590
  const { betRecordApi: a } = hi();
6591
- return X({
6591
+ return ee({
6592
6592
  queryKey: ["getBetRecord"],
6593
6593
  queryFn: async () => await a(i),
6594
6594
  select: (l) => jn(l).map(([g, b]) => ({
@@ -6599,7 +6599,7 @@ const Pe = /* @__PURE__ */ Ui(No), Ha = (e) => {
6599
6599
  });
6600
6600
  }, Mo = ({ options: e, formData: i } = {}) => {
6601
6601
  const { betRecordDetailApi: a } = hi();
6602
- return X({
6602
+ return ee({
6603
6603
  queryKey: ["getBetRecordDetail"],
6604
6604
  queryFn: async () => await a(i),
6605
6605
  ...e
@@ -7521,20 +7521,22 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
7521
7521
  withdrawMonthCardApi: a
7522
7522
  };
7523
7523
  }, Di = ["monthCardInfo"], Jo = (e) => {
7524
- const i = ee(e, "status", null), a = ee(e, "remaining_days", null), l = ee(e, "activated_at", null), u = ee(e, "is_under_maintenance", 0) === 1, g = ee(e, "wagering_progress", []), b = ee(e, "daily", []);
7524
+ const i = X(e, "status", null), a = X(e, "remaining_days", null), l = X(e, "activated_at", null), u = X(e, "is_under_maintenance", 0) === 1, g = X(e, "wagering_progress", []), b = X(e, "daily", []), d = i !== null, r = X(e, "withdraw_limit", null), t = X(e, "total_withdraw_amount", 0);
7525
7525
  return {
7526
7526
  ...e,
7527
- hasActiveCard: i !== null,
7527
+ hasActiveCard: d,
7528
7528
  status: i,
7529
7529
  remainingDays: a,
7530
7530
  activatedAt: l,
7531
7531
  isUnderMaintenance: u,
7532
7532
  wageringProgress: g,
7533
- daily: b
7533
+ daily: b,
7534
+ withdrawLimit: r,
7535
+ totalWithdrawAmount: t
7534
7536
  };
7535
7537
  }, Zo = ({ options: e } = {}) => {
7536
7538
  const { getMonthCardInfoApi: i } = pr();
7537
- return X({
7539
+ return ee({
7538
7540
  queryKey: Di,
7539
7541
  queryFn: i,
7540
7542
  select: Jo,
@@ -7670,7 +7672,7 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
7670
7672
  });
7671
7673
  }, is = ({ paramsData: e, options: i } = {}) => {
7672
7674
  const { userRebateApi: a } = ie(), { getToken: l } = me();
7673
- return l?.(), X({
7675
+ return l?.(), ee({
7674
7676
  queryKey: ["userRebate", e],
7675
7677
  queryFn: async () => a({ paramsData: e }),
7676
7678
  enabled: !1,
@@ -7703,7 +7705,7 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
7703
7705
  });
7704
7706
  }, Ym = ({ options: e } = {}) => {
7705
7707
  const { currency: i } = me(), { checkUserWagerApi: a } = ie();
7706
- return X({
7708
+ return ee({
7707
7709
  queryKey: ["checkUserWager"],
7708
7710
  queryFn: async () => a(),
7709
7711
  select: (l) => {
@@ -7749,7 +7751,7 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
7749
7751
  });
7750
7752
  }, os = ({ options: e, formData: i } = {}) => {
7751
7753
  const { getMachineLoginCodeApi: a } = ie();
7752
- return X({
7754
+ return ee({
7753
7755
  queryKey: ["getMachineLoginCode"],
7754
7756
  queryFn: async () => a(i),
7755
7757
  ...e
@@ -7819,14 +7821,14 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
7819
7821
  });
7820
7822
  }, mu = ({ options: e, paramsData: i } = {}) => {
7821
7823
  const { verifyPhoneBarApi: a } = La();
7822
- return X({
7824
+ return ee({
7823
7825
  queryKey: ["verifyPhoneBar", i],
7824
7826
  queryFn: async () => a(i),
7825
7827
  ...e
7826
7828
  });
7827
7829
  }, uu = ({ options: e, paramsData: i } = {}) => {
7828
7830
  const { verifyDonationCodeApi: a } = La();
7829
- return X({
7831
+ return ee({
7830
7832
  queryKey: ["verifyDonationCode", i],
7831
7833
  queryFn: async () => a(i),
7832
7834
  ...e
@@ -7847,11 +7849,11 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
7847
7849
  });
7848
7850
  }, du = ({ options: e, bonusData: i } = {}) => {
7849
7851
  const { getJackpotApi: a } = ie();
7850
- return X({
7852
+ return ee({
7851
7853
  queryKey: ["getJackpotData"],
7852
7854
  queryFn: async () => a(),
7853
7855
  select: (l) => {
7854
- const u = ee(l, "data", {
7856
+ const u = X(l, "data", {
7855
7857
  MAJOR: 0,
7856
7858
  MINOR: 0,
7857
7859
  MINI: 0,
@@ -7859,21 +7861,21 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
7859
7861
  MEGA: 0
7860
7862
  });
7861
7863
  return i ? jr(i, (b, d) => {
7862
- b.amount = ee(u, d, 0) + Math.floor(Math.random() * 1e3);
7864
+ b.amount = X(u, d, 0) + Math.floor(Math.random() * 1e3);
7863
7865
  }) : u;
7864
7866
  },
7865
7867
  ...e
7866
7868
  });
7867
7869
  }, cu = ({ options: e } = {}) => {
7868
7870
  const { getBetRankingApi: i } = ie();
7869
- return X({
7871
+ return ee({
7870
7872
  queryKey: ["getBetRankingData"],
7871
7873
  queryFn: async () => i(),
7872
7874
  ...e
7873
7875
  });
7874
7876
  }, fu = ({ options: e } = {}) => {
7875
7877
  const { getUserAvatarListApi: i } = ie();
7876
- return X({
7878
+ return ee({
7877
7879
  queryKey: ["getAvatarList"],
7878
7880
  queryFn: async () => i(),
7879
7881
  // select: (data) => {
@@ -7972,9 +7974,9 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
7972
7974
  disabledLineAutoRegister: b = !1,
7973
7975
  navigate: d = null
7974
7976
  }) => {
7975
- const { store: r, lng: t } = me(), n = Ea(), { isReady: o, setAsReady: s, isPending: p, setAsPending: m } = Xn(), _ = Je(t), c = re(!1), y = re(i), f = ee(l, "uid", null), U = ee(l, "cagent_uid", null);
7976
- ee(l, "testFunction", 0);
7977
- const C = new URLSearchParams(window.location.search), v = ee(
7977
+ const { store: r, lng: t } = me(), n = Ea(), { isReady: o, setAsReady: s, isPending: p, setAsPending: m } = Xn(), _ = Je(t), c = re(!1), y = re(i), f = X(l, "uid", null), U = X(l, "cagent_uid", null);
7978
+ X(l, "testFunction", 0);
7979
+ const C = new URLSearchParams(window.location.search), v = X(
7978
7980
  u,
7979
7981
  "enableTransferInGaming",
7980
7982
  !1
@@ -7997,9 +7999,9 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
7997
7999
  }), { handleTransferInGame: N } = Vo({
7998
8000
  enable: v,
7999
8001
  isTestFunction: !0,
8000
- isTransferMode: ee(u, "isTransferMode", !1),
8001
- isInGameBox: ee(u, "isInGameBox", !1),
8002
- currentGamePlatform: ee(u, "currentGamePlatform", "")
8002
+ isTransferMode: X(u, "isTransferMode", !1),
8003
+ isInGameBox: X(u, "isInGameBox", !1),
8004
+ currentGamePlatform: X(u, "currentGamePlatform", "")
8003
8005
  }), {
8004
8006
  sendMessage: B,
8005
8007
  // 發送普通訊息
@@ -8061,13 +8063,13 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
8061
8063
  onLineLogin: z,
8062
8064
  onMonthlyCardIssuePoint: q,
8063
8065
  onEventClaimable: j
8064
- } = y.current, ne = ee(A, "type", ""), Y = {
8065
- memberInfoUid: ee(A, "member_info_uid", null),
8066
- data: ee(A, "data", null),
8067
- memo: ee(A, "memo", null),
8068
- amount: ee(A, "amount", null),
8069
- limitAmount: ee(A, "limit_amount", null)
8070
- }, le = Number(Y.memberInfoUid) === f, de = Y.data, Ne = Y.amount, Te = Y.limitAmount, Qe = C.get("mac") || di.get("machine_mac_address") || "", ve = ee(A, "data.line_id", null), Le = ee(A, "data.line_name", null), Ye = ee(A, "member_info_uid", null);
8066
+ } = y.current, ne = X(A, "type", ""), Y = {
8067
+ memberInfoUid: X(A, "member_info_uid", null),
8068
+ data: X(A, "data", null),
8069
+ memo: X(A, "memo", null),
8070
+ amount: X(A, "amount", null),
8071
+ limitAmount: X(A, "limit_amount", null)
8072
+ }, le = Number(Y.memberInfoUid) === f, de = Y.data, Ne = Y.amount, Te = Y.limitAmount, Qe = C.get("mac") || di.get("machine_mac_address") || "", ve = X(A, "data.line_id", null), Le = X(A, "data.line_name", null), Ye = X(A, "member_info_uid", null);
8071
8073
  switch (ne) {
8072
8074
  case Ue.DEPOSIT:
8073
8075
  le && (N(), V?.(Y));
@@ -8077,7 +8079,7 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
8077
8079
  break;
8078
8080
  case Ue.ERROR:
8079
8081
  if (le) {
8080
- const ce = ee(A, "open_game_modal", 0) === 1;
8082
+ const ce = X(A, "open_game_modal", 0) === 1;
8081
8083
  M(de, {
8082
8084
  notificationType: ce ? "gamingNotice" : void 0
8083
8085
  }), E?.(Y);
@@ -8120,7 +8122,7 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
8120
8122
  case Ue.TRANSFER_IN_GAME:
8121
8123
  case Ue.CHECK_REQUEST:
8122
8124
  if (le && v) {
8123
- const { request_id: ce, amount: ye, platform: xe, status: Ie } = ee(Y, "data", {}) || {}, Ze = localStorage.getItem(
8125
+ const { request_id: ce, amount: ye, platform: xe, status: Ie } = X(Y, "data", {}) || {}, Ze = localStorage.getItem(
8124
8126
  "transfer_in_game_request_id"
8125
8127
  );
8126
8128
  if (Ie === "pending") {
@@ -8295,7 +8297,7 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
8295
8297
  };
8296
8298
  }, ps = ({ paramsData: e, options: i } = {}) => {
8297
8299
  const { store: a, lng: l, data2URL: u } = me(), { eventListApi: g } = Za(), b = a?.getState()?.isWalletCurrency || a?.getState()?.currency?.currentCurrency || "TWD", d = Je(l);
8298
- return X({
8300
+ return ee({
8299
8301
  queryKey: ["eventList", e],
8300
8302
  queryFn: () => g({ paramsData: e }),
8301
8303
  select: (r) => {
@@ -8305,11 +8307,11 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
8305
8307
  const { events_attributes: s } = o, p = We(
8306
8308
  s,
8307
8309
  (v) => v.attribute_currency === b
8308
- ) || s[0], m = ee(
8310
+ ) || s[0], m = X(
8309
8311
  p,
8310
8312
  "rewards",
8311
8313
  {}
8312
- ), _ = ee(o, "carousels.[0]", {}), c = We(_.carousels_lang, (v) => v.lang === d) || _?.carousels_lang?.[0], y = {
8314
+ ), _ = X(o, "carousels.[0]", {}), c = We(_.carousels_lang, (v) => v.lang === d) || _?.carousels_lang?.[0], y = {
8313
8315
  ..._,
8314
8316
  currentLngCarousel: {
8315
8317
  ...c,
@@ -8440,14 +8442,14 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
8440
8442
  });
8441
8443
  }, gs = ({ options: e, formData: i } = {}) => {
8442
8444
  const { checkCurrentEventProgessApi: a } = Za();
8443
- return X({
8445
+ return ee({
8444
8446
  queryKey: ["checkEventProgress"],
8445
8447
  queryFn: async () => a(i),
8446
8448
  ...e
8447
8449
  });
8448
8450
  }, ds = ({ options: e, formData: i } = {}) => {
8449
8451
  const { checkEventStatusApi: a } = Za();
8450
- return X({
8452
+ return ee({
8451
8453
  queryKey: ["checkEventStatus"],
8452
8454
  queryFn: async () => a(i),
8453
8455
  select: (l) => l.data.event_status || l.data,
@@ -8519,14 +8521,14 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
8519
8521
  };
8520
8522
  }, Tu = ({ gamePlatform: e, params: i } = {}) => {
8521
8523
  const { eventWalletListApi: a } = rt();
8522
- return X({
8524
+ return ee({
8523
8525
  queryKey: ["getEventWalletList", e, i],
8524
8526
  queryFn: async () => await a({
8525
8527
  gamePlatform: e,
8526
8528
  params: i
8527
8529
  }),
8528
8530
  select: (l) => {
8529
- const u = ee(l, "data", []), g = ee(l, "summary", []), b = e ? We(g, (C) => C.platform === e) : g, d = ee(u, "data", []), {
8531
+ const u = X(l, "data", []), g = X(l, "summary", []), b = e ? We(g, (C) => C.platform === e) : g, d = X(u, "data", []), {
8530
8532
  current_page: r,
8531
8533
  first_page_url: t,
8532
8534
  from: n,
@@ -8569,13 +8571,13 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
8569
8571
  });
8570
8572
  }, xu = ({ gamePlatform: e = "", options: i = {} } = {}) => {
8571
8573
  const { evaluateEventWalletApi: a } = rt();
8572
- return X({
8574
+ return ee({
8573
8575
  queryKey: ["evaluateEventWallet", e],
8574
8576
  queryFn: async () => await a({ gamePlatform: e }),
8575
8577
  select: (l) => {
8576
- const u = ee(l, "data", []), g = ee(l, "summary", []), b = e ? We(g, (r) => r.platform === e) : g;
8578
+ const u = X(l, "data", []), g = X(l, "summary", []), b = e ? We(g, (r) => r.platform === e) : g;
8577
8579
  return {
8578
- list: ee(u, "data", []),
8580
+ list: X(u, "data", []),
8579
8581
  summary: {
8580
8582
  ...b
8581
8583
  }
@@ -8603,7 +8605,7 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
8603
8605
  });
8604
8606
  }, Du = ({ options: e } = {}) => {
8605
8607
  const { lng: i } = me(), { announcementApi: a } = La(), l = Je(i);
8606
- return X({
8608
+ return ee({
8607
8609
  queryKey: ["getAnnouncement"],
8608
8610
  queryFn: async () => await a(),
8609
8611
  select: (u) => {
@@ -8620,7 +8622,7 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
8620
8622
  });
8621
8623
  }, Nu = ({ skipPreload: e = !1 } = {}) => {
8622
8624
  const { lng: i, data2URL: a } = me(), { commonCarouselApi: l } = La(), u = Je(i);
8623
- return X({
8625
+ return ee({
8624
8626
  queryKey: ["getCarouselList", e],
8625
8627
  queryFn: async () => {
8626
8628
  const g = window.carousels_list;
@@ -8648,7 +8650,7 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
8648
8650
  });
8649
8651
  }, Lu = () => {
8650
8652
  const { lng: e, getToken: i } = me(), a = i?.(), { commonMarqueeApi: l } = La(), u = Je(e);
8651
- return X({
8653
+ return ee({
8652
8654
  queryKey: ["getMarqueeList", a],
8653
8655
  queryFn: async () => {
8654
8656
  const g = window.marquees;
@@ -8664,7 +8666,7 @@ const zo = /* @__PURE__ */ Ui(Io), Vo = ({
8664
8666
  });
8665
8667
  }, Gu = ({ options: e } = {}) => {
8666
8668
  const { rankingGameApi: i } = ie();
8667
- return X({
8669
+ return ee({
8668
8670
  queryKey: ["rankingGame"],
8669
8671
  queryFn: async () => i(),
8670
8672
  enabled: window.profit_ranking_status === 1,
@@ -9171,7 +9173,7 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
9171
9173
  throttle: 500
9172
9174
  }), Ps = ({ options: e } = {}) => {
9173
9175
  const { commonInboxApi: i } = La(), { getToken: a, lng: l } = me(), u = a?.(), g = Je(l);
9174
- return X({
9176
+ return ee({
9175
9177
  queryKey: ["inboxList"],
9176
9178
  queryFn: async () => await i(),
9177
9179
  select: (b) => {
@@ -9266,7 +9268,7 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
9266
9268
  }
9267
9269
  ], Pu = ({ options: e, formData: i } = {}) => {
9268
9270
  const { lng: a } = me(), { newsListApi: l } = fr(), u = Je(a);
9269
- return X({
9271
+ return ee({
9270
9272
  queryKey: ["newsList"],
9271
9273
  queryFn: () => {
9272
9274
  const { uid: g, params: b } = i || {};
@@ -9292,7 +9294,7 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
9292
9294
  });
9293
9295
  }, wu = ({ options: e, formData: i } = {}) => {
9294
9296
  const { lng: a } = me(), { newsListApi: l } = fr(), u = Je(a);
9295
- return X({
9297
+ return ee({
9296
9298
  queryKey: ["newsList"],
9297
9299
  queryFn: () => {
9298
9300
  const { uid: g, params: b } = i || {};
@@ -9516,14 +9518,14 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
9516
9518
  };
9517
9519
  }, As = ({ options: e } = {}) => {
9518
9520
  const { depositApiV1: i } = Ae();
9519
- return X({
9521
+ return ee({
9520
9522
  queryKey: ["depositV1"],
9521
9523
  queryFn: i,
9522
9524
  ...e
9523
9525
  });
9524
9526
  }, Os = ({ paramsData: e, options: i } = {}) => {
9525
9527
  const { depositApiV2: a } = Ae();
9526
- return X({
9528
+ return ee({
9527
9529
  queryKey: ["depositV2", e],
9528
9530
  queryFn: () => a({ paramsData: e }),
9529
9531
  select: (l) => {
@@ -9562,14 +9564,14 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
9562
9564
  });
9563
9565
  }, Ws = ({ paramsData: e, options: i } = {}) => {
9564
9566
  const { depositTransactionApi: a } = Ae();
9565
- return X({
9567
+ return ee({
9566
9568
  queryKey: ["depositTransaction", e],
9567
9569
  queryFn: () => a({ paramsData: e }),
9568
9570
  ...i
9569
9571
  });
9570
9572
  }, Is = ({ paramsData: e, options: i } = {}) => {
9571
9573
  const { eventTransactionApi: a } = Ae();
9572
- return X({
9574
+ return ee({
9573
9575
  queryKey: ["eventTransaction", e],
9574
9576
  queryFn: () => a({ paramsData: e }),
9575
9577
  ...i
@@ -9583,7 +9585,7 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
9583
9585
  });
9584
9586
  }, Vs = ({ paramsData: e, options: i } = {}) => {
9585
9587
  const { withdrawTransactionApi: a } = Ae();
9586
- return X({
9588
+ return ee({
9587
9589
  queryKey: ["withdrawTransaction", e],
9588
9590
  queryFn: () => a({ paramsData: e }),
9589
9591
  ...i
@@ -9611,49 +9613,49 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
9611
9613
  });
9612
9614
  }, Bu = ({ options: e, paramsData: i } = {}) => {
9613
9615
  const { transactionRecordApi: a } = Ae();
9614
- return X({
9616
+ return ee({
9615
9617
  queryKey: ["transactionRecord", "deposit"],
9616
9618
  queryFn: () => a(i, "deposit"),
9617
9619
  ...e
9618
9620
  });
9619
9621
  }, Hu = ({ options: e, paramsData: i } = {}) => {
9620
9622
  const { transactionRecordApi: a } = Ae();
9621
- return X({
9623
+ return ee({
9622
9624
  queryKey: ["transactionRecord", "withdraw"],
9623
9625
  queryFn: () => a(i, "withdraw"),
9624
9626
  ...e
9625
9627
  });
9626
9628
  }, Wu = ({ options: e, paramsData: i } = {}) => {
9627
9629
  const { transactionRecordApi: a } = Ae();
9628
- return X({
9630
+ return ee({
9629
9631
  queryKey: ["transactionRecord", "event"],
9630
9632
  queryFn: () => a(i, "event"),
9631
9633
  ...e
9632
9634
  });
9633
9635
  }, Iu = ({ options: e, paramsData: i } = {}) => {
9634
9636
  const { transactionRecordApi: a } = Ae();
9635
- return X({
9637
+ return ee({
9636
9638
  queryKey: ["transactionRecord", "rebate"],
9637
9639
  queryFn: () => a(i, "rebate"),
9638
9640
  ...e
9639
9641
  });
9640
9642
  }, zu = ({ options: e, paramsData: i } = {}) => {
9641
9643
  const { treasureRecordApi: a } = Ae();
9642
- return X({
9644
+ return ee({
9643
9645
  queryKey: ["treasureRecord", i],
9644
9646
  queryFn: () => a(i),
9645
9647
  ...e
9646
9648
  });
9647
9649
  }, Vu = ({ options: e, paramsData: i } = {}) => {
9648
9650
  const { snCashRecordApi: a } = Ae();
9649
- return X({
9651
+ return ee({
9650
9652
  queryKey: ["snCashRecord", i],
9651
9653
  queryFn: () => a(i),
9652
9654
  ...e
9653
9655
  });
9654
9656
  }, Ju = ({ options: e, paramsData: i } = {}) => {
9655
9657
  const { otherTransactionApi: a } = Ae();
9656
- return X({
9658
+ return ee({
9657
9659
  queryKey: ["otherTransaction", i],
9658
9660
  queryFn: () => a({ paramsData: i }),
9659
9661
  ...e
@@ -9781,7 +9783,7 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
9781
9783
  extendBuiltins: em
9782
9784
  }, Ku = (e, i) => {
9783
9785
  const { playGameApi: a } = hi();
9784
- return X({
9786
+ return ee({
9785
9787
  queryKey: ["playGame"],
9786
9788
  queryFn: async () => {
9787
9789
  const { gameUid: l, gameCode: u, isMobile: g, gameCurrency: b, currentCurrency: d } = e || {}, r = await a({
@@ -9823,7 +9825,7 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
9823
9825
  };
9824
9826
  }, tm = ({ options: e } = {}) => {
9825
9827
  const { currentRebateApi: i } = Nr();
9826
- return X({
9828
+ return ee({
9827
9829
  queryKey: ["currentRebate"],
9828
9830
  queryFn: () => i(),
9829
9831
  select: (a) => Qr(a, ["code", "status"]),
@@ -9868,7 +9870,7 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
9868
9870
  };
9869
9871
  }, nm = ({ options: e, formData: i } = {}) => {
9870
9872
  const { rewardListApi: a } = lt();
9871
- return X({
9873
+ return ee({
9872
9874
  queryKey: ["rewardsList"],
9873
9875
  queryFn: () => {
9874
9876
  const { uid: l, params: u } = i || {};
@@ -9876,11 +9878,11 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
9876
9878
  },
9877
9879
  select: (l) => {
9878
9880
  try {
9879
- const u = De(ee(l, "data.data", []), (g) => {
9881
+ const u = De(X(l, "data.data", []), (g) => {
9880
9882
  const {
9881
9883
  wagering_restricted_amount: b,
9882
9884
  claimed_amount: d
9883
- } = g, r = ee(g, "rewards", {}), {
9885
+ } = g, r = X(g, "rewards", {}), {
9884
9886
  expiration_days: t,
9885
9887
  name: n,
9886
9888
  position: o,
@@ -9922,21 +9924,21 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
9922
9924
  });
9923
9925
  }, lm = ({ options: e } = {}) => {
9924
9926
  const { unUsedRewardListApi: i } = lt();
9925
- return X({
9927
+ return ee({
9926
9928
  queryKey: ["unUsedRewardsList"],
9927
9929
  queryFn: i,
9928
9930
  ...e
9929
9931
  });
9930
9932
  }, om = ({ options: e } = {}) => {
9931
9933
  const { expiredRewardListApi: i } = lt();
9932
- return X({
9934
+ return ee({
9933
9935
  queryKey: ["expiredRewardsList"],
9934
9936
  queryFn: i,
9935
9937
  ...e
9936
9938
  });
9937
9939
  }, sm = ({ options: e } = {}) => {
9938
9940
  const { historyRewardApi: i } = lt();
9939
- return X({
9941
+ return ee({
9940
9942
  queryKey: ["historyRewardsList"],
9941
9943
  queryFn: i,
9942
9944
  ...e
@@ -10003,18 +10005,18 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
10003
10005
  };
10004
10006
  }, ju = ({ paramsData: e, options: i } = {}) => {
10005
10007
  const { client: a, lng: l } = me(), u = Je(l || "tw"), { treasureListApi: g } = Lr();
10006
- return X({
10008
+ return ee({
10007
10009
  queryKey: ["treasureList", e],
10008
10010
  queryFn: () => g(e),
10009
10011
  select: (b) => {
10010
- const d = ee(b, "data", {}), r = {
10011
- current_page: ee(d, "current_page", 1),
10012
- per_page: ee(d, "per_page", 10),
10013
- total: ee(d, "total", 1),
10014
- last_page: ee(d, "last_page", 1)
10012
+ const d = X(b, "data", {}), r = {
10013
+ current_page: X(d, "current_page", 1),
10014
+ per_page: X(d, "per_page", 10),
10015
+ total: X(d, "total", 1),
10016
+ last_page: X(d, "last_page", 1)
10015
10017
  };
10016
10018
  return {
10017
- list: De(ee(d, "data", []), (n) => {
10019
+ list: De(X(d, "data", []), (n) => {
10018
10020
  const o = We(n.treasure_copywriting, {
10019
10021
  language: u
10020
10022
  });
@@ -10044,11 +10046,11 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
10044
10046
  };
10045
10047
  }, Yu = ({ options: e } = {}) => {
10046
10048
  const { store: i } = me(), a = i?.getState()?.isMemberInfo || i?.getState()?.member?.member || {}, { vipInfoApi: l } = Gr();
10047
- return X({
10049
+ return ee({
10048
10050
  queryKey: ["vipInfo"],
10049
10051
  queryFn: async () => l(),
10050
10052
  select: (u) => {
10051
- const { data: g } = u, b = ee(g, "data", []), d = De(b, (t) => ({
10053
+ const { data: g } = u, b = X(g, "data", []), d = De(b, (t) => ({
10052
10054
  currentWager: t.wagering || t.value,
10053
10055
  currentStatus: t.status,
10054
10056
  currentOverflow: t.promotion_overflow,
@@ -10069,7 +10071,7 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
10069
10071
  });
10070
10072
  }, mm = ({ options: e } = {}) => {
10071
10073
  const { store: i } = me(), a = i?.getState()?.isWalletCurrency || i?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: l } = Gr();
10072
- return X({
10074
+ return ee({
10073
10075
  queryKey: ["vipList"],
10074
10076
  queryFn: async () => {
10075
10077
  const u = window.vip_list;
@@ -10087,7 +10089,7 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
10087
10089
  } = d, p = We(r, { currency_code: a }) || {}, m = We(t, { currency_code: a }) || {}, _ = n, c = De(o, (U) => ({
10088
10090
  ...U,
10089
10091
  rebateRange: JSON.parse(U.rebate_range)
10090
- })), y = ee(s, "[0]", {}), f = {
10092
+ })), y = X(s, "[0]", {}), f = {
10091
10093
  ...y,
10092
10094
  platformRebate: JSON.parse(y.rebate || "{}")
10093
10095
  };
@@ -10466,7 +10468,7 @@ const Mu = ({ onIdle: e, onActive: i, onAction: a, timeout: l = 6e5 }) => Ms({
10466
10468
  },
10467
10469
  user: { favorite: [] }
10468
10470
  }, vm = ({ enabled: e = !0 } = {}) => {
10469
- const { getToken: i } = me(), { userFavoriteGameApi: a, userGameListApi: l } = ie(), { data: u, isLoading: g, error: b, refetch: d } = X({
10471
+ const { getToken: i } = me(), { userFavoriteGameApi: a, userGameListApi: l } = ie(), { data: u, isLoading: g, error: b, refetch: d } = ee({
10470
10472
  queryKey: ["gamesInfo"],
10471
10473
  queryFn: async () => {
10472
10474
  let r = {}, t = {};
@@ -37253,7 +37255,7 @@ const l0 = () => {
37253
37255
  );
37254
37256
  }, s0 = ({ onFunction: e = () => {
37255
37257
  }, buttonProps: i = {} } = {}) => {
37256
- const { lineConfig: a } = me(), l = re(!1), u = ee(a, "liffId", ""), g = new URLSearchParams(window.location.search), b = g.get("line_login"), d = g.get("trans_code"), r = g.get("line_id"), t = g.get("line_name"), n = g.get("invite_code"), { mutate: o, isPending: s } = gr({
37258
+ const { lineConfig: a } = me(), l = re(!1), u = X(a, "liffId", ""), g = new URLSearchParams(window.location.search), b = g.get("line_login"), d = g.get("trans_code"), r = g.get("line_id"), t = g.get("line_name"), n = g.get("invite_code"), { mutate: o, isPending: s } = gr({
37257
37259
  options: {
37258
37260
  onSuccess: (m) => {
37259
37261
  e(m);
@@ -38159,14 +38161,14 @@ const wm = {
38159
38161
  expired: "Kode QR telah kedaluwarsa"
38160
38162
  }
38161
38163
  }, p0 = ({ forcedShow: e = !1, isVisible: i, setIsVisible: a } = {}) => {
38162
- const { lng: l, getToken: u, lineConfig: g } = me(), [b, d] = da(300), [r, t] = da(!1), n = re(null), o = ee(g, "liffId", ""), s = Je(l), p = u?.(), _ = new URLSearchParams(window.location.search).get("mac") || di.get("machine_mac_address") || "", { data: c, isFetching: y } = os({
38164
+ const { lng: l, getToken: u, lineConfig: g } = me(), [b, d] = da(300), [r, t] = da(!1), n = re(null), o = X(g, "liffId", ""), s = Je(l), p = u?.(), _ = new URLSearchParams(window.location.search).get("mac") || di.get("machine_mac_address") || "", { data: c, isFetching: y } = os({
38163
38165
  formData: {
38164
38166
  mac_address: _
38165
38167
  },
38166
38168
  options: {
38167
38169
  enabled: e ? !0 : !!_ && !p
38168
38170
  }
38169
- }), f = ee(c, "liff_url", "") || `https://liff.line.me/${o}`;
38171
+ }), f = X(c, "liff_url", "") || `https://liff.line.me/${o}`;
38170
38172
  _e(() => {
38171
38173
  _ && di.set("machine_mac_address", _, { expires: 365 });
38172
38174
  }, [_]), _e(() => (f && (d(300), t(!1), n.current && clearInterval(n.current), n.current = setInterval(() => {
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.425",
4
+ "version": "1.0.426",
5
5
  "description": "集成API",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",