@paypay/mini-app-js-sdk 1.28.0 → 1.31.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 (59) hide show
  1. package/dist/mini-app-api.d.ts +2 -1
  2. package/dist/mini-app-js-sdk.browser.js +1 -1
  3. package/dist/mini-app-js-sdk.es.js +295 -200
  4. package/dist/mini-app-js-sdk.min.css +1 -1
  5. package/dist/model/bridge/index.d.ts +1 -0
  6. package/dist/model/bridge/openMiniApp.d.ts +2 -0
  7. package/dist/model/makePayment.d.ts +1 -0
  8. package/dist/model/uiComponents.d.ts +2 -1
  9. package/dist/package/charge-amount-list/index.vue.d.ts +8 -0
  10. package/dist/package/payment-method/PayLaterCC.vue.d.ts +1 -0
  11. package/dist/package/payment-method/SbidBank.vue.d.ts +1 -0
  12. package/dist/package/payment-method/Wallet.vue.d.ts +1 -0
  13. package/dist/package/payment-type/PayLaterCC.vue.d.ts +1 -0
  14. package/dist/package/payment-type/Sbid.vue.d.ts +1 -0
  15. package/dist/package/payment-type/Wallet.vue.d.ts +2 -0
  16. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +2 -0
  17. package/dist/types.d.ts +3 -0
  18. package/dist/utils/getLanguage.d.ts +1 -0
  19. package/dist/utils/helper.d.ts +2 -0
  20. package/dist/views/email-registration/App.vue.d.ts +1 -0
  21. package/dist/views/error-sheet/Index.vue.d.ts +7 -2
  22. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +1 -0
  23. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +1 -0
  24. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +1 -0
  25. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +1 -0
  26. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +1 -0
  27. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +1 -0
  28. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +1 -0
  29. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +1 -0
  30. package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +1 -0
  31. package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +1 -0
  32. package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +1 -0
  33. package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +1 -0
  34. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +1 -0
  35. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +1 -0
  36. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +1 -0
  37. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +1 -0
  38. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +1 -0
  39. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +1 -0
  40. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +1 -0
  41. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +1 -0
  42. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +3 -0
  43. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +1 -0
  44. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +1 -0
  45. package/dist/views/make-payment/Sheets/Consult.vue.d.ts +1 -1
  46. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +1 -0
  47. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +1 -0
  48. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +1 -0
  49. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +1 -0
  50. package/dist/views/make-payment/hooks/app-hooks.d.ts +1 -0
  51. package/dist/views/open-app/App.vue.d.ts +1 -0
  52. package/dist/views/open-map/App.vue.d.ts +1 -0
  53. package/dist/views/show-update-warning/App.vue.d.ts +1 -0
  54. package/dist/views/smart-button/App.vue.d.ts +2 -2
  55. package/dist/views/take-photo/App.vue.d.ts +1 -0
  56. package/dist/views/topup/App.vue.d.ts +1 -0
  57. package/dist/views/topup/CashbackInfo.vue.d.ts +1 -0
  58. package/dist/views/topup/TopupCompletion.vue.d.ts +1 -0
  59. package/package.json +1 -1
@@ -65,8 +65,8 @@ function normalizeNativeResponseData(data2) {
65
65
  }
66
66
  class JsBridge {
67
67
  constructor(global2) {
68
- this.version = "1.28.0";
69
- this.revision = "8e77fc7";
68
+ this.version = "1.31.0";
69
+ this.revision = "af22aa7";
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,9 +1069,10 @@ 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",
1072
+ cashBackUsable: "PayPay\u30DD\u30A4\u30F3\u30C8",
1073
1073
  cashBackExpirable: "PayPay\u30DC\u30FC\u30CA\u30B9\u30E9\u30A4\u30C8",
1074
- balance: "\u5229\u7528\u53EF\u80FD\u984D\uFF1A"
1074
+ balance: "\u5229\u7528\u53EF\u80FD\u984D\uFF1A",
1075
+ autoCharge: "\u30AA\u30FC\u30C8\u30C1\u30E3\u30FC\u30B8"
1075
1076
  };
1076
1077
  const payLater$2 = {
1077
1078
  title: "PayPay\u3042\u3068\u6255\u3044",
@@ -1316,6 +1317,120 @@ const sendAge = (payload) => {
1316
1317
  data: payload
1317
1318
  });
1318
1319
  };
