@paypay/mini-app-js-sdk 1.25.0 → 1.28.0

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.
Files changed (92) hide show
  1. package/dist/composition-api/useRegisterEmail.d.ts +1 -1
  2. package/dist/jsbridge-core/jsbridge.d.ts +11 -11
  3. package/dist/jsbridge-core/lib/reconstructParams.d.ts +2 -1
  4. package/dist/jsbridge-core/module.d.ts +1 -3
  5. package/dist/jsbridge-core/paypay-jsbridge.d.ts +2 -3
  6. package/dist/mini-app-api.d.ts +14 -14
  7. package/dist/mini-app-js-sdk.browser.js +1 -1
  8. package/dist/mini-app-js-sdk.es.js +819 -576
  9. package/dist/mini-app-js-sdk.min.css +1 -1
  10. package/dist/model/bridge/checkAccessToken.d.ts +2 -2
  11. package/dist/model/bridge/debug.d.ts +2 -2
  12. package/dist/model/bridge/getAppDetail.d.ts +1 -1
  13. package/dist/model/bridge/getAuthStatus.d.ts +2 -2
  14. package/dist/model/bridge/getConfigure.d.ts +2 -1
  15. package/dist/model/bridge/getDeviceInformation.d.ts +2 -2
  16. package/dist/model/bridge/getPlatformInformation.d.ts +1 -1
  17. package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
  18. package/dist/model/bridge/getUAID.d.ts +2 -2
  19. package/dist/model/bridge/getUserProfile.d.ts +2 -2
  20. package/dist/model/bridge/logout.d.ts +2 -2
  21. package/dist/model/bridge/registerEmail.d.ts +1 -1
  22. package/dist/model/bridge/registerKyc.d.ts +1 -1
  23. package/dist/model/bridge/removeStorageData.d.ts +2 -2
  24. package/dist/model/bridge/render.d.ts +1 -1
  25. package/dist/model/bridge/renderLoginButton.d.ts +1 -1
  26. package/dist/model/bridge/renderPayButton.d.ts +1 -1
  27. package/dist/model/bridge/scanCode.d.ts +1 -1
  28. package/dist/model/bridge/setSessionData.d.ts +1 -1
  29. package/dist/model/bridge/setStorageData.d.ts +1 -1
  30. package/dist/model/bridge/setTitle.d.ts +1 -1
  31. package/dist/model/bridge/showAlert.d.ts +1 -1
  32. package/dist/model/bridge/showErrorSheet.d.ts +1 -1
  33. package/dist/model/bridge/showUpdateWarning.d.ts +1 -1
  34. package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +2 -2
  35. package/dist/model/makePayment.d.ts +10 -2
  36. package/dist/package/input/index.d.ts +0 -19
  37. package/dist/package/input/utils.d.ts +0 -4
  38. package/dist/package/payment-method/PayLaterCC.vue.d.ts +291 -0
  39. package/dist/package/payment-method/SbidBank.vue.d.ts +5 -0
  40. package/dist/package/payment-method/Wallet.vue.d.ts +5 -1
  41. package/dist/package/payment-type/PayLaterCC.vue.d.ts +289 -0
  42. package/dist/package/payment-type/Sbid.vue.d.ts +5 -0
  43. package/dist/package/payment-type/Wallet.vue.d.ts +5 -0
  44. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +5 -0
  45. package/dist/types.d.ts +33 -31
  46. package/dist/utils/fetch.d.ts +43 -2
  47. package/dist/utils/getImages.d.ts +1 -0
  48. package/dist/utils/getLanguage.d.ts +4 -0
  49. package/dist/utils/helper.d.ts +1 -0
  50. package/dist/utils/miniAppRequest.d.ts +2 -1
  51. package/dist/views/email-registration/App.vue.d.ts +7 -3
  52. package/dist/views/email-registration/hooks/callback.d.ts +1 -1
  53. package/dist/views/error-sheet/Index.vue.d.ts +5 -0
  54. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +4 -0
  55. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +5 -0
  56. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +4 -0
  57. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +4 -0
  58. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +4 -0
  59. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +4 -0
  60. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +4 -0
  61. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +4 -0
  62. package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +4 -0
  63. package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +4 -0
  64. package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +4 -0
  65. package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +4 -0
  66. package/dist/views/make-payment/Main.vue.d.ts +1 -0
  67. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +4 -0
  68. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +5 -0
  69. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +5 -0
  70. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +5 -0
  71. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +6 -0
  72. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +4 -0
  73. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +5 -0
  74. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +7 -7
  75. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +16 -1
  76. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +4 -0
  77. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +5 -0
  78. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +4 -0
  79. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +5 -0
  80. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +5 -0
  81. package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +1 -0
  82. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +5 -0
  83. package/dist/views/make-payment/hooks/app-hooks.d.ts +7 -2
  84. package/dist/views/open-app/App.vue.d.ts +5 -0
  85. package/dist/views/open-map/App.vue.d.ts +4 -0
  86. package/dist/views/show-update-warning/App.vue.d.ts +5 -0
  87. package/dist/views/take-photo/App.vue.d.ts +4 -0
  88. package/dist/views/topup/App.vue.d.ts +10 -5
  89. package/dist/views/topup/CashbackInfo.vue.d.ts +4 -0
  90. package/dist/views/topup/TopupCompletion.vue.d.ts +5 -0
  91. package/package.json +3 -1
  92. package/dist/utils/common.d.ts +0 -2
@@ -65,7 +65,8 @@ function normalizeNativeResponseData(data2) {
65
65
  }
