@paypay/mini-app-js-sdk 1.27.0 → 1.30.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 (81) hide show
  1. package/dist/composition-api/useRegisterEmail.d.ts +1 -1
  2. package/dist/jsbridge-core/jsbridge.d.ts +9 -10
  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 +15 -14
  7. package/dist/mini-app-js-sdk.browser.js +1 -1
  8. package/dist/mini-app-js-sdk.es.js +693 -454
  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/getAuthStatus.d.ts +2 -2
  13. package/dist/model/bridge/getDeviceInformation.d.ts +2 -2
  14. package/dist/model/bridge/getPlatformInformation.d.ts +1 -1
  15. package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
  16. package/dist/model/bridge/getUAID.d.ts +2 -2
  17. package/dist/model/bridge/getUserProfile.d.ts +2 -2
  18. package/dist/model/bridge/index.d.ts +1 -0
  19. package/dist/model/bridge/logout.d.ts +2 -2
  20. package/dist/model/bridge/openMiniApp.d.ts +2 -0
  21. package/dist/model/bridge/registerEmail.d.ts +1 -1
  22. package/dist/model/bridge/removeStorageData.d.ts +2 -2
  23. package/dist/model/bridge/scanCode.d.ts +1 -1
  24. package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +2 -2
  25. package/dist/model/makePayment.d.ts +1 -0
  26. package/dist/model/uiComponents.d.ts +2 -1
  27. package/dist/package/charge-amount-list/index.vue.d.ts +8 -0
  28. package/dist/package/payment-method/PayLaterCC.vue.d.ts +291 -0
  29. package/dist/package/payment-method/SbidBank.vue.d.ts +5 -0
  30. package/dist/package/payment-method/Wallet.vue.d.ts +5 -1
  31. package/dist/package/payment-type/PayLaterCC.vue.d.ts +289 -0
  32. package/dist/package/payment-type/Sbid.vue.d.ts +5 -0
  33. package/dist/package/payment-type/Wallet.vue.d.ts +5 -0
  34. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +6 -0
  35. package/dist/types.d.ts +36 -31
  36. package/dist/utils/getImages.d.ts +1 -0
  37. package/dist/utils/getLanguage.d.ts +4 -0
  38. package/dist/utils/helper.d.ts +3 -0
  39. package/dist/views/email-registration/App.vue.d.ts +7 -3
  40. package/dist/views/email-registration/hooks/callback.d.ts +1 -1
  41. package/dist/views/error-sheet/Index.vue.d.ts +11 -2
  42. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +4 -0
  43. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +5 -0
  44. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +4 -0
  45. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +4 -0
  46. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +4 -0
  47. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +4 -0
  48. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +4 -0
  49. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +4 -0
  50. package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +4 -0
  51. package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +4 -0
  52. package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +4 -0
  53. package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +4 -0
  54. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +4 -0
  55. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +5 -0
  56. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +5 -0
  57. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +5 -0
  58. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +5 -0
  59. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +4 -0
  60. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +5 -0
  61. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +5 -0
  62. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +12 -0
  63. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +4 -0
  64. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +5 -0
  65. package/dist/views/make-payment/Sheets/Consult.vue.d.ts +1 -1
  66. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +4 -0
  67. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +5 -0
  68. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +5 -0
  69. package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +1 -0
  70. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +5 -0
  71. package/dist/views/make-payment/hooks/app-hooks.d.ts +4 -0
  72. package/dist/views/open-app/App.vue.d.ts +5 -0
  73. package/dist/views/open-map/App.vue.d.ts +4 -0
  74. package/dist/views/show-update-warning/App.vue.d.ts +5 -0
  75. package/dist/views/smart-button/App.vue.d.ts +2 -2
  76. package/dist/views/take-photo/App.vue.d.ts +4 -0
  77. package/dist/views/topup/App.vue.d.ts +6 -1
  78. package/dist/views/topup/CashbackInfo.vue.d.ts +4 -0
  79. package/dist/views/topup/TopupCompletion.vue.d.ts +5 -0
  80. package/package.json +1 -1
  81. package/dist/utils/common.d.ts +0 -2
@@ -65,8 +65,8 @@ function normalizeNativeResponseData(data2) {
65
65
  }