1320
+ var UIComponentsButtonActionType;
1321
+ (function(UIComponentsButtonActionType2) {
1322
+ UIComponentsButtonActionType2["DEEPLINK"] = "DEEPLINK";
1323
+ UIComponentsButtonActionType2["CLOSE"] = "CLOSE";
1324
+ UIComponentsButtonActionType2["NATIVE"] = "NATIVE";
1325
+ })(UIComponentsButtonActionType || (UIComponentsButtonActionType = {}));
1326
+ var UIComponentsButtonType;
1327
+ (function(UIComponentsButtonType2) {
1328
+ UIComponentsButtonType2["BLUE"] = "BLUE";
1329
+ UIComponentsButtonType2["WHITE"] = "WHITE";
1330
+ })(UIComponentsButtonType || (UIComponentsButtonType = {}));
1331
+ async function topup$3(queryParams, body) {
1332
+ var _a, _b, _c, _d, _e, _f, _g;
1333
+ const res = await ppFetch({
1334
+ method: "POST",
1335
+ url: "web-api/app/v1/payment/topup",
1336
+ params: queryParams,
1337
+ data: body
1338
+ });
1339
+ if ("error" in res) {
1340
+ return res;
1341
+ }
1342
+ 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);
1343
+ if (isSuccess) {
1344
+ saveTopup({
1345
+ amount: (_g = (_f = (_e = res.unsigned) == null ? void 0 : _e.data) == null ? void 0 : _f.amount) == null ? void 0 : _g.amount
1346
+ });
1347
+ }
1348
+ return res;
1349
+ }
1350
+ async function getCashBackInfo() {
1351
+ return await ppFetch({
1352
+ method: "GET",
1353
+ url: "/web-api/app/platform/v1/balance",
1354
+ headers: {
1355
+ "INTERNAL-CALL": "true"
1356
+ }
1357
+ });
1358
+ }
1359
+ async function getAddressByZip(params) {
1360
+ return await ppFetch({
1361
+ method: "GET",
1362
+ url: "web-api/app/v1/addressbyzip",
1363
+ params
1364
+ });
1365
+ }
1366
+ async function getAddressList() {
1367
+ return ppFetch({
1368
+ method: "GET",
1369
+ url: "web-api/app/v1/users/addresslist",
1370
+ params: {
1371
+ type: "PREFERRED"
1372
+ }
1373
+ });
1374
+ }
1375
+ async function postAddress(body) {
1376
+ return await ppFetch({
1377
+ method: "POST",
1378
+ url: "web-api/app/v1/users/address",
1379
+ data: body
1380
+ });
1381
+ }
1382
+ async function editAddress(body, id) {
1383
+ return await ppFetch({
1384
+ method: "PUT",
1385
+ url: `web-api/app/v1/users/address/${id}`,
1386
+ data: body
1387
+ });
1388
+ }
1389
+ async function deleteAddress(id) {
1390
+ return await ppFetch({
1391
+ method: "DELETE",
1392
+ url: `web-api/app/v1/users/address/${id}`
1393
+ });
1394
+ }
1395
+ async function setSelectedAddress(addressId) {
1396
+ return ppFetch({
1397
+ url: `web-api/app/v1/users/address/selected/${addressId}`,
1398
+ method: "PUT"
1399
+ });
1400
+ }
1401
+ async function getUserProfileData() {
1402
+ return ppFetch({
1403
+ url: "web-api/app/v1/users/profile",
1404
+ method: "GET"
1405
+ });
1406
+ }
1407
+ async function registerEmail$1(email) {
1408
+ return ppFetch({
1409
+ url: "web-api/app/v1/users/email",
1410
+ method: "POST",
1411
+ data: {
1412
+ email
1413
+ }
1414
+ });
1415
+ }
1416
+ async function resendEmail() {
1417
+ return ppFetch({
1418
+ url: "web-api/app/v1/users/resendVerification",
1419
+ method: "POST"
1420
+ });
1421
+ }
1422
+ function getUserLocationRequest(params) {
1423
+ return ppFetch({
1424
+ url: "web-api/app/v1/location",
1425
+ method: "GET",
1426
+ params: {
1427
+ validTimeMinutes: params.validTimeMinutes
1428
+ }
1429
+ });
1430
+ }
1431
+ function isValidUrl(urlChallenge) {
1432
+ return /^https?:\/\//.test(urlChallenge);
1433
+ }
1319
1434
  function isDef(val2) {
1320
1435
  return val2 !== void 0 && val2 !== null;
1321
1436
  }
@@ -1512,6 +1627,20 @@ function getPaymentMethodStatus(isExpired, val2) {
1512
1627
  return lg2.paymentMethod.expired;
1513
1628
  return val2 && val2 in PaymentMethodStatus ? lg2.paymentMethodStatus[val2] : "";
1514
1629
  }
1630
+ function filterErrorButtonList(buttonList) {
1631
+ return buttonList == null ? void 0 : buttonList.filter((button2) => {
1632
+ var _a, _b;
1633
+ if (button2.actionType === UIComponentsButtonActionType.NATIVE) {
1634
+ return false;
1635
+ } else {
1636
+ if (isPayPayMiniApp() || button2.actionType === UIComponentsButtonActionType.CLOSE) {
1637
+ return true;
1638
+ } else {
1639
+ 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="));
1640
+ }
1641
+ }
1642
+ });
1643
+ }
1515
1644
  const opaUrl = () => {
1516
1645
  switch (getEnv()) {
1517
1646
  case "staging":
@@ -1528,7 +1657,7 @@ const opaUrl = () => {
1528
1657
  const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
1529
1658
  let headers = new Headers(__spreadValues({
1530
1659
  "Content-Type": "application/json",
1531
- "Client-Version": "1.28.0",
1660
+ "Client-Version": "1.31.0",
1532
1661
  "Client-OS-Type": getRuntime()
1533
1662
  }, customHeaders));
1534
1663
  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") {
@@ -20128,7 +20257,8 @@ const _sfc_main$11 = defineComponent({
20128
20257
  cashBack: formatAmount(cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.balance),
20129
20258
  cashBackUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable,
20130
20259
  cashBackExpirable: formatAmount(cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance),
20131
- cashBackExpirebleUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable
20260
+ cashBackExpirebleUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable,
20261
+ showExpirableBalance: cashBackExpirableBalanceInfo && (cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance) > 0
20132
20262
  };
20133
20263
  });
20134
20264
  return {
@@ -20180,14 +20310,15 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
20180
20310
  class: normalizeClass({ "non-usable": !_ctx.walletDetail.cashBackUsable })
20181
20311
  }, [
20182
20312
  createBaseVNode("span", null, toDisplayString(_ctx.lg.wallet.cashBackUsable), 1),
20183
- createBaseVNode("span", null, toDisplayString(_ctx.walletDetail.cashBack) + "\u5186", 1)
20313
+ createBaseVNode("span", null, toDisplayString(_ctx.walletDetail.cashBack) + "pt", 1)
20184
20314
  ], 2),
20185
- createBaseVNode("li", {
20315
+ _ctx.walletDetail.showExpirableBalance ? (openBlock(), createElementBlock("li", {
20316
+ key: 0,
20186
20317
  class: normalizeClass({ "non-usable": !_ctx.walletDetail.cashBackExpirebleUsable })
20187
20318
  }, [
20188
20319
  createBaseVNode("span", null, toDisplayString(_ctx.lg.wallet.cashBackExpirable), 1),
20189
- createBaseVNode("span", null, toDisplayString(_ctx.walletDetail.cashBackExpirable) + "\u5186", 1)
20190
- ], 2)
20320
+ createBaseVNode("span", null, toDisplayString(_ctx.walletDetail.cashBackExpirable) + "pt", 1)
20321
+ ], 2)) : createCommentVNode("", true)
20191
20322
  ])