66
66
  class JsBridge {
67
67
  constructor(global2) {
68
- this.version = "1.25.0";
68
+ this.version = "1.28.0";
69
+ this.revision = "8e77fc7";
69
70
  this.messageHandlers = new Map();
70
71
  this.responseCallbacks = new Map();
71
72
  this.global = global2;
@@ -1072,6 +1073,10 @@ const wallet$1 = {
1072
1073
  cashBackExpirable: "PayPay\u30DC\u30FC\u30CA\u30B9\u30E9\u30A4\u30C8",
1073
1074
  balance: "\u5229\u7528\u53EF\u80FD\u984D\uFF1A"
1074
1075
  };
1076
+ const payLater$2 = {
1077
+ title: "PayPay\u3042\u3068\u6255\u3044",
1078
+ balance: "\u5229\u7528\u53EF\u80FD\u984D\uFF1A"
1079
+ };
1075
1080
  const softbank$2 = {
1076
1081
  desc: "\u30BD\u30D5\u30C8\u30D0\u30F3\u30AF\u30FB\u30EF\u30A4\u30E2\u30D0\u30A4\u30EB",
1077
1082
  desc1: "\u307E\u3068\u3081\u3066\u652F\u6255\u3044",
@@ -1131,6 +1136,7 @@ var ja = {
1131
1136
  paymentMethod: paymentMethod$2,
1132
1137
  paymentMethodStatus: paymentMethodStatus$1,
1133
1138
  wallet: wallet$1,
1139
+ payLater: payLater$2,
1134
1140
  softbank: softbank$2,
1135
1141
  registerEmail: registerEmail$2,
1136
1142
  smartLogin: smartLogin$1,
@@ -1161,6 +1167,7 @@ var ja$1 = /* @__PURE__ */ Object.freeze({
1161
1167
  paymentMethod: paymentMethod$2,
1162
1168
  paymentMethodStatus: paymentMethodStatus$1,
1163
1169
  wallet: wallet$1,
1170
+ payLater: payLater$2,
1164
1171
  softbank: softbank$2,
1165
1172
  registerEmail: registerEmail$2,
1166
1173
  smartLogin: smartLogin$1,
@@ -1244,6 +1251,13 @@ const getPaymentMethods = (params) => {
1244
1251
  params
1245
1252
  });
1246
1253
  };
1254
+ const getPaymentMethods2 = (params) => {
1255
+ return ppFetch2({
1256
+ method: "GET",
1257
+ url: "web-api/app/v2/payment/methods",
1258
+ params
1259
+ });
1260
+ };
1247
1261
  const makePayment$1 = async (queryParams, body, isAuthorization) => {
1248
1262
  var _a, _b, _c, _d, _e, _f, _g;
1249
1263
  const url = isAuthorization ? "web-api/app/v1/payment/preauthorize" : "web-api/app/v1/payment";
@@ -1318,7 +1332,7 @@ function trimExtraChar(value2, char, regExp) {
1318
1332
  }
1319
1333
  return value2.slice(0, index2 + 1) + value2.slice(index2).replace(regExp, "");
1320
1334
  }
1321
- function formatNumber$3(value2, options) {
1335
+ function formatNumber(value2, options) {
1322
1336
  if (options == null ? void 0 : options.allowDot) {
1323
1337
  value2 = trimExtraChar(value2, ".", /\./g);
1324
1338
  } else {
@@ -1335,6 +1349,9 @@ function formatNumber$3(value2, options) {
1335
1349
  const numberWithCommas = (x = 0) => {
1336
1350
  return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1337
1351
  };
1352
+ function formatAmount(val2) {
1353
+ return (val2 == null ? void 0 : val2.toLocaleString()) || "-";
1354
+ }
1338
1355
  function formatCurrency(val2, n) {
1339
1356
  const re = `\\d(?=(\\d{3})+${n > 0 ? "\\." : "$"})`;
1340
1357
  return val2 == null ? void 0 : val2.toFixed(Math.max(0, ~~n)).replace(new RegExp(re, "g"), "$&,");
@@ -1344,12 +1361,6 @@ function trigger$2(target, type) {
1344
1361
  inputEvent.initEvent(type, true, true);
1345
1362
  target.dispatchEvent(inputEvent);
1346
1363
  }
1347
- function isObject$1(val2) {
1348
- return val2 !== null && typeof val2 === "object";
1349
- }
1350
- function isPromise$1(val2) {
1351
- return isObject$1(val2) && isFunction$1(val2.then) && isFunction$1(val2.catch);
1352
- }
1353
1364
  function checkDuplicateTopup(amount2) {
1354
1365
  try {
1355
1366
  if (getLastTopup()) {
@@ -1517,7 +1528,7 @@ const opaUrl = () => {
1517
1528
  const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
1518
1529
  let headers = new Headers(__spreadValues({
1519
1530
  "Content-Type": "application/json",
1520
- "Client-Version": "1.25.0",
1531
+ "Client-Version": "1.28.0",
1521
1532
  "Client-OS-Type": getRuntime()
1522
1533
  }, customHeaders));
1523
1534
  if (urlEndpoint === "web-api/app/v2/payment/methods" || urlEndpoint === "web-api/app/v2/payment/consult" || urlEndpoint === "web-api/app/v1/payment/cashbackDetail" || urlEndpoint === "web-api/app/v1/confirmAgeForCashback" || urlEndpoint === "web-api/app/v1/internal/request" || urlEndpoint === "web-api/app/v1/addressbyzip" || urlEndpoint === "/web-api/app/platform/v1/balance") {
@@ -1547,7 +1558,7 @@ function addParams(params) {
1547
1558
  }
1548
1559
  return paramString;
1549
1560
  }
1550
- function ppFetch(options) {
1561
+ function ppFetchPrepare(options) {
1551
1562
  if (!options.params) {
1552
1563
  options.params = {};
1553
1564
  }
@@ -1555,20 +1566,10 @@ function ppFetch(options) {
1555
1566
  const requestInfo = `${opaUrl()}${options.url}${addParams(options.params)}`;
1556
1567
  const { timeout = 3e4 } = options;
1557
1568
  let controller = new AbortController();
1558
- let id;
1569
+ window.setTimeout(() => controller.abort(), timeout);
1559
1570
  const headers = createHeaderMiniAppApi(options.url, options.headers);
1560
1571
  if (!headers) {
1561
- const msg = "PayPay Mini App JS SDK is not initialized";
1562
- console.warn(msg);
1563
- return Promise.resolve({
1564
- error: {
1565
- message: msg
1566
- }
1567
- });
1568
- }
1569
- try {
1570
- id = setTimeout(() => controller.abort(), timeout);
1571
- } catch (_) {
1572
+ return null;
1572
1573
  }
1573
1574
  let requestInit = {
1574
1575
  method: options.method,
@@ -1578,7 +1579,22 @@ function ppFetch(options) {
1578
1579
  if (["POST", "PUT"].includes(options.method) && options.data) {
1579
1580
  requestInit.body = JSON.stringify(options.data);
1580
1581
  }
1581
- return fetch(requestInfo, requestInit).then(async (response) => {
1582
+ return { requestInfo, requestInit };
1583
+ }
1584
+ async function ppFetch(options) {
1585
+ const fetchParams = ppFetchPrepare(options);
1586
+ if (!fetchParams) {
1587
+ const msg = "PayPay Mini App JS SDK is not initialized";
1588
+ console.warn(msg);
1589
+ return Promise.resolve({
1590
+ error: {
1591
+ message: msg
1592
+ }
1593
+ });
1594
+ }
1595
+ const { requestInfo, requestInit } = fetchParams;
1596
+ try {
1597
+ const response = await fetch(requestInfo, requestInit);
1582
1598
  const res = await response.json();
1583
1599
  if (res.error === "invalid_token" && !options.suppressRefresh) {
1584
1600
  if (await refreshToken()) {
@@ -1586,20 +1602,79 @@ function ppFetch(options) {
1586
1602
  }
1587
1603
  }
1588
1604
  return __spreadProps(__spreadValues({}, res), { statusCode: response == null ? void 0 : response.status });
1589
- }).catch((error) => {
1590
- if (error.name === "AbortError") {
1605
+ } catch (error) {
1606
+ if (error instanceof Error && error.name === "AbortError") {
1591
1607
  return {
1592
1608
  error: { message: MiniAppErrorType.timeOut }
1593
1609
  };
1594
1610
  }
1595
- return { error: "Request failed." };
1596
- }).finally(() => {
1597
- clearTimeout(id);
1598
- });
1611
+ return { error: { message: "Request failed." } };
1612
+ }
1613
+ }
1614
+ async function ppFetch2(options) {
1615
+ var _a, _b, _c, _d, _e;
1616
+ const fetchParams = ppFetchPrepare(options);
1617
+ if (!fetchParams) {
1618
+ const msg = "PayPay Mini App JS SDK is not initialized";
1619
+ console.warn(msg);
1620
+ return Promise.resolve({
1621
+ ppFetchResult: "notInitialized",
1622
+ body: null
1623
+ });
1624
+ }
1625
+ const { requestInfo, requestInit } = fetchParams;
1626
+ try {
1627
+ const response = await fetch(requestInfo, requestInit);
1628
+ const res = await response.json();
1629
+ const tokenResponse = res;
1630
+ if (tokenResponse.error === "invalid_token" && !options.suppressRefresh) {
1631
+ if (await refreshToken()) {
1632
+ return ppFetch2(__spreadProps(__spreadValues({}, options), { suppressRefresh: true }));
1633
+ }
1634
+ }
1635
+ const opaResponse = res;
1636
+ if (opaResponse.unsigned) {
1637
+ if (((_a = opaResponse.unsigned.resultInfo) == null ? void 0 : _a.code) !== "SUCCESS") {
1638
+ return {
1639
+ ppFetchResult: "apiError",
1640
+ statusCode: response.status,
1641
+ body: opaResponse
1642
+ };
1643
+ }
1644
+ } else if (((_b = opaResponse.resultInfo) == null ? void 0 : _b.code) !== "SUCCESS") {
1645
+ return {
1646
+ ppFetchResult: "apiError",
1647
+ statusCode: response.status,
1648
+ body: opaResponse
1649
+ };
1650
+ }
1651
+ if (((_e = (_d = (_c = opaResponse.unsigned) == null ? void 0 : _c.data) == null ? void 0 : _d.header) == null ? void 0 : _e.resultCode) && opaResponse.unsigned.data.header.resultCode !== "S0000") {
1652
+ return {
1653
+ ppFetchResult: "apiError",
1654
+ statusCode: response.status,
1655
+ body: opaResponse
1656
+ };
1657
+ }
1658
+ return {
1659
+ ppFetchResult: "success",
1660
+ statusCode: response.status,
1661
+ body: res
1662
+ };
1663
+ } catch (error) {
1664
+ if (error instanceof Error && error.name === "AbortError") {
1665
+ return {
1666
+ ppFetchResult: "timeout",
1667
+ body: null
1668
+ };
1669
+ }
1670
+ return {
1671
+ ppFetchResult: "fetchError",
1672
+ body: null
1673
+ };
1674
+ }
1599
1675
  }
1600
1676
  async function refreshToken() {
1601
- var _a, _b, _c;
1602
- const res = await ppFetch({
1677
+ const res = await ppFetch2({
1603
1678
  method: "POST",
1604
1679
  url: "web-api/app/token/v1/refresh",
1605
1680
  data: {
@@ -1607,13 +1682,13 @@ async function refreshToken() {
1607
1682
  },
1608
1683
  suppressRefresh: true
1609
1684
  });
1610
- if (!res || "error" in res) {
1611
- return false;
1612
- }
1613
- if (((_a = res == null ? void 0 : res.resultInfo) == null ? void 0 : _a.code) === "SUCCESS") {
1614
- saveAccessToken(((_b = res == null ? void 0 : res.data) == null ? void 0 : _b.accessToken) || "");
1615
- saveRefreshToken(((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.refreshToken) || "");
1616
- return true;
1685
+ if (res.ppFetchResult === "success") {
1686
+ const data2 = res.body.data;
1687
+ if ((data2 == null ? void 0 : data2.accessToken) && data2.refreshToken) {
1688
+ saveAccessToken(data2.accessToken);
1689
+ saveRefreshToken(data2.refreshToken);
1690
+ return true;
1691
+ }
1617
1692
  }
1618
1693
  return false;
1619
1694
  }
@@ -1640,8 +1715,11 @@ async function initAppDetail(accessToken) {
1640
1715
  return true;
1641
1716
  }
1642
1717
  function getAppDetail() {
1643
- const res = JSON.parse(getAppDetail$1() || "{}");
1644
- return res;
1718
+ const json = getAppDetail$1();
1719
+ if (json) {
1720
+ return JSON.parse(json);
1721
+ }
1722
+ return null;
1645
1723
  }
1646
1724
  async function initAppConfiguration() {
1647
1725
  const res = await ppFetch({
@@ -1660,7 +1738,11 @@ async function initAppConfiguration() {
1660
1738
  return true;
1661
1739
  }
1662
1740
  function getAppConfig() {
1663
- return JSON.parse(getAppConfig$1() || "{}");
1741
+ const config = getAppConfig$1();
1742
+ if (config) {
1743
+ return JSON.parse(config);
1744
+ }
1745
+ return null;
1664
1746
  }
1665
1747
  function reconstructParams(params) {
1666
1748
  if (!params)
@@ -1683,6 +1765,16 @@ function reconstructParams(params) {
1683
1765
  }, 0);
1684
1766
  };
1685
1767
  }
1768
+ var MiniAppStatusType;
1769
+ (function(MiniAppStatusType2) {
1770
+ MiniAppStatusType2["validToken"] = "TOKEN_VALID";
1771
+ MiniAppStatusType2["initialized"] = "INITIALIZED";
1772
+ MiniAppStatusType2["emailRegistered"] = "EMAIL_REGISTERED";
1773
+ MiniAppStatusType2["emailNotVerified"] = "EMAIL_NOT_VERIFIED";
1774
+ MiniAppStatusType2["success"] = "SUCCESS";
1775
+ MiniAppStatusType2["loggedOut"] = "LOGGED_OUT";
1776
+ MiniAppStatusType2["connected"] = "CONNECTED";
1777
+ })(MiniAppStatusType || (MiniAppStatusType = {}));
1686
1778
  function getUAID(params) {
1687
1779
  reconstructParams(params);
1688
1780
  execute$e(params).catch(() => {
@@ -1700,16 +1792,6 @@ async function execute$e(params) {
1700
1792
  const userId = (_b = res == null ? void 0 : res.signed) == null ? void 0 : _b.jws;
1701
1793
  (userId == null ? void 0 : userId.length) ? (_c = params == null ? void 0 : params.success) == null ? void 0 : _c.call(params, { jws: userId }) : (_d = params == null ? void 0 : params.fail) == null ? void 0 : _d.call(params, { errorCode: MiniAppErrorType.serverError });
1702
1794
  }
1703
- var MiniAppStatusType;
1704
- (function(MiniAppStatusType2) {
1705
- MiniAppStatusType2["validToken"] = "TOKEN_VALID";
1706
- MiniAppStatusType2["initialized"] = "INITIALIZED";
1707
- MiniAppStatusType2["emailRegistered"] = "EMAIL_REGISTERED";
1708
- MiniAppStatusType2["emailNotVerified"] = "EMAIL_NOT_VERIFIED";
1709
- MiniAppStatusType2["success"] = "SUCCESS";
1710
- MiniAppStatusType2["loggedOut"] = "LOGGED_OUT";
1711
- MiniAppStatusType2["connected"] = "CONNECTED";
1712
- })(MiniAppStatusType || (MiniAppStatusType = {}));
1713
1795
  function checkAccessToken(params) {
1714
1796
  reconstructParams(params);
1715
1797
  execute$d(params);
@@ -1889,7 +1971,7 @@ const PermissionName = {
1889
1971
  };
1890
1972
  const checkPermission = async (permissionNames) => {
1891
1973
  var _a;
1892
- if ((_a = JSON.parse(getAppDetail$1() || "{}")) == null ? void 0 : _a.isInternal) {
1974
+ if ((_a = getAppDetail()) == null ? void 0 : _a.isInternal) {
1893
1975
  return PermissionStatus.granted;
1894
1976
  }
1895
1977
  const resPermission = await getUserGrantedPermission();
@@ -1945,13 +2027,13 @@ async function getKycInformation(params) {
1945
2027
  await execute$9(params);
1946
2028
  }
1947
2029
  async function execute$9(params) {
1948
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
2030
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1949
2031
  try {
1950
2032
  const grantStatus = await checkPermission(PermissionName.mini_app_kyc);
1951
2033
  if (grantStatus !== PermissionStatus.granted) {
1952
2034
  return (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.insufficientScope });
1953
2035
  }
1954
- const res = await ppFetch({
2036
+ const res = await ppFetch2({
1955
2037
  method: "GET",
1956
2038
  url: "web-api/app/v2/users/kyc",
1957
2039
  params: {
@@ -1959,18 +2041,18 @@ async function execute$9(params) {
1959
2041
  eKycDocuments: (_b = params.eKycDocuments) == null ? void 0 : _b.toString()
1960
2042
  }
1961
2043
  });
1962
- if (!res || "error" in res) {
2044
+ if (res.ppFetchResult !== "success") {
1963
2045
  return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, { errorCode: MiniAppErrorType.serverError });
1964
2046
  }
1965
- if ((_d = res == null ? void 0 : res.unsigned) == null ? void 0 : _d.data) {
1966
- let response = (_e = res == null ? void 0 : res.unsigned) == null ? void 0 : _e.data;
1967
- response.jws = (_f = res == null ? void 0 : res.signed) == null ? void 0 : _f.jws;
1968
- return (_g = params == null ? void 0 : params.success) == null ? void 0 : _g.call(params, response);
2047
+ if ((_d = res.body.unsigned) == null ? void 0 : _d.data) {
2048
+ let response = res.body.unsigned.data;
2049
+ response.jws = (_e = res.body.signed) == null ? void 0 : _e.jws;
2050
+ return (_f = params == null ? void 0 : params.success) == null ? void 0 : _f.call(params, response);
1969
2051
  } else {
1970
- return (_h = params == null ? void 0 : params.fail) == null ? void 0 : _h.call(params, { errorCode: MiniAppErrorType.serverError });
2052
+ return (_g = params == null ? void 0 : params.fail) == null ? void 0 : _g.call(params, { errorCode: MiniAppErrorType.serverError });
1971
2053
  }
1972
2054
  } catch {
1973
- return (_i = params == null ? void 0 : params.fail) == null ? void 0 : _i.call(params, { errorCode: MiniAppErrorType.serverError });
2055
+ return (_h = params == null ? void 0 : params.fail) == null ? void 0 : _h.call(params, { errorCode: MiniAppErrorType.serverError });
1974
2056
  }
1975
2057
  }
1976
2058
  async function getPermissionStatus(params) {
@@ -7488,10 +7570,10 @@ const ActionSheet = defineComponent({
7488
7570
  })]);
7489
7571
  }
7490
7572
  });
7491
- const container$k = "_container_g8jc8_2";
7573
+ const container$m = "_container_g8jc8_2";
7492
7574
  const primary = "_primary_g8jc8_24";
7493
7575
  const focus = "_focus_g8jc8_35";
7494
- const disabled$2 = "_disabled_g8jc8_41";
7576
+ const disabled$3 = "_disabled_g8jc8_41";
7495
7577
  const success = "_success_g8jc8_46";
7496
7578
  const warning$1 = "_warning_g8jc8_68";
7497
7579
  const danger = "_danger_g8jc8_90";
@@ -7508,10 +7590,10 @@ const bounce1 = "_bounce1_g8jc8_228";
7508
7590
  const bounce2 = "_bounce2_g8jc8_231";
7509
7591
  var styles$3 = {
7510
7592
  "ppmna-default-font": "_ppmna-default-font_g8jc8_1",
7511
- container: container$k,
7593
+ container: container$m,
7512
7594
  primary,
7513
7595
  focus,
7514
- disabled: disabled$2,
7596
+ disabled: disabled$3,
7515
7597
  success,
7516
7598
  warning: warning$1,
7517
7599
  danger,
@@ -7626,19 +7708,7 @@ const Divider = defineComponent({
7626
7708
  }, null);
7627
7709
  }
7628
7710
  });
7629
- function isEmptyValue(value2) {
7630
- if (Array.isArray(value2)) {
7631
- return !value2.length;
7632
- }
7633
- if (value2 === 0) {
7634
- return false;
7635
- }
7636
- return !value2;
7637
- }
7638
7711
  function runSyncRule(value2, rule) {
7639
- if (rule.required && isEmptyValue(value2)) {
7640
- return false;
7641
- }
7642
7712
  if (rule.pattern && !rule.pattern.test(String(value2))) {
7643
7713
  return false;
7644
7714
  }
@@ -7668,11 +7738,6 @@ const Input = defineComponent({
7668
7738
  required: false,
7669
7739
  default: "sm"
7670
7740
  },
7671
- formatter: {
7672
- type: Function,
7673
- required: false,
7674
- default: (v) => v
7675
- },
7676
7741
  autofocus: {
7677
7742
  type: Boolean,
7678
7743
  required: false,
@@ -7728,11 +7793,6 @@ const Input = defineComponent({
7728
7793
  required: false,
7729
7794
  default: () => [{}]
7730
7795
  },
7731
- formatTrigger: {
7732
- type: String,
7733
- required: false,
7734
- default: "onChange"
7735
- },
7736
7796
  validateTrigger: {
7737
7797
  type: String,
7738
7798
  required: false,
@@ -7777,9 +7837,10 @@ const Input = defineComponent({
7777
7837
  const state = reactive({
7778
7838
  focused: false,
7779
7839
  validateFailed: false,
7780
- validateMessage: ""
7840
+ validateMessage: "",
7841
+ isComposing: false
7781
7842
  });
7782
- const updateValue = (_value, trigger2 = "onChange") => {
7843
+ const updateValue = (_value) => {
7783
7844
  var _a;
7784
7845
  let value2 = isDef(_value) ? String(_value) : "";
7785
7846
  const {
@@ -7800,14 +7861,11 @@ const Input = defineComponent({
7800
7861
  }
7801
7862
  if (props.type === "number" || props.type === "digit") {
7802
7863
  const isNumber = props.type === "number";
7803
- value2 = formatNumber$3(value2, {
7864
+ value2 = formatNumber(value2, {
7804
7865
  allowDot: isNumber,
7805
7866
  allowMinus: isNumber
7806
7867
  });
7807
7868
  }
7808
- if (props.formatter && trigger2 === props.formatTrigger) {
7809
- value2 = props.formatter(value2);
7810
- }
7811
7869
  if ((inputRef == null ? void 0 : inputRef.value) && value2 !== ((_a = inputRef == null ? void 0 : inputRef.value) == null ? void 0 : _a.value)) {
7812
7870
  inputRef.value.value = value2;
7813
7871
  }
@@ -7818,7 +7876,7 @@ const Input = defineComponent({
7818
7876
  const onInput = (event) => {
7819
7877
  const target = event.target;
7820
7878
  const cursorPosition = target.selectionStart;
7821
- if (!target.composing) {
7879
+ if (!state.isComposing) {
7822
7880
  updateValue(target.value);
7823
7881
  emit("input", event);
7824
7882
  }
@@ -7834,18 +7892,17 @@ const Input = defineComponent({
7834
7892
  emit("focus", event);
7835
7893
  };
7836
7894
  const onBlur = (event) => {
7837
- updateValue(props.modelValue, "onBlur");
7895
+ updateValue(props.modelValue);
7838
7896
  emit("blur", event);
7839
7897
  validateWithTrigger("onBlur");
7840
7898
  };
7841
- const onCompositionStart2 = (event) => {
7842
- event.target.composing = true;
7899
+ const onCompositionStart2 = () => {
7900
+ state.isComposing = true;
7843
7901
  };
7844
7902
  const onCompositionEnd2 = (event) => {
7845
- const target = event.target;
7846
- if (target.composing) {
7847
- target.composing = false;
7848
- trigger$2(target, "input");
7903
+ if (state.isComposing) {
7904
+ state.isComposing = false;
7905
+ trigger$2(event.target, "input");
7849
7906
  }
7850
7907
  };
7851
7908
  const resetValidation = () => {
@@ -7854,16 +7911,6 @@ const Input = defineComponent({
7854
7911
  state.validateMessage = "";
7855
7912
  }
7856
7913
  };
7857
- const runValidator = (value2, rule) => new Promise((resolve2) => {
7858
- void (async () => {
7859
- var _a;
7860
- const returnVal = (_a = rule == null ? void 0 : rule.validator) == null ? void 0 : _a.call(rule, value2, rule);
7861
- if (isPromise$1(returnVal)) {
7862
- return await returnVal.then(resolve2);
7863
- }
7864
- resolve2(returnVal);
7865
- })();
7866
- });
7867
7914
  const validate2 = (rules = props.rules) => new Promise((resolve2) => {
7868
7915
  if (!rules) {
7869
7916
  resolve2(null);
@@ -7885,10 +7932,7 @@ const Input = defineComponent({
7885
7932
  const validateWithTrigger = (trigger2) => {
7886
7933
  if (props.rules) {
7887
7934
  const defaultTrigger = props.validateTrigger === trigger2;
7888
- const rules = props.rules.filter((rule) => {
7889
- if (rule.trigger) {
7890
- return rule.trigger === trigger2;
7891
- }
7935
+ const rules = props.rules.filter(() => {
7892
7936
  return defaultTrigger;
7893
7937
  });
7894
7938
  void validate2(rules);
@@ -7899,25 +7943,11 @@ const Input = defineComponent({
7899
7943
  return;
7900
7944
  }
7901
7945
  let value2 = String(props.modelValue);
7902
- if (rule.formatter) {
7903
- value2 = rule.formatter(value2, rule);
7904
- }
7905
7946
  if (!runSyncRule(value2, rule)) {
7906
7947
  state.validateFailed = true;
7907
7948
  state.validateMessage = getRuleMessage(value2, rule);
7908
7949
  return;
7909
7950
  }
7910
- if (rule.validator) {
7911
- return runValidator(value2, rule).then((result2) => {
7912
- if (result2 && typeof result2 === "string") {
7913
- state.validateFailed = true;
7914
- state.validateMessage = result2;
7915
- } else if (result2 === false) {
7916
- state.validateFailed = true;
7917
- state.validateMessage = getRuleMessage(value2, rule);
7918
- }
7919
- });
7920
- }
7921
7951
  }), Promise.resolve());
7922
7952
  const renderMessage = () => {
7923
7953
  const message = props.errorMessage || state.validateMessage;
@@ -19904,7 +19934,7 @@ const Header = defineComponent({
19904
19934
  })}`,
19905
19935
  "style": headerStyle.value
19906
19936
  }, [createVNode("div", {
19907
- "data-test": "header-close",
19937
+ "data-testid": "header-close",
19908
19938
  "onClick": () => emit("click")
19909
19939
  }, [createVNode("i", {
19910
19940
  "class": `${styles$2.icon} ${styles$2[props.icon]}`
@@ -19912,6 +19942,7 @@ const Header = defineComponent({
19912
19942
  "class": `${styles$2.text} ${props.titleClassName} ${props.rightIcon ? styles$2.iconRightText : ""}`
19913
19943
  }, [props.title]), props.rightIcon && createVNode("div", null, [createVNode("i", {
19914
19944
  "class": `${styles$2.iconRight} ${styles$2[props.rightIcon]}`,
19945
+ "data-testid": "header-right-button",
19915
19946
  "onClick": () => emit("right-click")
19916
19947
  }, null)])]);
19917
19948
  }
@@ -19950,6 +19981,7 @@ const paypayRecWhite = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-pa
19950
19981
  const downArrow = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-arrow-down.svg";
19951
19982
  const bankIcon$1 = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/bank.svg";
19952
19983
  const confetti = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/animation/confetti.json";
19984
+ const payLater$1 = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/paylater.svg";
19953
19985
  var images = {
19954
19986
  iconBalanceError,
19955
19987
  animationDone,
@@ -19984,28 +20016,29 @@ var images = {
19984
20016
  paypayRecWhite,
19985
20017
  downArrow,
19986
20018
  bankIcon: bankIcon$1,
19987
- confetti
20019
+ confetti,
20020
+ payLater: payLater$1
19988
20021
  };
19989
20022
  function getImages() {
19990
20023
  return images;
19991
20024
  }
19992
20025
  const header$7 = "_header_319hz_1";
19993
- const container$j = "_container_319hz_11";
20026
+ const container$l = "_container_319hz_11";
19994
20027
  const paypayIcon = "_paypayIcon_319hz_19";
19995
- const rightAlign$1 = "_rightAlign_319hz_30";
20028
+ const rightAlign$2 = "_rightAlign_319hz_30";
19996
20029
  const storeName = "_storeName_319hz_38";
19997
20030
  const storeImage = "_storeImage_319hz_50";
19998
20031
  const title$8 = "_title_319hz_56";
19999
20032
  var styles$1 = {
20000
20033
  header: header$7,
20001
- container: container$j,
20034
+ container: container$l,
20002
20035
  paypayIcon,
20003
- rightAlign: rightAlign$1,
20036
+ rightAlign: rightAlign$2,
20004
20037
  storeName,
20005
20038
  storeImage,
20006
20039
  title: title$8
20007
20040
  };
20008
- const img$b = getImages();
20041
+ const img$c = getImages();
20009
20042
  const DesktopHeader = defineComponent({
20010
20043
  props: {
20011
20044
  class: {
@@ -20022,7 +20055,7 @@ const DesktopHeader = defineComponent({
20022
20055
  setup(props) {
20023
20056
  const appDtls = getAppDetail$1();
20024
20057
  const appDetail = appDtls ? JSON.parse(appDtls) : void 0;
20025
- const storeImage2 = (appDetail == null ? void 0 : appDetail.appLogo) || img$b.merchant;
20058
+ const storeImage2 = (appDetail == null ? void 0 : appDetail.appLogo) || img$c.merchant;
20026
20059
  const storeName2 = appDetail == null ? void 0 : appDetail.appName;
20027
20060
  return () => createVNode("div", {
20028
20061
  "class": `${styles$1.header} ${props.class}`
@@ -20047,7 +20080,7 @@ const breakDownList = "_breakDownList_crfwr_1";
20047
20080
  const breakDownEnter = "_breakDownEnter_crfwr_54";
20048
20081
  const breakDownIcon = "_breakDownIcon_crfwr_59";
20049
20082
  const breakDownIconReverse = "_breakDownIconReverse_crfwr_71";
20050
- var style0$L = {
20083
+ var style0$N = {
20051
20084
  breakDownList,
20052
20085
  "non-usable": "_non-usable_crfwr_17",
20053
20086
  "breakDownList-enter-active": "_breakDownList-enter-active_crfwr_35",
@@ -20067,10 +20100,7 @@ var _export_sfc = (sfc, props) => {
20067
20100
  }
20068
20101
  return target;
20069
20102
  };
20070
- function formatNumber$2(val2) {
20071
- return (val2 == null ? void 0 : val2.toLocaleString()) || "-";
20072
- }
20073
- const _sfc_main$$ = defineComponent({
20103
+ const _sfc_main$11 = defineComponent({
20074
20104
  props: {
20075
20105
  wallet: {
20076
20106
  type: Object,
@@ -20091,13 +20121,13 @@ const _sfc_main$$ = defineComponent({
20091
20121
  cashBackExpirableBalanceInfo
20092
20122
  } = ((_b = (_a = props == null ? void 0 : props.wallet) == null ? void 0 : _a.walletInfo) == null ? void 0 : _b.walletDetail) || {};
20093
20123
  return {
20094
- emoney: formatNumber$2(emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.balance),
20124
+ emoney: formatAmount(emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.balance),
20095
20125
  emoneyUsable: emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.usable,
20096
- prepaid: formatNumber$2(prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.balance),
20126
+ prepaid: formatAmount(prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.balance),
20097
20127
  prepaidUsable: prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.usable,
20098
- cashBack: formatNumber$2(cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.balance),
20128
+ cashBack: formatAmount(cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.balance),
20099
20129
  cashBackUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable,
20100
- cashBackExpirable: formatNumber$2(cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance),
20130
+ cashBackExpirable: formatAmount(cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance),
20101
20131
  cashBackExpirebleUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable
20102
20132
  };
20103
20133
  });
@@ -20110,7 +20140,7 @@ const _sfc_main$$ = defineComponent({
20110
20140
  };
20111
20141
  }
20112
20142
  });
20113
- function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
20143
+ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
20114
20144
  return openBlock(), createElementBlock("div", null, [
20115
20145
  _ctx.walletDetail ? (openBlock(), createElementBlock("span", {
20116
20146
  key: 0,
@@ -20165,18 +20195,15 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
20165
20195
  }, 8, ["name"])
20166
20196
  ]);
20167
20197
  }
20168
- const cssModules$M = {};
20169
- cssModules$M["$style"] = style0$L;
20170
- var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__cssModules", cssModules$M]]);
20171
- const img$a = "_img_373i3_1";
20172
- var style0$K = {
20173
- img: img$a
20198
+ const cssModules$O = {};
20199
+ cssModules$O["$style"] = style0$N;
20200
+ var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__cssModules", cssModules$O]]);
20201
+ const img$b = "_img_373i3_1";
20202
+ var style0$M = {
20203
+ img: img$b
20174
20204
  };
20175
20205
  var Wallet_vue_vue_type_style_index_1_scoped_true_lang = "";
20176
- function formatNumber$1(val2) {
20177
- return (val2 == null ? void 0 : val2.toLocaleString()) || "-";
20178
- }
20179
- const _sfc_main$_ = defineComponent({
20206
+ const _sfc_main$10 = defineComponent({
20180
20207
  components: {
20181
20208
  WalletBreakdown
20182
20209
  },
@@ -20193,7 +20220,7 @@ const _sfc_main$_ = defineComponent({
20193
20220
  };
20194
20221
  const formattedBalance = computed(() => {
20195
20222
  var _a, _b, _c;
20196
- return formatNumber$1((_c = (_b = (_a = props.wallet.walletInfo) == null ? void 0 : _a.walletSummary) == null ? void 0 : _b.totalBalanceInfo) == null ? void 0 : _c.balance);
20223
+ return formatAmount((_c = (_b = (_a = props.wallet.walletInfo) == null ? void 0 : _a.walletSummary) == null ? void 0 : _b.totalBalanceInfo) == null ? void 0 : _c.balance);
20197
20224
  });
20198
20225
  const style = useCssModule();
20199
20226
  const walletDetail = computed(() => {
@@ -20205,13 +20232,13 @@ const _sfc_main$_ = defineComponent({
20205
20232
  cashBackExpirableBalanceInfo
20206
20233
  } = ((_b = (_a = props == null ? void 0 : props.wallet) == null ? void 0 : _a.walletInfo) == null ? void 0 : _b.walletDetail) || {};
20207
20234
  return {
20208
- emoney: formatNumber$1(emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.balance),
20235
+ emoney: formatAmount(emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.balance),
20209
20236
  emoneyUsable: emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.usable,
20210
- prepaid: formatNumber$1(prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.balance),
20237
+ prepaid: formatAmount(prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.balance),
20211
20238
  prepaidUsable: prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.usable,
20212
- cashBack: formatNumber$1(cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.balance),
20239
+ cashBack: formatAmount(cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.balance),
20213
20240
  cashBackUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable,
20214
- cashBackExpirable: formatNumber$1(cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance),
20241
+ cashBackExpirable: formatAmount(cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance),
20215
20242
  cashBackExpirebleUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable
20216
20243
  };
20217
20244
  });
@@ -20226,20 +20253,20 @@ const _sfc_main$_ = defineComponent({
20226
20253
  };
20227
20254
  }
20228
20255
  });
20229
- const _hoisted_1$F = { class: "payment-method--content-container" };
20256
+ const _hoisted_1$H = { class: "payment-method--content-container" };
20230
20257
  const _hoisted_2$q = { class: "payment-method--content-container--image-container" };
20231
- const _hoisted_3$k = ["src"];
20258
+ const _hoisted_3$l = ["src"];
20232
20259
  const _hoisted_4$h = { class: "payment-method--content-container--label" };
20233
20260
  const _hoisted_5$d = { class: "payment-method--content-container--label--main" };
20234
20261
  const _hoisted_6$6 = { class: "payment-method--content-container--label--sub" };
20235
- function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
20262
+ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
20236
20263
  const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
20237
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
20264
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
20238
20265
  createBaseVNode("div", _hoisted_2$q, [
20239
20266
  createBaseVNode("img", {
20240
20267
  class: normalizeClass(_ctx.style.img),
20241
20268
  src: _ctx.images.iconBalanceIcon
20242
- }, null, 10, _hoisted_3$k)
20269
+ }, null, 10, _hoisted_3$l)
20243
20270
  ]),
20244
20271
  createBaseVNode("div", _hoisted_4$h, [
20245
20272
  createBaseVNode("span", _hoisted_5$d, toDisplayString(_ctx.lg.wallet.title), 1),
@@ -20248,10 +20275,10 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
20248
20275
  ])
20249
20276
  ]);
20250
20277
  }
20251
- const cssModules$L = {};
20252
- cssModules$L["$style"] = style0$K;
20253
- var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__cssModules", cssModules$L], ["__scopeId", "data-v-4d07ad64"]]);
20254
- const img$9 = "_img_p3zha_1";
20278
+ const cssModules$N = {};
20279
+ cssModules$N["$style"] = style0$M;
20280
+ var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__cssModules", cssModules$N], ["__scopeId", "data-v-e0654490"]]);
20281
+ const img$a = "_img_p3zha_1";
20255
20282
  const round$2 = "_round_p3zha_5";
20256
20283
  const nonVisible$1 = "_nonVisible_p3zha_8";
20257
20284
  const creditCardLabel = "_creditCardLabel_p3zha_11";
@@ -20264,8 +20291,8 @@ const creditCard$1 = "_creditCard_p3zha_11";
20264
20291
  const maintainanceInfo$2 = "_maintainanceInfo_p3zha_39";
20265
20292
  const paymentInfo$2 = "_paymentInfo_p3zha_45";
20266
20293
  const fullWidth$1 = "_fullWidth_p3zha_48";
20267
- var style0$J = {
20268
- img: img$9,
20294
+ var style0$L = {
20295
+ img: img$a,
20269
20296
  round: round$2,
20270
20297
  nonVisible: nonVisible$1,
20271
20298
  creditCardLabel,
@@ -20280,14 +20307,14 @@ var style0$J = {
20280
20307
  fullWidth: fullWidth$1
20281
20308
  };
20282
20309
  var CreditCard_vue_vue_type_style_index_1_scoped_true_lang$1 = "";
20283
- const img$8 = getImages();
20310
+ const img$9 = getImages();
20284
20311
  const creditCardMap$1 = {
20285
- [CreditTypes.JCB]: img$8.jcb,
20286
- [CreditTypes.VISA]: img$8.visa,
20287
- [CreditTypes.MASTER]: img$8.master,
20288
- [CreditTypes.AMEX]: img$8.amex
20312
+ [CreditTypes.JCB]: img$9.jcb,
20313
+ [CreditTypes.VISA]: img$9.visa,
20314
+ [CreditTypes.MASTER]: img$9.master,
20315
+ [CreditTypes.AMEX]: img$9.amex
20289
20316
  };
20290
- const _sfc_main$Z = defineComponent({
20317
+ const _sfc_main$$ = defineComponent({
20291
20318
  components: {
20292
20319
  Button
20293
20320
  },
@@ -20326,14 +20353,14 @@ const _sfc_main$Z = defineComponent({
20326
20353
  if (authenticated2)
20327
20354
  return {
20328
20355
  authenticated: true,
20329
- img: img$8.checkGreen,
20356
+ img: img$9.checkGreen,
20330
20357
  text: getLanguage().paymentMethod.checkGreen,
20331
20358
  imgStyle: style.authorizedImg,
20332
20359
  style: style.authorized
20333
20360
  };
20334
20361
  return {
20335
20362
  authenticated: false,
20336
- img: img$8.iconAlert,
20363
+ img: img$9.iconAlert,
20337
20364
  text: getLanguage().paymentMethod.authenticated,
20338
20365
  style: style.unAuthorized,
20339
20366
  imgStyle: style.unAuthorizedImg
@@ -20344,13 +20371,13 @@ const _sfc_main$Z = defineComponent({
20344
20371
  if (isPPCard.value) {
20345
20372
  return {
20346
20373
  title: getLanguage().paymentMethod.ppCardTitle,
20347
- logo: img$8.ppCard,
20374
+ logo: img$9.ppCard,
20348
20375
  style: props.round ? style.round : ""
20349
20376
  };
20350
20377
  } else if (isYjCard.value) {
20351
20378
  return {
20352
20379
  title: getLanguage().paymentMethod.yjTitle,
20353
- logo: img$8.yahoo,
20380
+ logo: img$9.yahoo,
20354
20381
  style: props.round ? style.round : ""
20355
20382
  };
20356
20383
  }
@@ -20388,12 +20415,12 @@ const _sfc_main$Z = defineComponent({
20388
20415
  };
20389
20416
  }
20390
20417
  });
20391
- const _hoisted_1$E = ["src"];
20418
+ const _hoisted_1$G = ["src"];
20392
20419
  const _hoisted_2$p = { class: "payment-method--content-container--label--main" };
20393
- const _hoisted_3$j = { class: "payment-method--content-container--label--sub" };
20420
+ const _hoisted_3$k = { class: "payment-method--content-container--label--sub" };
20394
20421
  const _hoisted_4$g = ["src"];
20395
20422
  const _hoisted_5$c = { class: "right-align" };
20396
- function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
20423
+ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
20397
20424
  const _component_Button = resolveComponent("Button");
20398
20425
  return openBlock(), createElementBlock("div", {
20399
20426
  class: normalizeClass(["payment-method--content-container", _ctx.getClass])
@@ -20405,7 +20432,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
20405
20432
  createBaseVNode("img", {
20406
20433
  src: _ctx.cardInfo.logo,
20407
20434
  class: normalizeClass([_ctx.style.img, _ctx.cardInfo.style])
20408
- }, null, 10, _hoisted_1$E)
20435
+ }, null, 10, _hoisted_1$G)
20409
20436
  ], 2)
20410
20437
  ]),
20411
20438
  createBaseVNode("div", {
@@ -20418,7 +20445,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
20418
20445
  class: normalizeClass(["payment-method--content-container--label", _ctx.style.creditCardLabel])
20419
20446
  }, [
20420
20447
  createBaseVNode("span", _hoisted_2$p, toDisplayString(_ctx.cardInfo.title), 1),
20421
- createBaseVNode("span", _hoisted_3$j, " **** " + toDisplayString(_ctx.last4digits), 1),
20448
+ createBaseVNode("span", _hoisted_3$k, " **** " + toDisplayString(_ctx.last4digits), 1),
20422
20449
  createBaseVNode("div", {
20423
20450
  class: normalizeClass([_ctx.style.authenticateStatusContainer, _ctx.authInfo.style])
20424
20451
  }, [
@@ -20451,17 +20478,17 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
20451
20478
  ], 2)
20452
20479
  ], 2);
20453
20480
  }
20454
- const cssModules$K = {};
20455
- cssModules$K["$style"] = style0$J;
20456
- var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__cssModules", cssModules$K], ["__scopeId", "data-v-4589c43a"]]);
20457
- const img$7 = "_img_11k9z_1";
20481
+ const cssModules$M = {};
20482
+ cssModules$M["$style"] = style0$L;
20483
+ var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__cssModules", cssModules$M], ["__scopeId", "data-v-4589c43a"]]);
20484
+ const img$8 = "_img_11k9z_1";
20458
20485
  const round$1 = "_round_11k9z_5";
20459
20486
  const branchNumber = "_branchNumber_11k9z_8";
20460
20487
  const maintainanceInfo$1 = "_maintainanceInfo_11k9z_14";
20461
20488
  const paymentInfo$1 = "_paymentInfo_11k9z_20";
20462
20489
  const fullWidth = "_fullWidth_11k9z_23";
20463
- var style0$I = {
20464
- img: img$7,
20490
+ var style0$K = {
20491
+ img: img$8,
20465
20492
  round: round$1,
20466
20493
  branchNumber,
20467
20494
  maintainanceInfo: maintainanceInfo$1,
@@ -20478,7 +20505,7 @@ const getTypeText$1 = (val2) => {
20478
20505
  return "";
20479
20506
  }
20480
20507
  };
20481
- const _sfc_main$Y = defineComponent({
20508
+ const _sfc_main$_ = defineComponent({
20482
20509
  components: {
20483
20510
  Button
20484
20511
  },
@@ -20534,15 +20561,15 @@ const _sfc_main$Y = defineComponent({
20534
20561
  };
20535
20562
  }
20536
20563
  });
20537
- const _hoisted_1$D = ["src"];
20564
+ const _hoisted_1$F = ["src"];
20538
20565
  const _hoisted_2$o = { class: "payment-method--content-container--label" };
20539
- const _hoisted_3$i = { class: "payment-method--content-container--label--main" };
20566
+ const _hoisted_3$j = { class: "payment-method--content-container--label--main" };
20540
20567
  const _hoisted_4$f = {
20541
20568
  key: 0,
20542
20569
  class: "payment-method--content-container--label--sub"
20543
20570
  };
20544
20571
  const _hoisted_5$b = { class: "right-align" };
20545
- function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
20572
+ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
20546
20573
  const _component_Button = resolveComponent("Button");
20547
20574
  return openBlock(), createElementBlock("div", {
20548
20575
  class: normalizeClass(["payment-method--content-container", _ctx.getClass])
@@ -20554,7 +20581,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
20554
20581
  createBaseVNode("img", {
20555
20582
  class: normalizeClass([_ctx.style.img, { [_ctx.style.round]: _ctx.round }]),
20556
20583
  src: _ctx.bankInfo.logo
20557
- }, null, 10, _hoisted_1$D)
20584
+ }, null, 10, _hoisted_1$F)
20558
20585
  ], 2)
20559
20586
  ]),
20560
20587
  createBaseVNode("div", {
@@ -20564,7 +20591,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
20564
20591
  class: normalizeClass(_ctx.style.paymentInfo)
20565
20592
  }, [
20566
20593
  createBaseVNode("div", _hoisted_2$o, [
20567
- createBaseVNode("div", _hoisted_3$i, toDisplayString(_ctx.bankInfo.name), 1),
20594
+ createBaseVNode("div", _hoisted_3$j, toDisplayString(_ctx.bankInfo.name), 1),
20568
20595
  !!_ctx.bankInfo.branchName ? (openBlock(), createElementBlock("div", _hoisted_4$f, toDisplayString(_ctx.bankInfo.branchName), 1)) : createCommentVNode("", true),
20569
20596
  createBaseVNode("div", null, [
20570
20597
  createBaseVNode("span", {
@@ -20594,12 +20621,12 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
20594
20621
  ], 2)
20595
20622
  ], 2);
20596
20623
  }
20597
- const cssModules$J = {};
20598
- cssModules$J["$style"] = style0$I;
20599
- var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__cssModules", cssModules$J]]);
20600
- const container$i = "_container_82o6p_1";
20624
+ const cssModules$L = {};
20625
+ cssModules$L["$style"] = style0$K;
20626
+ var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__cssModules", cssModules$L]]);
20627
+ const container$k = "_container_82o6p_1";
20601
20628
  const imageContainer$1 = "_imageContainer_82o6p_7";
20602
- const img$6 = "_img_82o6p_11";
20629
+ const img$7 = "_img_82o6p_11";
20603
20630
  const content$9 = "_content_82o6p_15";
20604
20631
  const paymentInfo = "_paymentInfo_82o6p_19";
20605
20632
  const paymentDesc = "_paymentDesc_82o6p_23";
@@ -20608,11 +20635,11 @@ const subDesc = "_subDesc_82o6p_34";
20608
20635
  const disable = "_disable_82o6p_40";
20609
20636
  const centerAlign = "_centerAlign_82o6p_46";
20610
20637
  const maintainanceInfo = "_maintainanceInfo_82o6p_49";
20611
- const invalid = "_invalid_82o6p_55";
20612
- var style0$H = {
20613
- container: container$i,
20638
+ const invalid$1 = "_invalid_82o6p_55";
20639
+ var style0$J = {
20640
+ container: container$k,
20614
20641
  imageContainer: imageContainer$1,
20615
- img: img$6,
20642
+ img: img$7,
20616
20643
  content: content$9,
20617
20644
  paymentInfo,
20618
20645
  paymentDesc,
@@ -20621,9 +20648,9 @@ var style0$H = {
20621
20648
  disable,
20622
20649
  centerAlign,
20623
20650
  maintainanceInfo,
20624
- invalid
20651
+ invalid: invalid$1
20625
20652
  };
20626
- const _sfc_main$X = defineComponent({
20653
+ const _sfc_main$Z = defineComponent({
20627
20654
  components: {
20628
20655
  Button
20629
20656
  },
@@ -20656,8 +20683,8 @@ const _sfc_main$X = defineComponent({
20656
20683
  };
20657
20684
  }
20658
20685
  });
20659
- const _hoisted_1$C = ["src"];
20660
- function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
20686
+ const _hoisted_1$E = ["src"];
20687
+ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
20661
20688
  const _component_Button = resolveComponent("Button");
20662
20689
  return openBlock(), createElementBlock("div", {
20663
20690
  class: normalizeClass([_ctx.style.container, _ctx.getClass, _ctx.isDisable ? _ctx.style.centerAlign : ""])
@@ -20668,7 +20695,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
20668
20695
  createBaseVNode("img", {
20669
20696
  class: normalizeClass(_ctx.style.img),
20670
20697
  src: _ctx.images.softbank
20671
- }, null, 10, _hoisted_1$C)
20698
+ }, null, 10, _hoisted_1$E)
20672
20699
  ], 2),
20673
20700
  createBaseVNode("div", {
20674
20701
  class: normalizeClass(_ctx.style.content)
@@ -20712,9 +20739,104 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
20712
20739
  ], 2)
20713
20740
  ], 2);
20714
20741
  }
20715
- const cssModules$I = {};
20716
- cssModules$I["$style"] = style0$H;
20717
- var Sbid = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__cssModules", cssModules$I]]);
20742
+ const cssModules$K = {};
20743
+ cssModules$K["$style"] = style0$J;
20744
+ var Sbid = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__cssModules", cssModules$K]]);
20745
+ const img$6 = "_img_m6p0b_1";
20746
+ const container$j = "_container_m6p0b_5";
20747
+ const imgContainer$2 = "_imgContainer_m6p0b_10";
20748
+ const labelContainer = "_labelContainer_m6p0b_20";
20749
+ const mainLabel = "_mainLabel_m6p0b_27";
20750
+ const subLabel = "_subLabel_m6p0b_34";
20751
+ const disabled$2 = "_disabled_m6p0b_40";
20752
+ const rightAlign$1 = "_rightAlign_m6p0b_46";
20753
+ const invalid = "_invalid_m6p0b_50";
20754
+ var style0$I = {
20755
+ img: img$6,
20756
+ container: container$j,
20757
+ imgContainer: imgContainer$2,
20758
+ labelContainer,
20759
+ mainLabel,
20760
+ subLabel,
20761
+ disabled: disabled$2,
20762
+ rightAlign: rightAlign$1,
20763
+ invalid
20764
+ };
20765
+ const _sfc_main$Y = defineComponent({
20766
+ components: {
20767
+ Button
20768
+ },
20769
+ props: {
20770
+ payLater: {
20771
+ type: Object,
20772
+ required: true
20773
+ }
20774
+ },
20775
+ setup(props) {
20776
+ var _a, _b;
20777
+ return {
20778
+ formattedBalance: computed(() => {
20779
+ var _a2, _b2;
20780
+ return formatAmount((_b2 = (_a2 = props.payLater) == null ? void 0 : _a2.payLaterCcInfo) == null ? void 0 : _b2.availableAmount);
20781
+ }),
20782
+ isDisable: ((_b = (_a = props == null ? void 0 : props.payLater) == null ? void 0 : _a.payLaterCcInfo) == null ? void 0 : _b.paymentMethodStatus) !== PaymentMethodStatus.ACTIVATED,
20783
+ images: getImages(),
20784
+ lg: getLanguage(),
20785
+ paymentMethodStatusText: computed(() => {
20786
+ var _a2, _b2;
20787
+ return getPaymentMethodStatus(false, (_b2 = (_a2 = props == null ? void 0 : props.payLater) == null ? void 0 : _a2.payLaterCcInfo) == null ? void 0 : _b2.paymentMethodStatus);
20788
+ })
20789
+ };
20790
+ }
20791
+ });
20792
+ const _hoisted_1$D = ["src"];
20793
+ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
20794
+ const _component_Button = resolveComponent("Button");
20795
+ return openBlock(), createElementBlock("div", {
20796
+ class: normalizeClass({
20797
+ [_ctx.$style.disabled]: _ctx.isDisable,
20798
+ [_ctx.$style.container]: true
20799
+ })
20800
+ }, [
20801
+ createBaseVNode("div", {
20802
+ class: normalizeClass(_ctx.$style.imgContainer)
20803
+ }, [
20804
+ createBaseVNode("img", {
20805
+ class: normalizeClass(_ctx.$style.img),
20806
+ src: _ctx.images.payLater
20807
+ }, null, 10, _hoisted_1$D)
20808
+ ], 2),
20809
+ createBaseVNode("div", {
20810
+ class: normalizeClass(_ctx.$style.labelContainer)
20811
+ }, [
20812
+ createBaseVNode("span", {
20813
+ class: normalizeClass(_ctx.$style.mainLabel)
20814
+ }, toDisplayString(_ctx.lg.payLater.title), 3),
20815
+ createBaseVNode("span", {
20816
+ class: normalizeClass(_ctx.$style.subLabel)
20817
+ }, toDisplayString(_ctx.lg.payLater.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 3)
20818
+ ], 2),
20819
+ createBaseVNode("span", {
20820
+ class: normalizeClass(_ctx.$style.rightAlign)
20821
+ }, [
20822
+ _ctx.isDisable ? (openBlock(), createBlock(_component_Button, {
20823
+ key: 0,
20824
+ disabled: true,
20825
+ class: normalizeClass(_ctx.$style.invalid),
20826
+ size: "small",
20827
+ type: "default"
20828
+ }, {
20829
+ default: withCtx(() => [
20830
+ createTextVNode(toDisplayString(_ctx.paymentMethodStatusText), 1)
20831
+ ]),
20832
+ _: 1
20833
+ }, 8, ["class"])) : createCommentVNode("", true)
20834
+ ], 2)
20835
+ ], 2);
20836
+ }
20837
+ const cssModules$J = {};
20838
+ cssModules$J["$style"] = style0$I;
20839
+ var PayLaterCC = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__cssModules", cssModules$J]]);
20718
20840
  const PaymentMethod = defineComponent({
20719
20841
  props: {
20720
20842
  paymentMethod: {
@@ -20725,7 +20847,7 @@ const PaymentMethod = defineComponent({
20725
20847
  }
20726
20848
  },
20727
20849
  render() {
20728
- var _a, _b, _c, _d, _e;
20850
+ var _a, _b, _c, _d, _e, _f;
20729
20851
  if (((_a = this.paymentMethod) == null ? void 0 : _a.paymentMethodType) === PaymentMethodType.WALLET) {
20730
20852
  return createVNode(Wallet, {
20731
20853
  "wallet": this.paymentMethod
@@ -20747,6 +20869,11 @@ const PaymentMethod = defineComponent({
20747
20869
  "sbid": this.paymentMethod
20748
20870
  }, null);
20749
20871
  }
20872
+ if (((_f = this.paymentMethod) == null ? void 0 : _f.paymentMethodType) === PaymentMethodType.PAY_LATER_CC) {
20873
+ return createVNode(PayLaterCC, {
20874
+ "payLater": this.paymentMethod
20875
+ }, null);
20876
+ }
20750
20877
  return null;
20751
20878
  }
20752
20879
  });
@@ -20810,10 +20937,7 @@ function useBreakpoints() {
20810
20937
  };
20811
20938
  }
20812
20939
  var Wallet_vue_vue_type_style_index_0_scoped_true_lang = "";
20813
- function formatNumber(val2) {
20814
- return (val2 == null ? void 0 : val2.toLocaleString()) || "-";
20815
- }
20816
- const _sfc_main$W = defineComponent({
20940
+ const _sfc_main$X = defineComponent({
20817
20941
  components: {
20818
20942
  WalletBreakdown
20819
20943
  },
@@ -20826,7 +20950,7 @@ const _sfc_main$W = defineComponent({
20826
20950
  setup(props) {
20827
20951
  const formattedBalance = computed(() => {
20828
20952
  var _a, _b, _c, _d;
20829
- return formatNumber((_d = (_c = (_b = (_a = props == null ? void 0 : props.wallet) == null ? void 0 : _a.walletInfo) == null ? void 0 : _b.walletSummary) == null ? void 0 : _c.totalBalanceInfo) == null ? void 0 : _d.balance);
20953
+ return formatAmount((_d = (_c = (_b = (_a = props == null ? void 0 : props.wallet) == null ? void 0 : _a.walletInfo) == null ? void 0 : _b.walletSummary) == null ? void 0 : _c.totalBalanceInfo) == null ? void 0 : _d.balance);
20830
20954
  });
20831
20955
  const { isDesktop } = useBreakpoints();
20832
20956
  return {
@@ -20837,17 +20961,17 @@ const _sfc_main$W = defineComponent({
20837
20961
  };
20838
20962
  }
20839
20963
  });
20840
- const _withScopeId$3 = (n) => (pushScopeId("data-v-095c3786"), n = n(), popScopeId(), n);
20841
- const _hoisted_1$B = { class: "ppmna-payment-type--container bank-method--right-align" };
20964
+ const _withScopeId$3 = (n) => (pushScopeId("data-v-1405076b"), n = n(), popScopeId(), n);
20965
+ const _hoisted_1$C = { class: "ppmna-payment-type--container bank-method--right-align" };
20842
20966
  const _hoisted_2$n = ["src"];
20843
- const _hoisted_3$h = { class: "ppmna-payment-type--container--main" };
20967
+ const _hoisted_3$i = { class: "ppmna-payment-type--container--main" };
20844
20968
  const _hoisted_4$e = { class: "ppmna-payment-type--container--sub" };
20845
20969
  const _hoisted_5$a = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createBaseVNode("div", { class: "payment-type--arrow-right-container" }, [
20846
20970
  /* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
20847
20971
  ], -1));
20848
- function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
20972
+ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
20849
20973
  const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
20850
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
20974
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
20851
20975
  createBaseVNode("div", null, [
20852
20976
  createBaseVNode("img", {
20853
20977
  src: _ctx.images.iconBalanceIcon,
@@ -20855,7 +20979,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
20855
20979
  }, null, 8, _hoisted_2$n)
20856
20980
  ]),
20857
20981
  createBaseVNode("div", null, [
20858
- createBaseVNode("div", _hoisted_3$h, toDisplayString(_ctx.lg.wallet.title), 1),
20982
+ createBaseVNode("div", _hoisted_3$i, toDisplayString(_ctx.lg.wallet.title), 1),
20859
20983
  createBaseVNode("div", _hoisted_4$e, toDisplayString(_ctx.lg.wallet.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 1),
20860
20984
  _ctx.isDesktop ? (openBlock(), createBlock(_component_WalletBreakdown, {
20861
20985
  key: 0,
@@ -20865,12 +20989,12 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
20865
20989
  _hoisted_5$a
20866
20990
  ]);
20867
20991
  }
20868
- var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__scopeId", "data-v-095c3786"]]);
20992
+ var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__scopeId", "data-v-1405076b"]]);
20869
20993
  const main = "_main_1rgsx_1";
20870
20994
  const auth = "_auth_1rgsx_6";
20871
20995
  const authImage = "_authImage_1rgsx_11";
20872
20996
  const authText = "_authText_1rgsx_14";
20873
- const imgContainer = "_imgContainer_1rgsx_18";
20997
+ const imgContainer$1 = "_imgContainer_1rgsx_18";
20874
20998
  const img$5 = "_img_1rgsx_18";
20875
20999
  const content$8 = "_content_1rgsx_25";
20876
21000
  const authenticated = "_authenticated_1rgsx_30";
@@ -20878,12 +21002,12 @@ const notAuthenticated = "_notAuthenticated_1rgsx_33";
20878
21002
  const authorizedImg = "_authorizedImg_1rgsx_36";
20879
21003
  const unAuthorizedImg = "_unAuthorizedImg_1rgsx_40";
20880
21004
  const creditCard = "_creditCard_1rgsx_43";
20881
- var style0$G = {
21005
+ var style0$H = {
20882
21006
  main,
20883
21007
  auth,
20884
21008
  authImage,
20885
21009
  authText,
20886
- imgContainer,
21010
+ imgContainer: imgContainer$1,
20887
21011
  img: img$5,
20888
21012
  content: content$8,
20889
21013
  authenticated,
@@ -20901,7 +21025,7 @@ const creditCardMap = {
20901
21025
  [CreditTypes.AMEX]: img$4.amex,
20902
21026
  yj: img$4.yahoo
20903
21027
  };
20904
- const _sfc_main$V = defineComponent({
21028
+ const _sfc_main$W = defineComponent({
20905
21029
  props: {
20906
21030
  credit: {
20907
21031
  type: Object,
@@ -20967,15 +21091,15 @@ const _sfc_main$V = defineComponent({
20967
21091
  }
20968
21092
  });
20969
21093
  const _withScopeId$2 = (n) => (pushScopeId("data-v-609b4d94"), n = n(), popScopeId(), n);
20970
- const _hoisted_1$A = { class: "ppmna-payment-type--container" };
21094
+ const _hoisted_1$B = { class: "ppmna-payment-type--container" };
20971
21095
  const _hoisted_2$m = ["src"];
20972
- const _hoisted_3$g = { class: "ppmna-payment-type--container--sub" };
21096
+ const _hoisted_3$h = { class: "ppmna-payment-type--container--sub" };
20973
21097
  const _hoisted_4$d = ["src"];
20974
21098
  const _hoisted_5$9 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createBaseVNode("div", { class: "payment-type--arrow-right-container" }, [
20975
21099
  /* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
20976
21100
  ], -1));
20977
- function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
20978
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
21101
+ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
21102
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
20979
21103
  createBaseVNode("div", {
20980
21104
  class: normalizeClass(["ppmna-payment-type--container--img-container", _ctx.style.imgContainer])
20981
21105
  }, [
@@ -20991,7 +21115,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
20991
21115
  createBaseVNode("div", {
20992
21116
  class: normalizeClass(_ctx.style.main)
20993
21117
  }, toDisplayString(_ctx.creditInfo.label), 3),
20994
- createBaseVNode("div", _hoisted_3$g, " **** " + toDisplayString(_ctx.last4digits), 1),
21118
+ createBaseVNode("div", _hoisted_3$h, " **** " + toDisplayString(_ctx.last4digits), 1),
20995
21119
  createBaseVNode("span", {
20996
21120
  class: normalizeClass([_ctx.style.auth, _ctx.authInfo.style])
20997
21121
  }, [
@@ -21007,16 +21131,16 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
21007
21131
  _hoisted_5$9
21008
21132
  ]);
21009
21133
  }
21010
- const cssModules$H = {};
21011
- cssModules$H["$style"] = style0$G;
21012
- var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V], ["__cssModules", cssModules$H], ["__scopeId", "data-v-609b4d94"]]);
21134
+ const cssModules$I = {};
21135
+ cssModules$I["$style"] = style0$H;
21136
+ var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__cssModules", cssModules$I], ["__scopeId", "data-v-609b4d94"]]);
21013
21137
  const img$3 = "_img_1c6xt_1";
21014
21138
  const branchCode = "_branchCode_1c6xt_5";
21015
21139
  const content$7 = "_content_1c6xt_8";
21016
21140
  const roundContainer = "_roundContainer_1c6xt_12";
21017
21141
  const round = "_round_1c6xt_12";
21018
21142
  const bankName = "_bankName_1c6xt_18";
21019
- var style0$F = {
21143
+ var style0$G = {
21020
21144
  img: img$3,
21021
21145
  branchCode,
21022
21146
  content: content$7,
@@ -21034,7 +21158,7 @@ const getTypeText = (val2) => {
21034
21158
  return "";
21035
21159
  }
21036
21160
  };
21037
- const _sfc_main$U = defineComponent({
21161
+ const _sfc_main$V = defineComponent({
21038
21162
  props: {
21039
21163
  bank: {
21040
21164
  type: Object,
@@ -21074,14 +21198,14 @@ const _sfc_main$U = defineComponent({
21074
21198
  }
21075
21199
  });
21076
21200
  const _withScopeId$1 = (n) => (pushScopeId("data-v-5068d8d6"), n = n(), popScopeId(), n);
21077
- const _hoisted_1$z = { class: "ppmna-payment-type--container" };
21201
+ const _hoisted_1$A = { class: "ppmna-payment-type--container" };
21078
21202
  const _hoisted_2$l = ["src"];
21079
- const _hoisted_3$f = { class: "ppmna-payment-type--container--sub" };
21203
+ const _hoisted_3$g = { class: "ppmna-payment-type--container--sub" };
21080
21204
  const _hoisted_4$c = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createBaseVNode("span", { class: "payment-type--arrow-right-container" }, [
21081
21205
  /* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
21082
21206
  ], -1));
21083
- function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
21084
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
21207
+ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
21208
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
21085
21209
  createBaseVNode("div", {
21086
21210
  class: normalizeClass(["ppmna-payment-type--container--img-container", {
21087
21211
  "round-style-payment-type": _ctx.round,
@@ -21099,7 +21223,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
21099
21223
  createBaseVNode("div", {
21100
21224
  class: normalizeClass(_ctx.style.bankName)
21101
21225
  }, toDisplayString(_ctx.bankInfo.name), 3),
21102
- createBaseVNode("div", _hoisted_3$f, toDisplayString(_ctx.bankInfo.branchName), 1),
21226
+ createBaseVNode("div", _hoisted_3$g, toDisplayString(_ctx.bankInfo.branchName), 1),
21103
21227
  createBaseVNode("div", {
21104
21228
  class: normalizeClass(_ctx.style.branchCode)
21105
21229
  }, toDisplayString(`${_ctx.bankInfo.branchCode} *****${_ctx.bankInfo.digits}`), 3)
@@ -21107,17 +21231,17 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
21107
21231
  _hoisted_4$c
21108
21232
  ]);
21109
21233
  }
21110
- const cssModules$G = {};
21111
- cssModules$G["$style"] = style0$F;
21112
- var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U], ["__cssModules", cssModules$G], ["__scopeId", "data-v-5068d8d6"]]);
21113
- const container$h = "_container_18bci_1";
21234
+ const cssModules$H = {};
21235
+ cssModules$H["$style"] = style0$G;
21236
+ var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V], ["__cssModules", cssModules$H], ["__scopeId", "data-v-5068d8d6"]]);
21237
+ const container$i = "_container_18bci_1";
21114
21238
  const imageContainer = "_imageContainer_18bci_14";
21115
21239
  const img$2 = "_img_18bci_18";
21116
21240
  const content$6 = "_content_18bci_22";
21117
21241
  const desc1 = "_desc1_18bci_26";
21118
21242
  const desc2 = "_desc2_18bci_30";
21119
- var style0$E = {
21120
- container: container$h,
21243
+ var style0$F = {
21244
+ container: container$i,
21121
21245
  imageContainer,
21122
21246
  img: img$2,
21123
21247
  content: content$6,
@@ -21125,7 +21249,7 @@ var style0$E = {
21125
21249
  desc2
21126
21250
  };
21127
21251
  var Sbid_vue_vue_type_style_index_1_scoped_true_lang = "";
21128
- const _sfc_main$T = defineComponent({
21252
+ const _sfc_main$U = defineComponent({
21129
21253
  props: {
21130
21254
  sbid: {
21131
21255
  type: Object,
@@ -21148,11 +21272,11 @@ const _sfc_main$T = defineComponent({
21148
21272
  }
21149
21273
  });
21150
21274
  const _withScopeId = (n) => (pushScopeId("data-v-19a611be"), n = n(), popScopeId(), n);
21151
- const _hoisted_1$y = ["src"];
21275
+ const _hoisted_1$z = ["src"];
21152
21276
  const _hoisted_2$k = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("span", { class: "payment-type--arrow-right-container" }, [
21153
21277
  /* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
21154
21278
  ], -1));
21155
- function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
21279
+ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
21156
21280
  return openBlock(), createElementBlock("div", {
21157
21281
  class: normalizeClass(_ctx.$style.container)
21158
21282
  }, [
@@ -21162,7 +21286,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
21162
21286
  createBaseVNode("img", {
21163
21287
  class: normalizeClass(_ctx.$style.img),
21164
21288
  src: _ctx.images.softbank
21165
- }, null, 10, _hoisted_1$y)
21289
+ }, null, 10, _hoisted_1$z)
21166
21290
  ], 2),
21167
21291
  createBaseVNode("span", {
21168
21292
  class: normalizeClass(_ctx.$style.content)
@@ -21177,9 +21301,72 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
21177
21301
  _hoisted_2$k
21178
21302
  ], 2);
21179
21303
  }
21304
+ const cssModules$G = {};
21305
+ cssModules$G["$style"] = style0$F;
21306
+ var SbidType = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U], ["__cssModules", cssModules$G], ["__scopeId", "data-v-19a611be"]]);
21307
+ const container$h = "_container_1ebh4_1";
21308
+ const imgContainer = "_imgContainer_1ebh4_17";
21309
+ const mainContainer = "_mainContainer_1ebh4_25";
21310
+ const subContainer$1 = "_subContainer_1ebh4_31";
21311
+ const arrowContainer$2 = "_arrowContainer_1ebh4_35";
21312
+ const arrow$3 = "_arrow_1ebh4_35";
21313
+ var style0$E = {
21314
+ container: container$h,
21315
+ imgContainer,
21316
+ mainContainer,
21317
+ subContainer: subContainer$1,
21318
+ arrowContainer: arrowContainer$2,
21319
+ arrow: arrow$3
21320
+ };
21321
+ const _sfc_main$T = defineComponent({
21322
+ props: {
21323
+ payLater: {
21324
+ type: Object,
21325
+ required: true
21326
+ }
21327
+ },
21328
+ setup(props) {
21329
+ return {
21330
+ formattedBalance: computed(() => {
21331
+ var _a, _b;
21332
+ return formatAmount((_b = (_a = props == null ? void 0 : props.payLater) == null ? void 0 : _a.payLaterCcInfo) == null ? void 0 : _b.availableAmount);
21333
+ }),
21334
+ images: getImages(),
21335
+ lg: getLanguage()
21336
+ };
21337
+ }
21338
+ });
21339
+ const _hoisted_1$y = ["src"];
21340
+ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
21341
+ return openBlock(), createElementBlock("div", {
21342
+ class: normalizeClass(_ctx.$style.container)
21343
+ }, [
21344
+ createBaseVNode("div", null, [
21345
+ createBaseVNode("img", {
21346
+ src: _ctx.images.payLater,
21347
+ class: normalizeClass(_ctx.$style.imgContainer)
21348
+ }, null, 10, _hoisted_1$y)
21349
+ ]),
21350
+ createBaseVNode("div", null, [
21351
+ createBaseVNode("div", {
21352
+ class: normalizeClass(_ctx.$style.mainContainer)
21353
+ }, toDisplayString(_ctx.lg.payLater.title), 3),
21354
+ createBaseVNode("div", {
21355
+ class: normalizeClass(_ctx.$style.subContainer)
21356
+ }, toDisplayString(_ctx.lg.payLater.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 3)
21357
+ ]),
21358
+ createBaseVNode("div", {
21359
+ class: normalizeClass(_ctx.$style.arrowContainer)
21360
+ }, [
21361
+ createBaseVNode("i", {
21362
+ class: normalizeClass(_ctx.$style.arrow)
21363
+ }, null, 2)
21364
+ ], 2)
21365
+ ], 2);
21366
+ }
21180
21367
  const cssModules$F = {};
21181
21368
  cssModules$F["$style"] = style0$E;
21182
- var SbidType = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T], ["__cssModules", cssModules$F], ["__scopeId", "data-v-19a611be"]]);
21369
+ var PayLaterType = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T], ["__cssModules", cssModules$F]]);
21183
21370
  const PaymentType = defineComponent({
21184
21371
  props: {
21185
21372
  paymentMethod: {
@@ -21191,6 +21378,7 @@ const PaymentType = defineComponent({
21191
21378
  }
21192
21379
  },
21193
21380
  render() {
21381
+ var _a;
21194
21382
  const paymentMethod2 = this.paymentMethod;
21195
21383
  if ((paymentMethod2 == null ? void 0 : paymentMethod2.paymentMethodType) === PaymentMethodType.WALLET) {
21196
21384
  return createVNode(WalletType, {
@@ -21213,6 +21401,11 @@ const PaymentType = defineComponent({
21213
21401
  "sbid": paymentMethod2
21214
21402
  }, null);
21215
21403
  }
21404
+ if (((_a = this.paymentMethod) == null ? void 0 : _a.paymentMethodType) === PaymentMethodType.PAY_LATER_CC) {
21405
+ return createVNode(PayLaterType, {
21406
+ "payLater": this.paymentMethod
21407
+ }, null);
21408
+ }
21216
21409
  return null;
21217
21410
  }
21218
21411
  });
@@ -22343,7 +22536,7 @@ const _sfc_main$L = defineComponent({
22343
22536
  };
22344
22537
  }
22345
22538
  });
22346
- const _hoisted_1$s = { "data-test": "address-title" };
22539
+ const _hoisted_1$s = { "data-testid": "address-title" };
22347
22540
  const _hoisted_2$h = /* @__PURE__ */ createTextVNode("\u7DE8\u96C6");
22348
22541
  function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
22349
22542
  const _component_Button = resolveComponent("Button");
@@ -22352,7 +22545,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
22352
22545
  }, [
22353
22546
  createBaseVNode("div", {
22354
22547
  class: normalizeClass(_ctx.style.addressContainer),
22355
- "data-test": "address-container",
22548
+ "data-testid": "address-container",
22356
22549
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("select"))
22357
22550
  }, [
22358
22551
  createBaseVNode("div", {
@@ -22362,11 +22555,11 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
22362
22555
  ], 2),
22363
22556
  createBaseVNode("div", {
22364
22557
  class: normalizeClass([_ctx.style.text]),
22365
- "data-test": "address-postal-code"
22558
+ "data-testid": "address-postal-code"
22366
22559
  }, toDisplayString(_ctx.postalCode), 3),
22367
22560
  createBaseVNode("div", {
22368
22561
  class: normalizeClass([_ctx.style.text]),
22369
- "data-test": "address-address-text"
22562
+ "data-testid": "address-address-text"
22370
22563
  }, toDisplayString(_ctx.addressText), 3),
22371
22564
  _ctx.address.street2 ? (openBlock(), createElementBlock("div", {
22372
22565
  key: 0,
@@ -22498,6 +22691,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
22498
22691
  ], 2),
22499
22692
  createBaseVNode("div", {
22500
22693
  class: normalizeClass(_ctx.style.rootUa),
22694
+ "data-testid": "get-user-address-footer-buttons",
22501
22695
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.confirm && _ctx.confirm(...args))
22502
22696
  }, [
22503
22697
  createVNode(_component_Button, {
@@ -23710,7 +23904,7 @@ const createInitialState$1 = (address2) => {
23710
23904
  const visibilities = {};
23711
23905
  formKeys.forEach((keyName) => {
23712
23906
  var _a;
23713
- const formValue = keyName === "tags" ? (_a = address2[keyName]) != null ? _a : [] : address2[keyName];
23907
+ const formValue = keyName === "tags" ? (_a = address2.tags) != null ? _a : [] : address2[keyName];
23714
23908
  formValues[keyName] = formValue != null ? formValue : "";
23715
23909
  visibilities[keyName] = kyc ? !!formValue : true;
23716
23910
  });
@@ -23813,7 +24007,7 @@ const _sfc_main$C = defineComponent({
23813
24007
  });
23814
24008
  const submit = () => {
23815
24009
  const plainState = __spreadValues({}, state);
23816
- plainState.zip = plainState.zip.replaceAll("-", "");
24010
+ plainState.zip = plainState.zip.replace(/-/g, "");
23817
24011
  delete plainState.visibilities;
23818
24012
  emit("submit", plainState);
23819
24013
  };
@@ -23852,7 +24046,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
23852
24046
  id: "content-title",
23853
24047
  modelValue: _ctx.state.title,
23854
24048
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.state.title = $event),
23855
- "data-test": "content-title",
24049
+ "data-testid": "content-title",
23856
24050
  disabled: _ctx.kyc,
23857
24051
  prepend: _ctx.lg.userAddress.titlePre,
23858
24052
  append: _ctx.lg.userAddress.titleApp,
@@ -23867,7 +24061,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
23867
24061
  id: "content-receiver",
23868
24062
  modelValue: _ctx.state.receiver,
23869
24063
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.state.receiver = $event),
23870
- "data-test": "content-receiver",
24064
+ "data-testid": "content-receiver",
23871
24065
  disabled: _ctx.kyc,
23872
24066
  prepend: _ctx.lg.userAddress.receiverPre,
23873
24067
  "prepend-class-name": _ctx.style.prepend,
@@ -23880,7 +24074,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
23880
24074
  id: "content-zip",
23881
24075
  modelValue: _ctx.state.zip,
23882
24076
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.state.zip = $event),
23883
- "data-test": "content-zip",
24077
+ "data-testid": "content-zip",
23884
24078
  disabled: _ctx.kyc,
23885
24079
  type: "zipCode",
23886
24080
  prepend: _ctx.lg.userAddress.inputPre,
@@ -23893,7 +24087,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
23893
24087
  key: 3,
23894
24088
  modelValue: _ctx.state.state,
23895
24089
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.state.state = $event),
23896
- "data-test": "content-state",
24090
+ "data-testid": "content-state",
23897
24091
  disabled: _ctx.kyc,
23898
24092
  list: _ctx.states,
23899
24093
  class: normalizeClass([_ctx.style.input, _ctx.style.select]),
@@ -23905,7 +24099,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
23905
24099
  key: 4,
23906
24100
  modelValue: _ctx.state.city,
23907
24101
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.state.city = $event),
23908
- "data-test": "content-city",
24102
+ "data-testid": "content-city",
23909
24103
  disabled: _ctx.kyc,
23910
24104
  prepend: _ctx.lg.userAddress.cityPre,
23911
24105
  "prepend-class-name": _ctx.style.prepend,
@@ -23918,7 +24112,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
23918
24112
  id: "content-street1",
23919
24113
  modelValue: _ctx.state.street1,
23920
24114
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.state.street1 = $event),
23921
- "data-test": "content-street1",
24115
+ "data-testid": "content-street1",
23922
24116
  disabled: _ctx.kyc,
23923
24117
  prepend: _ctx.lg.userAddress.street1Pre,
23924
24118
  "prepend-class-name": _ctx.style.prepend,
@@ -23931,7 +24125,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
23931
24125
  id: "content-street2",
23932
24126
  modelValue: _ctx.state.street2,
23933
24127
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.state.street2 = $event),
23934
- "data-test": "content-street2",
24128
+ "data-testid": "content-street2",
23935
24129
  disabled: _ctx.kyc,
23936
24130
  prepend: _ctx.lg.userAddress.street2Pre,
23937
24131
  "prepend-class-name": _ctx.style.prepend,
@@ -23942,7 +24136,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
23942
24136
  key: 7,
23943
24137
  modelValue: _ctx.state.tags,
23944
24138
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.state.tags = $event),
23945
- "data-test": "content-tags",
24139
+ "data-testid": "content-tags",
23946
24140
  class: normalizeClass(_ctx.style.tag),
23947
24141
  disabled: _ctx.kyc
23948
24142
  }, null, 8, ["modelValue", "class", "disabled"])) : createCommentVNode("", true),
@@ -24223,7 +24417,8 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
24223
24417
  type: "secondary",
24224
24418
  "forbidden-swipe": "",
24225
24419
  style: normalizeStyle(_ctx.heightStyles.rootHeight),
24226
- class: normalizeClass(_ctx.style.container)
24420
+ class: normalizeClass(_ctx.style.container),
24421
+ "data-testid": "add-address-sheet"
24227
24422
  }, {
24228
24423
  default: withCtx(() => [
24229
24424
  _ctx.isDesktop ? (openBlock(), createBlock(_component_DesktopHeader, {
@@ -24477,7 +24672,7 @@ function openWebview(params) {
24477
24672
  return;
24478
24673
  }
24479
24674
  try {
24480
- openUrl = new URL(appDetail == null ? void 0 : appDetail.openUrl);
24675
+ openUrl = appDetail ? new URL(appDetail.openUrl) : null;
24481
24676
  } catch (_) {
24482
24677
  }
24483
24678
  if (params == null ? void 0 : params.authorization) {
@@ -25029,7 +25224,7 @@ const _sfc_main$w = defineComponent({
25029
25224
  });
25030
25225
  const _hoisted_1$n = ["src"];
25031
25226
  const _hoisted_2$g = { key: 2 };
25032
- const _hoisted_3$e = { key: 2 };
25227
+ const _hoisted_3$f = { key: 2 };
25033
25228
  function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
25034
25229
  const _component_DesktopHeader = resolveComponent("DesktopHeader");
25035
25230
  const _component_Header = resolveComponent("Header");
@@ -25256,7 +25451,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
25256
25451
  ]),
25257
25452
  _: 1
25258
25453
  }, 8, ["class", "onClick"])) : createCommentVNode("", true),
25259
- _ctx.isSufficient ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
25454
+ _ctx.isSufficient ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
25260
25455
  createVNode(_component_Button, {
25261
25456
  "no-margin": _ctx.isDesktop,
25262
25457
  "data-test": "click-charge",
@@ -25504,20 +25699,22 @@ const _sfc_main$t = defineComponent({
25504
25699
  emits: ["close"],
25505
25700
  setup() {
25506
25701
  const lg2 = getLanguage();
25702
+ const showDeepLink = isPayPayMiniApp();
25507
25703
  const openDeepLink = (url) => {
25508
- if ((url == null ? void 0 : url.length) > 0) {
25704
+ if ((url == null ? void 0 : url.length) > 0 && showDeepLink) {
25509
25705
  openWebviewInternal({ url });
25510
25706
  }
25511
25707
  };
25512
25708
  return {
25513
25709
  openDeepLink,
25514
- lg: lg2
25710
+ lg: lg2,
25711
+ showDeepLink
25515
25712
  };
25516
25713
  }
25517
25714
  });
25518
25715
  const _hoisted_1$m = { class: "make-payment-cashback-detail-list" };
25519
25716
  const _hoisted_2$f = { class: "make-payment-cashback-detail-list--header" };
25520
- const _hoisted_3$d = { class: "header-title-container" };
25717
+ const _hoisted_3$e = { class: "header-title-container" };
25521
25718
  const _hoisted_4$b = {
25522
25719
  class: "title",
25523
25720
  "data-test": "cashback-detail-list-title"
@@ -25532,7 +25729,11 @@ const _hoisted_8$3 = ["onClick"];
25532
25729
  const _hoisted_9$3 = { class: "campaign" };
25533
25730
  const _hoisted_10$1 = { class: "right-container" };
25534
25731
  const _hoisted_11$1 = { class: "amount" };
25535
- const _hoisted_12$1 = /* @__PURE__ */ createBaseVNode("i", { class: "open-icon" }, null, -1);
25732
+ const _hoisted_12$1 = {
25733
+ key: 0,
25734
+ class: "open-icon",
25735
+ "data-test": "open-icon"
25736
+ };
25536
25737
  const _hoisted_13 = { class: "make-payment-cashback-detail-list--footer" };
25537
25738
  function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
25538
25739
  var _a, _b, _c;
@@ -25544,7 +25745,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
25544
25745
  "data-test": "cashback-detail-back-close",
25545
25746
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
25546
25747
  }),
25547
- createBaseVNode("div", _hoisted_3$d, [
25748
+ createBaseVNode("div", _hoisted_3$e, [
25548
25749
  createBaseVNode("div", _hoisted_4$b, toDisplayString((_a = _ctx.cashBackDetail) == null ? void 0 : _a.cashBackDetailListDescription), 1),
25549
25750
  createBaseVNode("div", _hoisted_5$8, [
25550
25751
  createTextVNode(toDisplayString((_b = _ctx.cashBackDetail) == null ? void 0 : _b.cashBackAmount), 1),
@@ -25563,7 +25764,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
25563
25764
  createBaseVNode("div", _hoisted_9$3, toDisplayString(cashBack2.campaignName), 1),
25564
25765
  createBaseVNode("div", _hoisted_10$1, [
25565
25766
  createBaseVNode("div", _hoisted_11$1, toDisplayString(cashBack2.amountText), 1),
25566
- _hoisted_12$1
25767
+ _ctx.showDeepLink ? (openBlock(), createElementBlock("i", _hoisted_12$1)) : createCommentVNode("", true)
25567
25768
  ])
25568
25769
  ], 8, _hoisted_8$3);
25569
25770
  }), 128))
@@ -25992,13 +26193,14 @@ const _sfc_main$r = defineComponent({
25992
26193
  },
25993
26194
  emits: ["success"],
25994
26195
  setup(props, context) {
26196
+ var _a;
25995
26197
  const { isMobile, isDesktop } = useBreakpoints();
25996
26198
  const images2 = getImages();
25997
26199
  const { width: screenWidth } = window == null ? void 0 : window.screen;
25998
26200
  const timeout = screenWidth <= 767 ? 320 : 0;
25999
26201
  const showCashBackDetailRow = computed(() => {
26000
- var _a;
26001
- const cashBackDetailList = (_a = props.cashBackDetail) == null ? void 0 : _a.cashBackDetailList;
26202
+ var _a2;
26203
+ const cashBackDetailList = (_a2 = props.cashBackDetail) == null ? void 0 : _a2.cashBackDetailList;
26002
26204
  const calculating2 = props.calculating;
26003
26205
  const calculated = props.calculated;
26004
26206
  if (calculating2)
@@ -26066,7 +26268,7 @@ const _sfc_main$r = defineComponent({
26066
26268
  copyToClipboard({ value: paymentId2.value });
26067
26269
  };
26068
26270
  const style = useCssModule();
26069
- const storeImage2 = getAppDetail().appLogo || images2.merchant;
26271
+ const storeImage2 = ((_a = getAppDetail()) == null ? void 0 : _a.appLogo) || images2.merchant;
26070
26272
  const getDateStringFromTimeStamp = (timestamp) => {
26071
26273
  const date = new Date(timestamp * 1e3);
26072
26274
  return `${date.getFullYear()}\u5E74${date.getMonth() + 1}\u6708${date.getDate()}\u65E5 ${date.getHours()}\u6642${date.getMinutes()}\u5206${date.getSeconds()}\u79D2`;
@@ -26084,8 +26286,8 @@ const _sfc_main$r = defineComponent({
26084
26286
  merchantName: computed(() => props.paymentResult.merchantName),
26085
26287
  paymentId: paymentId2,
26086
26288
  price: computed(() => {
26087
- var _a, _b;
26088
- return numberWithCommas((_b = (_a = props.paymentResult) == null ? void 0 : _a.amount) == null ? void 0 : _b.amount);
26289
+ var _a2, _b;
26290
+ return numberWithCommas((_b = (_a2 = props.paymentResult) == null ? void 0 : _a2.amount) == null ? void 0 : _b.amount);
26089
26291
  }),
26090
26292
  statusLabelColor: computed(() => props.paymentResult.statusLabelColor.toLowerCase()),
26091
26293
  labelText: computed(() => props.paymentResult.statusLabelString),
@@ -26113,7 +26315,7 @@ const _sfc_main$r = defineComponent({
26113
26315
  });
26114
26316
  const _hoisted_1$l = ["src"];
26115
26317
  const _hoisted_2$e = /* @__PURE__ */ createBaseVNode("span", null, "\u6C7A\u6E08\u756A\u53F7", -1);
26116
- const _hoisted_3$c = /* @__PURE__ */ createTextVNode(" \u9589\u3058\u308B ");
26318
+ const _hoisted_3$d = /* @__PURE__ */ createTextVNode(" \u9589\u3058\u308B ");
26117
26319
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
26118
26320
  const _component_DesktopHeader = resolveComponent("DesktopHeader");
26119
26321
  const _component_CashBackDetailRow = resolveComponent("CashBackDetailRow");
@@ -26226,7 +26428,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
26226
26428
  onClick: _ctx.click
26227
26429
  }, {
26228
26430
  default: withCtx(() => [
26229
- _hoisted_3$c
26431
+ _hoisted_3$d
26230
26432
  ]),
26231
26433
  _: 1
26232
26434
  }, 8, ["disabled", "onClick"])
@@ -26308,7 +26510,7 @@ const _sfc_main$q = defineComponent({
26308
26510
  });
26309
26511
  const _hoisted_1$k = { class: "make-payment-close-confirmation" };
26310
26512
  const _hoisted_2$d = ["src"];
26311
- const _hoisted_3$b = { class: "make-payment-close-confirmation--content" };
26513
+ const _hoisted_3$c = { class: "make-payment-close-confirmation--content" };
26312
26514
  const _hoisted_4$a = { class: "make-payment-close-confirmation--content--title" };
26313
26515
  function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
26314
26516
  const _component_Button = resolveComponent("Button");
@@ -26317,7 +26519,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
26317
26519
  src: _ctx.images.iconError,
26318
26520
  class: "make-payment-close-confirmation--header--image"
26319
26521
  }, null, 8, _hoisted_2$d),
26320
- createBaseVNode("div", _hoisted_3$b, [
26522
+ createBaseVNode("div", _hoisted_3$c, [
26321
26523
  createBaseVNode("p", _hoisted_4$a, toDisplayString(_ctx.lg.closeConfirmation.title), 1)
26322
26524
  ]),
26323
26525
  createBaseVNode("div", null, [
@@ -26403,7 +26605,7 @@ const _sfc_main$p = defineComponent({
26403
26605
  });
26404
26606
  const _hoisted_1$j = { class: "make-payment-consult" };
26405
26607
  const _hoisted_2$c = ["src"];
26406
- const _hoisted_3$a = { class: "make-payment-consult--content" };
26608
+ const _hoisted_3$b = { class: "make-payment-consult--content" };
26407
26609
  const _hoisted_4$9 = {
26408
26610
  class: "make-payment-consult--content--title",
26409
26611
  "data-test": "consult-title"
@@ -26419,7 +26621,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
26419
26621
  src: _ctx.iconUrl,
26420
26622
  class: "make-payment-consult--header--image"
26421
26623
  }, null, 8, _hoisted_2$c),
26422
- createBaseVNode("div", _hoisted_3$a, [
26624
+ createBaseVNode("div", _hoisted_3$b, [
26423
26625
  createBaseVNode("p", _hoisted_4$9, toDisplayString(_ctx.title), 1),
26424
26626
  createBaseVNode("p", _hoisted_5$7, toDisplayString(_ctx.description), 1)
26425
26627
  ]),
@@ -26494,7 +26696,7 @@ const _sfc_main$o = defineComponent({
26494
26696
  });
26495
26697
  const _hoisted_1$i = { class: "make-payment-cashback-detail-birthday-picker" };
26496
26698
  const _hoisted_2$b = { class: "make-payment-cashback-detail-birthday-picker--header" };
26497
- const _hoisted_3$9 = ["src"];
26699
+ const _hoisted_3$a = ["src"];
26498
26700
  const _hoisted_4$8 = { class: "make-payment-cashback-detail-birthday-picker--content" };
26499
26701
  const _hoisted_5$6 = { class: "title" };
26500
26702
  const _hoisted_6$4 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
@@ -26514,7 +26716,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
26514
26716
  createBaseVNode("div", _hoisted_2$b, [
26515
26717
  createBaseVNode("img", {
26516
26718
  src: _ctx.images.iconBirthday
26517
- }, null, 8, _hoisted_3$9)
26719
+ }, null, 8, _hoisted_3$a)
26518
26720
  ]),
26519
26721
  createBaseVNode("div", _hoisted_4$8, [
26520
26722
  createBaseVNode("p", _hoisted_5$6, [
@@ -26605,7 +26807,7 @@ const _sfc_main$n = defineComponent({
26605
26807
  });
26606
26808
  const _hoisted_1$h = { class: "make-payment-cashback-detail-birthday-picker" };
26607
26809
  const _hoisted_2$a = { class: "make-payment-cashback-detail-birthday-picker--header" };
26608
- const _hoisted_3$8 = ["src"];
26810
+ const _hoisted_3$9 = ["src"];
26609
26811
  const _hoisted_4$7 = { class: "make-payment-cashback-detail-birthday-picker--content" };
26610
26812
  const _hoisted_5$5 = { class: "title" };
26611
26813
  const _hoisted_6$3 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
@@ -26622,7 +26824,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
26622
26824
  createBaseVNode("img", {
26623
26825
  src: _ctx.images.iconMinorAge,
26624
26826
  class: "error-in-birthday"
26625
- }, null, 8, _hoisted_3$8)
26827
+ }, null, 8, _hoisted_3$9)
26626
26828
  ]),
26627
26829
  createBaseVNode("div", _hoisted_4$7, [
26628
26830
  createBaseVNode("p", _hoisted_5$5, [
@@ -26857,6 +27059,7 @@ const _sfc_main$l = defineComponent({
26857
27059
  const { postAgeConfirm } = getAgeConfirm();
26858
27060
  const lg2 = getLanguage();
26859
27061
  const images2 = getImages();
27062
+ const { isDesktop } = useBreakpoints();
26860
27063
  const isCountDown = ref(false);
26861
27064
  const countDown = useCountDown({
26862
27065
  time: 5e3,
@@ -26883,7 +27086,8 @@ const _sfc_main$l = defineComponent({
26883
27086
  s.addEventListener("data_ready", (_) => {
26884
27087
  var _a;
26885
27088
  uiState.animationLoaded = true;
26886
- makeSound((_a = animation.value) == null ? void 0 : _a.soundUrl);
27089
+ if (isPayPayMiniApp())
27090
+ makeSound((_a = animation.value) == null ? void 0 : _a.soundUrl);
26887
27091
  });
26888
27092
  s.addEventListener("complete", uiState.animationListener);
26889
27093
  };
@@ -26969,6 +27173,10 @@ const _sfc_main$l = defineComponent({
26969
27173
  var _a;
26970
27174
  return (_a = animation.value) != null ? _a : { optionalText: "", url: "" };
26971
27175
  }),
27176
+ animationUrl: computed(() => {
27177
+ var _a;
27178
+ return animation.value ? isDesktop.value ? (_a = animation.value.largeUrl) != null ? _a : animation.value.url : animation.value.url : "";
27179
+ }),
26972
27180
  type,
26973
27181
  showContent: computed(() => uiState.showContent),
26974
27182
  showFullScreenContent: computed(() => uiState.showFullscreenContent),
@@ -27008,7 +27216,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
27008
27216
  }, [
27009
27217
  createVNode(_component_Lottie, {
27010
27218
  loop: false,
27011
- path: _ctx.animation.url,
27219
+ path: _ctx.animationUrl,
27012
27220
  autoplay: false,
27013
27221
  styles: { width: "auto", height: "auto" },
27014
27222
  "class-name": _ctx.style.lottieContainer,
@@ -27111,8 +27319,7 @@ const _sfc_main$k = defineComponent({
27111
27319
  props: {
27112
27320
  appDetail: {
27113
27321
  type: Object,
27114
- required: true,
27115
- default: () => ({})
27322
+ required: true
27116
27323
  },
27117
27324
  price: {
27118
27325
  type: Number,
@@ -27131,11 +27338,10 @@ const _sfc_main$k = defineComponent({
27131
27338
  }
27132
27339
  },
27133
27340
  setup(props) {
27134
- var _a;
27135
27341
  const style = useCssModule();
27136
27342
  const lg2 = getLanguage();
27137
27343
  const images2 = getImages();
27138
- const appLogo2 = ((_a = props.appDetail) == null ? void 0 : _a.appLogo) || images2.merchant;
27344
+ const appLogo2 = props.appDetail.appLogo || images2.merchant;
27139
27345
  const formatPrice = computed(() => numberWithCommas(props.price));
27140
27346
  const formatBalance = computed(() => numberWithCommas(props.balance));
27141
27347
  const formatInsufficientAmount = computed(() => numberWithCommas(props.insufficientAmount));
@@ -27155,7 +27361,7 @@ const _sfc_main$k = defineComponent({
27155
27361
  });
27156
27362
  const _hoisted_1$e = ["src"];
27157
27363
  const _hoisted_2$9 = { key: 0 };
27158
- const _hoisted_3$7 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
27364
+ const _hoisted_3$8 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
27159
27365
  const _hoisted_4$6 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
27160
27366
  function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
27161
27367
  return openBlock(), createElementBlock("div", null, [
@@ -27185,7 +27391,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
27185
27391
  class: normalizeClass(_ctx.style.amount)
27186
27392
  }, [
27187
27393
  createTextVNode(toDisplayString(_ctx.formatPrice), 1),
27188
- _hoisted_3$7
27394
+ _hoisted_3$8
27189
27395
  ], 2)
27190
27396
  ], 2)
27191
27397
  ], 2),
@@ -27216,30 +27422,30 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
27216
27422
  const cssModules$c = {};
27217
27423
  cssModules$c["$style"] = style0$b;
27218
27424
  var TopInfo = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__cssModules", cssModules$c]]);
27219
- const chargeMainTitle = "_chargeMainTitle_1cboc_7";
27220
- const chargeTitle = "_chargeTitle_1cboc_14";
27221
- const bannerInfo = "_bannerInfo_1cboc_19";
27222
- const topupAmount = "_topupAmount_1cboc_27";
27223
- const chargeArea = "_chargeArea_1cboc_41";
27224
- const paymentMethodContainer = "_paymentMethodContainer_1cboc_61";
27225
- const desktopUi = "_desktopUi_1cboc_78";
27226
- const itemContainer = "_itemContainer_1cboc_84";
27227
- const chargeLabel = "_chargeLabel_1cboc_92";
27228
- const paymentMethod$1 = "_paymentMethod_1cboc_61";
27229
- const buttonContainer = "_buttonContainer_1cboc_108";
27230
- const successContainer = "_successContainer_1cboc_114";
27231
- const hidden = "_hidden_1cboc_125";
27232
- const nonVisible = "_nonVisible_1cboc_134";
27233
- const loadingText$1 = "_loadingText_1cboc_137";
27234
- const unAvailable = "_unAvailable_1cboc_149";
27235
- const cancelBtn = "_cancelBtn_1cboc_157";
27236
- const change = "_change_1cboc_162";
27237
- const chargeBtnSticky = "_chargeBtnSticky_1cboc_178";
27238
- const chargeWrapper = "_chargeWrapper_1cboc_191";
27239
- const chargeTitleContainer = "_chargeTitleContainer_1cboc_197";
27240
- const chargeListWrapper = "_chargeListWrapper_1cboc_203";
27425
+ const chargeMainTitle = "_chargeMainTitle_5f7zo_7";
27426
+ const chargeTitle = "_chargeTitle_5f7zo_14";
27427
+ const bannerInfo = "_bannerInfo_5f7zo_19";
27428
+ const topupAmount = "_topupAmount_5f7zo_27";
27429
+ const chargeArea = "_chargeArea_5f7zo_41";
27430
+ const paymentMethodContainer = "_paymentMethodContainer_5f7zo_61";
27431
+ const desktopUi = "_desktopUi_5f7zo_78";
27432
+ const itemContainer = "_itemContainer_5f7zo_84";
27433
+ const chargeLabel = "_chargeLabel_5f7zo_92";
27434
+ const paymentMethod$1 = "_paymentMethod_5f7zo_61";
27435
+ const buttonContainer = "_buttonContainer_5f7zo_108";
27436
+ const successContainer = "_successContainer_5f7zo_114";
27437
+ const hidden = "_hidden_5f7zo_125";
27438
+ const nonVisible = "_nonVisible_5f7zo_134";
27439
+ const loadingText$1 = "_loadingText_5f7zo_137";
27440
+ const unAvailable = "_unAvailable_5f7zo_149";
27441
+ const cancelBtn = "_cancelBtn_5f7zo_168";
27442
+ const change = "_change_5f7zo_173";
27443
+ const chargeBtnSticky = "_chargeBtnSticky_5f7zo_189";
27444
+ const chargeWrapper = "_chargeWrapper_5f7zo_202";
27445
+ const chargeTitleContainer = "_chargeTitleContainer_5f7zo_208";
27446
+ const chargeListWrapper = "_chargeListWrapper_5f7zo_214";
27241
27447
  var style0$a = {
27242
- "ppmna-default-font": "_ppmna-default-font_1cboc_1",
27448
+ "ppmna-default-font": "_ppmna-default-font_5f7zo_1",
27243
27449
  chargeMainTitle,
27244
27450
  chargeTitle,
27245
27451
  bannerInfo,
@@ -27442,6 +27648,7 @@ const _sfc_main$j = defineComponent({
27442
27648
  });
27443
27649
  const _hoisted_1$d = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
27444
27650
  const _hoisted_2$8 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
27651
+ const _hoisted_3$7 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
27445
27652
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
27446
27653
  const _component_BannerHeader = resolveComponent("BannerHeader");
27447
27654
  const _component_ChargeAmountList = resolveComponent("ChargeAmountList");
@@ -27523,8 +27730,16 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
27523
27730
  onClick: _ctx.openPaymentMethod
27524
27731
  }, null, 8, ["payment-method", "class", "onClick"])
27525
27732
  ], 2)) : createCommentVNode("", true),
27526
- _ctx.isDesktop ? withDirectives((openBlock(), createBlock(_component_PayMethod, {
27733
+ !_ctx.available && _ctx.isDesktop ? (openBlock(), createElementBlock("div", {
27527
27734
  key: 1,
27735
+ class: normalizeClass(_ctx.style.unAvailable)
27736
+ }, [
27737
+ createTextVNode(toDisplayString(_ctx.lg.topContent.unavailable1), 1),
27738
+ _hoisted_2$8,
27739
+ createTextVNode(" " + toDisplayString(_ctx.lg.topContent.unavailable2), 1)
27740
+ ], 2)) : createCommentVNode("", true),
27741
+ _ctx.available && _ctx.isDesktop ? withDirectives((openBlock(), createBlock(_component_PayMethod, {
27742
+ key: 2,
27528
27743
  title: _ctx.lg.topContent.chargeLabel,
27529
27744
  loading: false,
27530
27745
  "payment-method": _ctx.paymentMethod,
@@ -27538,7 +27753,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
27538
27753
  [vShow, !_ctx.done]
27539
27754
  ]) : createCommentVNode("", true),
27540
27755
  _ctx.showUserAddress && _ctx.isDesktop ? (openBlock(), createBlock(_component_GetUserAddressApp, {
27541
- key: 2,
27756
+ key: 3,
27542
27757
  show: !_ctx.done,
27543
27758
  addresses: _ctx.addresses,
27544
27759
  "get-user-address-params": {},
@@ -27565,7 +27780,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
27565
27780
  class: normalizeClass(_ctx.style.unAvailable)
27566
27781
  }, [
27567
27782
  createTextVNode(toDisplayString(_ctx.lg.topContent.unavailable1), 1),
27568
- _hoisted_2$8,
27783
+ _hoisted_3$7,
27569
27784
  createTextVNode(" " + toDisplayString(_ctx.lg.topContent.unavailable2), 1)
27570
27785
  ], 2)) : createCommentVNode("", true),
27571
27786
  createVNode(_component_Button, {
@@ -27597,7 +27812,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
27597
27812
  ], 2)
27598
27813
  ], 2),
27599
27814
  _ctx.done ? (openBlock(), createElementBlock("div", {
27600
- key: 3,
27815
+ key: 4,
27601
27816
  class: normalizeClass(_ctx.style.successContainer)
27602
27817
  }, [
27603
27818
  createVNode(_component_Lottie, {
@@ -27739,6 +27954,10 @@ function isAvailablePaymentMethod(paymentMethod2) {
27739
27954
  const sbid = paymentMethod2.sbidCarrierBillingInfo;
27740
27955
  return (sbid == null ? void 0 : sbid.paymentMethodStatus) === PaymentMethodStatus.ACTIVATED;
27741
27956
  }
27957
+ if (paymentMethod2.paymentMethodType === PaymentMethodType.PAY_LATER_CC) {
27958
+ const payLater2 = paymentMethod2.payLaterCcInfo;
27959
+ return (payLater2 == null ? void 0 : payLater2.paymentMethodStatus) === PaymentMethodStatus.ACTIVATED;
27960
+ }
27742
27961
  return false;
27743
27962
  }
27744
27963
  function hasAvailablePaymentMethod(paymentMethods) {
@@ -27756,7 +27975,7 @@ function findFirstValidMethod(paymentMethods, type) {
27756
27975
  return -1;
27757
27976
  }
27758
27977
  function isValidPaymentMethod(savedMethod, paymentMethods, type) {
27759
- var _a, _b, _c, _d;
27978
+ var _a, _b, _c, _d, _e;
27760
27979
  if (savedMethod) {
27761
27980
  const payMethod = paymentMethods.find((method) => method.paymentMethodId === savedMethod);
27762
27981
  switch (payMethod == null ? void 0 : payMethod.paymentMethodType) {
@@ -27768,6 +27987,8 @@ function isValidPaymentMethod(savedMethod, paymentMethods, type) {
27768
27987
  return ((_c = payMethod.bankInfo) == null ? void 0 : _c.paymentMethodStatus) === "ACTIVATED";
27769
27988
  case PaymentMethodType.SBID_CARRIER_BILLING:
27770
27989
  return ((_d = payMethod.sbidCarrierBillingInfo) == null ? void 0 : _d.paymentMethodStatus) === "ACTIVATED";
27990
+ case PaymentMethodType.PAY_LATER_CC:
27991
+ return ((_e = payMethod.payLaterCcInfo) == null ? void 0 : _e.paymentMethodStatus) === "ACTIVATED";
27771
27992
  default:
27772
27993
  return false;
27773
27994
  }
@@ -27930,6 +28151,7 @@ const _sfc_main$h = defineComponent({
27930
28151
  "layoutUpdate"
27931
28152
  ],
27932
28153
  setup(props, context) {
28154
+ var _a, _b;
27933
28155
  const { emit } = context;
27934
28156
  const topupPay2 = ref();
27935
28157
  const {
@@ -27961,7 +28183,11 @@ const _sfc_main$h = defineComponent({
27961
28183
  handleHeightChange();
27962
28184
  }, 500);
27963
28185
  });
27964
- const appDetail = getAppDetail();
28186
+ const savedAppDetail = getAppDetail();
28187
+ const appDetail = {
28188
+ appName: (_a = savedAppDetail == null ? void 0 : savedAppDetail.appName) != null ? _a : "",
28189
+ appLogo: (_b = savedAppDetail == null ? void 0 : savedAppDetail.appLogo) != null ? _b : null
28190
+ };
27965
28191
  const back2 = () => {
27966
28192
  removeMount();
27967
28193
  setTimeout(() => {
@@ -27969,11 +28195,11 @@ const _sfc_main$h = defineComponent({
27969
28195
  }, 600);
27970
28196
  };
27971
28197
  const amountLists = computed(() => {
27972
- var _a, _b, _c, _d, _e, _f;
28198
+ var _a2, _b2, _c, _d, _e, _f;
27973
28199
  const config = getAppConfig();
27974
28200
  return {
27975
- halfSheet: createHalfSheetAmount((_a = props.insufficientBalanceInfo) == null ? void 0 : _a.recommendedTopupAmount, (_c = (_b = config == null ? void 0 : config.topupHalfSheetAmount) == null ? void 0 : _b[0]) == null ? void 0 : _c.value),
27976
- buttons: createButtonsAmount((_d = props.insufficientBalanceInfo) == null ? void 0 : _d.recommendedTopupAmount, (_f = (_e = config == null ? void 0 : config.topupButtonsAmount) == null ? void 0 : _e[0]) == null ? void 0 : _f.value)
28201
+ halfSheet: createHalfSheetAmount((_a2 = props.insufficientBalanceInfo) == null ? void 0 : _a2.recommendedTopupAmount, (_c = (_b2 = config == null ? void 0 : config.topupHalfSheetAmount[0]) == null ? void 0 : _b2.value) != null ? _c : null),
28202
+ buttons: createButtonsAmount((_d = props.insufficientBalanceInfo) == null ? void 0 : _d.recommendedTopupAmount, (_f = (_e = config == null ? void 0 : config.topupButtonsAmount[0]) == null ? void 0 : _e.value) != null ? _f : null)
27977
28203
  };
27978
28204
  });
27979
28205
  const style = useCssModule();
@@ -28032,12 +28258,12 @@ const _sfc_main$h = defineComponent({
28032
28258
  };
28033
28259
  return {
28034
28260
  balance: computed(() => {
28035
- var _a, _b;
28036
- return (_b = (_a = props.insufficientBalanceInfo) == null ? void 0 : _a.totalBalanceInfo) == null ? void 0 : _b.balance;
28261
+ var _a2, _b2;
28262
+ return (_b2 = (_a2 = props.insufficientBalanceInfo) == null ? void 0 : _a2.totalBalanceInfo) == null ? void 0 : _b2.balance;
28037
28263
  }),
28038
28264
  insufficientAmount: computed(() => {
28039
- var _a;
28040
- return (_a = props.insufficientBalanceInfo) == null ? void 0 : _a.insufficientAmount;
28265
+ var _a2;
28266
+ return (_a2 = props.insufficientBalanceInfo) == null ? void 0 : _a2.insufficientAmount;
28041
28267
  }),
28042
28268
  back: back2,
28043
28269
  style,
@@ -28201,12 +28427,6 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
28201
28427
  const cssModules$9 = {};
28202
28428
  cssModules$9["$style"] = style0$8;
28203
28429
  var Charge = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__cssModules", cssModules$9]]);
28204
- function filterUnsupportedPaymentMethod(paymentMethods) {
28205
- const methods = paymentMethods ? paymentMethods.filter(function(method) {
28206
- return method.paymentMethodType !== (PaymentMethodType.PAY_LATER || PaymentMethodType.PAY_LATER_CC);
28207
- }) : paymentMethods;
28208
- return methods;
28209
- }
28210
28430
  const img$1 = getImages();
28211
28431
  function createErrorFromType(type) {
28212
28432
  const lg2 = getLanguage();
@@ -28467,8 +28687,8 @@ function usePaymentMethod(props) {
28467
28687
  if (walletPaymentMethod && walletPaymentMethod.descriptionBannerInfo) {
28468
28688
  paymentState.bannerInfo = walletPaymentMethod.descriptionBannerInfo;
28469
28689
  }
28470
- paymentState.paymentMethods = filterUnsupportedPaymentMethod(paymentMethodList);
28471
28690
  const lastSavedMethod = getLastPaymentMethod();
28691
+ paymentState.paymentMethods = paymentMethodList;
28472
28692
  paymentState.selectPaymentIndex = isValidPaymentMethod(lastSavedMethod, paymentState == null ? void 0 : paymentState.paymentMethods, PaymentOpType.PAY) ? paymentState.paymentMethods.findIndex((method) => method.paymentMethodId === lastSavedMethod) : findFirstValidMethod(paymentState.paymentMethods, PaymentOpType.PAY);
28473
28693
  return {
28474
28694
  res,
@@ -28971,7 +29191,7 @@ const _sfc_main$g = defineComponent({
28971
29191
  updateAddressList
28972
29192
  } = useAddressControl();
28973
29193
  const {
28974
- getPaymentMethods: getPaymentMethods2,
29194
+ getPaymentMethods: getPaymentMethods3,
28975
29195
  selectPayment,
28976
29196
  paymentMethod: paymentMethod2,
28977
29197
  paymentMethods,
@@ -29012,7 +29232,7 @@ const _sfc_main$g = defineComponent({
29012
29232
  } = useCloseConfirmation();
29013
29233
  onMounted(async () => {
29014
29234
  startLoading();
29015
- const res = await Promise.all([getPaymentMethods2(true), getConsult2()]);
29235
+ const res = await Promise.all([getPaymentMethods3(true), getConsult2()]);
29016
29236
  const paymentMethodResult = res[0];
29017
29237
  const consultResult = res[1];
29018
29238
  if (consultResult === true && paymentMethodResult.result === false) {
@@ -29572,9 +29792,18 @@ const initMakePayment = async (initMakePayment2) => {
29572
29792
  window.addEventListener("beforeunload", transactionWarning);
29573
29793
  };
29574
29794
  function createWrap(fn) {
29575
- return (arg) => setTimeout(() => {
29576
- fn(arg);
29577
- }, 0);
29795
+ return (arg) => {
29796
+ setTimeout(() => {
29797
+ fn(arg);
29798
+ }, 0);
29799
+ };
29800
+ }
29801
+ function createWrapComplete(fn) {
29802
+ return () => {
29803
+ setTimeout(() => {
29804
+ fn();
29805
+ }, 0);
29806
+ };
29578
29807
  }
29579
29808
  const makePayment = async (params) => {
29580
29809
  var _a, _b, _c, _d;
@@ -29595,7 +29824,7 @@ const makePayment = async (params) => {
29595
29824
  if (fail)
29596
29825
  params.fail = createWrap(fail);
29597
29826
  if (complete)
29598
- params.complete = createWrap(complete);
29827
+ params.complete = createWrapComplete(complete);
29599
29828
  initMakePayment(params).catch(() => {
29600
29829
  });
29601
29830
  };
@@ -29645,13 +29874,13 @@ const initErrorSheet = (initErrorSheet2) => {
29645
29874
  app.mount(container2);
29646
29875
  document.body.appendChild(container2);
29647
29876
  };
29648
- async function showErrorSheet(params) {
29877
+ function showErrorSheet(params) {
29649
29878
  var _a;
29650
29879
  reconstructParams(params);
29651
29880
  try {
29652
29881
  initErrorSheet(params);
29653
29882
  } catch {
29654
- (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
29883
+ (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.unknown });
29655
29884
  }
29656
29885
  }
29657
29886
  const container = "_container_17pxy_1";
@@ -29794,13 +30023,13 @@ const initAlertSheet = (initAlertSheet2) => {
29794
30023
  app.mount(container2);
29795
30024
  document.body.appendChild(container2);
29796
30025
  };
29797
- async function showAlert(params) {
30026
+ function showAlert(params) {
29798
30027
  var _a;
29799
30028
  reconstructParams(params);
29800
30029
  try {
29801
30030
  initAlertSheet(params);
29802
30031
  } catch {
29803
- (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
30032
+ (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.unknown });
29804
30033
  }
29805
30034
  }
29806
30035
  const bannerInfoContainer = "_bannerInfoContainer_1l754_1";
@@ -29894,6 +30123,80 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
29894
30123
  const cssModules$6 = {};
29895
30124
  cssModules$6["$style"] = style0$6;
29896
30125
  var BannerInfo = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__cssModules", cssModules$6]]);
30126
+ const cashbackInfoContainer = "_cashbackInfoContainer_18hoj_1";
30127
+ const balanceTitle = "_balanceTitle_18hoj_4";
30128
+ const transferTitle = "_transferTitle_18hoj_12";
30129
+ const flexContainer = "_flexContainer_18hoj_18";
30130
+ var style0$5 = {
30131
+ cashbackInfoContainer,
30132
+ balanceTitle,
30133
+ transferTitle,
30134
+ flexContainer
30135
+ };
30136
+ const _sfc_main$c = defineComponent({
30137
+ components: {},
30138
+ props: {
30139
+ cashbackInfo: {
30140
+ type: Object,
30141
+ default: () => {
30142
+ },
30143
+ required: true
30144
+ },
30145
+ totalBalanceInfo: {
30146
+ type: String,
30147
+ default: () => {
30148
+ },
30149
+ required: true
30150
+ },
30151
+ allTotalBalanceInfo: {
30152
+ type: String,
30153
+ default: () => {
30154
+ },
30155
+ required: true
30156
+ },
30157
+ isCharging: {
30158
+ type: Boolean,
30159
+ default: false,
30160
+ required: true
30161
+ }
30162
+ },
30163
+ emits: ["click"],
30164
+ setup(props) {
30165
+ const lg2 = getLanguage();
30166
+ const style = useCssModule();
30167
+ return {
30168
+ availableBalText: computed(() => props.isCharging ? lg2.topup.availableBalanceAfter : lg2.topup.availableBalance),
30169
+ isCashbackSave: computed(() => {
30170
+ var _a;
30171
+ return ((_a = props == null ? void 0 : props.cashbackInfo) == null ? void 0 : _a.cashBackUseStatus) === "SAVE";
30172
+ }),
30173
+ style,
30174
+ lg: lg2
30175
+ };
30176
+ }
30177
+ });
30178
+ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
30179
+ return openBlock(), createElementBlock("div", {
30180
+ class: normalizeClass(_ctx.style.cashbackInfoContainer)
30181
+ }, [
30182
+ createBaseVNode("div", {
30183
+ class: normalizeClass([_ctx.style.flexContainer, _ctx.style.balanceTitle])
30184
+ }, [
30185
+ createBaseVNode("span", null, toDisplayString(_ctx.availableBalText), 1),
30186
+ createBaseVNode("span", null, toDisplayString(_ctx.totalBalanceInfo) + " \u5186 ", 1)
30187
+ ], 2),
30188
+ _ctx.isCashbackSave ? (openBlock(), createElementBlock("div", {
30189
+ key: 0,
30190
+ class: normalizeClass([_ctx.style.flexContainer, _ctx.style.transferTitle])
30191
+ }, [
30192
+ createBaseVNode("span", null, toDisplayString(_ctx.lg.topup.allBalance), 1),
30193
+ createBaseVNode("span", null, toDisplayString(_ctx.allTotalBalanceInfo) + " \u5186 ", 1)
30194
+ ], 2)) : createCommentVNode("", true)
30195
+ ], 2);
30196
+ }
30197
+ const cssModules$5 = {};
30198
+ cssModules$5["$style"] = style0$5;
30199
+ var CashbackInfo = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__cssModules", cssModules$5]]);
29897
30200
  const completion = "_completion_9o00a_1";
29898
30201
  const title$2 = "_title_9o00a_5";
29899
30202
  const paypayLogo = "_paypayLogo_9o00a_10";
@@ -29908,7 +30211,7 @@ const green = "_green_9o00a_51";
29908
30211
  const red = "_red_9o00a_54";
29909
30212
  const yellow = "_yellow_9o00a_57";
29910
30213
  const gray = "_gray_9o00a_60";
29911
- var style0$5 = {
30214
+ var style0$4 = {
29912
30215
  completion,
29913
30216
  title: title$2,
29914
30217
  paypayLogo,
@@ -29924,7 +30227,7 @@ var style0$5 = {
29924
30227
  yellow,
29925
30228
  gray
29926
30229
  };
29927
- const _sfc_main$c = defineComponent({
30230
+ const _sfc_main$b = defineComponent({
29928
30231
  components: {
29929
30232
  Button,
29930
30233
  Divider
@@ -29981,7 +30284,7 @@ const _hoisted_1$a = ["src"];
29981
30284
  const _hoisted_2$7 = /* @__PURE__ */ createTextVNode(" \u5186 ");
29982
30285
  const _hoisted_3$6 = ["src"];
29983
30286
  const _hoisted_4$5 = /* @__PURE__ */ createTextVNode(" \u9589\u3058\u308B ");
29984
- function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
30287
+ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
29985
30288
  const _component_Divider = resolveComponent("Divider");
29986
30289
  const _component_Button = resolveComponent("Button");
29987
30290
  return openBlock(), createElementBlock("div", {
@@ -30047,123 +30350,49 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
30047
30350
  })
30048
30351
  ], 2);
30049
30352
  }
30050
- const cssModules$5 = {};
30051
- cssModules$5["$style"] = style0$5;
30052
- var TopupCompletion = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__cssModules", cssModules$5]]);
30053
- const cashbackInfoContainer = "_cashbackInfoContainer_18hoj_1";
30054
- const balanceTitle = "_balanceTitle_18hoj_4";
30055
- const transferTitle = "_transferTitle_18hoj_12";
30056
- const flexContainer = "_flexContainer_18hoj_18";
30057
- var style0$4 = {
30058
- cashbackInfoContainer,
30059
- balanceTitle,
30060
- transferTitle,
30061
- flexContainer
30062
- };
30063
- const _sfc_main$b = defineComponent({
30064
- components: {},
30065
- props: {
30066
- cashbackInfo: {
30067
- type: Object,
30068
- default: () => {
30069
- },
30070
- required: true
30071
- },
30072
- totalBalanceInfo: {
30073
- type: String,
30074
- default: () => {
30075
- },
30076
- required: true
30077
- },
30078
- allTotalBalanceInfo: {
30079
- type: String,
30080
- default: () => {
30081
- },
30082
- required: true
30083
- },
30084
- isCharging: {
30085
- type: Boolean,
30086
- default: false,
30087
- required: true
30088
- }
30089
- },
30090
- emits: ["click"],
30091
- setup(props) {
30092
- const lg2 = getLanguage();
30093
- const style = useCssModule();
30094
- return {
30095
- availableBalText: computed(() => props.isCharging ? lg2.topup.availableBalanceAfter : lg2.topup.availableBalance),
30096
- isCashbackSave: computed(() => {
30097
- var _a;
30098
- return ((_a = props == null ? void 0 : props.cashbackInfo) == null ? void 0 : _a.cashBackUseStatus) === "SAVE";
30099
- }),
30100
- style,
30101
- lg: lg2
30102
- };
30103
- }
30104
- });
30105
- function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
30106
- return openBlock(), createElementBlock("div", {
30107
- class: normalizeClass(_ctx.style.cashbackInfoContainer)
30108
- }, [
30109
- createBaseVNode("div", {
30110
- class: normalizeClass([_ctx.style.flexContainer, _ctx.style.balanceTitle])
30111
- }, [
30112
- createBaseVNode("span", null, toDisplayString(_ctx.availableBalText), 1),
30113
- createBaseVNode("span", null, toDisplayString(_ctx.totalBalanceInfo) + " \u5186 ", 1)
30114
- ], 2),
30115
- _ctx.isCashbackSave ? (openBlock(), createElementBlock("div", {
30116
- key: 0,
30117
- class: normalizeClass([_ctx.style.flexContainer, _ctx.style.transferTitle])
30118
- }, [
30119
- createBaseVNode("span", null, toDisplayString(_ctx.lg.topup.allBalance), 1),
30120
- createBaseVNode("span", null, toDisplayString(_ctx.allTotalBalanceInfo) + " \u5186 ", 1)
30121
- ], 2)) : createCommentVNode("", true)
30122
- ], 2);
30123
- }
30124
30353
  const cssModules$4 = {};
30125
30354
  cssModules$4["$style"] = style0$4;
30126
- var CashbackInfo = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__cssModules", cssModules$4]]);
30127
- const topupWrapper = "_topupWrapper_19kvr_7";
30128
- const fullHeight = "_fullHeight_19kvr_13";
30129
- const bannerText = "_bannerText_19kvr_20";
30130
- const topupMoneyLabel = "_topupMoneyLabel_19kvr_23";
30131
- const topupCharge = "_topupCharge_19kvr_31";
30132
- const fullHeightCharge = "_fullHeightCharge_19kvr_37";
30133
- const bannerMargin = "_bannerMargin_19kvr_40";
30134
- const topup$2 = "_topup_19kvr_7";
30135
- const noBorder = "_noBorder_19kvr_52";
30136
- const banner = "_banner_19kvr_20";
30137
- const invalidAmount = "_invalidAmount_19kvr_58";
30138
- const loadingText = "_loadingText_19kvr_63";
30139
- const choosePayment$1 = "_choosePayment_19kvr_72";
30140
- const amountList = "_amountList_19kvr_79";
30141
- const balance = "_balance_19kvr_99";
30142
- const chargeSelect = "_chargeSelect_19kvr_106";
30143
- const blueDivider = "_blueDivider_19kvr_112";
30144
- const chargeMoney = "_chargeMoney_19kvr_119";
30145
- const unit = "_unit_19kvr_125";
30146
- const chargeInput = "_chargeInput_19kvr_128";
30147
- const inputLeft = "_inputLeft_19kvr_143";
30148
- const inputRight = "_inputRight_19kvr_150";
30149
- const noMethod = "_noMethod_19kvr_157";
30150
- const topupMoney = "_topupMoney_19kvr_23";
30151
- const moneyLabel = "_moneyLabel_19kvr_170";
30152
- const btnContainer = "_btnContainer_19kvr_174";
30153
- const fullBtnContainer = "_fullBtnContainer_19kvr_181";
30154
- const moneyList = "_moneyList_19kvr_196";
30155
- const doneContainer = "_doneContainer_19kvr_200";
30156
- const ppmnaLottie = "_ppmnaLottie_19kvr_207";
30157
- const moreMoney = "_moreMoney_19kvr_212";
30158
- const fullHeightPayMethod = "_fullHeightPayMethod_19kvr_217";
30159
- const fullHeightInput = "_fullHeightInput_19kvr_223";
30160
- const fullHeightLottie = "_fullHeightLottie_19kvr_226";
30161
- const paymentType = "_paymentType_19kvr_230";
30355
+ var TopupCompletion = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__cssModules", cssModules$4]]);
30356
+ const topupWrapper = "_topupWrapper_eufp7_7";
30357
+ const fullHeight = "_fullHeight_eufp7_13";
30358
+ const bannerText = "_bannerText_eufp7_20";
30359
+ const topupMoneyLabel = "_topupMoneyLabel_eufp7_23";
30360
+ const topupCharge = "_topupCharge_eufp7_31";
30361
+ const fullHeightCharge = "_fullHeightCharge_eufp7_37";
30362
+ const bannerMargin = "_bannerMargin_eufp7_40";
30363
+ const topup$2 = "_topup_eufp7_7";
30364
+ const noBorder = "_noBorder_eufp7_52";
30365
+ const banner = "_banner_eufp7_20";
30366
+ const invalidAmount = "_invalidAmount_eufp7_58";
30367
+ const loadingText = "_loadingText_eufp7_63";
30368
+ const choosePayment$1 = "_choosePayment_eufp7_72";
30369
+ const amountList = "_amountList_eufp7_79";
30370
+ const balance = "_balance_eufp7_99";
30371
+ const chargeSelect = "_chargeSelect_eufp7_106";
30372
+ const blueDivider = "_blueDivider_eufp7_112";
30373
+ const chargeMoney = "_chargeMoney_eufp7_119";
30374
+ const unit = "_unit_eufp7_125";
30375
+ const chargeInput = "_chargeInput_eufp7_128";
30376
+ const inputLeft = "_inputLeft_eufp7_143";
30377
+ const inputRight = "_inputRight_eufp7_150";
30378
+ const noMethod = "_noMethod_eufp7_157";
30379
+ const topupMoney = "_topupMoney_eufp7_23";
30380
+ const moneyLabel = "_moneyLabel_eufp7_170";
30381
+ const btnContainer = "_btnContainer_eufp7_174";
30382
+ const fullBtnContainer = "_fullBtnContainer_eufp7_181";
30383
+ const moneyList = "_moneyList_eufp7_196";
30384
+ const doneContainer = "_doneContainer_eufp7_200";
30385
+ const ppmnaLottie = "_ppmnaLottie_eufp7_207";
30386
+ const moreMoney = "_moreMoney_eufp7_212";
30387
+ const fullHeightPayMethod = "_fullHeightPayMethod_eufp7_217";
30388
+ const fullHeightInput = "_fullHeightInput_eufp7_223";
30389
+ const fullHeightLottie = "_fullHeightLottie_eufp7_226";
30390
+ const paymentType = "_paymentType_eufp7_230";
30162
30391
  var style0$3 = {
30163
- "ppmna-default-font": "_ppmna-default-font_19kvr_1",
30392
+ "ppmna-default-font": "_ppmna-default-font_eufp7_1",
30164
30393
  topupWrapper,
30165
30394
  fullHeight,
30166
- "btn-position": "_btn-position_19kvr_17",
30395
+ "btn-position": "_btn-position_eufp7_17",
30167
30396
  bannerText,
30168
30397
  topupMoneyLabel,
30169
30398
  topupCharge,
@@ -30308,7 +30537,7 @@ const _sfc_main$a = defineComponent({
30308
30537
  methods: {
30309
30538
  numberWithCommas,
30310
30539
  async init() {
30311
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
30540
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
30312
30541
  this.loading = true;
30313
30542
  this.isFirstLoad = true;
30314
30543
  const paymentIDParams = __spreadProps(__spreadValues({}, ((_a = this.topupParams) == null ? void 0 : _a.merchant) && {
@@ -30320,23 +30549,30 @@ const _sfc_main$a = defineComponent({
30320
30549
  sourceInfoApp: (_d = this.topupParams) == null ? void 0 : _d.sourceInfoApp,
30321
30550
  productType: (_e = this.topupParams) == null ? void 0 : _e.productType
30322
30551
  });
30323
- const paymentIdResponse = await getPaymentMethods(paymentIDParams);
30324
- if (!paymentIdResponse || "error" in paymentIdResponse) {
30325
- this.errorCode = paymentIdResponse.error.message === MiniAppErrorType.timeOut ? MiniAppErrorType.timeOut : MiniAppErrorType.serverError;
30326
- this.errorShow = true;
30327
- return;
30328
- } else if (((_g = (_f = paymentIdResponse == null ? void 0 : paymentIdResponse.unsigned) == null ? void 0 : _f.resultInfo) == null ? void 0 : _g.code) !== "SUCCESS") {
30329
- this.errorCode = MiniAppErrorType.serverError;
30330
- this.showError();
30331
- return;
30552
+ const paymentIdResponse = await getPaymentMethods2(paymentIDParams);
30553
+ switch (paymentIdResponse.ppFetchResult) {
30554
+ case "success":
30555
+ break;
30556
+ case "timeout":
30557
+ this.errorCode = MiniAppErrorType.timeOut;
30558
+ this.errorShow = true;
30559
+ return;
30560
+ case "apiError":
30561
+ this.errorCode = MiniAppErrorType.serverError;
30562
+ this.showError();
30563
+ return;
30564
+ default:
30565
+ this.errorCode = MiniAppErrorType.serverError;
30566
+ this.errorShow = true;
30567
+ return;
30332
30568
  }
30333
- this.paymentMethodList = filterUnsupportedPaymentMethod((_j = (_i = (_h = paymentIdResponse == null ? void 0 : paymentIdResponse.unsigned) == null ? void 0 : _h.data) == null ? void 0 : _i.payload) == null ? void 0 : _j.paymentMethodList);
30334
- this.findFirstValidMethod(0);
30569
+ this.paymentMethodList = (_h = (_g = (_f = paymentIdResponse.body.unsigned) == null ? void 0 : _f.data) == null ? void 0 : _g.payload) == null ? void 0 : _h.paymentMethodList;
30570
+ this.findFirstValidMethodTopup();
30335
30571
  const config = getAppConfig();
30336
30572
  if (config) {
30337
- this.inputMoney = (_k = config == null ? void 0 : config.topupHalfSheetRecommendedAmount[0]) == null ? void 0 : _k.value;
30338
- this.topupHalfSheetAmount = (_l = config == null ? void 0 : config.topupHalfSheetAmount[0]) == null ? void 0 : _l.value;
30339
- this.topupButtonsAmount = (_m = config == null ? void 0 : config.topupButtonsAmount[0]) == null ? void 0 : _m.value;
30573
+ this.inputMoney = (_i = config == null ? void 0 : config.topupHalfSheetRecommendedAmount[0]) == null ? void 0 : _i.value;
30574
+ this.topupHalfSheetAmount = (_j = config == null ? void 0 : config.topupHalfSheetAmount[0]) == null ? void 0 : _j.value;
30575
+ this.topupButtonsAmount = (_k = config == null ? void 0 : config.topupButtonsAmount[0]) == null ? void 0 : _k.value;
30340
30576
  }
30341
30577
  this.loading = false;
30342
30578
  this.isFirstLoad = false;
@@ -30344,41 +30580,11 @@ const _sfc_main$a = defineComponent({
30344
30580
  createAnime(s) {
30345
30581
  this.lottieAnim = s;
30346
30582
  },
30347
- findFirstValidMethod(index2) {
30348
- var _a, _b, _c, _d, _e, _f;
30583
+ findFirstValidMethodTopup() {
30584
+ var _a;
30349
30585
  if (((_a = this.paymentMethodList) == null ? void 0 : _a.length) > 0) {
30350
- let payMethod = this.paymentMethodList[index2];
30351
- switch (payMethod == null ? void 0 : payMethod.paymentMethodType) {
30352
- case PaymentMethodType.BANK:
30353
- case PaymentMethodType.YMONEY_BANK:
30354
- if (((_b = payMethod.bankInfo) == null ? void 0 : _b.paymentMethodStatus) === "ACTIVATED") {
30355
- this.selectedPaymentMethod = payMethod;
30356
- this.selectPaymentIndex = index2;
30357
- return;
30358
- }
30359
- break;
30360
- case PaymentMethodType.CREDIT_CARD:
30361
- if (((_c = payMethod.creditCardInfo) == null ? void 0 : _c.paymentMethodStatus) === "ACTIVATED" && !((_d = payMethod.creditCardInfo) == null ? void 0 : _d.isExpired)) {
30362
- this.selectedPaymentMethod = payMethod;
30363
- this.selectPaymentIndex = index2;
30364
- return;
30365
- }
30366
- break;
30367
- case PaymentMethodType.SBID_CARRIER_BILLING:
30368
- if (((_e = payMethod.sbidCarrierBillingInfo) == null ? void 0 : _e.paymentMethodStatus) === "ACTIVATED") {
30369
- this.selectedPaymentMethod = payMethod;
30370
- this.selectPaymentIndex = index2;
30371
- return;
30372
- }
30373
- break;
30374
- case PaymentMethodType.WALLET:
30375
- this.selectedPaymentMethod = payMethod;
30376
- this.selectPaymentIndex = index2;
30377
- return;
30378
- }
30379
- if (index2 < ((_f = this.paymentMethodList) == null ? void 0 : _f.length)) {
30380
- this.findFirstValidMethod(++index2);
30381
- }
30586
+ this.selectPaymentIndex = findFirstValidMethod(this.paymentMethodList, PaymentOpType.TOPUP);
30587
+ this.selectedPaymentMethod = this.paymentMethodList[this.selectPaymentIndex];
30382
30588
  }
30383
30589
  },
30384
30590
  async switchInput() {
@@ -30991,7 +31197,7 @@ const _sfc_main$9 = defineComponent({
30991
31197
  }
30992
31198
  } catch {
30993
31199
  this.errorShow = true;
30994
- (_e = (_d = this.warningParams) == null ? void 0 : _d.fail) == null ? void 0 : _e.call(_d);
31200
+ (_e = (_d = this.warningParams) == null ? void 0 : _d.fail) == null ? void 0 : _e.call(_d, { errorCode: MiniAppErrorType.unknown });
30995
31201
  } finally {
30996
31202
  this.$emit("close-click");
30997
31203
  }
@@ -31054,7 +31260,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
31054
31260
  }, null, 8, ["show", "error-text"])
31055
31261
  ], 64);
31056
31262
  }
31057
- var AppVue$5 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-946535e4"]]);
31263
+ var AppVue$5 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-f36ed910"]]);
31058
31264
  const initShowUpdateWarning = (params) => {
31059
31265
  const show2 = ref(true);
31060
31266
  const warningParams = reactive(params);
@@ -31081,11 +31287,11 @@ const initShowUpdateWarning = (params) => {
31081
31287
  app.mount(container2);
31082
31288
  document.body.appendChild(container2);
31083
31289
  };
31084
- async function showUpdateWarning$1(params) {
31290
+ function showUpdateWarning$1(params) {
31085
31291
  reconstructParams(params);
31086
31292
  initShowUpdateWarning(params);
31087
31293
  }
31088
- async function scanCode(params) {
31294
+ function scanCode(params) {
31089
31295
  reconstructParams(params);
31090
31296
  if (isPayPayMiniApp()) {
31091
31297
  closeApp({
@@ -31289,7 +31495,7 @@ async function takePhoto$1(params) {
31289
31495
  takePhotoInternal(params, TakePhotoMode.album);
31290
31496
  }
31291
31497
  }
31292
- async function setTitle(params) {
31498
+ function setTitle(params) {
31293
31499
  var _a;
31294
31500
  reconstructParams(params);
31295
31501
  document.title = (params == null ? void 0 : params.title) || "";
@@ -32008,7 +32214,7 @@ function debug(params) {
32008
32214
  function execute$5(params) {
32009
32215
  var _a;
32010
32216
  (_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
32011
- v: "1.25.0"
32217
+ v: "1.28.0"
32012
32218
  });
32013
32219
  }
32014
32220
  function useCallBack(props, ctx) {
@@ -32918,20 +33124,25 @@ function registerEmail(params) {
32918
33124
  initRegisterEmail(params).catch(() => {
32919
33125
  });
32920
33126
  }
32921
- async function registerKyc(params) {
33127
+ function registerKyc(params) {
32922
33128
  reconstructParams(params);
32923
- await execute$4(params);
33129
+ execute$4(params);
32924
33130
  }
32925
- async function execute$4(params) {
33131
+ function execute$4(params) {
33132
+ var _a;
32926
33133
  params = __spreadProps(__spreadValues({}, params), {
32927
33134
  type: (params == null ? void 0 : params.type) || "EKYC"
32928
33135
  });
32929
33136
  const appDetail = getAppDetail();
32930
33137
  const clientId = getClientId();
33138
+ if (!clientId) {
33139
+ (_a = params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.sdkNotInitialized });
33140
+ return;
33141
+ }
32931
33142
  let deeplink = `paypay://kyc/top?appId=${clientId}&appName=${encodeURIComponent((appDetail == null ? void 0 : appDetail.appName) || "")}`;
32932
33143
  Object.entries(params).map(([key, value2]) => {
32933
33144
  if (typeof value2 !== "function") {
32934
- let kycData = encodeURIComponent(value2);
33145
+ let kycData = encodeURIComponent(String(value2));
32935
33146
  if (Array.isArray(value2)) {
32936
33147
  kycData = value2.join(",");
32937
33148
  } else if (typeof value2 === "object") {
@@ -32962,7 +33173,7 @@ function validType(params) {
32962
33173
  return authTypes.includes(params == null ? void 0 : params.type);
32963
33174
  }
32964
33175
  async function execute$3(params) {
32965
- var _a, _b, _c, _d, _e;
33176
+ var _a, _b, _c;
32966
33177
  if (!validType(params)) {
32967
33178
  return (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.invalidType });
32968
33179
  }
@@ -32974,7 +33185,7 @@ async function execute$3(params) {
32974
33185
  if (!res || "error" in res) {
32975
33186
  return (_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, { errorCode: MiniAppErrorType.serverError });
32976
33187
  }
32977
- if ((_d = (_c = res == null ? void 0 : res.unsigned) == null ? void 0 : _c.data) == null ? void 0 : _d.sessionId) {
33188
+ if (res.unsigned.data.sessionId) {
32978
33189
  const sessionId = res.unsigned.data.sessionId;
32979
33190
  const deeplink = `paypay://miniAppMFA?ppSessionId=${sessionId}&type=${params.type}&callbackUrl=${params == null ? void 0 : params.callbackUrl}`;
32980
33191
  closeApp({
@@ -32986,7 +33197,7 @@ async function execute$3(params) {
32986
33197
  throw new Error();
32987
33198
  }
32988
33199
  } catch {
32989
- return (_e = params == null ? void 0 : params.fail) == null ? void 0 : _e.call(params, { errorCode: MiniAppErrorType.serverError });
33200
+ return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, { errorCode: MiniAppErrorType.serverError });
32990
33201
  }
32991
33202
  }
32992
33203
  function logout(params) {
@@ -33235,10 +33446,12 @@ const initSmartButton = (params, data2, preferredLanguage, isLoggedIn) => {
33235
33446
  const container2 = document.getElementById(params == null ? void 0 : params.containerId);
33236
33447
  container2 && app.mount(container2);
33237
33448
  };
33238
- async function renderLoginButton(params, lg2, preferredLanguage, loggedinUser) {
33449
+ function renderLoginButton(params, lg2, preferredLanguage, loggedinUser) {
33239
33450
  var _a, _b;
33240
33451
  if (!(params == null ? void 0 : params.containerId) || !document.getElementById(params == null ? void 0 : params.containerId)) {
33241
- (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
33452
+ (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, {
33453
+ errorCode: MiniAppErrorType.badRequestInsufficientParameter
33454
+ });
33242
33455
  return console.error("Invalid container Id");
33243
33456
  }
33244
33457
  let data2 = {
@@ -33260,10 +33473,12 @@ async function renderLoginButton(params, lg2, preferredLanguage, loggedinUser) {
33260
33473
  }
33261
33474
  initSmartButton(params, data2, preferredLanguage);
33262
33475
  }
33263
- async function renderPayButton(params, lg2, preferredLanguage, isLoggedIn, cashbackInfo) {
33476
+ function renderPayButton(params, lg2, preferredLanguage, isLoggedIn, cashbackInfo) {
33264
33477
  var _a;
33265
33478
  if (!(params == null ? void 0 : params.containerId) || !document.getElementById(params == null ? void 0 : params.containerId)) {
33266
- (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
33479
+ (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, {
33480
+ errorCode: MiniAppErrorType.badRequestInsufficientParameter
33481
+ });
33267
33482
  return console.error("Invalid container Id");
33268
33483
  }
33269
33484
  let data2 = {
@@ -33465,6 +33680,10 @@ const wallet = {
33465
33680
  cashBackExpirable: "PayPay Bonus Light",
33466
33681
  balance: "Available amount:"
33467
33682
  };
33683
+ const payLater = {
33684
+ title: "PayPay deferred payment",
33685
+ balance: "Available amount:"
33686
+ };
33468
33687
  const softbank = {
33469
33688
  desc: "SoftBank Ymobile",
33470
33689
  desc1: "Pay in bulk",
@@ -33515,6 +33734,7 @@ var en = {
33515
33734
  paymentMethod,
33516
33735
  paymentMethodStatus,
33517
33736
  wallet,
33737
+ payLater,
33518
33738
  softbank,
33519
33739
  smartLogin,
33520
33740
  smartPay,
@@ -33544,6 +33764,7 @@ var en$1 = /* @__PURE__ */ Object.freeze({
33544
33764
  paymentMethod,
33545
33765
  paymentMethodStatus,
33546
33766
  wallet,
33767
+ payLater,
33547
33768
  softbank,
33548
33769
  smartLogin,
33549
33770
  smartPay,
@@ -33552,7 +33773,7 @@ var en$1 = /* @__PURE__ */ Object.freeze({
33552
33773
  closeConfirmation,
33553
33774
  "default": en
33554
33775
  });
33555
- async function render(params) {
33776
+ function render(params) {
33556
33777
  reconstructParams(params);
33557
33778
  let preferredLanguage = (params == null ? void 0 : params.locale) || getPayPayLanguage();
33558
33779
  const { smartLogin: smartLogin2, smartPay: smartPay2 } = preferredLanguage === "en" ? en$1 : ja$1;
@@ -33566,11 +33787,14 @@ async function render(params) {
33566
33787
  success: () => {
33567
33788
  renderPay(__spreadProps(__spreadValues({}, params), {
33568
33789
  url: void 0
33569
- }), smartPay2, preferredLanguage, true);
33790
+ }), smartPay2, preferredLanguage, true).catch(() => {
33791
+ });
33570
33792
  },
33571
33793
  fail: () => {
33572
- renderPay(params, smartPay2, preferredLanguage, false);
33794
+ renderPay(params, smartPay2, preferredLanguage, false).catch(() => {
33795
+ });
33573
33796
  }
33797
+ }).catch(() => {
33574
33798
  });
33575
33799
  }
33576
33800
  }
@@ -33621,13 +33845,13 @@ function callbackHandler(params, callback) {
33621
33845
  try {
33622
33846
  callback();
33623
33847
  } catch {
33624
- (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
33848
+ (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.unknown });
33625
33849
  }
33626
33850
  }
33627
- async function setSessionData(params) {
33851
+ function setSessionData(params) {
33628
33852
  var _a, _b;
33629
33853
  reconstructParams(params);
33630
- await sessionStorage.setItem(params == null ? void 0 : params.key, (_a = params == null ? void 0 : params.value) != null ? _a : "");
33854
+ sessionStorage.setItem(params == null ? void 0 : params.key, (_a = params == null ? void 0 : params.value) != null ? _a : "");
33631
33855
  (_b = params == null ? void 0 : params.success) == null ? void 0 : _b.call(params);
33632
33856
  }
33633
33857
  function getSessionData(params) {
@@ -33636,10 +33860,10 @@ function getSessionData(params) {
33636
33860
  const value2 = sessionStorage.getItem(params == null ? void 0 : params.key);
33637
33861
  (_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, { [params == null ? void 0 : params.key]: value2 != null ? value2 : "" });
33638
33862
  }
33639
- async function setStorageData(params) {
33863
+ function setStorageData(params) {
33640
33864
  var _a, _b;
33641
33865
  reconstructParams(params);
33642
- await localStorage.setItem(params == null ? void 0 : params.key, (_a = params == null ? void 0 : params.value) != null ? _a : "");
33866
+ localStorage.setItem(params == null ? void 0 : params.key, (_a = params == null ? void 0 : params.value) != null ? _a : "");
33643
33867
  (_b = params == null ? void 0 : params.success) == null ? void 0 : _b.call(params);
33644
33868
  }
33645
33869
  function getStorageData(params) {
@@ -33648,20 +33872,20 @@ function getStorageData(params) {
33648
33872
  const value2 = localStorage.getItem(params == null ? void 0 : params.key);
33649
33873
  (_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, { [params == null ? void 0 : params.key]: value2 != null ? value2 : "" });
33650
33874
  }
33651
- async function removeStorageData(params) {
33875
+ function removeStorageData(params) {
33652
33876
  var _a;
33653
33877
  reconstructParams(params);
33654
- await localStorage.removeItem(params == null ? void 0 : params.key);
33878
+ localStorage.removeItem(params == null ? void 0 : params.key);
33655
33879
  (_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params);
33656
33880
  }
33657
33881
  const errorCodes = new Map();
33658
- errorCodes.set(414, "INVALID_URL");
33659
- errorCodes.set(413, "INVALID_DATA");
33660
- errorCodes.set(400, "INVALID_HEADER");
33661
- errorCodes.set(405, "INVALID_METHOD");
33662
- errorCodes.set(502, "INVALID_RESPONSE");
33882
+ errorCodes.set(414, MiniAppErrorType.invalidUrl);
33883
+ errorCodes.set(413, MiniAppErrorType.invalidData);
33884
+ errorCodes.set(400, MiniAppErrorType.invalidHeader);
33885
+ errorCodes.set(405, MiniAppErrorType.invalidMethod);
33886
+ errorCodes.set(502, MiniAppErrorType.invalidResponse);
33663
33887
  async function request(params) {
33664
- var _a, _b, _c, _d, _e;
33888
+ var _a, _b, _c, _d;
33665
33889
  reconstructParams(params);
33666
33890
  try {
33667
33891
  const response = await fetch(params == null ? void 0 : params.url, {
@@ -33679,8 +33903,10 @@ async function request(params) {
33679
33903
  if (!_error.response) {
33680
33904
  return (_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, { errorCode: MiniAppErrorType.invalidResponse });
33681
33905
  } else {
33682
- const errorMsg = errorCodes.has((_c = _error.response) == null ? void 0 : _c.status) ? errorCodes.get((_d = _error.response) == null ? void 0 : _d.status) : MiniAppErrorType.statusCodeError;
33683
- return (_e = params == null ? void 0 : params.fail) == null ? void 0 : _e.call(params, { errorCode: errorMsg });
33906
+ const errorMsg = _error.response ? errorCodes.get((_c = _error.response) == null ? void 0 : _c.status) : null;
33907
+ return (_d = params == null ? void 0 : params.fail) == null ? void 0 : _d.call(params, {
33908
+ errorCode: errorMsg != null ? errorMsg : MiniAppErrorType.statusCodeError
33909
+ });
33684
33910
  }
33685
33911
  }
33686
33912
  }
@@ -33719,7 +33945,8 @@ class MiniAppModule extends JsBridgeModule {
33719
33945
  return getRuntime() === MiniAppRuntime.android ? RuntimeEnv.Native : RuntimeEnv.JS;
33720
33946
  }
33721
33947
  init(params) {
33722
- init(params);
33948
+ init(params).catch(() => {
33949
+ });
33723
33950
  }
33724
33951
  copyToClipboard(params) {
33725
33952
  copyToClipboard(params);
@@ -33740,32 +33967,39 @@ class MiniAppModule extends JsBridgeModule {
33740
33967
  closeApp(params);
33741
33968
  }
33742
33969
  request(params) {
33743
- request(params);
33970
+ request(params).catch(() => {
33971
+ });
33744
33972
  }
33745
33973
  requestInternal(params) {
33746
- requestInternal(params);
33974
+ requestInternal(params).catch(() => {
33975
+ });
33747
33976
  }
33748
33977
  getUAID(params) {
33749
33978
  getUAID(params);
33750
33979
  }
33751
33980
  getBalance(params) {
33752
- getBalance(params);
33981
+ getBalance(params).catch(() => {
33982
+ });
33753
33983
  }
33754
33984
  getAuthStatus(params) {
33755
- getAuthStatus(params);
33985
+ getAuthStatus(params).catch(() => {
33986
+ });
33756
33987
  }
33757
33988
  makePayment(params) {
33758
33989
  if (!this.isExecutableService(params))
33759
33990
  return;
33760
- makePayment(params);
33991
+ makePayment(params).catch(() => {
33992
+ });
33761
33993
  }
33762
33994
  createOrder(params) {
33763
33995
  if (!this.isExecutableService(params))
33764
33996
  return;
33765
- makePayment(params);
33997
+ makePayment(params).catch(() => {
33998
+ });
33766
33999
  }
33767
34000
  getUserProfile(params) {
33768
- getUserProfile(params);
34001
+ getUserProfile(params).catch(() => {
34002
+ });
33769
34003
  }
33770
34004
  topup(params) {
33771
34005
  if (!this.isExecutableService(params))
@@ -33788,7 +34022,8 @@ class MiniAppModule extends JsBridgeModule {
33788
34022
  removeStorageData(params);
33789
34023
  }
33790
34024
  getPermissionStatus(params) {
33791
- getPermissionStatus(params);
34025
+ getPermissionStatus(params).catch(() => {
34026
+ });
33792
34027
  }
33793
34028
  scanCode(params) {
33794
34029
  scanCode(params);
@@ -33809,7 +34044,8 @@ class MiniAppModule extends JsBridgeModule {
33809
34044
  this.detectMode() === RuntimeEnv.JS ? showUpdateWarning$1(params) : this.jsBridge.callNative("showUpdateWarning", params);
33810
34045
  }
33811
34046
  getPlatformInformation(params) {
33812
- getPlatformInformation(params);
34047
+ getPlatformInformation(params).catch(() => {
34048
+ });
33813
34049
  }
33814
34050
  getDeviceInformation(params) {
33815
34051
  getDeviceInformation(params);
@@ -33818,10 +34054,12 @@ class MiniAppModule extends JsBridgeModule {
33818
34054
  this.detectMode() === RuntimeEnv.JS ? openApp$1(params) : this.jsBridge.callNative("openApp", params);
33819
34055
  }
33820
34056
  share(params) {
33821
- this.detectMode() === RuntimeEnv.JS ? share(params) : this.jsBridge.callNative("share", params);
34057
+ this.detectMode() === RuntimeEnv.JS ? share(params).catch(() => {
34058
+ }) : this.jsBridge.callNative("share", params);
33822
34059
  }
33823
34060
  getKycInformation(params) {
33824
- getKycInformation(params);
34061
+ getKycInformation(params).catch(() => {
34062
+ });
33825
34063
  }
33826
34064
  getUserAddress(params) {
33827
34065
  getUserAddress(params);
@@ -33832,13 +34070,16 @@ class MiniAppModule extends JsBridgeModule {
33832
34070
  inputAddress(params);
33833
34071
  }
33834
34072
  getUserLocation(params) {
33835
- getUserLocation(params != null ? params : {});
34073
+ getUserLocation(params != null ? params : {}).catch(() => {
34074
+ });
33836
34075
  }
33837
34076
  takePhoto(params) {
33838
- takePhoto$1(params != null ? params : {});
34077
+ takePhoto$1(params != null ? params : {}).catch(() => {
34078
+ });
33839
34079
  }
33840
34080
  checkPaymentMethod(params) {
33841
- checkPaymentMethod(params);
34081
+ checkPaymentMethod(params).catch(() => {
34082
+ });
33842
34083
  }
33843
34084
  debug(params) {
33844
34085
  debug(params);
@@ -33858,13 +34099,15 @@ class MiniAppModule extends JsBridgeModule {
33858
34099
  registerKyc(params);
33859
34100
  }
33860
34101
  startMultiFactorAuth(params) {
33861
- startMultiFactorAuth(params);
34102
+ startMultiFactorAuth(params).catch(() => {
34103
+ });
33862
34104
  }
33863
34105
  logout(params) {
33864
34106
  logout(params);
33865
34107
  }
33866
34108
  verifyMultiFactorAuthResult(params) {
33867
- verifyMultiFactorAuthResult(params);
34109
+ verifyMultiFactorAuthResult(params).catch(() => {
34110
+ });
33868
34111
  }
33869
34112
  render(params) {
33870
34113
  render(params);