66
66
  class JsBridge {
67
67
  constructor(global2) {
68
- this.version = "1.27.0";
69
- this.revision = "bf7b138";
68
+ this.version = "1.30.0";
69
+ this.revision = "f13dc1f";
70
70
  this.messageHandlers = new Map();
71
71
  this.responseCallbacks = new Map();
72
72
  this.global = global2;
@@ -959,7 +959,7 @@ const birthdayConfirm$1 = {
959
959
  const birthdayConfirmError$1 = {
960
960
  title: "\u3053\u306E\u30AD\u30E3\u30F3\u30DA\u30FC\u30F3\u3067\u5F53\u9078\u3057\u305F",
961
961
  title2: "PayPay\u6B8B\u9AD8\u306F\u7372\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",
962
- desc: "\u8868\u793A\u3055\u308C\u3066\u3044\u308B\u7372\u5F97\u30DC\u30FC\u30CA\u30B9\u984D\u306F\u3001",
962
+ desc: "\u8868\u793A\u3055\u308C\u3066\u3044\u308B\u7372\u5F97\u30DD\u30A4\u30F3\u30C8\u984D\u306F\u3001",
963
963
  desc2: "\u30AD\u30E3\u30F3\u30DA\u30FC\u30F3\u898F\u7D04\u306B\u57FA\u3065\u304D\u5F8C\u65E5\u53D6\u308A\u6D88\u3057\u307E\u3059",
964
964
  helpBtn: "\u30D8\u30EB\u30D7\u30DA\u30FC\u30B8\u3092\u78BA\u8A8D",
965
965
  closeBtn: "\u9589\u3058\u308B"
@@ -1069,8 +1069,12 @@ const wallet$1 = {
1069
1069
  desc: "\u5185\u8A33\u3092\u898B\u308B",
1070
1070
  eMoney: "PayPay\u30DE\u30CD\u30FC",
1071
1071
  nonUsable: "PayPay\u30DE\u30CD\u30FC\u30E9\u30A4\u30C8",
1072
- cashBackUsable: "PayPay\u30DC\u30FC\u30CA\u30B9",
1073
- cashBackExpirable: "PayPay\u30DC\u30FC\u30CA\u30B9\u30E9\u30A4\u30C8",
1072
+ cashBackUsable: "PayPay\u30DD\u30A4\u30F3\u30C8",
1073
+ cashBackExpirable: "PayPay\u30DD\u30A4\u30F3\u30C8\u30E9\u30A4\u30C8",
1074
+ balance: "\u5229\u7528\u53EF\u80FD\u984D\uFF1A"
1075
+ };
1076
+ const payLater$2 = {
1077
+ title: "PayPay\u3042\u3068\u6255\u3044",
1074
1078
  balance: "\u5229\u7528\u53EF\u80FD\u984D\uFF1A"
1075
1079
  };
1076
1080
  const softbank$2 = {
@@ -1132,6 +1136,7 @@ var ja = {
1132
1136
  paymentMethod: paymentMethod$2,
1133
1137
  paymentMethodStatus: paymentMethodStatus$1,
1134
1138
  wallet: wallet$1,
1139
+ payLater: payLater$2,
1135
1140
  softbank: softbank$2,
1136
1141
  registerEmail: registerEmail$2,
1137
1142
  smartLogin: smartLogin$1,
@@ -1162,6 +1167,7 @@ var ja$1 = /* @__PURE__ */ Object.freeze({
1162
1167
  paymentMethod: paymentMethod$2,
1163
1168
  paymentMethodStatus: paymentMethodStatus$1,
1164
1169
  wallet: wallet$1,
1170
+ payLater: payLater$2,
1165
1171
  softbank: softbank$2,
1166
1172
  registerEmail: registerEmail$2,
1167
1173
  smartLogin: smartLogin$1,
@@ -1310,6 +1316,120 @@ const sendAge = (payload) => {
1310
1316
  data: payload
1311
1317
  });
1312
1318
  };
1319
+ var UIComponentsButtonActionType;
1320
+ (function(UIComponentsButtonActionType2) {
1321
+ UIComponentsButtonActionType2["DEEPLINK"] = "DEEPLINK";
1322
+ UIComponentsButtonActionType2["CLOSE"] = "CLOSE";
1323
+ UIComponentsButtonActionType2["NATIVE"] = "NATIVE";
1324
+ })(UIComponentsButtonActionType || (UIComponentsButtonActionType = {}));
1325
+ var UIComponentsButtonType;
1326
+ (function(UIComponentsButtonType2) {
1327
+ UIComponentsButtonType2["BLUE"] = "BLUE";
1328
+ UIComponentsButtonType2["WHITE"] = "WHITE";
1329
+ })(UIComponentsButtonType || (UIComponentsButtonType = {}));
1330
+ async function topup$3(queryParams, body) {
1331
+ var _a, _b, _c, _d, _e, _f, _g;
1332
+ const res = await ppFetch({
1333
+ method: "POST",
1334
+ url: "web-api/app/v1/payment/topup",
1335
+ params: queryParams,
1336
+ data: body
1337
+ });
1338
+ if ("error" in res) {
1339
+ return res;
1340
+ }
1341
+ const isSuccess = ((_b = (_a = res.unsigned) == null ? void 0 : _a.resultInfo) == null ? void 0 : _b.code) === "SUCCESS" && ["COMPLETED"].includes((_d = (_c = res.unsigned) == null ? void 0 : _c.data) == null ? void 0 : _d.status);
1342
+ if (isSuccess) {
1343
+ saveTopup({
1344
+ amount: (_g = (_f = (_e = res.unsigned) == null ? void 0 : _e.data) == null ? void 0 : _f.amount) == null ? void 0 : _g.amount
1345
+ });
1346
+ }
1347
+ return res;
1348
+ }
1349
+ async function getCashBackInfo() {
1350
+ return await ppFetch({
1351
+ method: "GET",
1352
+ url: "/web-api/app/platform/v1/balance",
1353
+ headers: {
1354
+ "INTERNAL-CALL": "true"
1355
+ }
1356
+ });
1357
+ }
1358
+ async function getAddressByZip(params) {
1359
+ return await ppFetch({
1360
+ method: "GET",
1361
+ url: "web-api/app/v1/addressbyzip",
1362
+ params
1363
+ });
1364
+ }
1365
+ async function getAddressList() {
1366
+ return ppFetch({
1367
+ method: "GET",
1368
+ url: "web-api/app/v1/users/addresslist",
1369
+ params: {
1370
+ type: "PREFERRED"
1371
+ }
1372
+ });
1373
+ }
1374
+ async function postAddress(body) {
1375
+ return await ppFetch({
1376
+ method: "POST",
1377
+ url: "web-api/app/v1/users/address",
1378
+ data: body
1379
+ });
1380
+ }
1381
+ async function editAddress(body, id) {
1382
+ return await ppFetch({
1383
+ method: "PUT",
1384
+ url: `web-api/app/v1/users/address/${id}`,
1385
+ data: body
1386
+ });
1387
+ }
1388
+ async function deleteAddress(id) {
1389
+ return await ppFetch({
1390
+ method: "DELETE",
1391
+ url: `web-api/app/v1/users/address/${id}`
1392
+ });
1393
+ }
1394
+ async function setSelectedAddress(addressId) {
1395
+ return ppFetch({
1396
+ url: `web-api/app/v1/users/address/selected/${addressId}`,
1397
+ method: "PUT"
1398
+ });
1399
+ }
1400
+ async function getUserProfileData() {
1401
+ return ppFetch({
1402
+ url: "web-api/app/v1/users/profile",
1403
+ method: "GET"
1404
+ });
1405
+ }
1406
+ async function registerEmail$1(email) {
1407
+ return ppFetch({
1408
+ url: "web-api/app/v1/users/email",
1409
+ method: "POST",
1410
+ data: {
1411
+ email
1412
+ }
1413
+ });
1414
+ }
1415
+ async function resendEmail() {
1416
+ return ppFetch({
1417
+ url: "web-api/app/v1/users/resendVerification",
1418
+ method: "POST"
1419
+ });
1420
+ }
1421
+ function getUserLocationRequest(params) {
1422
+ return ppFetch({
1423
+ url: "web-api/app/v1/location",
1424
+ method: "GET",
1425
+ params: {
1426
+ validTimeMinutes: params.validTimeMinutes
1427
+ }
1428
+ });
1429
+ }
1430
+ function isValidUrl(urlChallenge) {
1431
+ return /^https?:\/\//.test(urlChallenge);
1432
+ }
1313
1433
  function isDef(val2) {
1314
1434
  return val2 !== void 0 && val2 !== null;
1315
1435
  }
@@ -1326,7 +1446,7 @@ function trimExtraChar(value2, char, regExp) {
1326
1446
  }
1327
1447
  return value2.slice(0, index2 + 1) + value2.slice(index2).replace(regExp, "");
1328
1448
  }
1329
- function formatNumber$3(value2, options) {
1449
+ function formatNumber(value2, options) {
1330
1450
  if (options == null ? void 0 : options.allowDot) {
1331
1451
  value2 = trimExtraChar(value2, ".", /\./g);
1332
1452
  } else {
@@ -1343,6 +1463,9 @@ function formatNumber$3(value2, options) {
1343
1463
  const numberWithCommas = (x = 0) => {
1344
1464
  return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1345
1465
  };
1466
+ function formatAmount(val2) {
1467
+ return (val2 == null ? void 0 : val2.toLocaleString()) || "-";
1468
+ }
1346
1469
  function formatCurrency(val2, n) {
1347
1470
  const re = `\\d(?=(\\d{3})+${n > 0 ? "\\." : "$"})`;
1348
1471
  return val2 == null ? void 0 : val2.toFixed(Math.max(0, ~~n)).replace(new RegExp(re, "g"), "$&,");
@@ -1503,6 +1626,20 @@ function getPaymentMethodStatus(isExpired, val2) {
1503
1626
  return lg2.paymentMethod.expired;
1504
1627
  return val2 && val2 in PaymentMethodStatus ? lg2.paymentMethodStatus[val2] : "";
1505
1628
  }
1629
+ function filterErrorButtonList(buttonList) {
1630
+ return buttonList == null ? void 0 : buttonList.filter((button2) => {
1631
+ var _a, _b;
1632
+ if (button2.actionType === UIComponentsButtonActionType.NATIVE) {
1633
+ return false;
1634
+ } else {
1635
+ if (isPayPayMiniApp() || button2.actionType === UIComponentsButtonActionType.CLOSE) {
1636
+ return true;
1637
+ } else {
1638
+ return (button2 == null ? void 0 : button2.deeplink) && isValidUrl(button2 == null ? void 0 : button2.deeplink) || ((_a = button2 == null ? void 0 : button2.deeplink) == null ? void 0 : _a.startsWith("paypay://embed")) && ((_b = button2 == null ? void 0 : button2.deeplink) == null ? void 0 : _b.includes("?url="));
1639
+ }
1640
+ }
1641
+ });
1642
+ }
1506
1643
  const opaUrl = () => {
1507
1644
  switch (getEnv()) {
1508
1645
  case "staging":
@@ -1519,7 +1656,7 @@ const opaUrl = () => {
1519
1656
  const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
1520
1657
  let headers = new Headers(__spreadValues({
1521
1658
  "Content-Type": "application/json",
1522
- "Client-Version": "1.27.0",
1659
+ "Client-Version": "1.30.0",
1523
1660
  "Client-OS-Type": getRuntime()
1524
1661
  }, customHeaders));
1525
1662
  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") {
@@ -1756,6 +1893,16 @@ function reconstructParams(params) {
1756
1893
  }, 0);
1757
1894
  };
1758
1895
  }
1896
+ var MiniAppStatusType;
1897
+ (function(MiniAppStatusType2) {
1898
+ MiniAppStatusType2["validToken"] = "TOKEN_VALID";
1899
+ MiniAppStatusType2["initialized"] = "INITIALIZED";
1900
+ MiniAppStatusType2["emailRegistered"] = "EMAIL_REGISTERED";
1901
+ MiniAppStatusType2["emailNotVerified"] = "EMAIL_NOT_VERIFIED";
1902
+ MiniAppStatusType2["success"] = "SUCCESS";
1903
+ MiniAppStatusType2["loggedOut"] = "LOGGED_OUT";
1904
+ MiniAppStatusType2["connected"] = "CONNECTED";
1905
+ })(MiniAppStatusType || (MiniAppStatusType = {}));
1759
1906
  function getUAID(params) {
1760
1907
  reconstructParams(params);
1761
1908
  execute$e(params).catch(() => {
@@ -1773,16 +1920,6 @@ async function execute$e(params) {
1773
1920
  const userId = (_b = res == null ? void 0 : res.signed) == null ? void 0 : _b.jws;
1774
1921
  (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 });
1775
1922
  }
1776
- var MiniAppStatusType;
1777
- (function(MiniAppStatusType2) {
1778
- MiniAppStatusType2["validToken"] = "TOKEN_VALID";
1779
- MiniAppStatusType2["initialized"] = "INITIALIZED";
1780
- MiniAppStatusType2["emailRegistered"] = "EMAIL_REGISTERED";
1781
- MiniAppStatusType2["emailNotVerified"] = "EMAIL_NOT_VERIFIED";
1782
- MiniAppStatusType2["success"] = "SUCCESS";
1783
- MiniAppStatusType2["loggedOut"] = "LOGGED_OUT";
1784
- MiniAppStatusType2["connected"] = "CONNECTED";
1785
- })(MiniAppStatusType || (MiniAppStatusType = {}));
1786
1923
  function checkAccessToken(params) {
1787
1924
  reconstructParams(params);
1788
1925
  execute$d(params);
@@ -7561,10 +7698,10 @@ const ActionSheet = defineComponent({
7561
7698
  })]);
7562
7699
  }
7563
7700
  });
7564
- const container$k = "_container_g8jc8_2";
7701
+ const container$m = "_container_g8jc8_2";
7565
7702
  const primary = "_primary_g8jc8_24";
7566
7703
  const focus = "_focus_g8jc8_35";
7567
- const disabled$2 = "_disabled_g8jc8_41";
7704
+ const disabled$3 = "_disabled_g8jc8_41";
7568
7705
  const success = "_success_g8jc8_46";
7569
7706
  const warning$1 = "_warning_g8jc8_68";
7570
7707
  const danger = "_danger_g8jc8_90";
@@ -7581,10 +7718,10 @@ const bounce1 = "_bounce1_g8jc8_228";
7581
7718
  const bounce2 = "_bounce2_g8jc8_231";
7582
7719
  var styles$3 = {
7583
7720
  "ppmna-default-font": "_ppmna-default-font_g8jc8_1",
7584
- container: container$k,
7721
+ container: container$m,
7585
7722
  primary,
7586
7723
  focus,
7587
- disabled: disabled$2,
7724
+ disabled: disabled$3,
7588
7725
  success,
7589
7726
  warning: warning$1,
7590
7727
  danger,
@@ -7852,7 +7989,7 @@ const Input = defineComponent({
7852
7989
  }
7853
7990
  if (props.type === "number" || props.type === "digit") {
7854
7991
  const isNumber = props.type === "number";
7855
- value2 = formatNumber$3(value2, {
7992
+ value2 = formatNumber(value2, {
7856
7993
  allowDot: isNumber,
7857
7994
  allowMinus: isNumber
7858
7995
  });
@@ -19972,6 +20109,7 @@ const paypayRecWhite = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-pa
19972
20109
  const downArrow = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-arrow-down.svg";
19973
20110
  const bankIcon$1 = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/bank.svg";
19974
20111
  const confetti = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/animation/confetti.json";
20112
+ const payLater$1 = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/paylater.svg";
19975
20113
  var images = {
19976
20114
  iconBalanceError,
19977
20115
  animationDone,
@@ -20006,28 +20144,29 @@ var images = {
20006
20144
  paypayRecWhite,
20007
20145
  downArrow,
20008
20146
  bankIcon: bankIcon$1,
20009
- confetti
20147
+ confetti,
20148
+ payLater: payLater$1
20010
20149
  };
20011
20150
  function getImages() {
20012
20151
  return images;
20013
20152
  }
20014
20153
  const header$7 = "_header_319hz_1";
20015
- const container$j = "_container_319hz_11";
20154
+ const container$l = "_container_319hz_11";
20016
20155
  const paypayIcon = "_paypayIcon_319hz_19";
20017
- const rightAlign$1 = "_rightAlign_319hz_30";
20156
+ const rightAlign$2 = "_rightAlign_319hz_30";
20018
20157
  const storeName = "_storeName_319hz_38";
20019
20158
  const storeImage = "_storeImage_319hz_50";
20020
20159
  const title$8 = "_title_319hz_56";
20021
20160
  var styles$1 = {
20022
20161
  header: header$7,
20023
- container: container$j,
20162
+ container: container$l,
20024
20163
  paypayIcon,
20025
- rightAlign: rightAlign$1,
20164
+ rightAlign: rightAlign$2,
20026
20165
  storeName,
20027
20166
  storeImage,
20028
20167
  title: title$8
20029
20168
  };
20030
- const img$b = getImages();
20169
+ const img$c = getImages();
20031
20170
  const DesktopHeader = defineComponent({
20032
20171
  props: {
20033
20172
  class: {
@@ -20044,7 +20183,7 @@ const DesktopHeader = defineComponent({
20044
20183
  setup(props) {
20045
20184
  const appDtls = getAppDetail$1();
20046
20185
  const appDetail = appDtls ? JSON.parse(appDtls) : void 0;
20047
- const storeImage2 = (appDetail == null ? void 0 : appDetail.appLogo) || img$b.merchant;
20186
+ const storeImage2 = (appDetail == null ? void 0 : appDetail.appLogo) || img$c.merchant;
20048
20187
  const storeName2 = appDetail == null ? void 0 : appDetail.appName;
20049
20188
  return () => createVNode("div", {
20050
20189
  "class": `${styles$1.header} ${props.class}`
@@ -20069,7 +20208,7 @@ const breakDownList = "_breakDownList_crfwr_1";
20069
20208
  const breakDownEnter = "_breakDownEnter_crfwr_54";
20070
20209
  const breakDownIcon = "_breakDownIcon_crfwr_59";
20071
20210
  const breakDownIconReverse = "_breakDownIconReverse_crfwr_71";
20072
- var style0$L = {
20211
+ var style0$N = {
20073
20212
  breakDownList,
20074
20213
  "non-usable": "_non-usable_crfwr_17",
20075
20214
  "breakDownList-enter-active": "_breakDownList-enter-active_crfwr_35",
@@ -20089,10 +20228,7 @@ var _export_sfc = (sfc, props) => {
20089
20228
  }
20090
20229
  return target;
20091
20230
  };
20092
- function formatNumber$2(val2) {
20093
- return (val2 == null ? void 0 : val2.toLocaleString()) || "-";
20094
- }
20095
- const _sfc_main$$ = defineComponent({
20231
+ const _sfc_main$11 = defineComponent({
20096
20232
  props: {
20097
20233
  wallet: {
20098
20234
  type: Object,
@@ -20113,14 +20249,15 @@ const _sfc_main$$ = defineComponent({
20113
20249
  cashBackExpirableBalanceInfo
20114
20250
  } = ((_b = (_a = props == null ? void 0 : props.wallet) == null ? void 0 : _a.walletInfo) == null ? void 0 : _b.walletDetail) || {};
20115
20251
  return {
20116
- emoney: formatNumber$2(emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.balance),
20252
+ emoney: formatAmount(emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.balance),
20117
20253
  emoneyUsable: emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.usable,
20118
- prepaid: formatNumber$2(prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.balance),
20254
+ prepaid: formatAmount(prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.balance),
20119
20255
  prepaidUsable: prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.usable,
20120
- cashBack: formatNumber$2(cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.balance),
20256
+ cashBack: formatAmount(cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.balance),
20121
20257
  cashBackUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable,
20122
- cashBackExpirable: formatNumber$2(cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance),
20123
- cashBackExpirebleUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable
20258
+ cashBackExpirable: formatAmount(cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance),
20259
+ cashBackExpirebleUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable,
20260
+ showExpirableBalance: cashBackExpirableBalanceInfo && (cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance) > 0
20124
20261
  };
20125
20262
  });
20126
20263
  return {
@@ -20132,7 +20269,7 @@ const _sfc_main$$ = defineComponent({
20132
20269
  };
20133
20270
  }
20134
20271
  });
20135
- function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
20272
+ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
20136
20273
  return openBlock(), createElementBlock("div", null, [
20137
20274
  _ctx.walletDetail ? (openBlock(), createElementBlock("span", {
20138
20275
  key: 0,
@@ -20172,14 +20309,15 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
20172
20309
  class: normalizeClass({ "non-usable": !_ctx.walletDetail.cashBackUsable })
20173
20310
  }, [
20174
20311
  createBaseVNode("span", null, toDisplayString(_ctx.lg.wallet.cashBackUsable), 1),
20175
- createBaseVNode("span", null, toDisplayString(_ctx.walletDetail.cashBack) + "\u5186", 1)
20312
+ createBaseVNode("span", null, toDisplayString(_ctx.walletDetail.cashBack) + "pt", 1)
20176
20313
  ], 2),
20177
- createBaseVNode("li", {
20314
+ _ctx.walletDetail.showExpirableBalance ? (openBlock(), createElementBlock("li", {
20315
+ key: 0,
20178
20316
  class: normalizeClass({ "non-usable": !_ctx.walletDetail.cashBackExpirebleUsable })
20179
20317
  }, [
20180
20318
  createBaseVNode("span", null, toDisplayString(_ctx.lg.wallet.cashBackExpirable), 1),
20181
- createBaseVNode("span", null, toDisplayString(_ctx.walletDetail.cashBackExpirable) + "\u5186", 1)
20182
- ], 2)
20319
+ createBaseVNode("span", null, toDisplayString(_ctx.walletDetail.cashBackExpirable) + "pt", 1)
20320
+ ], 2)) : createCommentVNode("", true)
20183
20321
  ])
20184
20322
  ], 2)) : createCommentVNode("", true)
20185
20323
  ]),
@@ -20187,18 +20325,15 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
20187
20325
  }, 8, ["name"])
20188
20326
  ]);
20189
20327
  }
20190
- const cssModules$M = {};
20191
- cssModules$M["$style"] = style0$L;
20192
- var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__cssModules", cssModules$M]]);
20193
- const img$a = "_img_373i3_1";
20194
- var style0$K = {
20195
- img: img$a
20328
+ const cssModules$O = {};
20329
+ cssModules$O["$style"] = style0$N;
20330
+ var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__cssModules", cssModules$O]]);
20331
+ const img$b = "_img_373i3_1";
20332
+ var style0$M = {
20333
+ img: img$b
20196
20334
  };
20197
20335
  var Wallet_vue_vue_type_style_index_1_scoped_true_lang = "";
20198
- function formatNumber$1(val2) {
20199
- return (val2 == null ? void 0 : val2.toLocaleString()) || "-";
20200
- }
20201
- const _sfc_main$_ = defineComponent({
20336
+ const _sfc_main$10 = defineComponent({
20202
20337
  components: {
20203
20338
  WalletBreakdown
20204
20339
  },
@@ -20215,7 +20350,7 @@ const _sfc_main$_ = defineComponent({
20215
20350
  };
20216
20351
  const formattedBalance = computed(() => {
20217
20352
  var _a, _b, _c;
20218
- return formatNumber$1((_c = (_b = (_a = props.wallet.walletInfo) == null ? void 0 : _a.walletSummary) == null ? void 0 : _b.totalBalanceInfo) == null ? void 0 : _c.balance);
20353
+ return formatAmount((_c = (_b = (_a = props.wallet.walletInfo) == null ? void 0 : _a.walletSummary) == null ? void 0 : _b.totalBalanceInfo) == null ? void 0 : _c.balance);
20219
20354
  });
20220
20355
  const style = useCssModule();
20221
20356
  const walletDetail = computed(() => {
@@ -20227,13 +20362,13 @@ const _sfc_main$_ = defineComponent({
20227
20362
  cashBackExpirableBalanceInfo
20228
20363
  } = ((_b = (_a = props == null ? void 0 : props.wallet) == null ? void 0 : _a.walletInfo) == null ? void 0 : _b.walletDetail) || {};
20229
20364
  return {
20230
- emoney: formatNumber$1(emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.balance),
20365
+ emoney: formatAmount(emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.balance),
20231
20366
  emoneyUsable: emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.usable,
20232
- prepaid: formatNumber$1(prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.balance),
20367
+ prepaid: formatAmount(prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.balance),
20233
20368
  prepaidUsable: prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.usable,
20234
- cashBack: formatNumber$1(cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.balance),
20369
+ cashBack: formatAmount(cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.balance),
20235
20370
  cashBackUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable,
20236
- cashBackExpirable: formatNumber$1(cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance),
20371
+ cashBackExpirable: formatAmount(cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance),
20237
20372
  cashBackExpirebleUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable
20238
20373
  };
20239
20374
  });
@@ -20248,20 +20383,20 @@ const _sfc_main$_ = defineComponent({
20248
20383
  };
20249
20384
  }
20250
20385
  });
20251
- const _hoisted_1$F = { class: "payment-method--content-container" };
20386
+ const _hoisted_1$H = { class: "payment-method--content-container" };
20252
20387
  const _hoisted_2$q = { class: "payment-method--content-container--image-container" };
20253
- const _hoisted_3$k = ["src"];
20388
+ const _hoisted_3$l = ["src"];
20254
20389
  const _hoisted_4$h = { class: "payment-method--content-container--label" };
20255
20390
  const _hoisted_5$d = { class: "payment-method--content-container--label--main" };
20256
20391
  const _hoisted_6$6 = { class: "payment-method--content-container--label--sub" };
20257
- function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
20392
+ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
20258
20393
  const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
20259
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
20394
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
20260
20395
  createBaseVNode("div", _hoisted_2$q, [
20261
20396
  createBaseVNode("img", {
20262
20397
  class: normalizeClass(_ctx.style.img),
20263
20398
  src: _ctx.images.iconBalanceIcon
20264
- }, null, 10, _hoisted_3$k)
20399
+ }, null, 10, _hoisted_3$l)
20265
20400
  ]),
20266
20401
  createBaseVNode("div", _hoisted_4$h, [
20267
20402
  createBaseVNode("span", _hoisted_5$d, toDisplayString(_ctx.lg.wallet.title), 1),
@@ -20270,10 +20405,10 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
20270
20405
  ])
20271
20406
  ]);
20272
20407
  }
20273
- const cssModules$L = {};
20274
- cssModules$L["$style"] = style0$K;
20275
- var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__cssModules", cssModules$L], ["__scopeId", "data-v-4d07ad64"]]);
20276
- const img$9 = "_img_p3zha_1";
20408
+ const cssModules$N = {};
20409
+ cssModules$N["$style"] = style0$M;
20410
+ var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__cssModules", cssModules$N], ["__scopeId", "data-v-e0654490"]]);
20411
+ const img$a = "_img_p3zha_1";
20277
20412
  const round$2 = "_round_p3zha_5";
20278
20413
  const nonVisible$1 = "_nonVisible_p3zha_8";
20279
20414
  const creditCardLabel = "_creditCardLabel_p3zha_11";
@@ -20286,8 +20421,8 @@ const creditCard$1 = "_creditCard_p3zha_11";
20286
20421
  const maintainanceInfo$2 = "_maintainanceInfo_p3zha_39";
20287
20422
  const paymentInfo$2 = "_paymentInfo_p3zha_45";
20288
20423
  const fullWidth$1 = "_fullWidth_p3zha_48";
20289
- var style0$J = {
20290
- img: img$9,
20424
+ var style0$L = {
20425
+ img: img$a,
20291
20426
  round: round$2,
20292
20427
  nonVisible: nonVisible$1,
20293
20428
  creditCardLabel,
@@ -20302,14 +20437,14 @@ var style0$J = {
20302
20437
  fullWidth: fullWidth$1
20303
20438
  };
20304
20439
  var CreditCard_vue_vue_type_style_index_1_scoped_true_lang$1 = "";
20305
- const img$8 = getImages();
20440
+ const img$9 = getImages();
20306
20441
  const creditCardMap$1 = {
20307
- [CreditTypes.JCB]: img$8.jcb,
20308
- [CreditTypes.VISA]: img$8.visa,
20309
- [CreditTypes.MASTER]: img$8.master,
20310
- [CreditTypes.AMEX]: img$8.amex
20442
+ [CreditTypes.JCB]: img$9.jcb,
20443
+ [CreditTypes.VISA]: img$9.visa,
20444
+ [CreditTypes.MASTER]: img$9.master,
20445
+ [CreditTypes.AMEX]: img$9.amex
20311
20446
  };
20312
- const _sfc_main$Z = defineComponent({
20447
+ const _sfc_main$$ = defineComponent({
20313
20448
  components: {
20314
20449
  Button
20315
20450
  },
@@ -20348,14 +20483,14 @@ const _sfc_main$Z = defineComponent({
20348
20483
  if (authenticated2)
20349
20484
  return {
20350
20485
  authenticated: true,
20351
- img: img$8.checkGreen,
20486
+ img: img$9.checkGreen,
20352
20487
  text: getLanguage().paymentMethod.checkGreen,
20353
20488
  imgStyle: style.authorizedImg,
20354
20489
  style: style.authorized
20355
20490
  };
20356
20491
  return {
20357
20492
  authenticated: false,
20358
- img: img$8.iconAlert,
20493
+ img: img$9.iconAlert,
20359
20494
  text: getLanguage().paymentMethod.authenticated,
20360
20495
  style: style.unAuthorized,
20361
20496
  imgStyle: style.unAuthorizedImg
@@ -20366,13 +20501,13 @@ const _sfc_main$Z = defineComponent({
20366
20501
  if (isPPCard.value) {
20367
20502
  return {
20368
20503
  title: getLanguage().paymentMethod.ppCardTitle,
20369
- logo: img$8.ppCard,
20504
+ logo: img$9.ppCard,
20370
20505
  style: props.round ? style.round : ""
20371
20506
  };
20372
20507
  } else if (isYjCard.value) {
20373
20508
  return {
20374
20509
  title: getLanguage().paymentMethod.yjTitle,
20375
- logo: img$8.yahoo,
20510
+ logo: img$9.yahoo,
20376
20511
  style: props.round ? style.round : ""
20377
20512
  };
20378
20513
  }
@@ -20410,12 +20545,12 @@ const _sfc_main$Z = defineComponent({
20410
20545
  };
20411
20546
  }
20412
20547
  });
20413
- const _hoisted_1$E = ["src"];
20548
+ const _hoisted_1$G = ["src"];
20414
20549
  const _hoisted_2$p = { class: "payment-method--content-container--label--main" };
20415
- const _hoisted_3$j = { class: "payment-method--content-container--label--sub" };
20550
+ const _hoisted_3$k = { class: "payment-method--content-container--label--sub" };
20416
20551
  const _hoisted_4$g = ["src"];
20417
20552
  const _hoisted_5$c = { class: "right-align" };
20418
- function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
20553
+ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
20419
20554
  const _component_Button = resolveComponent("Button");
20420
20555
  return openBlock(), createElementBlock("div", {
20421
20556
  class: normalizeClass(["payment-method--content-container", _ctx.getClass])
@@ -20427,7 +20562,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
20427
20562
  createBaseVNode("img", {
20428
20563
  src: _ctx.cardInfo.logo,
20429
20564
  class: normalizeClass([_ctx.style.img, _ctx.cardInfo.style])
20430
- }, null, 10, _hoisted_1$E)
20565
+ }, null, 10, _hoisted_1$G)
20431
20566
  ], 2)
20432
20567
  ]),
20433
20568
  createBaseVNode("div", {
@@ -20440,7 +20575,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
20440
20575
  class: normalizeClass(["payment-method--content-container--label", _ctx.style.creditCardLabel])
20441
20576
  }, [
20442
20577
  createBaseVNode("span", _hoisted_2$p, toDisplayString(_ctx.cardInfo.title), 1),
20443
- createBaseVNode("span", _hoisted_3$j, " **** " + toDisplayString(_ctx.last4digits), 1),
20578
+ createBaseVNode("span", _hoisted_3$k, " **** " + toDisplayString(_ctx.last4digits), 1),
20444
20579
  createBaseVNode("div", {
20445
20580
  class: normalizeClass([_ctx.style.authenticateStatusContainer, _ctx.authInfo.style])
20446
20581
  }, [
@@ -20473,17 +20608,17 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
20473
20608
  ], 2)
20474
20609
  ], 2);
20475
20610
  }
20476
- const cssModules$K = {};
20477
- cssModules$K["$style"] = style0$J;
20478
- var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__cssModules", cssModules$K], ["__scopeId", "data-v-4589c43a"]]);
20479
- const img$7 = "_img_11k9z_1";
20611
+ const cssModules$M = {};
20612
+ cssModules$M["$style"] = style0$L;
20613
+ var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__cssModules", cssModules$M], ["__scopeId", "data-v-4589c43a"]]);
20614
+ const img$8 = "_img_11k9z_1";
20480
20615
  const round$1 = "_round_11k9z_5";
20481
20616
  const branchNumber = "_branchNumber_11k9z_8";
20482
20617
  const maintainanceInfo$1 = "_maintainanceInfo_11k9z_14";
20483
20618
  const paymentInfo$1 = "_paymentInfo_11k9z_20";
20484
20619
  const fullWidth = "_fullWidth_11k9z_23";
20485
- var style0$I = {
20486
- img: img$7,
20620
+ var style0$K = {
20621
+ img: img$8,
20487
20622
  round: round$1,
20488
20623
  branchNumber,
20489
20624
  maintainanceInfo: maintainanceInfo$1,
@@ -20500,7 +20635,7 @@ const getTypeText$1 = (val2) => {
20500
20635
  return "";
20501
20636
  }
20502
20637
  };
20503
- const _sfc_main$Y = defineComponent({
20638
+ const _sfc_main$_ = defineComponent({
20504
20639
  components: {
20505
20640
  Button
20506
20641
  },
@@ -20556,15 +20691,15 @@ const _sfc_main$Y = defineComponent({
20556
20691
  };
20557
20692
  }
20558
20693
  });
20559
- const _hoisted_1$D = ["src"];
20694
+ const _hoisted_1$F = ["src"];
20560
20695
  const _hoisted_2$o = { class: "payment-method--content-container--label" };
20561
- const _hoisted_3$i = { class: "payment-method--content-container--label--main" };
20696
+ const _hoisted_3$j = { class: "payment-method--content-container--label--main" };
20562
20697
  const _hoisted_4$f = {
20563
20698
  key: 0,
20564
20699
  class: "payment-method--content-container--label--sub"
20565
20700
  };
20566
20701
  const _hoisted_5$b = { class: "right-align" };
20567
- function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
20702
+ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
20568
20703
  const _component_Button = resolveComponent("Button");
20569
20704
  return openBlock(), createElementBlock("div", {
20570
20705
  class: normalizeClass(["payment-method--content-container", _ctx.getClass])
@@ -20576,7 +20711,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
20576
20711
  createBaseVNode("img", {
20577
20712
  class: normalizeClass([_ctx.style.img, { [_ctx.style.round]: _ctx.round }]),
20578
20713
  src: _ctx.bankInfo.logo
20579
- }, null, 10, _hoisted_1$D)
20714
+ }, null, 10, _hoisted_1$F)
20580
20715
  ], 2)
20581
20716
  ]),
20582
20717
  createBaseVNode("div", {
@@ -20586,7 +20721,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
20586
20721
  class: normalizeClass(_ctx.style.paymentInfo)
20587
20722
  }, [
20588
20723
  createBaseVNode("div", _hoisted_2$o, [
20589
- createBaseVNode("div", _hoisted_3$i, toDisplayString(_ctx.bankInfo.name), 1),
20724
+ createBaseVNode("div", _hoisted_3$j, toDisplayString(_ctx.bankInfo.name), 1),
20590
20725
  !!_ctx.bankInfo.branchName ? (openBlock(), createElementBlock("div", _hoisted_4$f, toDisplayString(_ctx.bankInfo.branchName), 1)) : createCommentVNode("", true),
20591
20726
  createBaseVNode("div", null, [
20592
20727
  createBaseVNode("span", {
@@ -20616,12 +20751,12 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
20616
20751
  ], 2)
20617
20752
  ], 2);
20618
20753
  }
20619
- const cssModules$J = {};
20620
- cssModules$J["$style"] = style0$I;
20621
- var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__cssModules", cssModules$J]]);
20622
- const container$i = "_container_82o6p_1";
20754
+ const cssModules$L = {};
20755
+ cssModules$L["$style"] = style0$K;
20756
+ var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__cssModules", cssModules$L]]);
20757
+ const container$k = "_container_82o6p_1";
20623
20758
  const imageContainer$1 = "_imageContainer_82o6p_7";
20624
- const img$6 = "_img_82o6p_11";
20759
+ const img$7 = "_img_82o6p_11";
20625
20760
  const content$9 = "_content_82o6p_15";
20626
20761
  const paymentInfo = "_paymentInfo_82o6p_19";
20627
20762
  const paymentDesc = "_paymentDesc_82o6p_23";
@@ -20630,11 +20765,11 @@ const subDesc = "_subDesc_82o6p_34";
20630
20765
  const disable = "_disable_82o6p_40";
20631
20766
  const centerAlign = "_centerAlign_82o6p_46";
20632
20767
  const maintainanceInfo = "_maintainanceInfo_82o6p_49";
20633
- const invalid = "_invalid_82o6p_55";
20634
- var style0$H = {
20635
- container: container$i,
20768
+ const invalid$1 = "_invalid_82o6p_55";
20769
+ var style0$J = {
20770
+ container: container$k,
20636
20771
  imageContainer: imageContainer$1,
20637
- img: img$6,
20772
+ img: img$7,
20638
20773
  content: content$9,
20639
20774
  paymentInfo,
20640
20775
  paymentDesc,
@@ -20643,9 +20778,9 @@ var style0$H = {
20643
20778
  disable,
20644
20779
  centerAlign,
20645
20780
  maintainanceInfo,
20646
- invalid
20781
+ invalid: invalid$1
20647
20782
  };
20648
- const _sfc_main$X = defineComponent({
20783
+ const _sfc_main$Z = defineComponent({
20649
20784
  components: {
20650
20785
  Button
20651
20786
  },
@@ -20678,8 +20813,8 @@ const _sfc_main$X = defineComponent({
20678
20813
  };
20679
20814
  }
20680
20815
  });
20681
- const _hoisted_1$C = ["src"];
20682
- function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
20816
+ const _hoisted_1$E = ["src"];
20817
+ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
20683
20818
  const _component_Button = resolveComponent("Button");
20684
20819
  return openBlock(), createElementBlock("div", {
20685
20820
  class: normalizeClass([_ctx.style.container, _ctx.getClass, _ctx.isDisable ? _ctx.style.centerAlign : ""])
@@ -20690,7 +20825,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
20690
20825
  createBaseVNode("img", {
20691
20826
  class: normalizeClass(_ctx.style.img),
20692
20827
  src: _ctx.images.softbank
20693
- }, null, 10, _hoisted_1$C)
20828
+ }, null, 10, _hoisted_1$E)
20694
20829
  ], 2),
20695
20830
  createBaseVNode("div", {
20696
20831
  class: normalizeClass(_ctx.style.content)
@@ -20734,9 +20869,104 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
20734
20869
  ], 2)
20735
20870
  ], 2);
20736
20871
  }
20737
- const cssModules$I = {};
20738
- cssModules$I["$style"] = style0$H;
20739
- var Sbid = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__cssModules", cssModules$I]]);
20872
+ const cssModules$K = {};
20873
+ cssModules$K["$style"] = style0$J;
20874
+ var Sbid = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__cssModules", cssModules$K]]);
20875
+ const img$6 = "_img_m6p0b_1";
20876
+ const container$j = "_container_m6p0b_5";
20877
+ const imgContainer$2 = "_imgContainer_m6p0b_10";
20878
+ const labelContainer = "_labelContainer_m6p0b_20";
20879
+ const mainLabel = "_mainLabel_m6p0b_27";
20880
+ const subLabel = "_subLabel_m6p0b_34";
20881
+ const disabled$2 = "_disabled_m6p0b_40";
20882
+ const rightAlign$1 = "_rightAlign_m6p0b_46";
20883
+ const invalid = "_invalid_m6p0b_50";
20884
+ var style0$I = {
20885
+ img: img$6,
20886
+ container: container$j,
20887
+ imgContainer: imgContainer$2,
20888
+ labelContainer,
20889
+ mainLabel,
20890
+ subLabel,
20891
+ disabled: disabled$2,
20892
+ rightAlign: rightAlign$1,
20893
+ invalid
20894
+ };
20895
+ const _sfc_main$Y = defineComponent({
20896
+ components: {
20897
+ Button
20898
+ },
20899
+ props: {
20900
+ payLater: {
20901
+ type: Object,
20902
+ required: true
20903
+ }
20904
+ },
20905
+ setup(props) {
20906
+ var _a, _b;
20907
+ return {
20908
+ formattedBalance: computed(() => {
20909
+ var _a2, _b2;
20910
+ return formatAmount((_b2 = (_a2 = props.payLater) == null ? void 0 : _a2.payLaterCcInfo) == null ? void 0 : _b2.availableAmount);
20911
+ }),
20912
+ isDisable: ((_b = (_a = props == null ? void 0 : props.payLater) == null ? void 0 : _a.payLaterCcInfo) == null ? void 0 : _b.paymentMethodStatus) !== PaymentMethodStatus.ACTIVATED,
20913
+ images: getImages(),
20914
+ lg: getLanguage(),
20915
+ paymentMethodStatusText: computed(() => {
20916
+ var _a2, _b2;
20917
+ return getPaymentMethodStatus(false, (_b2 = (_a2 = props == null ? void 0 : props.payLater) == null ? void 0 : _a2.payLaterCcInfo) == null ? void 0 : _b2.paymentMethodStatus);
20918
+ })
20919
+ };
20920
+ }
20921
+ });
20922
+ const _hoisted_1$D = ["src"];
20923
+ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
20924
+ const _component_Button = resolveComponent("Button");
20925
+ return openBlock(), createElementBlock("div", {
20926
+ class: normalizeClass({
20927
+ [_ctx.$style.disabled]: _ctx.isDisable,
20928
+ [_ctx.$style.container]: true
20929
+ })
20930
+ }, [
20931
+ createBaseVNode("div", {
20932
+ class: normalizeClass(_ctx.$style.imgContainer)
20933
+ }, [
20934
+ createBaseVNode("img", {
20935
+ class: normalizeClass(_ctx.$style.img),
20936
+ src: _ctx.images.payLater
20937
+ }, null, 10, _hoisted_1$D)
20938
+ ], 2),
20939
+ createBaseVNode("div", {
20940
+ class: normalizeClass(_ctx.$style.labelContainer)
20941
+ }, [
20942
+ createBaseVNode("span", {
20943
+ class: normalizeClass(_ctx.$style.mainLabel)
20944
+ }, toDisplayString(_ctx.lg.payLater.title), 3),
20945
+ createBaseVNode("span", {
20946
+ class: normalizeClass(_ctx.$style.subLabel)
20947
+ }, toDisplayString(_ctx.lg.payLater.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 3)
20948
+ ], 2),
20949
+ createBaseVNode("span", {
20950
+ class: normalizeClass(_ctx.$style.rightAlign)
20951
+ }, [
20952
+ _ctx.isDisable ? (openBlock(), createBlock(_component_Button, {
20953
+ key: 0,
20954
+ disabled: true,
20955
+ class: normalizeClass(_ctx.$style.invalid),
20956
+ size: "small",
20957
+ type: "default"
20958
+ }, {
20959
+ default: withCtx(() => [
20960
+ createTextVNode(toDisplayString(_ctx.paymentMethodStatusText), 1)
20961
+ ]),
20962
+ _: 1
20963
+ }, 8, ["class"])) : createCommentVNode("", true)
20964
+ ], 2)
20965
+ ], 2);
20966
+ }
20967
+ const cssModules$J = {};
20968
+ cssModules$J["$style"] = style0$I;
20969
+ var PayLaterCC = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__cssModules", cssModules$J]]);
20740
20970
  const PaymentMethod = defineComponent({
20741
20971
  props: {
20742
20972
  paymentMethod: {
@@ -20747,7 +20977,7 @@ const PaymentMethod = defineComponent({
20747
20977
  }
20748
20978
  },
20749
20979
  render() {
20750
- var _a, _b, _c, _d, _e;
20980
+ var _a, _b, _c, _d, _e, _f;
20751
20981
  if (((_a = this.paymentMethod) == null ? void 0 : _a.paymentMethodType) === PaymentMethodType.WALLET) {
20752
20982
  return createVNode(Wallet, {
20753
20983
  "wallet": this.paymentMethod
@@ -20769,6 +20999,11 @@ const PaymentMethod = defineComponent({
20769
20999
  "sbid": this.paymentMethod
20770
21000
  }, null);
20771
21001
  }
21002
+ if (((_f = this.paymentMethod) == null ? void 0 : _f.paymentMethodType) === PaymentMethodType.PAY_LATER_CC) {
21003
+ return createVNode(PayLaterCC, {
21004
+ "payLater": this.paymentMethod
21005
+ }, null);
21006
+ }
20772
21007
  return null;
20773
21008
  }
20774
21009
  });
@@ -20832,10 +21067,7 @@ function useBreakpoints() {
20832
21067
  };
20833
21068
  }
20834
21069
  var Wallet_vue_vue_type_style_index_0_scoped_true_lang = "";
20835
- function formatNumber(val2) {
20836
- return (val2 == null ? void 0 : val2.toLocaleString()) || "-";
20837
- }
20838
- const _sfc_main$W = defineComponent({
21070
+ const _sfc_main$X = defineComponent({
20839
21071
  components: {
20840
21072
  WalletBreakdown
20841
21073
  },
@@ -20848,7 +21080,7 @@ const _sfc_main$W = defineComponent({
20848
21080
  setup(props) {
20849
21081
  const formattedBalance = computed(() => {
20850
21082
  var _a, _b, _c, _d;
20851
- 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);
21083
+ 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);
20852
21084
  });
20853
21085
  const { isDesktop } = useBreakpoints();
20854
21086
  return {
@@ -20859,17 +21091,17 @@ const _sfc_main$W = defineComponent({
20859
21091
  };
20860
21092
  }
20861
21093
  });
20862
- const _withScopeId$3 = (n) => (pushScopeId("data-v-095c3786"), n = n(), popScopeId(), n);
20863
- const _hoisted_1$B = { class: "ppmna-payment-type--container bank-method--right-align" };
21094
+ const _withScopeId$3 = (n) => (pushScopeId("data-v-1405076b"), n = n(), popScopeId(), n);
21095
+ const _hoisted_1$C = { class: "ppmna-payment-type--container bank-method--right-align" };
20864
21096
  const _hoisted_2$n = ["src"];
20865
- const _hoisted_3$h = { class: "ppmna-payment-type--container--main" };
21097
+ const _hoisted_3$i = { class: "ppmna-payment-type--container--main" };
20866
21098
  const _hoisted_4$e = { class: "ppmna-payment-type--container--sub" };
20867
21099
  const _hoisted_5$a = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createBaseVNode("div", { class: "payment-type--arrow-right-container" }, [
20868
21100
  /* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
20869
21101
  ], -1));
20870
- function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
21102
+ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
20871
21103
  const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
20872
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
21104
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
20873
21105
  createBaseVNode("div", null, [
20874
21106
  createBaseVNode("img", {
20875
21107
  src: _ctx.images.iconBalanceIcon,
@@ -20877,7 +21109,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
20877
21109
  }, null, 8, _hoisted_2$n)
20878
21110
  ]),
20879
21111
  createBaseVNode("div", null, [
20880
- createBaseVNode("div", _hoisted_3$h, toDisplayString(_ctx.lg.wallet.title), 1),
21112
+ createBaseVNode("div", _hoisted_3$i, toDisplayString(_ctx.lg.wallet.title), 1),
20881
21113
  createBaseVNode("div", _hoisted_4$e, toDisplayString(_ctx.lg.wallet.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 1),
20882
21114
  _ctx.isDesktop ? (openBlock(), createBlock(_component_WalletBreakdown, {
20883
21115
  key: 0,
@@ -20887,12 +21119,12 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
20887
21119
  _hoisted_5$a
20888
21120
  ]);
20889
21121
  }
20890
- var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__scopeId", "data-v-095c3786"]]);
21122
+ var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__scopeId", "data-v-1405076b"]]);
20891
21123
  const main = "_main_1rgsx_1";
20892
21124
  const auth = "_auth_1rgsx_6";
20893
21125
  const authImage = "_authImage_1rgsx_11";
20894
21126
  const authText = "_authText_1rgsx_14";
20895
- const imgContainer = "_imgContainer_1rgsx_18";
21127
+ const imgContainer$1 = "_imgContainer_1rgsx_18";
20896
21128
  const img$5 = "_img_1rgsx_18";
20897
21129
  const content$8 = "_content_1rgsx_25";
20898
21130
  const authenticated = "_authenticated_1rgsx_30";
@@ -20900,12 +21132,12 @@ const notAuthenticated = "_notAuthenticated_1rgsx_33";
20900
21132
  const authorizedImg = "_authorizedImg_1rgsx_36";
20901
21133
  const unAuthorizedImg = "_unAuthorizedImg_1rgsx_40";
20902
21134
  const creditCard = "_creditCard_1rgsx_43";
20903
- var style0$G = {
21135
+ var style0$H = {
20904
21136
  main,
20905
21137
  auth,
20906
21138
  authImage,
20907
21139
  authText,
20908
- imgContainer,
21140
+ imgContainer: imgContainer$1,
20909
21141
  img: img$5,
20910
21142
  content: content$8,
20911
21143
  authenticated,
@@ -20923,7 +21155,7 @@ const creditCardMap = {
20923
21155
  [CreditTypes.AMEX]: img$4.amex,
20924
21156
  yj: img$4.yahoo
20925
21157
  };
20926
- const _sfc_main$V = defineComponent({
21158
+ const _sfc_main$W = defineComponent({
20927
21159
  props: {
20928
21160
  credit: {
20929
21161
  type: Object,
@@ -20989,15 +21221,15 @@ const _sfc_main$V = defineComponent({
20989
21221
  }
20990
21222
  });
20991
21223
  const _withScopeId$2 = (n) => (pushScopeId("data-v-609b4d94"), n = n(), popScopeId(), n);
20992
- const _hoisted_1$A = { class: "ppmna-payment-type--container" };
21224
+ const _hoisted_1$B = { class: "ppmna-payment-type--container" };
20993
21225
  const _hoisted_2$m = ["src"];
20994
- const _hoisted_3$g = { class: "ppmna-payment-type--container--sub" };
21226
+ const _hoisted_3$h = { class: "ppmna-payment-type--container--sub" };
20995
21227
  const _hoisted_4$d = ["src"];
20996
21228
  const _hoisted_5$9 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createBaseVNode("div", { class: "payment-type--arrow-right-container" }, [
20997
21229
  /* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
20998
21230
  ], -1));
20999
- function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
21000
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
21231
+ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
21232
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
21001
21233
  createBaseVNode("div", {
21002
21234
  class: normalizeClass(["ppmna-payment-type--container--img-container", _ctx.style.imgContainer])
21003
21235
  }, [
@@ -21013,7 +21245,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
21013
21245
  createBaseVNode("div", {
21014
21246
  class: normalizeClass(_ctx.style.main)
21015
21247
  }, toDisplayString(_ctx.creditInfo.label), 3),
21016
- createBaseVNode("div", _hoisted_3$g, " **** " + toDisplayString(_ctx.last4digits), 1),
21248
+ createBaseVNode("div", _hoisted_3$h, " **** " + toDisplayString(_ctx.last4digits), 1),
21017
21249
  createBaseVNode("span", {
21018
21250
  class: normalizeClass([_ctx.style.auth, _ctx.authInfo.style])
21019
21251
  }, [
@@ -21029,16 +21261,16 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
21029
21261
  _hoisted_5$9
21030
21262
  ]);
21031
21263
  }
21032
- const cssModules$H = {};
21033
- cssModules$H["$style"] = style0$G;
21034
- var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V], ["__cssModules", cssModules$H], ["__scopeId", "data-v-609b4d94"]]);
21264
+ const cssModules$I = {};
21265
+ cssModules$I["$style"] = style0$H;
21266
+ var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__cssModules", cssModules$I], ["__scopeId", "data-v-609b4d94"]]);
21035
21267
  const img$3 = "_img_1c6xt_1";
21036
21268
  const branchCode = "_branchCode_1c6xt_5";
21037
21269
  const content$7 = "_content_1c6xt_8";
21038
21270
  const roundContainer = "_roundContainer_1c6xt_12";
21039
21271
  const round = "_round_1c6xt_12";
21040
21272
  const bankName = "_bankName_1c6xt_18";
21041
- var style0$F = {
21273
+ var style0$G = {
21042
21274
  img: img$3,
21043
21275
  branchCode,
21044
21276
  content: content$7,
@@ -21056,7 +21288,7 @@ const getTypeText = (val2) => {
21056
21288
  return "";
21057
21289
  }
21058
21290
  };
21059
- const _sfc_main$U = defineComponent({
21291
+ const _sfc_main$V = defineComponent({
21060
21292
  props: {
21061
21293
  bank: {
21062
21294
  type: Object,
@@ -21096,14 +21328,14 @@ const _sfc_main$U = defineComponent({
21096
21328
  }
21097
21329
  });
21098
21330
  const _withScopeId$1 = (n) => (pushScopeId("data-v-5068d8d6"), n = n(), popScopeId(), n);
21099
- const _hoisted_1$z = { class: "ppmna-payment-type--container" };
21331
+ const _hoisted_1$A = { class: "ppmna-payment-type--container" };
21100
21332
  const _hoisted_2$l = ["src"];
21101
- const _hoisted_3$f = { class: "ppmna-payment-type--container--sub" };
21333
+ const _hoisted_3$g = { class: "ppmna-payment-type--container--sub" };
21102
21334
  const _hoisted_4$c = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createBaseVNode("span", { class: "payment-type--arrow-right-container" }, [
21103
21335
  /* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
21104
21336
  ], -1));
21105
- function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
21106
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
21337
+ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
21338
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
21107
21339
  createBaseVNode("div", {
21108
21340
  class: normalizeClass(["ppmna-payment-type--container--img-container", {
21109
21341
  "round-style-payment-type": _ctx.round,
@@ -21121,7 +21353,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
21121
21353
  createBaseVNode("div", {
21122
21354
  class: normalizeClass(_ctx.style.bankName)
21123
21355
  }, toDisplayString(_ctx.bankInfo.name), 3),
21124
- createBaseVNode("div", _hoisted_3$f, toDisplayString(_ctx.bankInfo.branchName), 1),
21356
+ createBaseVNode("div", _hoisted_3$g, toDisplayString(_ctx.bankInfo.branchName), 1),
21125
21357
  createBaseVNode("div", {
21126
21358
  class: normalizeClass(_ctx.style.branchCode)
21127
21359
  }, toDisplayString(`${_ctx.bankInfo.branchCode} *****${_ctx.bankInfo.digits}`), 3)
@@ -21129,17 +21361,17 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
21129
21361
  _hoisted_4$c
21130
21362
  ]);
21131
21363
  }
21132
- const cssModules$G = {};
21133
- cssModules$G["$style"] = style0$F;
21134
- var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U], ["__cssModules", cssModules$G], ["__scopeId", "data-v-5068d8d6"]]);
21135
- const container$h = "_container_18bci_1";
21364
+ const cssModules$H = {};
21365
+ cssModules$H["$style"] = style0$G;
21366
+ var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V], ["__cssModules", cssModules$H], ["__scopeId", "data-v-5068d8d6"]]);
21367
+ const container$i = "_container_18bci_1";
21136
21368
  const imageContainer = "_imageContainer_18bci_14";
21137
21369
  const img$2 = "_img_18bci_18";
21138
21370
  const content$6 = "_content_18bci_22";
21139
21371
  const desc1 = "_desc1_18bci_26";
21140
21372
  const desc2 = "_desc2_18bci_30";
21141
- var style0$E = {
21142
- container: container$h,
21373
+ var style0$F = {
21374
+ container: container$i,
21143
21375
  imageContainer,
21144
21376
  img: img$2,
21145
21377
  content: content$6,
@@ -21147,7 +21379,7 @@ var style0$E = {
21147
21379
  desc2
21148
21380
  };
21149
21381
  var Sbid_vue_vue_type_style_index_1_scoped_true_lang = "";
21150
- const _sfc_main$T = defineComponent({
21382
+ const _sfc_main$U = defineComponent({
21151
21383
  props: {
21152
21384
  sbid: {
21153
21385
  type: Object,
@@ -21170,11 +21402,11 @@ const _sfc_main$T = defineComponent({
21170
21402
  }
21171
21403
  });
21172
21404
  const _withScopeId = (n) => (pushScopeId("data-v-19a611be"), n = n(), popScopeId(), n);
21173
- const _hoisted_1$y = ["src"];
21405
+ const _hoisted_1$z = ["src"];
21174
21406
  const _hoisted_2$k = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("span", { class: "payment-type--arrow-right-container" }, [
21175
21407
  /* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
21176
21408
  ], -1));
21177
- function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
21409
+ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
21178
21410
  return openBlock(), createElementBlock("div", {
21179
21411
  class: normalizeClass(_ctx.$style.container)
21180
21412
  }, [
@@ -21184,7 +21416,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
21184
21416
  createBaseVNode("img", {
21185
21417
  class: normalizeClass(_ctx.$style.img),
21186
21418
  src: _ctx.images.softbank
21187
- }, null, 10, _hoisted_1$y)
21419
+ }, null, 10, _hoisted_1$z)
21188
21420
  ], 2),
21189
21421
  createBaseVNode("span", {
21190
21422
  class: normalizeClass(_ctx.$style.content)
@@ -21199,9 +21431,72 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
21199
21431
  _hoisted_2$k
21200
21432
  ], 2);
21201
21433
  }
21434
+ const cssModules$G = {};
21435
+ cssModules$G["$style"] = style0$F;
21436
+ var SbidType = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U], ["__cssModules", cssModules$G], ["__scopeId", "data-v-19a611be"]]);
21437
+ const container$h = "_container_1ebh4_1";
21438
+ const imgContainer = "_imgContainer_1ebh4_17";
21439
+ const mainContainer = "_mainContainer_1ebh4_25";
21440
+ const subContainer$1 = "_subContainer_1ebh4_31";
21441
+ const arrowContainer$2 = "_arrowContainer_1ebh4_35";
21442
+ const arrow$3 = "_arrow_1ebh4_35";
21443
+ var style0$E = {
21444
+ container: container$h,
21445
+ imgContainer,
21446
+ mainContainer,
21447
+ subContainer: subContainer$1,
21448
+ arrowContainer: arrowContainer$2,
21449
+ arrow: arrow$3
21450
+ };
21451
+ const _sfc_main$T = defineComponent({
21452
+ props: {
21453
+ payLater: {
21454
+ type: Object,
21455
+ required: true
21456
+ }
21457
+ },
21458
+ setup(props) {
21459
+ return {
21460
+ formattedBalance: computed(() => {
21461
+ var _a, _b;
21462
+ return formatAmount((_b = (_a = props == null ? void 0 : props.payLater) == null ? void 0 : _a.payLaterCcInfo) == null ? void 0 : _b.availableAmount);
21463
+ }),
21464
+ images: getImages(),
21465
+ lg: getLanguage()
21466
+ };
21467
+ }
21468
+ });
21469
+ const _hoisted_1$y = ["src"];
21470
+ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
21471
+ return openBlock(), createElementBlock("div", {
21472
+ class: normalizeClass(_ctx.$style.container)
21473
+ }, [
21474
+ createBaseVNode("div", null, [
21475
+ createBaseVNode("img", {
21476
+ src: _ctx.images.payLater,
21477
+ class: normalizeClass(_ctx.$style.imgContainer)
21478
+ }, null, 10, _hoisted_1$y)
21479
+ ]),
21480
+ createBaseVNode("div", null, [
21481
+ createBaseVNode("div", {
21482
+ class: normalizeClass(_ctx.$style.mainContainer)
21483
+ }, toDisplayString(_ctx.lg.payLater.title), 3),
21484
+ createBaseVNode("div", {
21485
+ class: normalizeClass(_ctx.$style.subContainer)
21486
+ }, toDisplayString(_ctx.lg.payLater.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 3)
21487
+ ]),
21488
+ createBaseVNode("div", {
21489
+ class: normalizeClass(_ctx.$style.arrowContainer)
21490
+ }, [
21491
+ createBaseVNode("i", {
21492
+ class: normalizeClass(_ctx.$style.arrow)
21493
+ }, null, 2)
21494
+ ], 2)
21495
+ ], 2);
21496
+ }
21202
21497
  const cssModules$F = {};
21203
21498
  cssModules$F["$style"] = style0$E;
21204
- var SbidType = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T], ["__cssModules", cssModules$F], ["__scopeId", "data-v-19a611be"]]);
21499
+ var PayLaterType = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T], ["__cssModules", cssModules$F]]);
21205
21500
  const PaymentType = defineComponent({
21206
21501
  props: {
21207
21502
  paymentMethod: {
@@ -21213,6 +21508,7 @@ const PaymentType = defineComponent({
21213
21508
  }
21214
21509
  },
21215
21510
  render() {
21511
+ var _a;
21216
21512
  const paymentMethod2 = this.paymentMethod;
21217
21513
  if ((paymentMethod2 == null ? void 0 : paymentMethod2.paymentMethodType) === PaymentMethodType.WALLET) {
21218
21514
  return createVNode(WalletType, {
@@ -21235,6 +21531,11 @@ const PaymentType = defineComponent({
21235
21531
  "sbid": paymentMethod2
21236
21532
  }, null);
21237
21533
  }
21534
+ if (((_a = this.paymentMethod) == null ? void 0 : _a.paymentMethodType) === PaymentMethodType.PAY_LATER_CC) {
21535
+ return createVNode(PayLaterType, {
21536
+ "payLater": this.paymentMethod
21537
+ }, null);
21538
+ }
21238
21539
  return null;
21239
21540
  }
21240
21541
  });
@@ -21756,6 +22057,11 @@ const _sfc_main$Q = defineComponent({
21756
22057
  type: Array,
21757
22058
  default: () => [2e3, 3e3, 5e3, 1e4, 3e4, 5e4, 1e5],
21758
22059
  required: false
22060
+ },
22061
+ isTopup: {
22062
+ type: Boolean,
22063
+ required: false,
22064
+ default: false
21759
22065
  }
21760
22066
  },
21761
22067
  emits: ["setmoney", "switchinput", "selectmoremoney"],
@@ -21787,7 +22093,7 @@ const _sfc_main$Q = defineComponent({
21787
22093
  };
21788
22094
  const handleSelectMoreClick = (e) => {
21789
22095
  e == null ? void 0 : e.stopPropagation();
21790
- if (isMobile.value) {
22096
+ if (isMobile.value || props.isTopup) {
21791
22097
  emit("selectmoremoney");
21792
22098
  } else {
21793
22099
  state.toggleDropdown = true;
@@ -22398,7 +22704,8 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
22398
22704
  _ctx.address.receiver ? (openBlock(), createElementBlock("div", {
22399
22705
  key: 1,
22400
22706
  class: normalizeClass([_ctx.style.text, _ctx.style.receiver]),
22401
- "data-test": "address-receiver"
22707
+ "data-test": "address-receiver",
22708
+ "data-testid": "address-receiver"
22402
22709
  }, toDisplayString(_ctx.address.receiver), 3)) : createCommentVNode("", true),
22403
22710
  _ctx.selected ? (openBlock(), createElementBlock("div", {
22404
22711
  key: 2,
@@ -22943,109 +23250,6 @@ function useAddressControl$1() {
22943
23250
  confirmSelectedAddress
22944
23251
  };
22945
23252
  }
22946
- async function topup$3(queryParams, body) {
22947
- var _a, _b, _c, _d, _e, _f, _g;
22948
- const res = await ppFetch({
22949
- method: "POST",
22950
- url: "web-api/app/v1/payment/topup",
22951
- params: queryParams,
22952
- data: body
22953
- });
22954
- if ("error" in res) {
22955
- return res;
22956
- }
22957
- const isSuccess = ((_b = (_a = res.unsigned) == null ? void 0 : _a.resultInfo) == null ? void 0 : _b.code) === "SUCCESS" && ["COMPLETED"].includes((_d = (_c = res.unsigned) == null ? void 0 : _c.data) == null ? void 0 : _d.status);
22958
- if (isSuccess) {
22959
- saveTopup({
22960
- amount: (_g = (_f = (_e = res.unsigned) == null ? void 0 : _e.data) == null ? void 0 : _f.amount) == null ? void 0 : _g.amount
22961
- });
22962
- }
22963
- return res;
22964
- }
22965
- async function getCashBackInfo() {
22966
- return await ppFetch({
22967
- method: "GET",
22968
- url: "/web-api/app/platform/v1/balance",
22969
- headers: {
22970
- "INTERNAL-CALL": "true"
22971
- }
22972
- });
22973
- }
22974
- async function getAddressByZip(params) {
22975
- return await ppFetch({
22976
- method: "GET",
22977
- url: "web-api/app/v1/addressbyzip",
22978
- params
22979
- });
22980
- }
22981
- async function getAddressList() {
22982
- return ppFetch({
22983
- method: "GET",
22984
- url: "web-api/app/v1/users/addresslist",
22985
- params: {
22986
- type: "PREFERRED"
22987
- }
22988
- });
22989
- }
22990
- async function postAddress(body) {
22991
- return await ppFetch({
22992
- method: "POST",
22993
- url: "web-api/app/v1/users/address",
22994
- data: body
22995
- });
22996
- }
22997
- async function editAddress(body, id) {
22998
- return await ppFetch({
22999
- method: "PUT",
23000
- url: `web-api/app/v1/users/address/${id}`,
23001
- data: body
23002
- });
23003
- }
23004
- async function deleteAddress(id) {
23005
- return await ppFetch({
23006
- method: "DELETE",
23007
- url: `web-api/app/v1/users/address/${id}`
23008
- });
23009
- }
23010
- async function setSelectedAddress(addressId) {
23011
- return ppFetch({
23012
- url: `web-api/app/v1/users/address/selected/${addressId}`,
23013
- method: "PUT"
23014
- });
23015
- }
23016
- async function getUserProfileData() {
23017
- return ppFetch({
23018
- url: "web-api/app/v1/users/profile",
23019
- method: "GET"
23020
- });
23021
- }
23022
- async function registerEmail$1(email) {
23023
- return ppFetch({
23024
- url: "web-api/app/v1/users/email",
23025
- method: "POST",
23026
- data: {
23027
- email
23028
- }
23029
- });
23030
- }
23031
- async function resendEmail() {
23032
- return ppFetch({
23033
- url: "web-api/app/v1/users/resendVerification",
23034
- method: "POST"
23035
- });
23036
- }
23037
- function getUserLocationRequest(params) {
23038
- return ppFetch({
23039
- url: "web-api/app/v1/location",
23040
- method: "GET",
23041
- params: {
23042
- validTimeMinutes: params.validTimeMinutes
23043
- }
23044
- });
23045
- }
23046
- function isValidUrl(urlChallenge) {
23047
- return /^https?:\/\//.test(urlChallenge);
23048
- }
23049
23253
  const root$6 = "_root_122l2_2";
23050
23254
  const title$5 = "_title_122l2_6";
23051
23255
  const container$a = "_container_122l2_13";
@@ -24486,6 +24690,23 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
24486
24690
  const cssModules$l = {};
24487
24691
  cssModules$l["$style"] = style0$k;
24488
24692
  var App = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z], ["__cssModules", cssModules$l]]);
24693
+ function closeApp(params) {
24694
+ var _a;
24695
+ if (params) {
24696
+ reconstructParams(params);
24697
+ }
24698
+ if (isPayPayMiniApp()) {
24699
+ if ((_a = params == null ? void 0 : params.options) == null ? void 0 : _a.deeplink) {
24700
+ window.location.href = params.options.deeplink;
24701
+ } else {
24702
+ window.location.href = "paypay://closeMiniApp";
24703
+ }
24704
+ }
24705
+ setTimeout(function() {
24706
+ var _a2;
24707
+ (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.deeplinkUnavailable });
24708
+ }, 300);
24709
+ }
24489
24710
  function openWebview(params) {
24490
24711
  var _a, _b, _c, _d;
24491
24712
  reconstructParams(params);
@@ -24553,23 +24774,13 @@ function getAuthUrl(redirectUrl) {
24553
24774
  const clientId = (_a = getClientId()) != null ? _a : "";
24554
24775
  return `${authUrl}/portal/auth/mini-app/permission?clientId=${clientId}&redirectUrl=${encodeURIComponent(redirectUrl)}`;
24555
24776
  }
24556
- var UIComponentsButtonActionType;
24557
- (function(UIComponentsButtonActionType2) {
24558
- UIComponentsButtonActionType2["DEEPLINK"] = "DEEPLINK";
24559
- UIComponentsButtonActionType2["CLOSE"] = "CLOSE";
24560
- })(UIComponentsButtonActionType || (UIComponentsButtonActionType = {}));
24561
- var UIComponentsButtonType;
24562
- (function(UIComponentsButtonType2) {
24563
- UIComponentsButtonType2["BLUE"] = "BLUE";
24564
- UIComponentsButtonType2["WHITE"] = "WHITE";
24565
- })(UIComponentsButtonType || (UIComponentsButtonType = {}));
24566
- const errorContainer = "_errorContainer_9pch3_1";
24567
- const errorIcon = "_errorIcon_9pch3_8";
24568
- const unit$2 = "_unit_9pch3_15";
24569
- const errorTitle = "_errorTitle_9pch3_18";
24570
- const subTitle = "_subTitle_9pch3_26";
24571
- const btnContainer$2 = "_btnContainer_9pch3_34";
24572
- const closeBtn = "_closeBtn_9pch3_38";
24777
+ const errorContainer = "_errorContainer_169nl_1";
24778
+ const errorIcon = "_errorIcon_169nl_8";
24779
+ const unit$2 = "_unit_169nl_15";
24780
+ const errorTitle = "_errorTitle_169nl_18";
24781
+ const subTitle = "_subTitle_169nl_26";
24782
+ const btnContainer$2 = "_btnContainer_169nl_34";
24783
+ const closeBtn = "_closeBtn_169nl_38";
24573
24784
  var style0$j = {
24574
24785
  errorContainer,
24575
24786
  errorIcon,
@@ -24619,6 +24830,15 @@ const _sfc_main$y = defineComponent({
24619
24830
  lg: getLanguage()
24620
24831
  };
24621
24832
  },
24833
+ computed: {
24834
+ buttonListData() {
24835
+ return filterErrorButtonList(this.buttonList);
24836
+ },
24837
+ onlyButton() {
24838
+ var _a;
24839
+ return ((_a = this.buttonListData) == null ? void 0 : _a.length) === 1;
24840
+ }
24841
+ },
24622
24842
  methods: {
24623
24843
  buttonClick(buttonInfo) {
24624
24844
  var _a;
@@ -24629,12 +24849,24 @@ const _sfc_main$y = defineComponent({
24629
24849
  const splitUrl = (_a = buttonInfo == null ? void 0 : buttonInfo.deeplink) == null ? void 0 : _a.split("?url=");
24630
24850
  if ((splitUrl == null ? void 0 : splitUrl.length) === 2) {
24631
24851
  openWebviewInternal({ url: splitUrl[1] });
24852
+ } else {
24853
+ closeApp({
24854
+ options: {
24855
+ deeplink: buttonInfo.deeplink
24856
+ }
24857
+ });
24632
24858
  }
24633
24859
  }
24634
24860
  return;
24635
24861
  }
24636
24862
  this.$emit("close-click");
24637
24863
  return;
24864
+ },
24865
+ getButtonType(type) {
24866
+ if (type === UIComponentsButtonType.BLUE || this.onlyButton) {
24867
+ return "primary";
24868
+ }
24869
+ return "link";
24638
24870
  }
24639
24871
  }
24640
24872
  });
@@ -24666,15 +24898,15 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
24666
24898
  createBaseVNode("div", {
24667
24899
  class: normalizeClass(_ctx.style.subTitle)
24668
24900
  }, toDisplayString(_ctx.errorText), 3),
24669
- _ctx.buttonList ? (openBlock(), createElementBlock("span", {
24901
+ _ctx.buttonListData ? (openBlock(), createElementBlock("span", {
24670
24902
  key: 1,
24671
24903
  class: normalizeClass(_ctx.style.btnContainer)
24672
24904
  }, [
24673
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonList, (item, index2) => {
24905
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonListData, (item, index2) => {
24674
24906
  return openBlock(), createElementBlock("div", { key: index2 }, [
24675
24907
  createVNode(_component_Button, {
24676
24908
  block: "",
24677
- type: item.buttonType === "BLUE" ? "primary" : "link",
24909
+ type: _ctx.getButtonType(item.buttonType),
24678
24910
  onClick: ($event) => _ctx.buttonClick(item)
24679
24911
  }, {
24680
24912
  default: withCtx(() => [
@@ -25053,7 +25285,7 @@ const _sfc_main$w = defineComponent({
25053
25285
  });
25054
25286
  const _hoisted_1$n = ["src"];
25055
25287
  const _hoisted_2$g = { key: 2 };
25056
- const _hoisted_3$e = { key: 2 };
25288
+ const _hoisted_3$f = { key: 2 };
25057
25289
  function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
25058
25290
  const _component_DesktopHeader = resolveComponent("DesktopHeader");
25059
25291
  const _component_Header = resolveComponent("Header");
@@ -25280,7 +25512,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
25280
25512
  ]),
25281
25513
  _: 1
25282
25514
  }, 8, ["class", "onClick"])) : createCommentVNode("", true),
25283
- _ctx.isSufficient ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
25515
+ _ctx.isSufficient ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
25284
25516
  createVNode(_component_Button, {
25285
25517
  "no-margin": _ctx.isDesktop,
25286
25518
  "data-test": "click-charge",
@@ -25528,20 +25760,22 @@ const _sfc_main$t = defineComponent({
25528
25760
  emits: ["close"],
25529
25761
  setup() {
25530
25762
  const lg2 = getLanguage();
25763
+ const showDeepLink = isPayPayMiniApp();
25531
25764
  const openDeepLink = (url) => {
25532
- if ((url == null ? void 0 : url.length) > 0) {
25765
+ if ((url == null ? void 0 : url.length) > 0 && showDeepLink) {
25533
25766
  openWebviewInternal({ url });
25534
25767
  }
25535
25768
  };
25536
25769
  return {
25537
25770
  openDeepLink,
25538
- lg: lg2
25771
+ lg: lg2,
25772
+ showDeepLink
25539
25773
  };
25540
25774
  }
25541
25775
  });
25542
25776
  const _hoisted_1$m = { class: "make-payment-cashback-detail-list" };
25543
25777
  const _hoisted_2$f = { class: "make-payment-cashback-detail-list--header" };
25544
- const _hoisted_3$d = { class: "header-title-container" };
25778
+ const _hoisted_3$e = { class: "header-title-container" };
25545
25779
  const _hoisted_4$b = {
25546
25780
  class: "title",
25547
25781
  "data-test": "cashback-detail-list-title"
@@ -25550,13 +25784,17 @@ const _hoisted_5$8 = {
25550
25784
  class: "price",
25551
25785
  "data-test": "cashback-detail-list-price"
25552
25786
  };
25553
- const _hoisted_6$5 = /* @__PURE__ */ createBaseVNode("span", { class: "unit" }, "\u5186", -1);
25787
+ const _hoisted_6$5 = /* @__PURE__ */ createBaseVNode("span", { class: "unit" }, "pt", -1);
25554
25788
  const _hoisted_7$4 = { class: "make-payment-cashback-detail-list--container" };
25555
25789
  const _hoisted_8$3 = ["onClick"];
25556
25790
  const _hoisted_9$3 = { class: "campaign" };
25557
25791
  const _hoisted_10$1 = { class: "right-container" };
25558
25792
  const _hoisted_11$1 = { class: "amount" };
25559
- const _hoisted_12$1 = /* @__PURE__ */ createBaseVNode("i", { class: "open-icon" }, null, -1);
25793
+ const _hoisted_12$1 = {
25794
+ key: 0,
25795
+ class: "open-icon",
25796
+ "data-test": "open-icon"
25797
+ };
25560
25798
  const _hoisted_13 = { class: "make-payment-cashback-detail-list--footer" };
25561
25799
  function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
25562
25800
  var _a, _b, _c;
@@ -25568,7 +25806,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
25568
25806
  "data-test": "cashback-detail-back-close",
25569
25807
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
25570
25808
  }),
25571
- createBaseVNode("div", _hoisted_3$d, [
25809
+ createBaseVNode("div", _hoisted_3$e, [
25572
25810
  createBaseVNode("div", _hoisted_4$b, toDisplayString((_a = _ctx.cashBackDetail) == null ? void 0 : _a.cashBackDetailListDescription), 1),
25573
25811
  createBaseVNode("div", _hoisted_5$8, [
25574
25812
  createTextVNode(toDisplayString((_b = _ctx.cashBackDetail) == null ? void 0 : _b.cashBackAmount), 1),
@@ -25587,7 +25825,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
25587
25825
  createBaseVNode("div", _hoisted_9$3, toDisplayString(cashBack2.campaignName), 1),
25588
25826
  createBaseVNode("div", _hoisted_10$1, [
25589
25827
  createBaseVNode("div", _hoisted_11$1, toDisplayString(cashBack2.amountText), 1),
25590
- _hoisted_12$1
25828
+ _ctx.showDeepLink ? (openBlock(), createElementBlock("i", _hoisted_12$1)) : createCommentVNode("", true)
25591
25829
  ])
25592
25830
  ], 8, _hoisted_8$3);
25593
25831
  }), 128))
@@ -25705,7 +25943,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
25705
25943
  createTextVNode(toDisplayString(_ctx.cashBackInfo.cashBackAmount) + " ", 1),
25706
25944
  createBaseVNode("span", {
25707
25945
  class: normalizeClass(_ctx.style.cashBackUnit)
25708
- }, "\u5186\u76F8\u5F53", 2)
25946
+ }, "pt", 2)
25709
25947
  ], 2)) : createCommentVNode("", true)
25710
25948
  ], 2),
25711
25949
  createBaseVNode("div", {
@@ -26138,7 +26376,7 @@ const _sfc_main$r = defineComponent({
26138
26376
  });
26139
26377
  const _hoisted_1$l = ["src"];
26140
26378
  const _hoisted_2$e = /* @__PURE__ */ createBaseVNode("span", null, "\u6C7A\u6E08\u756A\u53F7", -1);
26141
- const _hoisted_3$c = /* @__PURE__ */ createTextVNode(" \u9589\u3058\u308B ");
26379
+ const _hoisted_3$d = /* @__PURE__ */ createTextVNode(" \u9589\u3058\u308B ");
26142
26380
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
26143
26381
  const _component_DesktopHeader = resolveComponent("DesktopHeader");
26144
26382
  const _component_CashBackDetailRow = resolveComponent("CashBackDetailRow");
@@ -26251,7 +26489,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
26251
26489
  onClick: _ctx.click
26252
26490
  }, {
26253
26491
  default: withCtx(() => [
26254
- _hoisted_3$c
26492
+ _hoisted_3$d
26255
26493
  ]),
26256
26494
  _: 1
26257
26495
  }, 8, ["disabled", "onClick"])
@@ -26333,7 +26571,7 @@ const _sfc_main$q = defineComponent({
26333
26571
  });
26334
26572
  const _hoisted_1$k = { class: "make-payment-close-confirmation" };
26335
26573
  const _hoisted_2$d = ["src"];
26336
- const _hoisted_3$b = { class: "make-payment-close-confirmation--content" };
26574
+ const _hoisted_3$c = { class: "make-payment-close-confirmation--content" };
26337
26575
  const _hoisted_4$a = { class: "make-payment-close-confirmation--content--title" };
26338
26576
  function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
26339
26577
  const _component_Button = resolveComponent("Button");
@@ -26342,7 +26580,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
26342
26580
  src: _ctx.images.iconError,
26343
26581
  class: "make-payment-close-confirmation--header--image"
26344
26582
  }, null, 8, _hoisted_2$d),
26345
- createBaseVNode("div", _hoisted_3$b, [
26583
+ createBaseVNode("div", _hoisted_3$c, [
26346
26584
  createBaseVNode("p", _hoisted_4$a, toDisplayString(_ctx.lg.closeConfirmation.title), 1)
26347
26585
  ]),
26348
26586
  createBaseVNode("div", null, [
@@ -26385,7 +26623,8 @@ const _sfc_main$p = defineComponent({
26385
26623
  emits: ["close"],
26386
26624
  setup(props, context) {
26387
26625
  const getButtonType = (type) => {
26388
- if (type === UIComponentsButtonType.BLUE) {
26626
+ var _a;
26627
+ if (type === UIComponentsButtonType.BLUE || ((_a = buttonList == null ? void 0 : buttonList.value) == null ? void 0 : _a.length) === 1) {
26389
26628
  return "primary";
26390
26629
  }
26391
26630
  return "link";
@@ -26399,6 +26638,12 @@ const _sfc_main$p = defineComponent({
26399
26638
  const splitUrl = (_a = buttonInfo == null ? void 0 : buttonInfo.deeplink) == null ? void 0 : _a.split("?url=");
26400
26639
  if ((splitUrl == null ? void 0 : splitUrl.length) === 2) {
26401
26640
  openWebviewInternal({ url: splitUrl[1] });
26641
+ } else {
26642
+ closeApp({
26643
+ options: {
26644
+ deeplink: buttonInfo.deeplink
26645
+ }
26646
+ });
26402
26647
  }
26403
26648
  }
26404
26649
  return;
@@ -26407,14 +26652,7 @@ const _sfc_main$p = defineComponent({
26407
26652
  return;
26408
26653
  };
26409
26654
  const buttonList = computed(() => {
26410
- if (isPayPayMiniApp()) {
26411
- return props.consultInfo.buttonList;
26412
- } else {
26413
- return props.consultInfo.buttonList.filter((button2) => {
26414
- var _a;
26415
- return !((_a = button2.deeplink) == null ? void 0 : _a.startsWith("paypay://"));
26416
- });
26417
- }
26655
+ return filterErrorButtonList(props.consultInfo.buttonList);
26418
26656
  });
26419
26657
  return {
26420
26658
  getButtonType,
@@ -26428,7 +26666,7 @@ const _sfc_main$p = defineComponent({
26428
26666
  });
26429
26667
  const _hoisted_1$j = { class: "make-payment-consult" };
26430
26668
  const _hoisted_2$c = ["src"];
26431
- const _hoisted_3$a = { class: "make-payment-consult--content" };
26669
+ const _hoisted_3$b = { class: "make-payment-consult--content" };
26432
26670
  const _hoisted_4$9 = {
26433
26671
  class: "make-payment-consult--content--title",
26434
26672
  "data-test": "consult-title"
@@ -26444,7 +26682,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
26444
26682
  src: _ctx.iconUrl,
26445
26683
  class: "make-payment-consult--header--image"
26446
26684
  }, null, 8, _hoisted_2$c),
26447
- createBaseVNode("div", _hoisted_3$a, [
26685
+ createBaseVNode("div", _hoisted_3$b, [
26448
26686
  createBaseVNode("p", _hoisted_4$9, toDisplayString(_ctx.title), 1),
26449
26687
  createBaseVNode("p", _hoisted_5$7, toDisplayString(_ctx.description), 1)
26450
26688
  ]),
@@ -26519,7 +26757,7 @@ const _sfc_main$o = defineComponent({
26519
26757
  });
26520
26758
  const _hoisted_1$i = { class: "make-payment-cashback-detail-birthday-picker" };
26521
26759
  const _hoisted_2$b = { class: "make-payment-cashback-detail-birthday-picker--header" };
26522
- const _hoisted_3$9 = ["src"];
26760
+ const _hoisted_3$a = ["src"];
26523
26761
  const _hoisted_4$8 = { class: "make-payment-cashback-detail-birthday-picker--content" };
26524
26762
  const _hoisted_5$6 = { class: "title" };
26525
26763
  const _hoisted_6$4 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
@@ -26539,7 +26777,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
26539
26777
  createBaseVNode("div", _hoisted_2$b, [
26540
26778
  createBaseVNode("img", {
26541
26779
  src: _ctx.images.iconBirthday
26542
- }, null, 8, _hoisted_3$9)
26780
+ }, null, 8, _hoisted_3$a)
26543
26781
  ]),
26544
26782
  createBaseVNode("div", _hoisted_4$8, [
26545
26783
  createBaseVNode("p", _hoisted_5$6, [
@@ -26630,7 +26868,7 @@ const _sfc_main$n = defineComponent({
26630
26868
  });
26631
26869
  const _hoisted_1$h = { class: "make-payment-cashback-detail-birthday-picker" };
26632
26870
  const _hoisted_2$a = { class: "make-payment-cashback-detail-birthday-picker--header" };
26633
- const _hoisted_3$8 = ["src"];
26871
+ const _hoisted_3$9 = ["src"];
26634
26872
  const _hoisted_4$7 = { class: "make-payment-cashback-detail-birthday-picker--content" };
26635
26873
  const _hoisted_5$5 = { class: "title" };
26636
26874
  const _hoisted_6$3 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
@@ -26647,7 +26885,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
26647
26885
  createBaseVNode("img", {
26648
26886
  src: _ctx.images.iconMinorAge,
26649
26887
  class: "error-in-birthday"
26650
- }, null, 8, _hoisted_3$8)
26888
+ }, null, 8, _hoisted_3$9)
26651
26889
  ]),
26652
26890
  createBaseVNode("div", _hoisted_4$7, [
26653
26891
  createBaseVNode("p", _hoisted_5$5, [
@@ -27184,7 +27422,7 @@ const _sfc_main$k = defineComponent({
27184
27422
  });
27185
27423
  const _hoisted_1$e = ["src"];
27186
27424
  const _hoisted_2$9 = { key: 0 };
27187
- const _hoisted_3$7 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
27425
+ const _hoisted_3$8 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
27188
27426
  const _hoisted_4$6 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
27189
27427
  function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
27190
27428
  return openBlock(), createElementBlock("div", null, [
@@ -27214,7 +27452,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
27214
27452
  class: normalizeClass(_ctx.style.amount)
27215
27453
  }, [
27216
27454
  createTextVNode(toDisplayString(_ctx.formatPrice), 1),
27217
- _hoisted_3$7
27455
+ _hoisted_3$8
27218
27456
  ], 2)
27219
27457
  ], 2)
27220
27458
  ], 2),
@@ -27245,30 +27483,30 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
27245
27483
  const cssModules$c = {};
27246
27484
  cssModules$c["$style"] = style0$b;
27247
27485
  var TopInfo = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__cssModules", cssModules$c]]);
27248
- const chargeMainTitle = "_chargeMainTitle_1cboc_7";
27249
- const chargeTitle = "_chargeTitle_1cboc_14";
27250
- const bannerInfo = "_bannerInfo_1cboc_19";
27251
- const topupAmount = "_topupAmount_1cboc_27";
27252
- const chargeArea = "_chargeArea_1cboc_41";
27253
- const paymentMethodContainer = "_paymentMethodContainer_1cboc_61";
27254
- const desktopUi = "_desktopUi_1cboc_78";
27255
- const itemContainer = "_itemContainer_1cboc_84";
27256
- const chargeLabel = "_chargeLabel_1cboc_92";
27257
- const paymentMethod$1 = "_paymentMethod_1cboc_61";
27258
- const buttonContainer = "_buttonContainer_1cboc_108";
27259
- const successContainer = "_successContainer_1cboc_114";
27260
- const hidden = "_hidden_1cboc_125";
27261
- const nonVisible = "_nonVisible_1cboc_134";
27262
- const loadingText$1 = "_loadingText_1cboc_137";
27263
- const unAvailable = "_unAvailable_1cboc_149";
27264
- const cancelBtn = "_cancelBtn_1cboc_157";
27265
- const change = "_change_1cboc_162";
27266
- const chargeBtnSticky = "_chargeBtnSticky_1cboc_178";
27267
- const chargeWrapper = "_chargeWrapper_1cboc_191";
27268
- const chargeTitleContainer = "_chargeTitleContainer_1cboc_197";
27269
- const chargeListWrapper = "_chargeListWrapper_1cboc_203";
27486
+ const chargeMainTitle = "_chargeMainTitle_5f7zo_7";
27487
+ const chargeTitle = "_chargeTitle_5f7zo_14";
27488
+ const bannerInfo = "_bannerInfo_5f7zo_19";
27489
+ const topupAmount = "_topupAmount_5f7zo_27";
27490
+ const chargeArea = "_chargeArea_5f7zo_41";
27491
+ const paymentMethodContainer = "_paymentMethodContainer_5f7zo_61";
27492
+ const desktopUi = "_desktopUi_5f7zo_78";
27493
+ const itemContainer = "_itemContainer_5f7zo_84";
27494
+ const chargeLabel = "_chargeLabel_5f7zo_92";
27495
+ const paymentMethod$1 = "_paymentMethod_5f7zo_61";
27496
+ const buttonContainer = "_buttonContainer_5f7zo_108";
27497
+ const successContainer = "_successContainer_5f7zo_114";
27498
+ const hidden = "_hidden_5f7zo_125";
27499
+ const nonVisible = "_nonVisible_5f7zo_134";
27500
+ const loadingText$1 = "_loadingText_5f7zo_137";
27501
+ const unAvailable = "_unAvailable_5f7zo_149";
27502
+ const cancelBtn = "_cancelBtn_5f7zo_168";
27503
+ const change = "_change_5f7zo_173";
27504
+ const chargeBtnSticky = "_chargeBtnSticky_5f7zo_189";
27505
+ const chargeWrapper = "_chargeWrapper_5f7zo_202";
27506
+ const chargeTitleContainer = "_chargeTitleContainer_5f7zo_208";
27507
+ const chargeListWrapper = "_chargeListWrapper_5f7zo_214";
27270
27508
  var style0$a = {
27271
- "ppmna-default-font": "_ppmna-default-font_1cboc_1",
27509
+ "ppmna-default-font": "_ppmna-default-font_5f7zo_1",
27272
27510
  chargeMainTitle,
27273
27511
  chargeTitle,
27274
27512
  bannerInfo,
@@ -27471,6 +27709,7 @@ const _sfc_main$j = defineComponent({
27471
27709
  });
27472
27710
  const _hoisted_1$d = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
27473
27711
  const _hoisted_2$8 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
27712
+ const _hoisted_3$7 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
27474
27713
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
27475
27714
  const _component_BannerHeader = resolveComponent("BannerHeader");
27476
27715
  const _component_ChargeAmountList = resolveComponent("ChargeAmountList");
@@ -27552,8 +27791,16 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
27552
27791
  onClick: _ctx.openPaymentMethod
27553
27792
  }, null, 8, ["payment-method", "class", "onClick"])
27554
27793
  ], 2)) : createCommentVNode("", true),
27555
- _ctx.isDesktop ? withDirectives((openBlock(), createBlock(_component_PayMethod, {
27794
+ !_ctx.available && _ctx.isDesktop ? (openBlock(), createElementBlock("div", {
27556
27795
  key: 1,
27796
+ class: normalizeClass(_ctx.style.unAvailable)
27797
+ }, [
27798
+ createTextVNode(toDisplayString(_ctx.lg.topContent.unavailable1), 1),
27799
+ _hoisted_2$8,
27800
+ createTextVNode(" " + toDisplayString(_ctx.lg.topContent.unavailable2), 1)
27801
+ ], 2)) : createCommentVNode("", true),
27802
+ _ctx.available && _ctx.isDesktop ? withDirectives((openBlock(), createBlock(_component_PayMethod, {
27803
+ key: 2,
27557
27804
  title: _ctx.lg.topContent.chargeLabel,
27558
27805
  loading: false,
27559
27806
  "payment-method": _ctx.paymentMethod,
@@ -27567,7 +27814,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
27567
27814
  [vShow, !_ctx.done]
27568
27815
  ]) : createCommentVNode("", true),
27569
27816
  _ctx.showUserAddress && _ctx.isDesktop ? (openBlock(), createBlock(_component_GetUserAddressApp, {
27570
- key: 2,
27817
+ key: 3,
27571
27818
  show: !_ctx.done,
27572
27819
  addresses: _ctx.addresses,
27573
27820
  "get-user-address-params": {},
@@ -27594,7 +27841,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
27594
27841
  class: normalizeClass(_ctx.style.unAvailable)
27595
27842
  }, [
27596
27843
  createTextVNode(toDisplayString(_ctx.lg.topContent.unavailable1), 1),
27597
- _hoisted_2$8,
27844
+ _hoisted_3$7,
27598
27845
  createTextVNode(" " + toDisplayString(_ctx.lg.topContent.unavailable2), 1)
27599
27846
  ], 2)) : createCommentVNode("", true),
27600
27847
  createVNode(_component_Button, {
@@ -27626,7 +27873,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
27626
27873
  ], 2)
27627
27874
  ], 2),
27628
27875
  _ctx.done ? (openBlock(), createElementBlock("div", {
27629
- key: 3,
27876
+ key: 4,
27630
27877
  class: normalizeClass(_ctx.style.successContainer)
27631
27878
  }, [
27632
27879
  createVNode(_component_Lottie, {
@@ -27768,6 +28015,10 @@ function isAvailablePaymentMethod(paymentMethod2) {
27768
28015
  const sbid = paymentMethod2.sbidCarrierBillingInfo;
27769
28016
  return (sbid == null ? void 0 : sbid.paymentMethodStatus) === PaymentMethodStatus.ACTIVATED;
27770
28017
  }
28018
+ if (paymentMethod2.paymentMethodType === PaymentMethodType.PAY_LATER_CC) {
28019
+ const payLater2 = paymentMethod2.payLaterCcInfo;
28020
+ return (payLater2 == null ? void 0 : payLater2.paymentMethodStatus) === PaymentMethodStatus.ACTIVATED;
28021
+ }
27771
28022
  return false;
27772
28023
  }
27773
28024
  function hasAvailablePaymentMethod(paymentMethods) {
@@ -27785,7 +28036,7 @@ function findFirstValidMethod(paymentMethods, type) {
27785
28036
  return -1;
27786
28037
  }
27787
28038
  function isValidPaymentMethod(savedMethod, paymentMethods, type) {
27788
- var _a, _b, _c, _d;
28039
+ var _a, _b, _c, _d, _e;
27789
28040
  if (savedMethod) {
27790
28041
  const payMethod = paymentMethods.find((method) => method.paymentMethodId === savedMethod);
27791
28042
  switch (payMethod == null ? void 0 : payMethod.paymentMethodType) {
@@ -27797,6 +28048,8 @@ function isValidPaymentMethod(savedMethod, paymentMethods, type) {
27797
28048
  return ((_c = payMethod.bankInfo) == null ? void 0 : _c.paymentMethodStatus) === "ACTIVATED";
27798
28049
  case PaymentMethodType.SBID_CARRIER_BILLING:
27799
28050
  return ((_d = payMethod.sbidCarrierBillingInfo) == null ? void 0 : _d.paymentMethodStatus) === "ACTIVATED";
28051
+ case PaymentMethodType.PAY_LATER_CC:
28052
+ return ((_e = payMethod.payLaterCcInfo) == null ? void 0 : _e.paymentMethodStatus) === "ACTIVATED";
27800
28053
  default:
27801
28054
  return false;
27802
28055
  }
@@ -28235,12 +28488,6 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
28235
28488
  const cssModules$9 = {};
28236
28489
  cssModules$9["$style"] = style0$8;
28237
28490
  var Charge = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__cssModules", cssModules$9]]);
28238
- function filterUnsupportedPaymentMethod(paymentMethods) {
28239
- const methods = paymentMethods ? paymentMethods.filter(function(method) {
28240
- return method.paymentMethodType !== (PaymentMethodType.PAY_LATER || PaymentMethodType.PAY_LATER_CC);
28241
- }) : paymentMethods;
28242
- return methods;
28243
- }
28244
28491
  const img$1 = getImages();
28245
28492
  function createErrorFromType(type) {
28246
28493
  const lg2 = getLanguage();
@@ -28501,8 +28748,8 @@ function usePaymentMethod(props) {
28501
28748
  if (walletPaymentMethod && walletPaymentMethod.descriptionBannerInfo) {
28502
28749
  paymentState.bannerInfo = walletPaymentMethod.descriptionBannerInfo;
28503
28750
  }
28504
- paymentState.paymentMethods = filterUnsupportedPaymentMethod(paymentMethodList);
28505
28751
  const lastSavedMethod = getLastPaymentMethod();
28752
+ paymentState.paymentMethods = paymentMethodList;
28506
28753
  paymentState.selectPaymentIndex = isValidPaymentMethod(lastSavedMethod, paymentState == null ? void 0 : paymentState.paymentMethods, PaymentOpType.PAY) ? paymentState.paymentMethods.findIndex((method) => method.paymentMethodId === lastSavedMethod) : findFirstValidMethod(paymentState.paymentMethods, PaymentOpType.PAY);
28507
28754
  return {
28508
28755
  res,
@@ -29606,9 +29853,18 @@ const initMakePayment = async (initMakePayment2) => {
29606
29853
  window.addEventListener("beforeunload", transactionWarning);
29607
29854
  };
29608
29855
  function createWrap(fn) {
29609
- return (arg) => setTimeout(() => {
29610
- fn(arg);
29611
- }, 0);
29856
+ return (arg) => {
29857
+ setTimeout(() => {
29858
+ fn(arg);
29859
+ }, 0);
29860
+ };
29861
+ }
29862
+ function createWrapComplete(fn) {
29863
+ return () => {
29864
+ setTimeout(() => {
29865
+ fn();
29866
+ }, 0);
29867
+ };
29612
29868
  }
29613
29869
  const makePayment = async (params) => {
29614
29870
  var _a, _b, _c, _d;
@@ -29629,7 +29885,7 @@ const makePayment = async (params) => {
29629
29885
  if (fail)
29630
29886
  params.fail = createWrap(fail);
29631
29887
  if (complete)
29632
- params.complete = createWrap(complete);
29888
+ params.complete = createWrapComplete(complete);
29633
29889
  initMakePayment(params).catch(() => {
29634
29890
  });
29635
29891
  };
@@ -29685,7 +29941,7 @@ function showErrorSheet(params) {
29685
29941
  try {
29686
29942
  initErrorSheet(params);
29687
29943
  } catch {
29688
- (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
29944
+ (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.unknown });
29689
29945
  }
29690
29946
  }
29691
29947
  const container = "_container_17pxy_1";
@@ -29834,7 +30090,7 @@ function showAlert(params) {
29834
30090
  try {
29835
30091
  initAlertSheet(params);
29836
30092
  } catch {
29837
- (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
30093
+ (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.unknown });
29838
30094
  }
29839
30095
  }
29840
30096
  const bannerInfoContainer = "_bannerInfoContainer_1l754_1";
@@ -30158,46 +30414,46 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
30158
30414
  const cssModules$4 = {};
30159
30415
  cssModules$4["$style"] = style0$4;
30160
30416
  var TopupCompletion = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__cssModules", cssModules$4]]);
30161
- const topupWrapper = "_topupWrapper_19kvr_7";
30162
- const fullHeight = "_fullHeight_19kvr_13";
30163
- const bannerText = "_bannerText_19kvr_20";
30164
- const topupMoneyLabel = "_topupMoneyLabel_19kvr_23";
30165
- const topupCharge = "_topupCharge_19kvr_31";
30166
- const fullHeightCharge = "_fullHeightCharge_19kvr_37";
30167
- const bannerMargin = "_bannerMargin_19kvr_40";
30168
- const topup$2 = "_topup_19kvr_7";
30169
- const noBorder = "_noBorder_19kvr_52";
30170
- const banner = "_banner_19kvr_20";
30171
- const invalidAmount = "_invalidAmount_19kvr_58";
30172
- const loadingText = "_loadingText_19kvr_63";
30173
- const choosePayment$1 = "_choosePayment_19kvr_72";
30174
- const amountList = "_amountList_19kvr_79";
30175
- const balance = "_balance_19kvr_99";
30176
- const chargeSelect = "_chargeSelect_19kvr_106";
30177
- const blueDivider = "_blueDivider_19kvr_112";
30178
- const chargeMoney = "_chargeMoney_19kvr_119";
30179
- const unit = "_unit_19kvr_125";
30180
- const chargeInput = "_chargeInput_19kvr_128";
30181
- const inputLeft = "_inputLeft_19kvr_143";
30182
- const inputRight = "_inputRight_19kvr_150";
30183
- const noMethod = "_noMethod_19kvr_157";
30184
- const topupMoney = "_topupMoney_19kvr_23";
30185
- const moneyLabel = "_moneyLabel_19kvr_170";
30186
- const btnContainer = "_btnContainer_19kvr_174";
30187
- const fullBtnContainer = "_fullBtnContainer_19kvr_181";
30188
- const moneyList = "_moneyList_19kvr_196";
30189
- const doneContainer = "_doneContainer_19kvr_200";
30190
- const ppmnaLottie = "_ppmnaLottie_19kvr_207";
30191
- const moreMoney = "_moreMoney_19kvr_212";
30192
- const fullHeightPayMethod = "_fullHeightPayMethod_19kvr_217";
30193
- const fullHeightInput = "_fullHeightInput_19kvr_223";
30194
- const fullHeightLottie = "_fullHeightLottie_19kvr_226";
30195
- const paymentType = "_paymentType_19kvr_230";
30417
+ const topupWrapper = "_topupWrapper_eufp7_7";
30418
+ const fullHeight = "_fullHeight_eufp7_13";
30419
+ const bannerText = "_bannerText_eufp7_20";
30420
+ const topupMoneyLabel = "_topupMoneyLabel_eufp7_23";
30421
+ const topupCharge = "_topupCharge_eufp7_31";
30422
+ const fullHeightCharge = "_fullHeightCharge_eufp7_37";
30423
+ const bannerMargin = "_bannerMargin_eufp7_40";
30424
+ const topup$2 = "_topup_eufp7_7";
30425
+ const noBorder = "_noBorder_eufp7_52";
30426
+ const banner = "_banner_eufp7_20";
30427
+ const invalidAmount = "_invalidAmount_eufp7_58";
30428
+ const loadingText = "_loadingText_eufp7_63";
30429
+ const choosePayment$1 = "_choosePayment_eufp7_72";
30430
+ const amountList = "_amountList_eufp7_79";
30431
+ const balance = "_balance_eufp7_99";
30432
+ const chargeSelect = "_chargeSelect_eufp7_106";
30433
+ const blueDivider = "_blueDivider_eufp7_112";
30434
+ const chargeMoney = "_chargeMoney_eufp7_119";
30435
+ const unit = "_unit_eufp7_125";
30436
+ const chargeInput = "_chargeInput_eufp7_128";
30437
+ const inputLeft = "_inputLeft_eufp7_143";
30438
+ const inputRight = "_inputRight_eufp7_150";
30439
+ const noMethod = "_noMethod_eufp7_157";
30440
+ const topupMoney = "_topupMoney_eufp7_23";
30441
+ const moneyLabel = "_moneyLabel_eufp7_170";
30442
+ const btnContainer = "_btnContainer_eufp7_174";
30443
+ const fullBtnContainer = "_fullBtnContainer_eufp7_181";
30444
+ const moneyList = "_moneyList_eufp7_196";
30445
+ const doneContainer = "_doneContainer_eufp7_200";
30446
+ const ppmnaLottie = "_ppmnaLottie_eufp7_207";
30447
+ const moreMoney = "_moreMoney_eufp7_212";
30448
+ const fullHeightPayMethod = "_fullHeightPayMethod_eufp7_217";
30449
+ const fullHeightInput = "_fullHeightInput_eufp7_223";
30450
+ const fullHeightLottie = "_fullHeightLottie_eufp7_226";
30451
+ const paymentType = "_paymentType_eufp7_230";
30196
30452
  var style0$3 = {
30197
- "ppmna-default-font": "_ppmna-default-font_19kvr_1",
30453
+ "ppmna-default-font": "_ppmna-default-font_eufp7_1",
30198
30454
  topupWrapper,
30199
30455
  fullHeight,
30200
- "btn-position": "_btn-position_19kvr_17",
30456
+ "btn-position": "_btn-position_eufp7_17",
30201
30457
  bannerText,
30202
30458
  topupMoneyLabel,
30203
30459
  topupCharge,
@@ -30371,8 +30627,8 @@ const _sfc_main$a = defineComponent({
30371
30627
  this.errorShow = true;
30372
30628
  return;
30373
30629
  }
30374
- this.paymentMethodList = filterUnsupportedPaymentMethod((_h = (_g = (_f = paymentIdResponse.body.unsigned) == null ? void 0 : _f.data) == null ? void 0 : _g.payload) == null ? void 0 : _h.paymentMethodList);
30375
- this.findFirstValidMethod(0);
30630
+ this.paymentMethodList = (_h = (_g = (_f = paymentIdResponse.body.unsigned) == null ? void 0 : _f.data) == null ? void 0 : _g.payload) == null ? void 0 : _h.paymentMethodList;
30631
+ this.findFirstValidMethodTopup();
30376
30632
  const config = getAppConfig();
30377
30633
  if (config) {
30378
30634
  this.inputMoney = (_i = config == null ? void 0 : config.topupHalfSheetRecommendedAmount[0]) == null ? void 0 : _i.value;
@@ -30385,41 +30641,11 @@ const _sfc_main$a = defineComponent({
30385
30641
  createAnime(s) {
30386
30642
  this.lottieAnim = s;
30387
30643
  },
30388
- findFirstValidMethod(index2) {
30389
- var _a, _b, _c, _d, _e, _f;
30644
+ findFirstValidMethodTopup() {
30645
+ var _a;
30390
30646
  if (((_a = this.paymentMethodList) == null ? void 0 : _a.length) > 0) {
30391
- let payMethod = this.paymentMethodList[index2];
30392
- switch (payMethod == null ? void 0 : payMethod.paymentMethodType) {
30393
- case PaymentMethodType.BANK:
30394
- case PaymentMethodType.YMONEY_BANK:
30395
- if (((_b = payMethod.bankInfo) == null ? void 0 : _b.paymentMethodStatus) === "ACTIVATED") {
30396
- this.selectedPaymentMethod = payMethod;
30397
- this.selectPaymentIndex = index2;
30398
- return;
30399
- }
30400
- break;
30401
- case PaymentMethodType.CREDIT_CARD:
30402
- if (((_c = payMethod.creditCardInfo) == null ? void 0 : _c.paymentMethodStatus) === "ACTIVATED" && !((_d = payMethod.creditCardInfo) == null ? void 0 : _d.isExpired)) {
30403
- this.selectedPaymentMethod = payMethod;
30404
- this.selectPaymentIndex = index2;
30405
- return;
30406
- }
30407
- break;
30408
- case PaymentMethodType.SBID_CARRIER_BILLING:
30409
- if (((_e = payMethod.sbidCarrierBillingInfo) == null ? void 0 : _e.paymentMethodStatus) === "ACTIVATED") {
30410
- this.selectedPaymentMethod = payMethod;
30411
- this.selectPaymentIndex = index2;
30412
- return;
30413
- }
30414
- break;
30415
- case PaymentMethodType.WALLET:
30416
- this.selectedPaymentMethod = payMethod;
30417
- this.selectPaymentIndex = index2;
30418
- return;
30419
- }
30420
- if (index2 < ((_f = this.paymentMethodList) == null ? void 0 : _f.length)) {
30421
- this.findFirstValidMethod(++index2);
30422
- }
30647
+ this.selectPaymentIndex = findFirstValidMethod(this.paymentMethodList, PaymentOpType.TOPUP);
30648
+ this.selectedPaymentMethod = this.paymentMethodList[this.selectPaymentIndex];
30423
30649
  }
30424
30650
  },
30425
30651
  async switchInput() {
@@ -30433,6 +30659,8 @@ const _sfc_main$a = defineComponent({
30433
30659
  }
30434
30660
  this.cashbackData = (_a = cashbackInfo == null ? void 0 : cashbackInfo.data) == null ? void 0 : _a.payload;
30435
30661
  this.inputMoney = 0;
30662
+ this.minAmountUnmet = false;
30663
+ this.maxAmountExceeded = false;
30436
30664
  this.fixBalMoney = (_f = (_e = (_d = (_c = (_b = cashbackInfo == null ? void 0 : cashbackInfo.data) == null ? void 0 : _b.payload) == null ? void 0 : _c.walletSummary) == null ? void 0 : _d.totalBalanceInfo) == null ? void 0 : _e.balance) != null ? _f : 0;
30437
30665
  this.balMoney = formatCurrency(this.inputMoney + this.fixBalMoney, 0);
30438
30666
  this.fixCashbackBalance = (_k = (_j = (_i = (_h = (_g = cashbackInfo == null ? void 0 : cashbackInfo.data) == null ? void 0 : _g.payload) == null ? void 0 : _h.walletSummary) == null ? void 0 : _i.allTotalBalanceInfo) == null ? void 0 : _j.balance) != null ? _k : 0;
@@ -30504,6 +30732,7 @@ const _sfc_main$a = defineComponent({
30504
30732
  setCurrentMoney(price2) {
30505
30733
  this.inputMoney = price2;
30506
30734
  this.isSelectMoreMoney = false;
30735
+ this.checkValidAmount();
30507
30736
  },
30508
30737
  selectPaymentMethod(index2) {
30509
30738
  this.selectPaymentIndex = index2;
@@ -30728,6 +30957,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
30728
30957
  isfullheight: !_ctx.isInput,
30729
30958
  small: true,
30730
30959
  class: normalizeClass(_ctx.$style.amountList),
30960
+ "is-topup": true,
30731
30961
  onSetmoney: _ctx.setMoney,
30732
30962
  onSelectmoremoney: _ctx.selectMoreMoney,
30733
30963
  onSwitchinput: _ctx.switchInput
@@ -30793,7 +31023,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
30793
31023
  createVNode(_component_Button, {
30794
31024
  type: "primary",
30795
31025
  block: "",
30796
- disabled: _ctx.disablePaymentBtn || _ctx.loading,
31026
+ disabled: _ctx.disablePaymentBtn || _ctx.loading || _ctx.inputMoney == 0,
30797
31027
  loading: _ctx.loading,
30798
31028
  "data-test": "click-topup",
30799
31029
  onClick: _cache[4] || (_cache[4] = ($event) => _ctx.clickTopup(false))
@@ -30970,23 +31200,6 @@ function topup$1(params) {
30970
31200
  reconstructParams(params);
30971
31201
  initTopup(params);
30972
31202
  }
30973
- function closeApp(params) {
30974
- var _a;
30975
- if (params) {
30976
- reconstructParams(params);
30977
- }
30978
- if (isPayPayMiniApp()) {
30979
- if ((_a = params == null ? void 0 : params.options) == null ? void 0 : _a.deeplink) {
30980
- window.location.href = params.options.deeplink;
30981
- } else {
30982
- window.location.href = "paypay://closeMiniApp";
30983
- }
30984
- }
30985
- setTimeout(function() {
30986
- var _a2;
30987
- (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.deeplinkUnavailable });
30988
- }, 300);
30989
- }
30990
31203
  var App_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
30991
31204
  const _sfc_main$9 = defineComponent({
30992
31205
  components: {
@@ -31032,7 +31245,7 @@ const _sfc_main$9 = defineComponent({
31032
31245
  }
31033
31246
  } catch {
31034
31247
  this.errorShow = true;
31035
- (_e = (_d = this.warningParams) == null ? void 0 : _d.fail) == null ? void 0 : _e.call(_d);
31248
+ (_e = (_d = this.warningParams) == null ? void 0 : _d.fail) == null ? void 0 : _e.call(_d, { errorCode: MiniAppErrorType.unknown });
31036
31249
  } finally {
31037
31250
  this.$emit("close-click");
31038
31251
  }
@@ -31095,7 +31308,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
31095
31308
  }, null, 8, ["show", "error-text"])
31096
31309
  ], 64);
31097
31310
  }
31098
- var AppVue$5 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-946535e4"]]);
31311
+ var AppVue$5 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-f36ed910"]]);
31099
31312
  const initShowUpdateWarning = (params) => {
31100
31313
  const show2 = ref(true);
31101
31314
  const warningParams = reactive(params);
@@ -31977,6 +32190,19 @@ function openApp$1(params) {
31977
32190
  }
31978
32191
  initOpenApp(params);
31979
32192
  }
32193
+ function openMiniApp(params) {
32194
+ var _a, _b;
32195
+ if (params) {
32196
+ reconstructParams(params);
32197
+ }
32198
+ const clientId = getClientId();
32199
+ if (!clientId) {
32200
+ return (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.sdkNotInitialized });
32201
+ }
32202
+ const appUrl = (params == null ? void 0 : params.redirectUrl) ? `paypay://miniapp?appId=${clientId}&redirectUrl=${encodeURIComponent(params == null ? void 0 : params.redirectUrl)}` : `paypay://miniapp?appId=${clientId}`;
32203
+ window.location.href = appUrl;
32204
+ (_b = params == null ? void 0 : params.success) == null ? void 0 : _b.call(params);
32205
+ }
31980
32206
  async function checkPaymentMethod(params) {
31981
32207
  var _a, _b, _c, _d, _e, _f, _g, _h;
31982
32208
  reconstructParams(params);
@@ -32049,7 +32275,7 @@ function debug(params) {
32049
32275
  function execute$5(params) {
32050
32276
  var _a;
32051
32277
  (_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
32052
- v: "1.27.0"
32278
+ v: "1.30.0"
32053
32279
  });
32054
32280
  }
32055
32281
  function useCallBack(props, ctx) {
@@ -33284,7 +33510,9 @@ const initSmartButton = (params, data2, preferredLanguage, isLoggedIn) => {
33284
33510
  function renderLoginButton(params, lg2, preferredLanguage, loggedinUser) {
33285
33511
  var _a, _b;
33286
33512
  if (!(params == null ? void 0 : params.containerId) || !document.getElementById(params == null ? void 0 : params.containerId)) {
33287
- (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
33513
+ (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, {
33514
+ errorCode: MiniAppErrorType.badRequestInsufficientParameter
33515
+ });
33288
33516
  return console.error("Invalid container Id");
33289
33517
  }
33290
33518
  let data2 = {
@@ -33309,7 +33537,9 @@ function renderLoginButton(params, lg2, preferredLanguage, loggedinUser) {
33309
33537
  function renderPayButton(params, lg2, preferredLanguage, isLoggedIn, cashbackInfo) {
33310
33538
  var _a;
33311
33539
  if (!(params == null ? void 0 : params.containerId) || !document.getElementById(params == null ? void 0 : params.containerId)) {
33312
- (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
33540
+ (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, {
33541
+ errorCode: MiniAppErrorType.badRequestInsufficientParameter
33542
+ });
33313
33543
  return console.error("Invalid container Id");
33314
33544
  }
33315
33545
  let data2 = {
@@ -33399,7 +33629,7 @@ const birthdayConfirm = {
33399
33629
  const birthdayConfirmError = {
33400
33630
  title: "Winning this campaign",
33401
33631
  title2: "PayPay balance could not be earned.",
33402
- desc: "The displayed bonus amount is",
33632
+ desc: "The displayed point amount is",
33403
33633
  desc2: "Cancelled at a later date based on campaign terms",
33404
33634
  helpBtn: "Check help page",
33405
33635
  closeBtn: "Close"
@@ -33507,8 +33737,12 @@ const wallet = {
33507
33737
  desc: "See the breakdown",
33508
33738
  eMoney: "PayPay Money",
33509
33739
  nonUsable: "PayPay Money Lite",
33510
- cashBackUsable: "PayPay Bonus",
33511
- cashBackExpirable: "PayPay Bonus Light",
33740
+ cashBackUsable: "PayPay Point",
33741
+ cashBackExpirable: "PayPay Point Light",
33742
+ balance: "Available amount:"
33743
+ };
33744
+ const payLater = {
33745
+ title: "PayPay deferred payment",
33512
33746
  balance: "Available amount:"
33513
33747
  };
33514
33748
  const softbank = {
@@ -33561,6 +33795,7 @@ var en = {
33561
33795
  paymentMethod,
33562
33796
  paymentMethodStatus,
33563
33797
  wallet,
33798
+ payLater,
33564
33799
  softbank,
33565
33800
  smartLogin,
33566
33801
  smartPay,
@@ -33590,6 +33825,7 @@ var en$1 = /* @__PURE__ */ Object.freeze({
33590
33825
  paymentMethod,
33591
33826
  paymentMethodStatus,
33592
33827
  wallet,
33828
+ payLater,
33593
33829
  softbank,
33594
33830
  smartLogin,
33595
33831
  smartPay,
@@ -33670,7 +33906,7 @@ function callbackHandler(params, callback) {
33670
33906
  try {
33671
33907
  callback();
33672
33908
  } catch {
33673
- (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
33909
+ (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.unknown });
33674
33910
  }
33675
33911
  }
33676
33912
  function setSessionData(params) {
@@ -33788,6 +34024,9 @@ class MiniAppModule extends JsBridgeModule {
33788
34024
  this.jsBridge.callNative("openMap", params);
33789
34025
  }
33790
34026
  }
34027
+ openMiniApp(params) {
34028
+ openMiniApp(params);
34029
+ }
33791
34030
  closeApp(params) {
33792
34031
  closeApp(params);
33793
34032
  }