20192
20323
  ], 2)) : createCommentVNode("", true)
20193
20324
  ]),
@@ -20195,9 +20326,9 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
20195
20326
  }, 8, ["name"])
20196
20327
  ]);
20197
20328
  }
20198
- const cssModules$O = {};
20199
- cssModules$O["$style"] = style0$N;
20200
- var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__cssModules", cssModules$O]]);
20329
+ const cssModules$P = {};
20330
+ cssModules$P["$style"] = style0$N;
20331
+ var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__cssModules", cssModules$P]]);
20201
20332
  const img$b = "_img_373i3_1";
20202
20333
  var style0$M = {
20203
20334
  img: img$b
@@ -20258,7 +20389,7 @@ const _hoisted_2$q = { class: "payment-method--content-container--image-containe
20258
20389
  const _hoisted_3$l = ["src"];
20259
20390
  const _hoisted_4$h = { class: "payment-method--content-container--label" };
20260
20391
  const _hoisted_5$d = { class: "payment-method--content-container--label--main" };
20261
- const _hoisted_6$6 = { class: "payment-method--content-container--label--sub" };
20392
+ const _hoisted_6$7 = { class: "payment-method--content-container--label--sub" };
20262
20393
  function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
20263
20394
  const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
20264
20395
  return openBlock(), createElementBlock("div", _hoisted_1$H, [
@@ -20270,14 +20401,14 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
20270
20401
  ]),
20271
20402
  createBaseVNode("div", _hoisted_4$h, [
20272
20403
  createBaseVNode("span", _hoisted_5$d, toDisplayString(_ctx.lg.wallet.title), 1),
20273
- createBaseVNode("span", _hoisted_6$6, toDisplayString(_ctx.formattedBalance) + "\u5186 ", 1),
20404
+ createBaseVNode("span", _hoisted_6$7, toDisplayString(_ctx.formattedBalance) + "\u5186 ", 1),
20274
20405
  createVNode(_component_WalletBreakdown, { wallet: _ctx.wallet }, null, 8, ["wallet"])
20275
20406
  ])
20276
20407
  ]);
20277
20408
  }
20278
- const cssModules$N = {};
20279
- cssModules$N["$style"] = style0$M;
20280
- var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__cssModules", cssModules$N], ["__scopeId", "data-v-e0654490"]]);
20409
+ const cssModules$O = {};
20410
+ cssModules$O["$style"] = style0$M;
20411
+ var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__cssModules", cssModules$O], ["__scopeId", "data-v-e0654490"]]);
20281
20412
  const img$a = "_img_p3zha_1";
20282
20413
  const round$2 = "_round_p3zha_5";
20283
20414
  const nonVisible$1 = "_nonVisible_p3zha_8";
@@ -20478,9 +20609,9 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
20478
20609
  ], 2)
20479
20610
  ], 2);
20480
20611
  }
20481
- const cssModules$M = {};
20482
- cssModules$M["$style"] = style0$L;
20483
- var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__cssModules", cssModules$M], ["__scopeId", "data-v-4589c43a"]]);
20612
+ const cssModules$N = {};
20613
+ cssModules$N["$style"] = style0$L;
20614
+ var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__cssModules", cssModules$N], ["__scopeId", "data-v-4589c43a"]]);
20484
20615
  const img$8 = "_img_11k9z_1";
20485
20616
  const round$1 = "_round_11k9z_5";
20486
20617
  const branchNumber = "_branchNumber_11k9z_8";
@@ -20621,9 +20752,9 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
20621
20752
  ], 2)
20622
20753
  ], 2);
20623
20754
  }
20624
- const cssModules$L = {};
20625
- cssModules$L["$style"] = style0$K;
20626
- var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__cssModules", cssModules$L]]);
20755
+ const cssModules$M = {};
20756
+ cssModules$M["$style"] = style0$K;
20757
+ var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__cssModules", cssModules$M]]);
20627
20758
  const container$k = "_container_82o6p_1";
20628
20759
  const imageContainer$1 = "_imageContainer_82o6p_7";
20629
20760
  const img$7 = "_img_82o6p_11";
@@ -20739,9 +20870,9 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
20739
20870
  ], 2)
20740
20871
  ], 2);
20741
20872
  }
20742
- const cssModules$K = {};
20743
- cssModules$K["$style"] = style0$J;
20744
- var Sbid = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__cssModules", cssModules$K]]);
20873
+ const cssModules$L = {};
20874
+ cssModules$L["$style"] = style0$J;
20875
+ var Sbid = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__cssModules", cssModules$L]]);
20745
20876
  const img$6 = "_img_m6p0b_1";
20746
20877
  const container$j = "_container_m6p0b_5";
20747
20878
  const imgContainer$2 = "_imgContainer_m6p0b_10";
@@ -20834,9 +20965,9 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
20834
20965
  ], 2)
20835
20966
  ], 2);
20836
20967
  }
20837
- const cssModules$J = {};
20838
- cssModules$J["$style"] = style0$I;
20839
- var PayLaterCC = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__cssModules", cssModules$J]]);
20968
+ const cssModules$K = {};
20969
+ cssModules$K["$style"] = style0$I;
20970
+ var PayLaterCC = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__cssModules", cssModules$K]]);
20840
20971
  const PaymentMethod = defineComponent({
20841
20972
  props: {
20842
20973
  paymentMethod: {
@@ -20937,6 +21068,14 @@ function useBreakpoints() {
20937
21068
  };
20938
21069
  }
20939
21070
  var Wallet_vue_vue_type_style_index_0_scoped_true_lang = "";
21071
+ const chargeContainer = "_chargeContainer_1teaz_1";
21072
+ const greenTick = "_greenTick_1teaz_6";
21073
+ const autoCharge = "_autoCharge_1teaz_10";
21074
+ var style1$1 = {
21075
+ chargeContainer,
21076
+ greenTick,
21077
+ autoCharge
21078
+ };
20940
21079
  const _sfc_main$X = defineComponent({
20941
21080
  components: {
20942
21081
  WalletBreakdown
@@ -20953,20 +21092,26 @@ const _sfc_main$X = defineComponent({
20953
21092
  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);
20954
21093
  });
20955
21094
  const { isDesktop } = useBreakpoints();
21095
+ const isPreTransactionAutoChargeEnabled = computed(() => {
21096
+ var _a, _b;
21097
+ return (_b = (_a = props == null ? void 0 : props.wallet) == null ? void 0 : _a.walletInfo) == null ? void 0 : _b.isPreTransactionAutoChargeEnabled;
21098
+ });
20956
21099
  return {
20957
21100
  formattedBalance,
20958
21101
  images: getImages(),
20959
21102
  lg: getLanguage(),
20960
- isDesktop
21103
+ isDesktop,
21104
+ isPreTransactionAutoChargeEnabled
20961
21105
  };
20962
21106
  }
20963
21107
  });
20964
- const _withScopeId$3 = (n) => (pushScopeId("data-v-1405076b"), n = n(), popScopeId(), n);
21108
+ const _withScopeId$3 = (n) => (pushScopeId("data-v-aa178176"), n = n(), popScopeId(), n);
20965
21109
  const _hoisted_1$C = { class: "ppmna-payment-type--container bank-method--right-align" };
20966
21110
  const _hoisted_2$n = ["src"];
20967
21111
  const _hoisted_3$i = { class: "ppmna-payment-type--container--main" };
20968
21112
  const _hoisted_4$e = { class: "ppmna-payment-type--container--sub" };
20969
- const _hoisted_5$a = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createBaseVNode("div", { class: "payment-type--arrow-right-container" }, [
21113
+ const _hoisted_5$a = ["src"];
21114
+ const _hoisted_6$6 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createBaseVNode("div", { class: "payment-type--arrow-right-container" }, [
20970
21115
  /* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
20971
21116
  ], -1));
20972
21117
  function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
@@ -20981,15 +21126,30 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
20981
21126
  createBaseVNode("div", null, [
20982
21127
  createBaseVNode("div", _hoisted_3$i, toDisplayString(_ctx.lg.wallet.title), 1),
20983
21128
  createBaseVNode("div", _hoisted_4$e, toDisplayString(_ctx.lg.wallet.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 1),
20984
- _ctx.isDesktop ? (openBlock(), createBlock(_component_WalletBreakdown, {
21129
+ _ctx.isPreTransactionAutoChargeEnabled ? (openBlock(), createElementBlock("div", {
20985
21130
  key: 0,
21131
+ class: normalizeClass(_ctx.$style.chargeContainer)
21132
+ }, [
21133
+ createBaseVNode("img", {
21134
+ class: normalizeClass(_ctx.$style.greenTick),
21135
+ src: _ctx.images.checkGreen,
21136
+ alt: "green-tick"
21137
+ }, null, 10, _hoisted_5$a),
21138
+ createBaseVNode("span", {
21139
+ class: normalizeClass(_ctx.$style.autoCharge)
21140
+ }, toDisplayString(_ctx.lg.wallet.autoCharge), 3)
21141
+ ], 2)) : createCommentVNode("", true),
21142
+ _ctx.isDesktop ? (openBlock(), createBlock(_component_WalletBreakdown, {
21143
+ key: 1,
20986
21144
  wallet: _ctx.wallet
20987
21145
  }, null, 8, ["wallet"])) : createCommentVNode("", true)
20988
21146
  ]),
20989
- _hoisted_5$a
21147
+ _hoisted_6$6
20990
21148
  ]);
20991
21149
  }
20992
- var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__scopeId", "data-v-1405076b"]]);
21150
+ const cssModules$J = {};
21151
+ cssModules$J["$style"] = style1$1;
21152
+ var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__cssModules", cssModules$J], ["__scopeId", "data-v-aa178176"]]);
20993
21153
  const main = "_main_1rgsx_1";
20994
21154
  const auth = "_auth_1rgsx_6";
20995
21155
  const authImage = "_authImage_1rgsx_11";
@@ -21927,6 +22087,11 @@ const _sfc_main$Q = defineComponent({
21927
22087
  type: Array,
21928
22088
  default: () => [2e3, 3e3, 5e3, 1e4, 3e4, 5e4, 1e5],
21929
22089
  required: false
22090
+ },
22091
+ isTopup: {
22092
+ type: Boolean,
22093
+ required: false,
22094
+ default: false
21930
22095
  }
21931
22096
  },
21932
22097
  emits: ["setmoney", "switchinput", "selectmoremoney"],
@@ -21958,7 +22123,7 @@ const _sfc_main$Q = defineComponent({
21958
22123
  };
21959
22124
  const handleSelectMoreClick = (e) => {
21960
22125
  e == null ? void 0 : e.stopPropagation();
21961
- if (isMobile.value) {
22126
+ if (isMobile.value || props.isTopup) {
21962
22127
  emit("selectmoremoney");
21963
22128
  } else {
21964
22129
  state.toggleDropdown = true;
@@ -22569,7 +22734,8 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
22569
22734
  _ctx.address.receiver ? (openBlock(), createElementBlock("div", {
22570
22735
  key: 1,
22571
22736
  class: normalizeClass([_ctx.style.text, _ctx.style.receiver]),
22572
- "data-test": "address-receiver"
22737
+ "data-test": "address-receiver",
22738
+ "data-testid": "address-receiver"
22573
22739
  }, toDisplayString(_ctx.address.receiver), 3)) : createCommentVNode("", true),
22574
22740
  _ctx.selected ? (openBlock(), createElementBlock("div", {
22575
22741
  key: 2,
@@ -23114,109 +23280,6 @@ function useAddressControl$1() {
23114
23280
  confirmSelectedAddress
23115
23281
  };
23116
23282
  }
23117
- async function topup$3(queryParams, body) {
23118
- var _a, _b, _c, _d, _e, _f, _g;
23119
- const res = await ppFetch({
23120
- method: "POST",
23121
- url: "web-api/app/v1/payment/topup",
23122
- params: queryParams,
23123
- data: body
23124
- });
23125
- if ("error" in res) {
23126
- return res;
23127
- }
23128
- 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);
23129
- if (isSuccess) {
23130
- saveTopup({
23131
- amount: (_g = (_f = (_e = res.unsigned) == null ? void 0 : _e.data) == null ? void 0 : _f.amount) == null ? void 0 : _g.amount
23132
- });
23133
- }
23134
- return res;
23135
- }
23136
- async function getCashBackInfo() {
23137
- return await ppFetch({
23138
- method: "GET",
23139
- url: "/web-api/app/platform/v1/balance",
23140
- headers: {
23141
- "INTERNAL-CALL": "true"
23142
- }
23143
- });
23144
- }
23145
- async function getAddressByZip(params) {
23146
- return await ppFetch({
23147
- method: "GET",
23148
- url: "web-api/app/v1/addressbyzip",
23149
- params
23150
- });
23151
- }
23152
- async function getAddressList() {
23153
- return ppFetch({
23154
- method: "GET",
23155
- url: "web-api/app/v1/users/addresslist",
23156
- params: {
23157
- type: "PREFERRED"
23158
- }
23159
- });
23160
- }
23161
- async function postAddress(body) {
23162
- return await ppFetch({
23163
- method: "POST",
23164
- url: "web-api/app/v1/users/address",
23165
- data: body
23166
- });
23167
- }
23168
- async function editAddress(body, id) {
23169
- return await ppFetch({
23170
- method: "PUT",
23171
- url: `web-api/app/v1/users/address/${id}`,
23172
- data: body
23173
- });
23174
- }
23175
- async function deleteAddress(id) {
23176
- return await ppFetch({
23177
- method: "DELETE",
23178
- url: `web-api/app/v1/users/address/${id}`
23179
- });
23180
- }
23181
- async function setSelectedAddress(addressId) {
23182
- return ppFetch({
23183
- url: `web-api/app/v1/users/address/selected/${addressId}`,
23184
- method: "PUT"
23185
- });
23186
- }
23187
- async function getUserProfileData() {
23188
- return ppFetch({
23189
- url: "web-api/app/v1/users/profile",
23190
- method: "GET"
23191
- });
23192
- }
23193
- async function registerEmail$1(email) {
23194
- return ppFetch({
23195
- url: "web-api/app/v1/users/email",
23196
- method: "POST",
23197
- data: {
23198
- email
23199
- }
23200
- });
23201
- }
23202
- async function resendEmail() {
23203
- return ppFetch({
23204
- url: "web-api/app/v1/users/resendVerification",
23205
- method: "POST"
23206
- });
23207
- }
23208
- function getUserLocationRequest(params) {
23209
- return ppFetch({
23210
- url: "web-api/app/v1/location",
23211
- method: "GET",
23212
- params: {
23213
- validTimeMinutes: params.validTimeMinutes
23214
- }
23215
- });
23216
- }
23217
- function isValidUrl(urlChallenge) {
23218
- return /^https?:\/\//.test(urlChallenge);
23219
- }
23220
23283
  const root$6 = "_root_122l2_2";
23221
23284
  const title$5 = "_title_122l2_6";
23222
23285
  const container$a = "_container_122l2_13";
@@ -24657,6 +24720,23 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
24657
24720
  const cssModules$l = {};
24658
24721
  cssModules$l["$style"] = style0$k;
24659
24722
  var App = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z], ["__cssModules", cssModules$l]]);
24723
+ function closeApp(params) {
24724
+ var _a;
24725
+ if (params) {
24726
+ reconstructParams(params);
24727
+ }
24728
+ if (isPayPayMiniApp()) {
24729
+ if ((_a = params == null ? void 0 : params.options) == null ? void 0 : _a.deeplink) {
24730
+ window.location.href = params.options.deeplink;
24731
+ } else {
24732
+ window.location.href = "paypay://closeMiniApp";
24733
+ }
24734
+ }
24735
+ setTimeout(function() {
24736
+ var _a2;
24737
+ (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.deeplinkUnavailable });
24738
+ }, 300);
24739
+ }
24660
24740
  function openWebview(params) {
24661
24741
  var _a, _b, _c, _d;
24662
24742
  reconstructParams(params);
@@ -24724,23 +24804,13 @@ function getAuthUrl(redirectUrl) {
24724
24804
  const clientId = (_a = getClientId()) != null ? _a : "";
24725
24805
  return `${authUrl}/portal/auth/mini-app/permission?clientId=${clientId}&redirectUrl=${encodeURIComponent(redirectUrl)}`;
24726
24806
  }
24727
- var UIComponentsButtonActionType;
24728
- (function(UIComponentsButtonActionType2) {
24729
- UIComponentsButtonActionType2["DEEPLINK"] = "DEEPLINK";
24730
- UIComponentsButtonActionType2["CLOSE"] = "CLOSE";
24731
- })(UIComponentsButtonActionType || (UIComponentsButtonActionType = {}));
24732
- var UIComponentsButtonType;
24733
- (function(UIComponentsButtonType2) {
24734
- UIComponentsButtonType2["BLUE"] = "BLUE";
24735
- UIComponentsButtonType2["WHITE"] = "WHITE";
24736
- })(UIComponentsButtonType || (UIComponentsButtonType = {}));
24737
- const errorContainer = "_errorContainer_9pch3_1";
24738
- const errorIcon = "_errorIcon_9pch3_8";
24739
- const unit$2 = "_unit_9pch3_15";
24740
- const errorTitle = "_errorTitle_9pch3_18";
24741
- const subTitle = "_subTitle_9pch3_26";
24742
- const btnContainer$2 = "_btnContainer_9pch3_34";
24743
- const closeBtn = "_closeBtn_9pch3_38";
24807
+ const errorContainer = "_errorContainer_169nl_1";
24808
+ const errorIcon = "_errorIcon_169nl_8";
24809
+ const unit$2 = "_unit_169nl_15";
24810
+ const errorTitle = "_errorTitle_169nl_18";
24811
+ const subTitle = "_subTitle_169nl_26";
24812
+ const btnContainer$2 = "_btnContainer_169nl_34";
24813
+ const closeBtn = "_closeBtn_169nl_38";
24744
24814
  var style0$j = {
24745
24815
  errorContainer,
24746
24816
  errorIcon,
@@ -24790,6 +24860,15 @@ const _sfc_main$y = defineComponent({
24790
24860
  lg: getLanguage()
24791
24861
  };
24792
24862
  },
24863
+ computed: {
24864
+ buttonListData() {
24865
+ return filterErrorButtonList(this.buttonList);
24866
+ },
24867
+ onlyButton() {
24868
+ var _a;
24869
+ return ((_a = this.buttonListData) == null ? void 0 : _a.length) === 1;
24870
+ }
24871
+ },
24793
24872
  methods: {
24794
24873
  buttonClick(buttonInfo) {
24795
24874
  var _a;
@@ -24800,12 +24879,24 @@ const _sfc_main$y = defineComponent({
24800
24879
  const splitUrl = (_a = buttonInfo == null ? void 0 : buttonInfo.deeplink) == null ? void 0 : _a.split("?url=");
24801
24880
  if ((splitUrl == null ? void 0 : splitUrl.length) === 2) {
24802
24881
  openWebviewInternal({ url: splitUrl[1] });
24882
+ } else {
24883
+ closeApp({
24884
+ options: {
24885
+ deeplink: buttonInfo.deeplink
24886
+ }
24887
+ });
24803
24888
  }
24804
24889
  }
24805
24890
  return;
24806
24891
  }
24807
24892
  this.$emit("close-click");
24808
24893
  return;
24894
+ },
24895
+ getButtonType(type) {
24896
+ if (type === UIComponentsButtonType.BLUE || this.onlyButton) {
24897
+ return "primary";
24898
+ }
24899
+ return "link";
24809
24900
  }
24810
24901
  }
24811
24902
  });
@@ -24837,15 +24928,15 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
24837
24928
  createBaseVNode("div", {
24838
24929
  class: normalizeClass(_ctx.style.subTitle)
24839
24930
  }, toDisplayString(_ctx.errorText), 3),
24840
- _ctx.buttonList ? (openBlock(), createElementBlock("span", {
24931
+ _ctx.buttonListData ? (openBlock(), createElementBlock("span", {
24841
24932
  key: 1,
24842
24933
  class: normalizeClass(_ctx.style.btnContainer)
24843
24934
  }, [
24844
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonList, (item, index2) => {
24935
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonListData, (item, index2) => {
24845
24936
  return openBlock(), createElementBlock("div", { key: index2 }, [
24846
24937
  createVNode(_component_Button, {
24847
24938
  block: "",
24848
- type: item.buttonType === "BLUE" ? "primary" : "link",
24939
+ type: _ctx.getButtonType(item.buttonType),
24849
24940
  onClick: ($event) => _ctx.buttonClick(item)
24850
24941
  }, {
24851
24942
  default: withCtx(() => [
@@ -25723,7 +25814,7 @@ const _hoisted_5$8 = {
25723
25814
  class: "price",
25724
25815
  "data-test": "cashback-detail-list-price"
25725
25816
  };
25726
- const _hoisted_6$5 = /* @__PURE__ */ createBaseVNode("span", { class: "unit" }, "\u5186", -1);
25817
+ const _hoisted_6$5 = /* @__PURE__ */ createBaseVNode("span", { class: "unit" }, "pt", -1);
25727
25818
  const _hoisted_7$4 = { class: "make-payment-cashback-detail-list--container" };
25728
25819
  const _hoisted_8$3 = ["onClick"];
25729
25820
  const _hoisted_9$3 = { class: "campaign" };
@@ -25882,7 +25973,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
25882
25973
  createTextVNode(toDisplayString(_ctx.cashBackInfo.cashBackAmount) + " ", 1),
25883
25974
  createBaseVNode("span", {
25884
25975
  class: normalizeClass(_ctx.style.cashBackUnit)
25885
- }, "\u5186\u76F8\u5F53", 2)
25976
+ }, "pt", 2)
25886
25977
  ], 2)) : createCommentVNode("", true)
25887
25978
  ], 2),
25888
25979
  createBaseVNode("div", {
@@ -26562,7 +26653,8 @@ const _sfc_main$p = defineComponent({
26562
26653
  emits: ["close"],
26563
26654
  setup(props, context) {
26564
26655
  const getButtonType = (type) => {
26565
- if (type === UIComponentsButtonType.BLUE) {
26656
+ var _a;
26657
+ if (type === UIComponentsButtonType.BLUE || ((_a = buttonList == null ? void 0 : buttonList.value) == null ? void 0 : _a.length) === 1) {
26566
26658
  return "primary";
26567
26659
  }
26568
26660
  return "link";
@@ -26576,6 +26668,12 @@ const _sfc_main$p = defineComponent({
26576
26668
  const splitUrl = (_a = buttonInfo == null ? void 0 : buttonInfo.deeplink) == null ? void 0 : _a.split("?url=");
26577
26669
  if ((splitUrl == null ? void 0 : splitUrl.length) === 2) {
26578
26670
  openWebviewInternal({ url: splitUrl[1] });
26671
+ } else {
26672
+ closeApp({
26673
+ options: {
26674
+ deeplink: buttonInfo.deeplink
26675
+ }
26676
+ });
26579
26677
  }
26580
26678
  }
26581
26679
  return;
@@ -26584,14 +26682,7 @@ const _sfc_main$p = defineComponent({
26584
26682
  return;
26585
26683
  };
26586
26684
  const buttonList = computed(() => {
26587
- if (isPayPayMiniApp()) {
26588
- return props.consultInfo.buttonList;
26589
- } else {
26590
- return props.consultInfo.buttonList.filter((button2) => {
26591
- var _a;
26592
- return !((_a = button2.deeplink) == null ? void 0 : _a.startsWith("paypay://"));
26593
- });
26594
- }
26685
+ return filterErrorButtonList(props.consultInfo.buttonList);
26595
26686
  });
26596
26687
  return {
26597
26688
  getButtonType,
@@ -30032,11 +30123,11 @@ function showAlert(params) {
30032
30123
  (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.unknown });
30033
30124
  }
30034
30125
  }
30035
- const bannerInfoContainer = "_bannerInfoContainer_1l754_1";
30036
- const bannerInfoIcon = "_bannerInfoIcon_1l754_9";
30037
- const bannerDesc = "_bannerDesc_1l754_14";
30038
- const updateIcon = "_updateIcon_1l754_20";
30039
- const bannerTitle = "_bannerTitle_1l754_23";
30126
+ const bannerInfoContainer = "_bannerInfoContainer_17644_1";
30127
+ const bannerInfoIcon = "_bannerInfoIcon_17644_9";
30128
+ const bannerDesc = "_bannerDesc_17644_14";
30129
+ const updateIcon = "_updateIcon_17644_20";
30130
+ const bannerTitle = "_bannerTitle_17644_23";
30040
30131
  var style0$6 = {
30041
30132
  bannerInfoContainer,
30042
30133
  bannerInfoIcon,
@@ -30598,6 +30689,8 @@ const _sfc_main$a = defineComponent({
30598
30689
  }
30599
30690
  this.cashbackData = (_a = cashbackInfo == null ? void 0 : cashbackInfo.data) == null ? void 0 : _a.payload;
30600
30691
  this.inputMoney = 0;
30692
+ this.minAmountUnmet = false;
30693
+ this.maxAmountExceeded = false;
30601
30694
  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;
30602
30695
  this.balMoney = formatCurrency(this.inputMoney + this.fixBalMoney, 0);
30603
30696
  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;
@@ -30669,6 +30762,7 @@ const _sfc_main$a = defineComponent({
30669
30762
  setCurrentMoney(price2) {
30670
30763
  this.inputMoney = price2;
30671
30764
  this.isSelectMoreMoney = false;
30765
+ this.checkValidAmount();
30672
30766
  },
30673
30767
  selectPaymentMethod(index2) {
30674
30768
  this.selectPaymentIndex = index2;
@@ -30893,6 +30987,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
30893
30987
  isfullheight: !_ctx.isInput,
30894
30988
  small: true,
30895
30989
  class: normalizeClass(_ctx.$style.amountList),
30990
+ "is-topup": true,
30896
30991
  onSetmoney: _ctx.setMoney,
30897
30992
  onSelectmoremoney: _ctx.selectMoreMoney,
30898
30993
  onSwitchinput: _ctx.switchInput
@@ -30958,7 +31053,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
30958
31053
  createVNode(_component_Button, {
30959
31054
  type: "primary",
30960
31055
  block: "",
30961
- disabled: _ctx.disablePaymentBtn || _ctx.loading,
31056
+ disabled: _ctx.disablePaymentBtn || _ctx.loading || _ctx.inputMoney == 0,
30962
31057
  loading: _ctx.loading,
30963
31058
  "data-test": "click-topup",
30964
31059
  onClick: _cache[4] || (_cache[4] = ($event) => _ctx.clickTopup(false))
@@ -31135,23 +31230,6 @@ function topup$1(params) {
31135
31230
  reconstructParams(params);
31136
31231
  initTopup(params);
31137
31232
  }
31138
- function closeApp(params) {
31139
- var _a;
31140
- if (params) {
31141
- reconstructParams(params);
31142
- }
31143
- if (isPayPayMiniApp()) {
31144
- if ((_a = params == null ? void 0 : params.options) == null ? void 0 : _a.deeplink) {
31145
- window.location.href = params.options.deeplink;
31146
- } else {
31147
- window.location.href = "paypay://closeMiniApp";
31148
- }
31149
- }
31150
- setTimeout(function() {
31151
- var _a2;
31152
- (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.deeplinkUnavailable });
31153
- }, 300);
31154
- }
31155
31233
  var App_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
31156
31234
  const _sfc_main$9 = defineComponent({
31157
31235
  components: {
@@ -32142,6 +32220,19 @@ function openApp$1(params) {
32142
32220
  }
32143
32221
  initOpenApp(params);
32144
32222
  }
32223
+ function openMiniApp(params) {
32224
+ var _a, _b;
32225
+ if (params) {
32226
+ reconstructParams(params);
32227
+ }
32228
+ const clientId = getClientId();
32229
+ if (!clientId) {
32230
+ return (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.sdkNotInitialized });
32231
+ }
32232
+ const appUrl = (params == null ? void 0 : params.redirectUrl) ? `paypay://miniapp?appId=${clientId}&redirectUrl=${encodeURIComponent(params == null ? void 0 : params.redirectUrl)}` : `paypay://miniapp?appId=${clientId}`;
32233
+ window.location.href = appUrl;
32234
+ (_b = params == null ? void 0 : params.success) == null ? void 0 : _b.call(params);
32235
+ }
32145
32236
  async function checkPaymentMethod(params) {
32146
32237
  var _a, _b, _c, _d, _e, _f, _g, _h;
32147
32238
  reconstructParams(params);
@@ -32214,7 +32305,7 @@ function debug(params) {
32214
32305
  function execute$5(params) {
32215
32306
  var _a;
32216
32307
  (_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
32217
- v: "1.28.0"
32308
+ v: "1.31.0"
32218
32309
  });
32219
32310
  }
32220
32311
  function useCallBack(props, ctx) {
@@ -33568,7 +33659,7 @@ const birthdayConfirm = {
33568
33659
  const birthdayConfirmError = {
33569
33660
  title: "Winning this campaign",
33570
33661
  title2: "PayPay balance could not be earned.",
33571
- desc: "The displayed bonus amount is",
33662
+ desc: "The displayed point amount is",
33572
33663
  desc2: "Cancelled at a later date based on campaign terms",
33573
33664
  helpBtn: "Check help page",
33574
33665
  closeBtn: "Close"
@@ -33676,9 +33767,10 @@ const wallet = {
33676
33767
  desc: "See the breakdown",
33677
33768
  eMoney: "PayPay Money",
33678
33769
  nonUsable: "PayPay Money Lite",
33679
- cashBackUsable: "PayPay Bonus",
33770
+ cashBackUsable: "PayPay Point",
33680
33771
  cashBackExpirable: "PayPay Bonus Light",
33681
- balance: "Available amount:"
33772
+ balance: "Available amount:",
33773
+ autoCharge: "Auto charge"
33682
33774
  };
33683
33775
  const payLater = {
33684
33776
  title: "PayPay deferred payment",
@@ -33963,6 +34055,9 @@ class MiniAppModule extends JsBridgeModule {
33963
34055
  this.jsBridge.callNative("openMap", params);
33964
34056
  }
33965
34057
  }
34058
+ openMiniApp(params) {
34059
+ openMiniApp(params);
34060
+ }
33966
34061
  closeApp(params) {
33967
34062
  closeApp(params);
33968
34063
  }