@paypay/mini-app-js-sdk 1.59.0 → 1.61.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.
@@ -50,8 +50,8 @@ function normalizeNativeResponseData(data2) {
50
50
  }
51
51
  class JsBridge {
52
52
  constructor(global2) {
53
- this.version = "1.59.0";
54
- this.revision = "bfb6876";
53
+ this.version = "1.61.0";
54
+ this.revision = "edfaab4";
55
55
  this.messageHandlers = /* @__PURE__ */ new Map();
56
56
  this.responseCallbacks = /* @__PURE__ */ new Map();
57
57
  this.global = global2;
@@ -59,7 +59,7 @@ class JsBridge {
59
59
  generateCallbackId() {
60
60
  return [
61
61
  "cb_",
62
- Math.random().toString(36).substr(2, 8),
62
+ Math.random().toString(36).slice(2, 10),
63
63
  "_",
64
64
  new Date().getTime()
65
65
  ].join("");
@@ -404,6 +404,13 @@ var ChallengeMethod = /* @__PURE__ */ ((ChallengeMethod2) => {
404
404
  ChallengeMethod2["S256"] = "S256";
405
405
  return ChallengeMethod2;
406
406
  })(ChallengeMethod || {});
407
+ const AddShortcutTypes = {
408
+ FAVORITE: "FAVORITE",
409
+ OS_HOME_SCREEN_ICON: "OS_HOME_SCREEN_ICON"
410
+ };
411
+ const ShortcutExistsTypes = {
412
+ FAVORITE: "FAVORITE"
413
+ };
407
414
  function isLocalIP(hostName) {
408
415
  if (hostName === "localhost") {
409
416
  return true;
@@ -1318,10 +1325,10 @@ function getLanguage() {
1318
1325
  }
1319
1326
  function getPayPayLanguage() {
1320
1327
  var _a2, _b;
1321
- let preferredLanguage = (_a2 = navigator.language) == null ? void 0 : _a2.substr(0, 2);
1328
+ let preferredLanguage = (_a2 = navigator.language) == null ? void 0 : _a2.slice(0, 2);
1322
1329
  const langSplit = navigator.userAgent.split(" Lang/");
1323
1330
  if (langSplit.length > 1) {
1324
- preferredLanguage = (_b = langSplit[1].split(" ")[0].substr(0, 2)) != null ? _b : preferredLanguage;
1331
+ preferredLanguage = (_b = langSplit[1].split(" ")[0].slice(0, 2)) != null ? _b : preferredLanguage;
1325
1332
  }
1326
1333
  return preferredLanguage;
1327
1334
  }
@@ -1471,55 +1478,62 @@ async function topup$3(queryParams, body2) {
1471
1478
  return res;
1472
1479
  }
1473
1480
  async function getCashBackInfo() {
1474
- return await ppFetch2({
1481
+ const result2 = await ppFetch2({
1475
1482
  method: "GET",
1476
1483
  url: "/web-api/app/platform/v1/balance",
1477
1484
  headers: {
1478
1485
  "INTERNAL-CALL": "true"
1479
1486
  }
1480
1487
  });
1488
+ return result2;
1481
1489
  }
1482
1490
  async function getAddressByZip(params) {
1483
- return await ppFetch2({
1491
+ const result2 = await ppFetch2({
1484
1492
  method: "GET",
1485
1493
  url: "web-api/app/v1/addressbyzip",
1486
1494
  params
1487
1495
  });
1496
+ return result2;
1488
1497
  }
1489
1498
  async function getAddressList() {
1490
- return ppFetch2({
1499
+ const result2 = ppFetch2({
1491
1500
  method: "GET",
1492
1501
  url: "web-api/app/v1/users/addresslist",
1493
1502
  params: {
1494
1503
  type: "PREFERRED"
1495
1504
  }
1496
1505
  });
1506
+ return result2;
1497
1507
  }
1498
1508
  async function postAddress(body2) {
1499
- return await ppFetch2({
1509
+ const result2 = await ppFetch2({
1500
1510
  method: "POST",
1501
1511
  url: "web-api/app/v1/users/address",
1502
1512
  data: body2
1503
1513
  });
1514
+ return result2;
1504
1515
  }
1505
1516
  async function editAddress(body2, id) {
1506
- return await ppFetch2({
1517
+ const result2 = await ppFetch2({
1507
1518
  method: "PUT",
1508
1519
  url: `web-api/app/v1/users/address/${id}`,
1509
1520
  data: body2
1510
1521
  });
1522
+ return result2;
1511
1523
  }
1512
1524
  async function deleteAddress(id) {
1513
- return await ppFetch2({
1525
+ const result2 = await ppFetch2({
1514
1526
  method: "DELETE",
1515
1527
  url: `web-api/app/v1/users/address/${id}`
1516
1528
  });
1529
+ return result2;
1517
1530
  }
1518
1531
  async function setSelectedAddress(addressId) {
1519
- return ppFetch2({
1532
+ const result2 = ppFetch2({
1520
1533
  url: `web-api/app/v1/users/address/selected/${addressId}`,
1521
1534
  method: "PUT"
1522
1535
  });
1536
+ return result2;
1523
1537
  }
1524
1538
  async function getUserProfileData() {
1525
1539
  return ppFetch2({
@@ -1759,7 +1773,13 @@ var MiniAppRuntime = /* @__PURE__ */ ((MiniAppRuntime2) => {
1759
1773
  return MiniAppRuntime2;
1760
1774
  })(MiniAppRuntime || {});
1761
1775
  function getRuntime() {
1762
- return navigator.userAgent.match(/(iPad|iPhone|iPod)/i) && isPayPayMiniApp() ? "IOS" : navigator.userAgent.match(/Android/i) && isPayPayMiniApp() ? "ANDROID" : "WEB";
1776
+ if (navigator.userAgent.match(/(iPad|iPhone|iPod)/i) && isPayPayMiniApp()) {
1777
+ return "IOS";
1778
+ } else if (navigator.userAgent.match(/Android/i) && isPayPayMiniApp()) {
1779
+ return "ANDROID";
1780
+ } else {
1781
+ return "WEB";
1782
+ }
1763
1783
  }
1764
1784
  function isPayPayMiniApp() {
1765
1785
  return navigator.userAgent.includes("PayPayMiniApp/");
@@ -1907,6 +1927,9 @@ function getButtonType(button4, onlyButton = false) {
1907
1927
  return button4.buttonType;
1908
1928
  }
1909
1929
  }
1930
+ function isAlphabet(value2) {
1931
+ return /^([a-zA-Za-zA-Z]+[\s]?[a-zA-Za-zA-Z]*)+$/.test(value2);
1932
+ }
1910
1933
  const opaUrl = () => {
1911
1934
  switch (getEnv()) {
1912
1935
  case "staging":
@@ -1927,11 +1950,11 @@ const opaUrl = () => {
1927
1950
  const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
1928
1951
  let headers = new Headers({
1929
1952
  "Content-Type": "application/json",
1930
- "Client-Version": "1.59.0",
1953
+ "Client-Version": "1.61.0",
1931
1954
  "Client-OS-Type": getRuntime(),
1932
1955
  ...customHeaders
1933
1956
  });
1934
- 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" || urlEndpoint === "web-api/app/v1/users/autoTopupConfiguration" || urlEndpoint === "web-api/app/v1/users/preTransactionAutoTopupConfiguration" || urlEndpoint === "web-api/app/v1/users/consultPaymentFeature") {
1957
+ 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" || urlEndpoint === "web-api/app/v1/users/autoTopupConfiguration" || urlEndpoint === "web-api/app/v1/users/preTransactionAutoTopupConfiguration" || urlEndpoint === "web-api/app/v1/users/consultPaymentFeature" || urlEndpoint === "web-api/app/v1/users/paymentFeatureSettings") {
1935
1958
  headers.set("Client-UUID", getClientUUID());
1936
1959
  headers.set("Device-UUID", getDeviceUUID());
1937
1960
  headers.set("Client-Type", "MINIAPP");
@@ -2155,10 +2178,10 @@ var MiniAppStatusType = /* @__PURE__ */ ((MiniAppStatusType2) => {
2155
2178
  })(MiniAppStatusType || {});
2156
2179
  function getUAID(params) {
2157
2180
  const newParams = reconstructParams(params);
2158
- execute$g(newParams).catch(() => {
2181
+ execute$j(newParams).catch(() => {
2159
2182
  });
2160
2183
  }
2161
- async function execute$g(params) {
2184
+ async function execute$j(params) {
2162
2185
  var _a2, _b, _c, _d, _e;
2163
2186
  const res = await ppFetch2({
2164
2187
  method: "GET",
@@ -2172,9 +2195,9 @@ async function execute$g(params) {
2172
2195
  }
2173
2196
  function checkAccessToken(params) {
2174
2197
  const newParams = reconstructParams(params);
2175
- execute$f(newParams);
2198
+ execute$i(newParams);
2176
2199
  }
2177
- function execute$f(params) {
2200
+ function execute$i(params) {
2178
2201
  var _a2, _b;
2179
2202
  const clientId = getClientId();
2180
2203
  const token = getAccessToken();
@@ -2199,9 +2222,9 @@ function execute$f(params) {
2199
2222
  }
2200
2223
  async function getUserProfile(params) {
2201
2224
  const newParams = reconstructParams(params);
2202
- await execute$e(newParams);
2225
+ await execute$h(newParams);
2203
2226
  }
2204
- async function execute$e(params) {
2227
+ async function execute$h(params) {
2205
2228
  var _a2, _b;
2206
2229
  const res = await ppFetch2({
2207
2230
  method: "GET",
@@ -7704,23 +7727,26 @@ const OTTLoginState = reactive({
7704
7727
  });
7705
7728
  async function init(params) {
7706
7729
  const newParams = reconstructParams(params);
7707
- await execute$d(newParams);
7730
+ await execute$g(newParams);
7708
7731
  }
7709
- async function execute$d(params) {
7710
- var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
7732
+ function checkAppVersion() {
7733
+ const appVersion = getAppVersion();
7734
+ if (appVersion) {
7735
+ if (semVerCompare("2.69.0", appVersion)) {
7736
+ setTimeout(fixDeprecatedCloseApp, 1e4);
7737
+ const jsBridge2 = new JsBridge(window);
7738
+ return jsBridge2.callNative("showUpdateWarning", {
7739
+ isMandatory: true
7740
+ });
7741
+ }
7742
+ }
7743
+ }
7744
+ async function execute$g(params) {
7745
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
7711
7746
  try {
7712
7747
  saveEnv((_a2 = params == null ? void 0 : params.env) != null ? _a2 : "");
7713
7748
  saveClientId((_b = params == null ? void 0 : params.clientId) != null ? _b : "");
7714
- const appVersion = getAppVersion();
7715
- if (appVersion) {
7716
- if (semVerCompare("2.69.0", appVersion)) {
7717
- setTimeout(fixDeprecatedCloseApp, 1e4);
7718
- const jsBridge2 = new JsBridge(window);
7719
- return jsBridge2.callNative("showUpdateWarning", {
7720
- isMandatory: true
7721
- });
7722
- }
7723
- }
7749
+ checkAppVersion();
7724
7750
  const url = new URL(window.location.href);
7725
7751
  const urlParams = url.searchParams;
7726
7752
  let token = urlParams == null ? void 0 : urlParams.get("token");
@@ -7752,26 +7778,11 @@ async function execute$d(params) {
7752
7778
  return;
7753
7779
  }
7754
7780
  if (((_d = (_c = res == null ? void 0 : res.body) == null ? void 0 : _c.resultInfo) == null ? void 0 : _d.code) === "SUCCESS") {
7755
- const appDetailResult = await initAppDetail(
7756
- (_g = (_f = (_e = res == null ? void 0 : res.body) == null ? void 0 : _e.data) == null ? void 0 : _f.accessToken) != null ? _g : ""
7781
+ await initApp(
7782
+ params,
7783
+ (_f = (_e = res == null ? void 0 : res.body) == null ? void 0 : _e.data) == null ? void 0 : _f.accessToken,
7784
+ (_h = (_g = res == null ? void 0 : res.body) == null ? void 0 : _g.data) == null ? void 0 : _h.refreshToken
7757
7785
  );
7758
- if (!appDetailResult) {
7759
- throw Error();
7760
- }
7761
- saveEnv((_h = params == null ? void 0 : params.env) != null ? _h : "");
7762
- saveAccessToken((_k = (_j = (_i = res == null ? void 0 : res.body) == null ? void 0 : _i.data) == null ? void 0 : _j.accessToken) != null ? _k : "");
7763
- saveRefreshToken((_n = (_m = (_l = res == null ? void 0 : res.body) == null ? void 0 : _l.data) == null ? void 0 : _m.refreshToken) != null ? _n : "");
7764
- OTTLoginState.setLoginState(true);
7765
- setTimeout(() => {
7766
- OTTLoginState.setLoginState(false);
7767
- }, 5e3);
7768
- saveUserData();
7769
- saveClientId((_o = params == null ? void 0 : params.clientId) != null ? _o : "");
7770
- removeCodeVerifier();
7771
- const configResult = await initAppConfiguration();
7772
- if (!configResult) {
7773
- throw Error();
7774
- }
7775
7786
  } else {
7776
7787
  throw Error();
7777
7788
  }
@@ -7779,10 +7790,31 @@ async function execute$d(params) {
7779
7790
  failedAuth(params, MiniAppErrorType.serverError);
7780
7791
  return;
7781
7792
  }
7782
- (_p = params == null ? void 0 : params.success) == null ? void 0 : _p.call(params, {
7793
+ (_i = params == null ? void 0 : params.success) == null ? void 0 : _i.call(params, {
7783
7794
  statusCode: MiniAppStatusType.initialized
7784
7795
  });
7785
7796
  }
7797
+ async function initApp(params, accessToken, refreshToken2) {
7798
+ var _a2, _b;
7799
+ const appDetailResult = await initAppDetail(accessToken != null ? accessToken : "");
7800
+ if (!appDetailResult) {
7801
+ throw Error();
7802
+ }
7803
+ saveEnv((_a2 = params == null ? void 0 : params.env) != null ? _a2 : "");
7804
+ saveAccessToken(accessToken != null ? accessToken : "");
7805
+ saveRefreshToken(refreshToken2 != null ? refreshToken2 : "");
7806
+ OTTLoginState.setLoginState(true);
7807
+ setTimeout(() => {
7808
+ OTTLoginState.setLoginState(false);
7809
+ }, 5e3);
7810
+ saveUserData();
7811
+ saveClientId((_b = params == null ? void 0 : params.clientId) != null ? _b : "");
7812
+ removeCodeVerifier();
7813
+ const configResult = await initAppConfiguration();
7814
+ if (!configResult) {
7815
+ throw Error();
7816
+ }
7817
+ }
7786
7818
  function fixDeprecatedCloseApp() {
7787
7819
  const jsBridge2 = new JsBridge(window);
7788
7820
  jsBridge2.callNative("closeApp", {});
@@ -7839,7 +7871,7 @@ var _export_sfc = (sfc, props) => {
7839
7871
  }
7840
7872
  return target;
7841
7873
  };
7842
- const _hoisted_1$X = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
7874
+ const _hoisted_1$Y = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
7843
7875
  function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
7844
7876
  return openBlock(), createElementBlock("div", {
7845
7877
  class: normalizeClass(_ctx.$style.loading)
@@ -7850,7 +7882,7 @@ function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
7850
7882
  createBaseVNode("div", {
7851
7883
  class: normalizeClass(_ctx.$style.bounce2)
7852
7884
  }, null, 2),
7853
- _hoisted_1$X
7885
+ _hoisted_1$Y
7854
7886
  ], 2);
7855
7887
  }
7856
7888
  const cssModules$1r = {};
@@ -8223,22 +8255,16 @@ const ActionSheet = defineComponent({
8223
8255
  YState.y = 0;
8224
8256
  };
8225
8257
  const touchMove = (e) => {
8226
- if (!props.forbiddenSwipe) {
8227
- if (e.cancelable) {
8228
- e.stopPropagation();
8229
- e.preventDefault();
8230
- }
8258
+ if (!props.forbiddenSwipe && e.cancelable) {
8259
+ e.stopPropagation();
8260
+ e.preventDefault();
8231
8261
  }
8232
8262
  if (props.forbiddenSwipe) {
8233
8263
  return;
8234
8264
  }
8235
8265
  YState.moving = true;
8236
8266
  const newY = e.changedTouches[0].clientY - YState.initial;
8237
- if (newY >= 0) {
8238
- YState.y = newY;
8239
- } else {
8240
- YState.y = 0;
8241
- }
8267
+ YState.y = newY >= 0 ? newY : 0;
8242
8268
  };
8243
8269
  const close2 = () => {
8244
8270
  if (props.show) {
@@ -8294,6 +8320,7 @@ const ActionSheet = defineComponent({
8294
8320
  default: () => {
8295
8321
  var _a2, _b;
8296
8322
  return [withDirectives(createVNode("div", {
8323
+ "role": this.type === "alert" ? "alertdialog" : "dialog",
8297
8324
  "class": [styles$6.actionSheetWrapper, styles$6.actionSheetParent, {
8298
8325
  [styles$6.round]: this.round,
8299
8326
  [styles$6.fullscreen]: this.fullScreen,
@@ -8563,17 +8590,7 @@ const _sfc_main$1B = defineComponent({
8563
8590
  openWebviewInternal({ url: buttonInfo == null ? void 0 : buttonInfo.deeplink });
8564
8591
  return;
8565
8592
  }
8566
- if (buttonInfo.deeplink) {
8567
- try {
8568
- const url = new URL(buttonInfo.deeplink);
8569
- const urlParam = url.searchParams.get("url");
8570
- if (buttonInfo.deeplink.startsWith("paypay://") && (url.host === "embed" || url.pathname === "//embed") && urlParam) {
8571
- openWebviewInternal({ url: urlParam });
8572
- return;
8573
- }
8574
- } catch {
8575
- }
8576
- }
8593
+ this.openWebView(buttonInfo);
8577
8594
  closeApp({
8578
8595
  options: {
8579
8596
  deeplink: buttonInfo.deeplink
@@ -8586,12 +8603,24 @@ const _sfc_main$1B = defineComponent({
8586
8603
  return;
8587
8604
  }
8588
8605
  this.$emit("close-click");
8589
- return;
8606
+ },
8607
+ openWebView(buttonInfo) {
8608
+ if (buttonInfo.deeplink) {
8609
+ try {
8610
+ const url = new URL(buttonInfo.deeplink);
8611
+ const urlParam = url.searchParams.get("url");
8612
+ if (buttonInfo.deeplink.startsWith("paypay://") && (url.host === "embed" || url.pathname === "//embed") && urlParam) {
8613
+ openWebviewInternal({ url: urlParam });
8614
+ return;
8615
+ }
8616
+ } catch {
8617
+ }
8618
+ }
8590
8619
  },
8591
8620
  getButtonType
8592
8621
  }
8593
8622
  });
8594
- const _hoisted_1$W = ["src"];
8623
+ const _hoisted_1$X = ["src"];
8595
8624
  function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
8596
8625
  const _component_Button = resolveComponent("Button");
8597
8626
  const _component_ActionSheet = resolveComponent("ActionSheet");
@@ -8610,8 +8639,9 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
8610
8639
  createBaseVNode("img", {
8611
8640
  src: _ctx.iconUrl,
8612
8641
  class: normalizeClass(_ctx.style.errorIcon),
8613
- style: normalizeStyle(_ctx.iconStyle)
8614
- }, null, 14, _hoisted_1$W)
8642
+ style: normalizeStyle(_ctx.iconStyle),
8643
+ alt: ""
8644
+ }, null, 14, _hoisted_1$X)
8615
8645
  ], 2),
8616
8646
  _ctx.errorTitle ? (openBlock(), createElementBlock("div", {
8617
8647
  key: 0,
@@ -9025,10 +9055,10 @@ async function getUserGrantedPermission() {
9025
9055
  }
9026
9056
  async function getBalance(params) {
9027
9057
  const newParams = reconstructParams(params);
9028
- await execute$c(newParams);
9058
+ await execute$f(newParams);
9029
9059
  }
9030
- async function execute$c(params) {
9031
- var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
9060
+ async function execute$f(params) {
9061
+ var _a2, _b, _c, _d, _e, _f, _g, _h;
9032
9062
  try {
9033
9063
  const grantStatus = await checkPermission(
9034
9064
  PermissionName.mini_app_payment_balance
@@ -9055,11 +9085,10 @@ async function execute$c(params) {
9055
9085
  return (_h = params == null ? void 0 : params.fail) == null ? void 0 : _h.call(params, { errorCode: MiniAppErrorType.serverError });
9056
9086
  } finally {
9057
9087
  }
9058
- return (_i = params == null ? void 0 : params.fail) == null ? void 0 : _i.call(params, { errorCode: MiniAppErrorType.serverError });
9059
9088
  }
9060
9089
  async function getAuthStatus(params) {
9061
9090
  const newParams = reconstructParams(params);
9062
- await execute$b(newParams);
9091
+ await execute$e(newParams);
9063
9092
  }
9064
9093
  async function handlePKCE() {
9065
9094
  const codeVerifier = generateCodeVerifier();
@@ -9081,8 +9110,8 @@ async function handleFailCallback(params, errorCode) {
9081
9110
  code
9082
9111
  });
9083
9112
  }
9084
- async function execute$b(params) {
9085
- var _a2, _b, _c, _d, _e, _f;
9113
+ async function execute$e(params) {
9114
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
9086
9115
  try {
9087
9116
  const clientId = getClientId();
9088
9117
  if (!clientId) {
@@ -9094,17 +9123,21 @@ async function execute$b(params) {
9094
9123
  params: {}
9095
9124
  });
9096
9125
  if (res.ppFetchResult !== "success") {
9097
- return handleFailCallback(params, getFailErrorCode(res.ppFetchResult));
9126
+ if (((_c = (_b = (_a2 = res.body) == null ? void 0 : _a2.unsigned) == null ? void 0 : _b.resultInfo) == null ? void 0 : _c.code) === "INVALID_USER_AUTHORIZATION_ID") {
9127
+ return handleFailCallback(params, MiniAppErrorType.notAuthorized);
9128
+ } else {
9129
+ return handleFailCallback(params, getFailErrorCode(res.ppFetchResult));
9130
+ }
9098
9131
  }
9099
- const isSuccess = ((_c = (_b = (_a2 = res == null ? void 0 : res.body) == null ? void 0 : _a2.unsigned) == null ? void 0 : _b.resultInfo) == null ? void 0 : _c.code) === MiniAppStatusType.success;
9132
+ const isSuccess = ((_f = (_e = (_d = res == null ? void 0 : res.body) == null ? void 0 : _d.unsigned) == null ? void 0 : _e.resultInfo) == null ? void 0 : _f.code) === MiniAppStatusType.success;
9100
9133
  if (isSuccess) {
9101
- const data2 = (_e = (_d = res == null ? void 0 : res.body) == null ? void 0 : _d.unsigned) == null ? void 0 : _e.data;
9134
+ const data2 = (_h = (_g = res == null ? void 0 : res.body) == null ? void 0 : _g.unsigned) == null ? void 0 : _h.data;
9102
9135
  if (!(data2 == null ? void 0 : data2.isActive)) {
9103
9136
  return handleFailCallback(params, MiniAppErrorType.notAuthorized);
9104
9137
  } else if (data2 == null ? void 0 : data2.showPermission) {
9105
9138
  return handleFailCallback(params, MiniAppErrorType.permissionRequired);
9106
9139
  } else if ((data2 == null ? void 0 : data2.isActive) && !(data2 == null ? void 0 : data2.showPermission)) {
9107
- return (_f = params == null ? void 0 : params.success) == null ? void 0 : _f.call(params, { statusCode: MiniAppStatusType.connected });
9140
+ return (_i = params == null ? void 0 : params.success) == null ? void 0 : _i.call(params, { statusCode: MiniAppStatusType.connected });
9108
9141
  }
9109
9142
  }
9110
9143
  } catch (e) {
@@ -9557,7 +9590,7 @@ const _sfc_main$1y = defineComponent({
9557
9590
  };
9558
9591
  }
9559
9592
  });
9560
- const _hoisted_1$V = ["src"];
9593
+ const _hoisted_1$W = ["src"];
9561
9594
  const _hoisted_2$p = ["src"];
9562
9595
  function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
9563
9596
  const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
@@ -9580,7 +9613,7 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
9580
9613
  src: _ctx.images.iconBalanceIcon,
9581
9614
  class: normalizeClass(_ctx.$style.img),
9582
9615
  alt: ""
9583
- }, null, 10, _hoisted_1$V)
9616
+ }, null, 10, _hoisted_1$W)
9584
9617
  ], 2),
9585
9618
  createBaseVNode("div", {
9586
9619
  class: normalizeClass(_ctx.$style.walletContainer)
@@ -9758,7 +9791,7 @@ const _sfc_main$1x = defineComponent({
9758
9791
  };
9759
9792
  }
9760
9793
  });
9761
- const _hoisted_1$U = ["src"];
9794
+ const _hoisted_1$V = ["src"];
9762
9795
  const _hoisted_2$o = ["src"];
9763
9796
  function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
9764
9797
  return openBlock(), createElementBlock("div", {
@@ -9780,7 +9813,7 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
9780
9813
  class: normalizeClass([_ctx.style.cardImg, _ctx.creditInfo.style]),
9781
9814
  src: _ctx.creditInfo.logo,
9782
9815
  alt: ""
9783
- }, null, 10, _hoisted_1$U)) : createCommentVNode("", true)
9816
+ }, null, 10, _hoisted_1$V)) : createCommentVNode("", true)
9784
9817
  ], 2),
9785
9818
  createBaseVNode("div", {
9786
9819
  class: normalizeClass(_ctx.style.content)
@@ -9913,7 +9946,7 @@ const _sfc_main$1w = defineComponent({
9913
9946
  };
9914
9947
  }
9915
9948
  });
9916
- const _hoisted_1$T = ["src"];
9949
+ const _hoisted_1$U = ["src"];
9917
9950
  function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
9918
9951
  return openBlock(), createElementBlock("div", {
9919
9952
  class: normalizeClass([
@@ -9937,7 +9970,7 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
9937
9970
  class: normalizeClass([_ctx.style.bankImg, { [_ctx.style.round]: _ctx.round }]),
9938
9971
  src: _ctx.bankInfo.logo,
9939
9972
  alt: ""
9940
- }, null, 10, _hoisted_1$T)
9973
+ }, null, 10, _hoisted_1$U)
9941
9974
  ], 2),
9942
9975
  createBaseVNode("div", {
9943
9976
  class: normalizeClass(_ctx.style.content)
@@ -10037,7 +10070,7 @@ const _sfc_main$1v = defineComponent({
10037
10070
  };
10038
10071
  }
10039
10072
  });
10040
- const _hoisted_1$S = ["src"];
10073
+ const _hoisted_1$T = ["src"];
10041
10074
  function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
10042
10075
  return openBlock(), createElementBlock("div", {
10043
10076
  class: normalizeClass([_ctx.$style.wrapperClass, _ctx.$style.container])
@@ -10047,7 +10080,7 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
10047
10080
  class: normalizeClass(_ctx.$style.sbidImg),
10048
10081
  src: _ctx.images.softbank,
10049
10082
  alt: ""
10050
- }, null, 10, _hoisted_1$S)
10083
+ }, null, 10, _hoisted_1$T)
10051
10084
  ]),
10052
10085
  createBaseVNode("span", {
10053
10086
  class: normalizeClass(_ctx.$style.content)
@@ -10138,7 +10171,7 @@ const _sfc_main$1u = defineComponent({
10138
10171
  };
10139
10172
  }
10140
10173
  });
10141
- const _hoisted_1$R = ["src"];
10174
+ const _hoisted_1$S = ["src"];
10142
10175
  function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
10143
10176
  return openBlock(), createElementBlock("div", {
10144
10177
  class: normalizeClass([
@@ -10155,7 +10188,7 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
10155
10188
  src: _ctx.images.payLater,
10156
10189
  class: normalizeClass(_ctx.$style.imageContainer),
10157
10190
  alt: ""
10158
- }, null, 10, _hoisted_1$R)
10191
+ }, null, 10, _hoisted_1$S)
10159
10192
  ]),
10160
10193
  createBaseVNode("div", {
10161
10194
  class: normalizeClass(_ctx.$style.container)
@@ -12599,8 +12632,8 @@ var lottie_svg = { exports: {} };
12599
12632
  intervalStart += kSampleStepSize;
12600
12633
  }
12601
12634
  --currentSample;
12602
- var dist = (aX - mSampleValues[currentSample]) / (mSampleValues[currentSample + 1] - mSampleValues[currentSample]);
12603
- var guessForT = intervalStart + dist * kSampleStepSize;
12635
+ var dist2 = (aX - mSampleValues[currentSample]) / (mSampleValues[currentSample + 1] - mSampleValues[currentSample]);
12636
+ var guessForT = intervalStart + dist2 * kSampleStepSize;
12604
12637
  var initialSlope = getSlope(guessForT, mX1, mX2);
12605
12638
  if (initialSlope >= NEWTON_MIN_SLOPE) {
12606
12639
  return newtonRaphsonIterate(aX, guessForT, mX1, mX2);
@@ -18821,9 +18854,9 @@ var lottie_svg = { exports: {} };
18821
18854
  } else if (percent <= -1) {
18822
18855
  percent = -0.99;
18823
18856
  }
18824
- var dist = rad * percent;
18825
- var x = Math.cos(ang + itemData.a.v) * dist + pt1[0];
18826
- var y = Math.sin(ang + itemData.a.v) * dist + pt1[1];
18857
+ var dist2 = rad * percent;
18858
+ var x = Math.cos(ang + itemData.a.v) * dist2 + pt1[0];
18859
+ var y = Math.sin(ang + itemData.a.v) * dist2 + pt1[1];
18827
18860
  gfill.setAttribute("fx", x);
18828
18861
  gfill.setAttribute("fy", y);
18829
18862
  if (hasOpacity && !itemData.g._collapsable) {
@@ -23170,7 +23203,7 @@ const _sfc_main$1s = defineComponent({
23170
23203
  };
23171
23204
  }
23172
23205
  });
23173
- const _hoisted_1$Q = ["src"];
23206
+ const _hoisted_1$R = ["src"];
23174
23207
  function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
23175
23208
  const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
23176
23209
  return openBlock(), createElementBlock("div", {
@@ -23182,8 +23215,9 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
23182
23215
  }, [
23183
23216
  createBaseVNode("img", {
23184
23217
  class: normalizeClass(_ctx.style.img),
23185
- src: _ctx.images.iconBalanceIcon
23186
- }, null, 10, _hoisted_1$Q)
23218
+ src: _ctx.images.iconBalanceIcon,
23219
+ alt: ""
23220
+ }, null, 10, _hoisted_1$R)
23187
23221
  ], 2),
23188
23222
  createBaseVNode("div", {
23189
23223
  class: normalizeClass(_ctx.style.label)
@@ -23399,7 +23433,7 @@ const _sfc_main$1r = defineComponent({
23399
23433
  };
23400
23434
  }
23401
23435
  });
23402
- const _hoisted_1$P = ["src"];
23436
+ const _hoisted_1$Q = ["src"];
23403
23437
  const _hoisted_2$n = ["src"];
23404
23438
  const _hoisted_3$a = ["onClick"];
23405
23439
  function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
@@ -23423,7 +23457,7 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
23423
23457
  src: _ctx.cardInfo.logo,
23424
23458
  class: normalizeClass([_ctx.style.img, _ctx.cardInfo.style]),
23425
23459
  alt: ""
23426
- }, null, 10, _hoisted_1$P)
23460
+ }, null, 10, _hoisted_1$Q)
23427
23461
  ], 2)
23428
23462
  ], 2),
23429
23463
  createBaseVNode("div", {
@@ -23451,7 +23485,8 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
23451
23485
  }, [
23452
23486
  createBaseVNode("img", {
23453
23487
  src: _ctx.authInfo.img,
23454
- class: normalizeClass(_ctx.authInfo.imgStyle)
23488
+ class: normalizeClass(_ctx.authInfo.imgStyle),
23489
+ alt: ""
23455
23490
  }, null, 10, _hoisted_2$n),
23456
23491
  createBaseVNode("span", null, toDisplayString(_ctx.authInfo.text), 1)
23457
23492
  ], 2)
@@ -23556,6 +23591,11 @@ const _sfc_main$1q = defineComponent({
23556
23591
  type: Boolean,
23557
23592
  required: false,
23558
23593
  default: false
23594
+ },
23595
+ ignoreBankMaintenanceFlag: {
23596
+ type: Boolean,
23597
+ default: false,
23598
+ required: false
23559
23599
  }
23560
23600
  },
23561
23601
  emits: {
@@ -23588,12 +23628,13 @@ const _sfc_main$1q = defineComponent({
23588
23628
  openUrl(info2.linkUrl);
23589
23629
  }
23590
23630
  };
23591
- const isDisable = computed(
23592
- () => {
23593
- var _a2, _b;
23594
- return ((_b = (_a2 = props.bank) == null ? void 0 : _a2.bankInfo) == null ? void 0 : _b.paymentMethodStatus) !== PaymentMethodStatus.ACTIVATED;
23631
+ const isDisable = computed(() => {
23632
+ var _a2, _b, _c, _d;
23633
+ if (((_b = (_a2 = props.bank) == null ? void 0 : _a2.bankInfo) == null ? void 0 : _b.paymentMethodStatus) === PaymentMethodStatus.MAINTENANCE && props.ignoreBankMaintenanceFlag) {
23634
+ return false;
23595
23635
  }
23596
- );
23636
+ return ((_d = (_c = props.bank) == null ? void 0 : _c.bankInfo) == null ? void 0 : _d.paymentMethodStatus) !== PaymentMethodStatus.ACTIVATED;
23637
+ });
23597
23638
  const handleSelect = () => {
23598
23639
  if (isDisable == null ? void 0 : isDisable.value) {
23599
23640
  return;
@@ -23630,7 +23671,7 @@ const _sfc_main$1q = defineComponent({
23630
23671
  };
23631
23672
  }
23632
23673
  });
23633
- const _hoisted_1$O = ["src"];
23674
+ const _hoisted_1$P = ["src"];
23634
23675
  const _hoisted_2$m = ["onClick"];
23635
23676
  function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
23636
23677
  const _component_Button = resolveComponent("Button");
@@ -23653,7 +23694,7 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
23653
23694
  class: normalizeClass([_ctx.style.img, { [_ctx.style.round]: _ctx.round }]),
23654
23695
  src: _ctx.bankInfo.logo,
23655
23696
  alt: ""
23656
- }, null, 10, _hoisted_1$O)
23697
+ }, null, 10, _hoisted_1$P)
23657
23698
  ], 2)
23658
23699
  ], 2),
23659
23700
  createBaseVNode("div", {
@@ -23804,7 +23845,7 @@ const _sfc_main$1p = defineComponent({
23804
23845
  };
23805
23846
  }
23806
23847
  });
23807
- const _hoisted_1$N = ["src"];
23848
+ const _hoisted_1$O = ["src"];
23808
23849
  const _hoisted_2$l = ["onClick"];
23809
23850
  function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
23810
23851
  const _component_Button = resolveComponent("Button");
@@ -23824,7 +23865,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
23824
23865
  class: normalizeClass(_ctx.style.img),
23825
23866
  src: _ctx.images.softbank,
23826
23867
  alt: ""
23827
- }, null, 10, _hoisted_1$N)
23868
+ }, null, 10, _hoisted_1$O)
23828
23869
  ], 2),
23829
23870
  createBaseVNode("div", {
23830
23871
  class: normalizeClass(_ctx.style.content)
@@ -23971,7 +24012,7 @@ const _sfc_main$1o = defineComponent({
23971
24012
  };
23972
24013
  }
23973
24014
  });
23974
- const _hoisted_1$M = ["src"];
24015
+ const _hoisted_1$N = ["src"];
23975
24016
  const _hoisted_2$k = ["onClick"];
23976
24017
  function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
23977
24018
  const _component_Button = resolveComponent("Button");
@@ -23992,7 +24033,7 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
23992
24033
  class: normalizeClass(_ctx.$style.img),
23993
24034
  src: _ctx.images.payLater,
23994
24035
  alt: ""
23995
- }, null, 10, _hoisted_1$M)
24036
+ }, null, 10, _hoisted_1$N)
23996
24037
  ], 2),
23997
24038
  createBaseVNode("div", {
23998
24039
  class: normalizeClass(_ctx.$style.content)
@@ -24049,6 +24090,11 @@ const PaymentMethod = defineComponent({
24049
24090
  required: true,
24050
24091
  default: () => {
24051
24092
  }
24093
+ },
24094
+ ignoreBankMaintenanceFlag: {
24095
+ type: Boolean,
24096
+ default: false,
24097
+ required: false
24052
24098
  }
24053
24099
  },
24054
24100
  emits: {
@@ -24071,6 +24117,7 @@ const PaymentMethod = defineComponent({
24071
24117
  return createVNode(Bank, {
24072
24118
  "bank": this.paymentMethod,
24073
24119
  "round": true,
24120
+ "ignoreBankMaintenanceFlag": this.ignoreBankMaintenanceFlag,
24074
24121
  "onSelect": () => this.$emit("select")
24075
24122
  }, null);
24076
24123
  case PaymentMethodType.SBID_CARRIER_BILLING:
@@ -24123,6 +24170,11 @@ const _sfc_main$1n = defineComponent({
24123
24170
  type: Boolean,
24124
24171
  required: false,
24125
24172
  default: false
24173
+ },
24174
+ ignoreBankMaintenanceFlag: {
24175
+ type: Boolean,
24176
+ default: false,
24177
+ required: false
24126
24178
  }
24127
24179
  },
24128
24180
  emits: {
@@ -24139,7 +24191,7 @@ const _sfc_main$1n = defineComponent({
24139
24191
  };
24140
24192
  }
24141
24193
  });
24142
- const _hoisted_1$L = ["aria-selected"];
24194
+ const _hoisted_1$M = ["aria-selected"];
24143
24195
  function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
24144
24196
  const _component_PaymentMethod = resolveComponent("PaymentMethod");
24145
24197
  return openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.paymentMethods, (paymentMethod2, index2) => {
@@ -24168,9 +24220,10 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
24168
24220
  createVNode(_component_PaymentMethod, {
24169
24221
  "data-testid": "payment-method",
24170
24222
  "payment-method": paymentMethod2,
24223
+ "ignore-bank-maintenance-flag": _ctx.ignoreBankMaintenanceFlag,
24171
24224
  onSelect: ($event) => _ctx.select(index2)
24172
- }, null, 8, ["payment-method", "onSelect"])
24173
- ], 10, _hoisted_1$L);
24225
+ }, null, 8, ["payment-method", "ignore-bank-maintenance-flag", "onSelect"])
24226
+ ], 10, _hoisted_1$M);
24174
24227
  }), 128);
24175
24228
  }
24176
24229
  const cssModules$1c = {};
@@ -24348,7 +24401,7 @@ const _sfc_main$1l = defineComponent({
24348
24401
  };
24349
24402
  }
24350
24403
  });
24351
- const _hoisted_1$K = ["src"];
24404
+ const _hoisted_1$L = ["src"];
24352
24405
  function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
24353
24406
  const _component_PaymentType = resolveComponent("PaymentType");
24354
24407
  const _component_MaintenanceInfo = resolveComponent("MaintenanceInfo");
@@ -24381,7 +24434,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
24381
24434
  src: _ctx.images.bankIcon,
24382
24435
  class: normalizeClass(_ctx.style.bankIcon),
24383
24436
  alt: ""
24384
- }, null, 10, _hoisted_1$K),
24437
+ }, null, 10, _hoisted_1$L),
24385
24438
  createBaseVNode("div", {
24386
24439
  class: normalizeClass(_ctx.style.addMethodMsg)
24387
24440
  }, toDisplayString(_ctx.lg.choosePayment.addMethod), 3),
@@ -24531,7 +24584,7 @@ const _sfc_main$1k = defineComponent({
24531
24584
  };
24532
24585
  }
24533
24586
  });
24534
- const _hoisted_1$J = { "data-testid": "address-title" };
24587
+ const _hoisted_1$K = { "data-testid": "address-title" };
24535
24588
  function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
24536
24589
  const _component_Button = resolveComponent("Button");
24537
24590
  return openBlock(), createElementBlock("div", {
@@ -24545,7 +24598,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
24545
24598
  createBaseVNode("div", {
24546
24599
  class: normalizeClass(_ctx.style.header)
24547
24600
  }, [
24548
- createBaseVNode("span", _hoisted_1$J, toDisplayString(_ctx.address.kyc ? _ctx.lg.userAddress.title : _ctx.address.title), 1)
24601
+ createBaseVNode("span", _hoisted_1$K, toDisplayString(_ctx.address.kyc ? _ctx.lg.userAddress.title : _ctx.address.title), 1)
24549
24602
  ], 2),
24550
24603
  createBaseVNode("div", {
24551
24604
  class: normalizeClass([_ctx.style.text]),
@@ -24656,12 +24709,12 @@ const _sfc_main$1j = defineComponent({
24656
24709
  };
24657
24710
  }
24658
24711
  });
24659
- const _hoisted_1$I = { key: 0 };
24712
+ const _hoisted_1$J = { key: 0 };
24660
24713
  function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
24661
24714
  const _component_Button = resolveComponent("Button");
24662
24715
  const _component_Divider = resolveComponent("Divider");
24663
24716
  return openBlock(), createElementBlock(Fragment, null, [
24664
- !_ctx.isDesktop ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
24717
+ !_ctx.isDesktop ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
24665
24718
  createBaseVNode("div", {
24666
24719
  class: normalizeClass(_ctx.style.footer),
24667
24720
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.add && _ctx.add(...args))
@@ -24987,12 +25040,12 @@ const _sfc_main$1f = defineComponent({
24987
25040
  };
24988
25041
  }
24989
25042
  });
24990
- const _hoisted_1$H = { "data-testid": "selected-address" };
25043
+ const _hoisted_1$I = { "data-testid": "selected-address" };
24991
25044
  function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
24992
25045
  const _component_NoRegisteredAddressMessage = resolveComponent("NoRegisteredAddressMessage");
24993
25046
  const _component_AddressInfo = resolveComponent("AddressInfo");
24994
25047
  const _component_Footer = resolveComponent("Footer");
24995
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
25048
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
24996
25049
  createBaseVNode("div", {
24997
25050
  class: normalizeClass(_ctx.$style.container)
24998
25051
  }, [
@@ -26295,10 +26348,10 @@ const _sfc_main$1c = defineComponent({
26295
26348
  };
26296
26349
  }
26297
26350
  });
26298
- const _hoisted_1$G = { key: 0 };
26351
+ const _hoisted_1$H = { key: 0 };
26299
26352
  const _hoisted_2$j = ["disabled", "onClick"];
26300
26353
  function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
26301
- return _ctx.open ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
26354
+ return _ctx.open ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
26302
26355
  createBaseVNode("div", {
26303
26356
  class: normalizeClass(_ctx.style.title)
26304
26357
  }, toDisplayString(_ctx.lg.userAddress.tagForm), 3),
@@ -26730,7 +26783,7 @@ const _sfc_main$1a = defineComponent({
26730
26783
  };
26731
26784
  }
26732
26785
  });
26733
- const _hoisted_1$F = ["src"];
26786
+ const _hoisted_1$G = ["src"];
26734
26787
  function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
26735
26788
  const _component_Button = resolveComponent("Button");
26736
26789
  const _component_ActionSheet = resolveComponent("ActionSheet");
@@ -26750,7 +26803,7 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
26750
26803
  createBaseVNode("img", {
26751
26804
  src: _ctx.img.iconError,
26752
26805
  alt: "!"
26753
- }, null, 8, _hoisted_1$F),
26806
+ }, null, 8, _hoisted_1$G),
26754
26807
  createBaseVNode("p", {
26755
26808
  class: normalizeClass(_ctx.style.title)
26756
26809
  }, toDisplayString(_ctx.lg.userAddress.deleteTitle), 3),
@@ -27614,7 +27667,7 @@ const _sfc_main$16 = defineComponent({
27614
27667
  };
27615
27668
  }
27616
27669
  });
27617
- const _hoisted_1$E = ["src"];
27670
+ const _hoisted_1$F = ["src"];
27618
27671
  const _hoisted_2$i = { key: 1 };
27619
27672
  function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
27620
27673
  const _component_DesktopHeader = resolveComponent("DesktopHeader");
@@ -27658,8 +27711,9 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
27658
27711
  }, [
27659
27712
  createBaseVNode("img", {
27660
27713
  src: _ctx.bannerInfo.iconImageUrl,
27661
- class: normalizeClass(_ctx.style.bannerIcon)
27662
- }, null, 10, _hoisted_1$E),
27714
+ class: normalizeClass(_ctx.style.bannerIcon),
27715
+ alt: ""
27716
+ }, null, 10, _hoisted_1$F),
27663
27717
  createBaseVNode("p", {
27664
27718
  class: normalizeClass(_ctx.style.bannerTitle)
27665
27719
  }, toDisplayString(_ctx.bannerInfo.title), 3)
@@ -28141,7 +28195,7 @@ const _sfc_main$13 = defineComponent({
28141
28195
  };
28142
28196
  }
28143
28197
  });
28144
- const _hoisted_1$D = ["onClick"];
28198
+ const _hoisted_1$E = ["onClick"];
28145
28199
  const _hoisted_2$h = ["src"];
28146
28200
  function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
28147
28201
  var _a2, _b, _c;
@@ -28210,7 +28264,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
28210
28264
  "data-test": "open-icon"
28211
28265
  }, null, 2)) : createCommentVNode("", true)
28212
28266
  ], 6)
28213
- ], 10, _hoisted_1$D);
28267
+ ], 10, _hoisted_1$E);
28214
28268
  }), 128))
28215
28269
  ], 2),
28216
28270
  createBaseVNode("div", {
@@ -28785,7 +28839,7 @@ const _sfc_main$11 = defineComponent({
28785
28839
  };
28786
28840
  }
28787
28841
  });
28788
- const _hoisted_1$C = ["src"];
28842
+ const _hoisted_1$D = ["src"];
28789
28843
  const _hoisted_2$g = /* @__PURE__ */ createBaseVNode("span", null, "\u6C7A\u6E08\u756A\u53F7", -1);
28790
28844
  function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
28791
28845
  const _component_DesktopHeader = resolveComponent("DesktopHeader");
@@ -28828,7 +28882,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
28828
28882
  src: _ctx.storeImage,
28829
28883
  class: normalizeClass(_ctx.style.storeLogo),
28830
28884
  alt: ""
28831
- }, null, 10, _hoisted_1$C)
28885
+ }, null, 10, _hoisted_1$D)
28832
28886
  ], 2)) : createCommentVNode("", true),
28833
28887
  createBaseVNode("div", {
28834
28888
  class: normalizeClass(_ctx.style.content)
@@ -28997,7 +29051,7 @@ const _sfc_main$10 = defineComponent({
28997
29051
  };
28998
29052
  }
28999
29053
  });
29000
- const _hoisted_1$B = ["src"];
29054
+ const _hoisted_1$C = ["src"];
29001
29055
  function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
29002
29056
  const _component_Button = resolveComponent("Button");
29003
29057
  return openBlock(), createElementBlock("div", {
@@ -29007,7 +29061,7 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
29007
29061
  src: _ctx.images.iconError,
29008
29062
  class: normalizeClass(_ctx.$style.headerImage),
29009
29063
  alt: "!"
29010
- }, null, 10, _hoisted_1$B),
29064
+ }, null, 10, _hoisted_1$C),
29011
29065
  createBaseVNode("div", {
29012
29066
  class: normalizeClass(_ctx.$style.content)
29013
29067
  }, [
@@ -29093,7 +29147,6 @@ const _sfc_main$$ = defineComponent({
29093
29147
  return;
29094
29148
  }
29095
29149
  context.emit("close");
29096
- return;
29097
29150
  };
29098
29151
  const buttonList = computed(() => {
29099
29152
  return filterErrorButtonList(props.consultInfo.buttonList);
@@ -29110,7 +29163,7 @@ const _sfc_main$$ = defineComponent({
29110
29163
  getButtonType
29111
29164
  }
29112
29165
  });
29113
- const _hoisted_1$A = ["src"];
29166
+ const _hoisted_1$B = ["src"];
29114
29167
  function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
29115
29168
  const _component_Button = resolveComponent("Button");
29116
29169
  return openBlock(), createElementBlock("div", {
@@ -29119,8 +29172,9 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
29119
29172
  }, [
29120
29173
  createBaseVNode("img", {
29121
29174
  src: _ctx.iconUrl,
29122
- class: normalizeClass(_ctx.$style.headerImage)
29123
- }, null, 10, _hoisted_1$A),
29175
+ class: normalizeClass(_ctx.$style.headerImage),
29176
+ alt: ""
29177
+ }, null, 10, _hoisted_1$B),
29124
29178
  createBaseVNode("div", {
29125
29179
  class: normalizeClass(_ctx.$style.content)
29126
29180
  }, [
@@ -29195,7 +29249,7 @@ const _sfc_main$_ = defineComponent({
29195
29249
  };
29196
29250
  }
29197
29251
  });
29198
- const _hoisted_1$z = ["for"];
29252
+ const _hoisted_1$A = ["for"];
29199
29253
  const _hoisted_2$f = ["id"];
29200
29254
  function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
29201
29255
  return openBlock(), createElementBlock("div", {
@@ -29216,7 +29270,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
29216
29270
  }, null, 42, _hoisted_2$f), [
29217
29271
  [vModelText, _ctx.value]
29218
29272
  ])
29219
- ], 10, _hoisted_1$z)
29273
+ ], 10, _hoisted_1$A)
29220
29274
  ], 2);
29221
29275
  }
29222
29276
  const cssModules$Q = {};
@@ -29294,7 +29348,7 @@ const _sfc_main$Z = defineComponent({
29294
29348
  };
29295
29349
  }
29296
29350
  });
29297
- const _hoisted_1$y = ["src"];
29351
+ const _hoisted_1$z = ["src"];
29298
29352
  const _hoisted_2$e = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
29299
29353
  const _hoisted_3$9 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
29300
29354
  const _hoisted_4$3 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
@@ -29315,7 +29369,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
29315
29369
  createBaseVNode("img", {
29316
29370
  src: _ctx.images.iconBirthday,
29317
29371
  alt: ""
29318
- }, null, 8, _hoisted_1$y)
29372
+ }, null, 8, _hoisted_1$z)
29319
29373
  ], 2),
29320
29374
  createBaseVNode("div", {
29321
29375
  class: normalizeClass(_ctx.$style.content)
@@ -29441,7 +29495,7 @@ const _sfc_main$Y = defineComponent({
29441
29495
  };
29442
29496
  }
29443
29497
  });
29444
- const _hoisted_1$x = ["src"];
29498
+ const _hoisted_1$y = ["src"];
29445
29499
  const _hoisted_2$d = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
29446
29500
  const _hoisted_3$8 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
29447
29501
  function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
@@ -29460,7 +29514,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
29460
29514
  src: _ctx.images.iconMinorAge,
29461
29515
  class: normalizeClass(_ctx.$style.error),
29462
29516
  alt: "\u30A8\u30E9\u30FC"
29463
- }, null, 10, _hoisted_1$x)
29517
+ }, null, 10, _hoisted_1$y)
29464
29518
  ], 2),
29465
29519
  createBaseVNode("div", {
29466
29520
  class: normalizeClass(_ctx.$style.content)
@@ -29547,7 +29601,7 @@ const _sfc_main$X = defineComponent({
29547
29601
  };
29548
29602
  }
29549
29603
  });
29550
- const _hoisted_1$w = ["src"];
29604
+ const _hoisted_1$x = ["src"];
29551
29605
  function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
29552
29606
  return openBlock(), createElementBlock("div", {
29553
29607
  role: "button",
@@ -29558,8 +29612,9 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
29558
29612
  }, [
29559
29613
  createBaseVNode("img", {
29560
29614
  class: normalizeClass(_ctx.style.buttonImage),
29561
- src: _ctx.imageUrl
29562
- }, null, 10, _hoisted_1$w)
29615
+ src: _ctx.imageUrl,
29616
+ alt: ""
29617
+ }, null, 10, _hoisted_1$x)
29563
29618
  ], 2),
29564
29619
  createBaseVNode("span", {
29565
29620
  class: normalizeClass(_ctx.style.buttonText)
@@ -29613,24 +29668,14 @@ function makeSound(url) {
29613
29668
  if (!url) {
29614
29669
  return;
29615
29670
  }
29616
- try {
29617
- const audio = new Audio(url);
29618
- setTimeout(() => {
29619
- if (audio) {
29620
- try {
29621
- if (void 0)
29622
- ;
29623
- audio.play().catch((e) => {
29624
- console.warn(e);
29625
- });
29626
- } catch (e) {
29627
- console.warn(e);
29628
- }
29629
- }
29630
- });
29631
- } catch (e) {
29632
- console.warn(e);
29633
- }
29671
+ const audio = new Audio(url);
29672
+ setTimeout(() => {
29673
+ if (audio) {
29674
+ audio.play().catch((e) => {
29675
+ console.warn(e);
29676
+ });
29677
+ }
29678
+ });
29634
29679
  }
29635
29680
  var isVue2 = false;
29636
29681
  /*!
@@ -30549,9 +30594,6 @@ const useMakePaymentStore = defineStore("makePayment", {
30549
30594
  res,
30550
30595
  options == null ? void 0 : options.api
30551
30596
  );
30552
- if ((res == null ? void 0 : res.ppFetchResult) === "apiError" && options.api === "consult") {
30553
- return true;
30554
- }
30555
30597
  if ((res == null ? void 0 : res.ppFetchResult) !== "success") {
30556
30598
  if (!options.dryRun) {
30557
30599
  const { errorDescription, errorIcon: errorIcon2, errorTitle: errorTitle2 } = createErrorFromType(options.type);
@@ -30660,7 +30702,6 @@ const useMakePaymentStore = defineStore("makePayment", {
30660
30702
  amount: (_a2 = props.paymentParams.amount) == null ? void 0 : _a2.amount,
30661
30703
  productType: props.paymentParams.productType
30662
30704
  });
30663
- const errorHandled = this.private_handleError(res, { api: "consult" });
30664
30705
  if ((res == null ? void 0 : res.ppFetchResult) === "apiError" && ((_e = (_d = (_c = (_b = res == null ? void 0 : res.body) == null ? void 0 : _b.unsigned) == null ? void 0 : _c.data) == null ? void 0 : _d.error) == null ? void 0 : _e.displayErrorResponse)) {
30665
30706
  this.consultState.consultInfo = res.body.unsigned.data.error.displayErrorResponse;
30666
30707
  this.consultState.showConsult = true;
@@ -30671,6 +30712,7 @@ const useMakePaymentStore = defineStore("makePayment", {
30671
30712
  this.consultState.insufficientBalanceInfo = res.body.unsigned.data.error.insufficientBalanceInfo;
30672
30713
  return true;
30673
30714
  }
30715
+ const errorHandled = this.private_handleError(res, { api: "consult" });
30674
30716
  if ((res == null ? void 0 : res.ppFetchResult) !== "success" || !errorHandled) {
30675
30717
  return false;
30676
30718
  }
@@ -30900,12 +30942,19 @@ const _sfc_main$W = defineComponent({
30900
30942
  return (_a2 = animation.value) != null ? _a2 : { optionalText: "", url: "" };
30901
30943
  }
30902
30944
  ),
30903
- animationUrl: computed(
30904
- () => {
30905
- var _a2;
30906
- return animation.value ? isDesktop.value ? (_a2 = animation.value.largeUrl) != null ? _a2 : animation.value.url : animation.value.url : "";
30945
+ animationUrl: computed(() => {
30946
+ var _a2;
30947
+ if (animation.value) {
30948
+ if (isDesktop.value) {
30949
+ const url = (_a2 = animation.value.largeUrl) != null ? _a2 : animation.value.url;
30950
+ return url;
30951
+ } else {
30952
+ return animation.value.url;
30953
+ }
30954
+ } else {
30955
+ return "";
30907
30956
  }
30908
- ),
30957
+ }),
30909
30958
  type,
30910
30959
  showContent: computed(() => uiState.showContent),
30911
30960
  showFullScreenContent: computed(() => uiState.showFullscreenContent),
@@ -30931,7 +30980,7 @@ const _sfc_main$W = defineComponent({
30931
30980
  };
30932
30981
  }
30933
30982
  });
30934
- const _hoisted_1$v = ["src"];
30983
+ const _hoisted_1$w = ["src"];
30935
30984
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
30936
30985
  const _component_Lottie = resolveComponent("Lottie");
30937
30986
  const _component_FloatingButton = resolveComponent("FloatingButton");
@@ -30964,7 +31013,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
30964
31013
  alt: "\u9589\u3058\u308B",
30965
31014
  "data-testid": "cash-back-detail-close-button",
30966
31015
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.close && _ctx.close(...args))
30967
- }, null, 14, _hoisted_1$v)) : createCommentVNode("", true),
31016
+ }, null, 14, _hoisted_1$w)) : createCommentVNode("", true),
30968
31017
  _ctx.showFullScreenContent ? (openBlock(), createElementBlock("div", {
30969
31018
  key: 1,
30970
31019
  class: normalizeClass(_ctx.style.campaignContainer)
@@ -31060,7 +31109,7 @@ const _sfc_main$V = defineComponent({
31060
31109
  };
31061
31110
  }
31062
31111
  });
31063
- const _hoisted_1$u = ["onClick"];
31112
+ const _hoisted_1$v = ["onClick"];
31064
31113
  function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
31065
31114
  return openBlock(), createElementBlock("ul", {
31066
31115
  class: normalizeClass(_ctx.style.container),
@@ -31078,7 +31127,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
31078
31127
  createBaseVNode("span", {
31079
31128
  class: normalizeClass(_ctx.style.unit)
31080
31129
  }, "\u5186", 2)
31081
- ], 10, _hoisted_1$u);
31130
+ ], 10, _hoisted_1$v);
31082
31131
  }), 128))
31083
31132
  ], 2);
31084
31133
  }
@@ -31154,7 +31203,7 @@ const _sfc_main$U = defineComponent({
31154
31203
  };
31155
31204
  }
31156
31205
  });
31157
- const _hoisted_1$t = ["src"];
31206
+ const _hoisted_1$u = ["src"];
31158
31207
  const _hoisted_2$c = { key: 0 };
31159
31208
  const _hoisted_3$7 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
31160
31209
  const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
@@ -31170,7 +31219,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
31170
31219
  src: _ctx.appLogo,
31171
31220
  class: normalizeClass(_ctx.style.appLogo),
31172
31221
  alt: ""
31173
- }, null, 10, _hoisted_1$t),
31222
+ }, null, 10, _hoisted_1$u),
31174
31223
  createBaseVNode("div", {
31175
31224
  class: normalizeClass(_ctx.style.appName)
31176
31225
  }, toDisplayString(_ctx.appDetail.appName), 3)
@@ -31285,7 +31334,7 @@ const _sfc_main$T = defineComponent({
31285
31334
  };
31286
31335
  }
31287
31336
  });
31288
- const _hoisted_1$s = ["src"];
31337
+ const _hoisted_1$t = ["src"];
31289
31338
  const _hoisted_2$b = ["src"];
31290
31339
  function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
31291
31340
  return openBlock(), createElementBlock("div", {
@@ -31304,15 +31353,17 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
31304
31353
  _ctx.iconImageUrl && !_ctx.iconAlignRight ? (openBlock(), createElementBlock("img", {
31305
31354
  key: 0,
31306
31355
  src: _ctx.iconImageUrl,
31307
- class: normalizeClass(_ctx.style.icon)
31308
- }, null, 10, _hoisted_1$s)) : createCommentVNode("", true),
31356
+ class: normalizeClass(_ctx.style.icon),
31357
+ alt: ""
31358
+ }, null, 10, _hoisted_1$t)) : createCommentVNode("", true),
31309
31359
  createBaseVNode("span", {
31310
31360
  class: normalizeClass([_ctx.style.title, _ctx.textStyle])
31311
31361
  }, toDisplayString(_ctx.title), 3),
31312
31362
  _ctx.iconImageUrl && _ctx.iconAlignRight ? (openBlock(), createElementBlock("img", {
31313
31363
  key: 1,
31314
31364
  src: _ctx.iconImageUrl,
31315
- class: normalizeClass(_ctx.style.icon)
31365
+ class: normalizeClass(_ctx.style.icon),
31366
+ alt: ""
31316
31367
  }, null, 10, _hoisted_2$b)) : createCommentVNode("", true)
31317
31368
  ], 2)
31318
31369
  ], 2);
@@ -31452,7 +31503,7 @@ const _sfc_main$S = defineComponent({
31452
31503
  };
31453
31504
  }
31454
31505
  });
31455
- const _hoisted_1$r = ["onClick"];
31506
+ const _hoisted_1$s = ["onClick"];
31456
31507
  function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
31457
31508
  const _component_Select = resolveComponent("Select");
31458
31509
  return openBlock(), createElementBlock("div", {
@@ -31471,7 +31522,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
31471
31522
  role: "button",
31472
31523
  "data-test": "select-amount",
31473
31524
  onClick: ($event) => _ctx.select(amount2)
31474
- }, toDisplayString(_ctx.operator) + toDisplayString(_ctx.numberWithCommas(amount2)), 11, _hoisted_1$r);
31525
+ }, toDisplayString(_ctx.operator) + toDisplayString(_ctx.numberWithCommas(amount2)), 11, _hoisted_1$s);
31475
31526
  }), 128)),
31476
31527
  _ctx.isSelectMoreVisible ? (openBlock(), createElementBlock("div", {
31477
31528
  key: 0,
@@ -31745,7 +31796,7 @@ const _sfc_main$R = defineComponent({
31745
31796
  };
31746
31797
  }
31747
31798
  });
31748
- const _hoisted_1$q = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
31799
+ const _hoisted_1$r = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
31749
31800
  const _hoisted_2$a = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
31750
31801
  const _hoisted_3$6 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
31751
31802
  function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
@@ -31788,7 +31839,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
31788
31839
  class: normalizeClass(_ctx.style.topupAmount)
31789
31840
  }, [
31790
31841
  createTextVNode(toDisplayString(_ctx.topupAmountText), 1),
31791
- _hoisted_1$q
31842
+ _hoisted_1$r
31792
31843
  ], 2)
31793
31844
  ], 2)
31794
31845
  ], 2),
@@ -31992,6 +32043,11 @@ const _sfc_main$Q = defineComponent({
31992
32043
  appealDescription: {
31993
32044
  type: Object,
31994
32045
  default: null
32046
+ },
32047
+ ignoreBankMaintenanceFlag: {
32048
+ type: Boolean,
32049
+ default: false,
32050
+ required: false
31995
32051
  }
31996
32052
  },
31997
32053
  emits: {
@@ -32018,7 +32074,7 @@ const _sfc_main$Q = defineComponent({
32018
32074
  };
32019
32075
  }
32020
32076
  });
32021
- const _hoisted_1$p = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
32077
+ const _hoisted_1$q = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
32022
32078
  function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
32023
32079
  const _component_Header = resolveComponent("Header");
32024
32080
  const _component_MaintenanceInfo = resolveComponent("MaintenanceInfo");
@@ -32047,8 +32103,9 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
32047
32103
  "select-payment-index": _ctx.selectIndex,
32048
32104
  "payment-methods": _ctx.paymentMethods,
32049
32105
  "is-topup": _ctx.isTopup,
32106
+ "ignore-bank-maintenance-flag": _ctx.ignoreBankMaintenanceFlag,
32050
32107
  onSelect: _ctx.select
32051
- }, null, 8, ["select-payment-index", "payment-methods", "is-topup", "onSelect"])
32108
+ }, null, 8, ["select-payment-index", "payment-methods", "is-topup", "ignore-bank-maintenance-flag", "onSelect"])
32052
32109
  ], 2)), [
32053
32110
  [_directive_vertical_scroll]
32054
32111
  ]),
@@ -32061,7 +32118,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
32061
32118
  class: normalizeClass(_ctx.style.bottomText)
32062
32119
  }, [
32063
32120
  createTextVNode(toDisplayString(_ctx.lg.choosePayment.desc1), 1),
32064
- _hoisted_1$p,
32121
+ _hoisted_1$q,
32065
32122
  createTextVNode(" " + toDisplayString(_ctx.lg.choosePayment.desc2), 1)
32066
32123
  ], 2)
32067
32124
  ], 6)
@@ -32603,7 +32660,7 @@ const _sfc_main$O = defineComponent({
32603
32660
  };
32604
32661
  }
32605
32662
  });
32606
- const _hoisted_1$o = ["src"];
32663
+ const _hoisted_1$p = ["src"];
32607
32664
  const _hoisted_2$9 = { key: 0 };
32608
32665
  const _hoisted_3$5 = {
32609
32666
  key: 1,
@@ -32625,7 +32682,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
32625
32682
  class: normalizeClass(_ctx.$style.icon),
32626
32683
  src: _ctx.images.icon3DSecure,
32627
32684
  alt: "3D\u30BB\u30AD\u30E5\u30A2"
32628
- }, null, 10, _hoisted_1$o),
32685
+ }, null, 10, _hoisted_1$p),
32629
32686
  createBaseVNode("h1", {
32630
32687
  class: normalizeClass(_ctx.$style.title)
32631
32688
  }, toDisplayString(_ctx.lg.title), 3),
@@ -33301,7 +33358,8 @@ const initMakePayment = async (initMakePayment2) => {
33301
33358
  document.body.appendChild(container2);
33302
33359
  transactionWarning = (event) => {
33303
33360
  event.preventDefault();
33304
- return event.returnValue = "";
33361
+ event.returnValue = "";
33362
+ return "";
33305
33363
  };
33306
33364
  window.addEventListener("beforeunload", transactionWarning);
33307
33365
  };
@@ -33539,7 +33597,7 @@ const _sfc_main$L = defineComponent({
33539
33597
  getButtonType
33540
33598
  }
33541
33599
  });
33542
- const _hoisted_1$n = ["src"];
33600
+ const _hoisted_1$o = ["src"];
33543
33601
  function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
33544
33602
  const _component_Button = resolveComponent("Button");
33545
33603
  return openBlock(), createElementBlock("div", {
@@ -33547,8 +33605,9 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
33547
33605
  }, [
33548
33606
  createBaseVNode("img", {
33549
33607
  src: _ctx.iconUrl,
33550
- class: normalizeClass(_ctx.style.bannerInfoIcon)
33551
- }, null, 10, _hoisted_1$n),
33608
+ class: normalizeClass(_ctx.style.bannerInfoIcon),
33609
+ alt: ""
33610
+ }, null, 10, _hoisted_1$o),
33552
33611
  createBaseVNode("div", {
33553
33612
  class: normalizeClass(_ctx.style.bannerTitle)
33554
33613
  }, toDisplayString(_ctx.title), 3),
@@ -33744,7 +33803,7 @@ const _sfc_main$J = defineComponent({
33744
33803
  }
33745
33804
  }
33746
33805
  });
33747
- const _hoisted_1$m = ["src"];
33806
+ const _hoisted_1$n = ["src"];
33748
33807
  const _hoisted_2$8 = ["src"];
33749
33808
  function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
33750
33809
  const _component_Divider = resolveComponent("Divider");
@@ -33756,7 +33815,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
33756
33815
  alt: "\u30DA\u30A4\u30DA\u30A4",
33757
33816
  class: normalizeClass(_ctx.style.paypayLogo),
33758
33817
  src: _ctx.images.paypay
33759
- }, null, 10, _hoisted_1$m),
33818
+ }, null, 10, _hoisted_1$n),
33760
33819
  createBaseVNode("div", {
33761
33820
  class: normalizeClass(_ctx.style.title)
33762
33821
  }, toDisplayString(_ctx.lg.topupCompletion.title), 3),
@@ -34089,7 +34148,8 @@ const _sfc_main$I = defineComponent({
34089
34148
  (_a2 = document.getElementById("fake_input")) == null ? void 0 : _a2.focus();
34090
34149
  const cashbackInfo2 = await getCashBackInfo();
34091
34150
  if (!cashbackInfo2 || (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) !== "success") {
34092
- this.errorCode = (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) === "notAuthorized" ? MiniAppErrorType.notAuthorized : (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) === "timeout" ? MiniAppErrorType.timeOut : MiniAppErrorType.serverError;
34151
+ const errorType = (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) === "timeout" ? MiniAppErrorType.timeOut : MiniAppErrorType.serverError;
34152
+ this.errorCode = (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) === "notAuthorized" ? MiniAppErrorType.notAuthorized : errorType;
34093
34153
  this.showError();
34094
34154
  return;
34095
34155
  }
@@ -34295,7 +34355,7 @@ const _sfc_main$I = defineComponent({
34295
34355
  }
34296
34356
  }
34297
34357
  });
34298
- const _hoisted_1$l = { key: 0 };
34358
+ const _hoisted_1$m = { key: 0 };
34299
34359
  const _hoisted_2$7 = { key: 1 };
34300
34360
  function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
34301
34361
  const _component_Header = resolveComponent("Header");
@@ -34399,7 +34459,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
34399
34459
  createBaseVNode("div", {
34400
34460
  class: normalizeClass(_ctx.$style.invalidAmount)
34401
34461
  }, [
34402
- _ctx.minAmountUnmet ? (openBlock(), createElementBlock("span", _hoisted_1$l, toDisplayString(_ctx.minAMountErrorMessage), 1)) : createCommentVNode("", true),
34462
+ _ctx.minAmountUnmet ? (openBlock(), createElementBlock("span", _hoisted_1$m, toDisplayString(_ctx.minAMountErrorMessage), 1)) : createCommentVNode("", true),
34403
34463
  _ctx.maxAmountExceeded ? (openBlock(), createElementBlock("span", _hoisted_2$7, toDisplayString(_ctx.lg.topup.maxAmount), 1)) : createCommentVNode("", true)
34404
34464
  ], 2)
34405
34465
  ], 2),
@@ -34708,9 +34768,9 @@ function removeStorageData(params) {
34708
34768
  }
34709
34769
  async function getPermissionStatus(params) {
34710
34770
  const newParams = reconstructParams(params);
34711
- await execute$a(newParams);
34771
+ await execute$d(newParams);
34712
34772
  }
34713
- async function execute$a(params) {
34773
+ async function execute$d(params) {
34714
34774
  var _a2, _b, _c;
34715
34775
  try {
34716
34776
  const permissionList = await getUserGrantedPermission();
@@ -35051,7 +35111,7 @@ const _sfc_main$G = defineComponent({
35051
35111
  }
35052
35112
  }
35053
35113
  });
35054
- const _hoisted_1$k = ["src"];
35114
+ const _hoisted_1$l = ["src"];
35055
35115
  function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
35056
35116
  const _component_Button = resolveComponent("Button");
35057
35117
  const _component_ActionSheet = resolveComponent("ActionSheet");
@@ -35070,7 +35130,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
35070
35130
  src: _ctx.images.iconAppUpdate,
35071
35131
  class: normalizeClass(_ctx.$style.updateIcon),
35072
35132
  alt: "\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8"
35073
- }, null, 10, _hoisted_1$k),
35133
+ }, null, 10, _hoisted_1$l),
35074
35134
  createBaseVNode("span", {
35075
35135
  class: normalizeClass(_ctx.$style.updateTitle),
35076
35136
  "data-testid": "update-title"
@@ -35166,9 +35226,9 @@ function showUpdateWarning$1(params) {
35166
35226
  }
35167
35227
  async function getPlatformInformation(params) {
35168
35228
  const newParams = reconstructParams(params);
35169
- await execute$9(newParams);
35229
+ await execute$c(newParams);
35170
35230
  }
35171
- async function execute$9(params) {
35231
+ async function execute$c(params) {
35172
35232
  var _a2, _b;
35173
35233
  let sdkVersion = null;
35174
35234
  let preferredLanguage = getPayPayLanguage();
@@ -35199,9 +35259,9 @@ async function execute$9(params) {
35199
35259
  }
35200
35260
  function getDeviceInformation(params) {
35201
35261
  const newParams = reconstructParams(params);
35202
- execute$8(newParams);
35262
+ execute$b(newParams);
35203
35263
  }
35204
- function execute$8(params) {
35264
+ function execute$b(params) {
35205
35265
  var _a2;
35206
35266
  const runtime = getRuntime();
35207
35267
  (_a2 = params == null ? void 0 : params.success) == null ? void 0 : _a2.call(params, {
@@ -35284,7 +35344,7 @@ const _sfc_main$F = defineComponent({
35284
35344
  };
35285
35345
  }
35286
35346
  });
35287
- const _hoisted_1$j = ["src"];
35347
+ const _hoisted_1$k = ["src"];
35288
35348
  function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
35289
35349
  const _component_Button = resolveComponent("Button");
35290
35350
  const _component_ActionSheet = resolveComponent("ActionSheet");
@@ -35301,7 +35361,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
35301
35361
  src: _ctx.images.iconOpenApp,
35302
35362
  class: normalizeClass(_ctx.style.appIcon),
35303
35363
  alt: "\u5916\u90E8\u30A2\u30D7\u30EA\u3092\u958B\u304F"
35304
- }, null, 10, _hoisted_1$j),
35364
+ }, null, 10, _hoisted_1$k),
35305
35365
  createBaseVNode("span", {
35306
35366
  class: normalizeClass(_ctx.style.title)
35307
35367
  }, toDisplayString(_ctx.lg.openApp.title), 3)
@@ -35419,9 +35479,9 @@ async function share(shareParams) {
35419
35479
  }
35420
35480
  async function getKycInformation(params) {
35421
35481
  const newParams = reconstructParams(params);
35422
- await execute$7(newParams);
35482
+ await execute$a(newParams);
35423
35483
  }
35424
- async function execute$7(params) {
35484
+ async function execute$a(params) {
35425
35485
  var _a2, _b, _c, _d, _e, _f, _g, _h;
35426
35486
  try {
35427
35487
  const grantStatus = await checkPermission(PermissionName.mini_app_kyc);
@@ -35776,7 +35836,6 @@ async function getUserLocation(getUserLocationParams) {
35776
35836
  }
35777
35837
  });
35778
35838
  resolve2(null);
35779
- return;
35780
35839
  },
35781
35840
  () => {
35782
35841
  var _a4;
@@ -35784,7 +35843,6 @@ async function getUserLocation(getUserLocationParams) {
35784
35843
  errorCode: MiniAppErrorType.hostAppLocationDenied
35785
35844
  });
35786
35845
  resolve2(null);
35787
- return;
35788
35846
  },
35789
35847
  {
35790
35848
  enableHighAccuracy: (params == null ? void 0 : params.accuracy) === "high",
@@ -35797,7 +35855,6 @@ async function getUserLocation(getUserLocationParams) {
35797
35855
  errorCode: MiniAppErrorType.hostAppLocationDenied
35798
35856
  });
35799
35857
  resolve2(null);
35800
- return;
35801
35858
  }
35802
35859
  });
35803
35860
  } catch {
@@ -35845,12 +35902,12 @@ async function checkPaymentMethod(checkPayMethodParams) {
35845
35902
  }
35846
35903
  function debug(params) {
35847
35904
  const newParams = reconstructParams(params);
35848
- execute$6(newParams);
35905
+ execute$9(newParams);
35849
35906
  }
35850
- function execute$6(params) {
35907
+ function execute$9(params) {
35851
35908
  var _a2;
35852
35909
  (_a2 = params == null ? void 0 : params.success) == null ? void 0 : _a2.call(params, {
35853
- v: "1.59.0"
35910
+ v: "1.61.0"
35854
35911
  });
35855
35912
  }
35856
35913
  function useCallBack(props, ctx) {
@@ -36111,7 +36168,6 @@ const Email = defineComponent({
36111
36168
  if (!runSyncRule(value2, rule) && value2) {
36112
36169
  state.validateFailed = true;
36113
36170
  state.validateMessage = getRuleMessage(value2, rule);
36114
- return;
36115
36171
  }
36116
36172
  }), Promise.resolve());
36117
36173
  const renderMessage = () => {
@@ -36314,7 +36370,7 @@ const _sfc_main$C = defineComponent({
36314
36370
  };
36315
36371
  }
36316
36372
  });
36317
- const _hoisted_1$i = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
36373
+ const _hoisted_1$j = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
36318
36374
  function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
36319
36375
  const _component_Button = resolveComponent("Button");
36320
36376
  const _component_ActionSheet = resolveComponent("ActionSheet");
@@ -36339,7 +36395,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
36339
36395
  class: normalizeClass(_ctx.$style.content)
36340
36396
  }, [
36341
36397
  createTextVNode(" \u8A8D\u8A3C\u30E1\u30FC\u30EB\u3092\u518D\u9001\u3059\u308B\u304B"),
36342
- _hoisted_1$i,
36398
+ _hoisted_1$j,
36343
36399
  createTextVNode(" \u5225\u306E\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3067\u767B\u9332\u3092\u3084\u308A\u76F4\u3057\u3066\u304F\u3060\u3055\u3044 ")
36344
36400
  ], 2),
36345
36401
  createBaseVNode("div", {
@@ -36503,7 +36559,7 @@ const _sfc_main$B = defineComponent({
36503
36559
  };
36504
36560
  }
36505
36561
  });
36506
- const _hoisted_1$h = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
36562
+ const _hoisted_1$i = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
36507
36563
  const _hoisted_2$6 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
36508
36564
  const _hoisted_3$4 = /* @__PURE__ */ createBaseVNode("svg", {
36509
36565
  width: "20",
@@ -36558,7 +36614,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
36558
36614
  class: normalizeClass(_ctx.$style.mailContent)
36559
36615
  }, [
36560
36616
  createTextVNode(" \u4E0A\u8A18\u30A2\u30C9\u30EC\u30B9\u306B\u78BA\u8A8D\u30E1\u30FC\u30EB\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F"),
36561
- _hoisted_1$h,
36617
+ _hoisted_1$i,
36562
36618
  createTextVNode(" \u30E1\u30FC\u30EB\u306B\u8A18\u8F09\u3055\u308C\u305FURL\u304B\u3089"),
36563
36619
  _hoisted_2$6,
36564
36620
  createBaseVNode("span", {
@@ -36768,7 +36824,7 @@ const _sfc_main$A = defineComponent({
36768
36824
  };
36769
36825
  }
36770
36826
  });
36771
- const _hoisted_1$g = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
36827
+ const _hoisted_1$h = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
36772
36828
  function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
36773
36829
  var _a2;
36774
36830
  const _component_Email = resolveComponent("Email");
@@ -36817,7 +36873,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
36817
36873
  class: normalizeClass(_ctx.$style.info)
36818
36874
  }, [
36819
36875
  createTextVNode(" \u3053\u306E\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306FPayPay\u306B\u3082\u767B\u9332\u3055\u308C\u307E\u3059"),
36820
- _hoisted_1$g,
36876
+ _hoisted_1$h,
36821
36877
  createTextVNode(" \u914D\u4FE1\u306E\u8A2D\u5B9A\u306F\u30D7\u30ED\u30D5\u30A3\u30FC\u30EB\u753B\u9762\u304B\u3089\u53EF\u80FD\u3067\u3059 ")
36822
36878
  ], 2),
36823
36879
  createBaseVNode("div", {
@@ -37018,9 +37074,9 @@ function registerEmail(params, allowsUpdate = false) {
37018
37074
  }
37019
37075
  function registerKyc(params) {
37020
37076
  const newParams = reconstructParams(params);
37021
- execute$5(newParams);
37077
+ execute$8(newParams);
37022
37078
  }
37023
- function execute$5(params) {
37079
+ function execute$8(params) {
37024
37080
  var _a2;
37025
37081
  params = {
37026
37082
  ...params,
@@ -37035,7 +37091,7 @@ function execute$5(params) {
37035
37091
  let deeplink = `paypay://kyc/top?appId=${clientId}&appName=${encodeURIComponent(
37036
37092
  (appDetail == null ? void 0 : appDetail.appName) || ""
37037
37093
  )}`;
37038
- Object.entries(params).map(([key2, value2]) => {
37094
+ Object.entries(params).forEach(([key2, value2]) => {
37039
37095
  if (typeof value2 !== "function") {
37040
37096
  let kycData = encodeURIComponent(String(value2));
37041
37097
  if (Array.isArray(value2)) {
@@ -37062,17 +37118,18 @@ function execute$5(params) {
37062
37118
  const MinVersion = {
37063
37119
  PRE_TRANSACTION_AUTO_CHARGE: "3.43.0",
37064
37120
  FALLBACK_PAYMENT_METHOD: "3.61.0",
37121
+ OS_HOME_SCREEN_ICON: "3.71.0",
37065
37122
  START_MULTIFACTOR_AUTH_ANDROID_FIX: "3.67.0"
37066
37123
  };
37067
37124
  async function startMultiFactorAuth(params) {
37068
37125
  const newParams = reconstructParams(params);
37069
- await execute$4(newParams);
37126
+ await execute$7(newParams);
37070
37127
  }
37071
37128
  function validType(params) {
37072
37129
  const authTypes = ["BIOMETRIC"];
37073
37130
  return authTypes.includes(params == null ? void 0 : params.type);
37074
37131
  }
37075
- async function execute$4(params) {
37132
+ async function execute$7(params) {
37076
37133
  var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
37077
37134
  if (!validType(params)) {
37078
37135
  return (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.invalidType });
@@ -37113,9 +37170,9 @@ async function execute$4(params) {
37113
37170
  }
37114
37171
  function logout(params) {
37115
37172
  const newParams = reconstructParams(params);
37116
- execute$3(newParams);
37173
+ execute$6(newParams);
37117
37174
  }
37118
- function execute$3(params) {
37175
+ function execute$6(params) {
37119
37176
  var _a2, _b;
37120
37177
  try {
37121
37178
  Object.entries(PpLocalStorageKey).forEach(([_, value2]) => {
@@ -37130,9 +37187,9 @@ function execute$3(params) {
37130
37187
  }
37131
37188
  async function verifyMultiFactorAuthResult(params) {
37132
37189
  const newParams = reconstructParams(params);
37133
- await execute$2(newParams);
37190
+ await execute$5(newParams);
37134
37191
  }
37135
- async function execute$2(params) {
37192
+ async function execute$5(params) {
37136
37193
  var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
37137
37194
  const urlParams = new URLSearchParams(window.location.search);
37138
37195
  const sessionId = urlParams == null ? void 0 : urlParams.get("ppSessionId");
@@ -37602,6 +37659,42 @@ function getRenderLoginInfo(params) {
37602
37659
  preferredLanguage
37603
37660
  };
37604
37661
  }
37662
+ var dist = {};
37663
+ Object.defineProperty(dist, "__esModule", { value: true });
37664
+ var sanitizeUrl_1 = dist.sanitizeUrl = void 0;
37665
+ var invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im;
37666
+ var htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g;
37667
+ var htmlCtrlEntityRegex = /&(newline|tab);/gi;
37668
+ var ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;
37669
+ var urlSchemeRegex = /^.+(:|&colon;)/gim;
37670
+ var relativeFirstCharacters = [".", "/"];
37671
+ function isRelativeUrlWithoutProtocol(url) {
37672
+ return relativeFirstCharacters.indexOf(url[0]) > -1;
37673
+ }
37674
+ function decodeHtmlCharacters(str) {
37675
+ return str.replace(htmlEntitiesRegex, function(match, dec) {
37676
+ return String.fromCharCode(dec);
37677
+ });
37678
+ }
37679
+ function sanitizeUrl(url) {
37680
+ var sanitizedUrl = decodeHtmlCharacters(url || "").replace(htmlCtrlEntityRegex, "").replace(ctrlCharactersRegex, "").trim();
37681
+ if (!sanitizedUrl) {
37682
+ return "about:blank";
37683
+ }
37684
+ if (isRelativeUrlWithoutProtocol(sanitizedUrl)) {
37685
+ return sanitizedUrl;
37686
+ }
37687
+ var urlSchemeParseResults = sanitizedUrl.match(urlSchemeRegex);
37688
+ if (!urlSchemeParseResults) {
37689
+ return sanitizedUrl;
37690
+ }
37691
+ var urlScheme = urlSchemeParseResults[0];
37692
+ if (invalidProtocolRegex.test(urlScheme)) {
37693
+ return "about:blank";
37694
+ }
37695
+ return sanitizedUrl;
37696
+ }
37697
+ sanitizeUrl_1 = dist.sanitizeUrl = sanitizeUrl;
37605
37698
  const smartBtn = "_smartBtn_1112c_1";
37606
37699
  const sm = "_sm_1112c_1";
37607
37700
  const leftSection$1 = "_leftSection_1112c_18";
@@ -37694,15 +37787,23 @@ const _sfc_main$y = defineComponent({
37694
37787
  onMounted(() => {
37695
37788
  emit("mount");
37696
37789
  });
37790
+ const redirectUrl = computed(() => {
37791
+ if ((props == null ? void 0 : props.url) && isValidUrl(props.url)) {
37792
+ const sanitizedUrl = sanitizeUrl_1(props.url);
37793
+ return sanitizedUrl !== "about:blank" ? sanitizedUrl : void 0;
37794
+ }
37795
+ return void 0;
37796
+ });
37697
37797
  return {
37698
37798
  onClick,
37699
37799
  onError,
37700
37800
  iconUrl,
37701
- smallBtn
37801
+ smallBtn,
37802
+ redirectUrl
37702
37803
  };
37703
37804
  }
37704
37805
  });
37705
- const _hoisted_1$f = ["href"];
37806
+ const _hoisted_1$g = ["href"];
37706
37807
  const _hoisted_2$5 = ["src"];
37707
37808
  const _hoisted_3$3 = ["src"];
37708
37809
  function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
@@ -37720,7 +37821,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
37720
37821
  { [_ctx.$style.shortText]: _ctx.isShortText }
37721
37822
  ]),
37722
37823
  "data-testid": "smart-btn-container",
37723
- href: _ctx.url,
37824
+ href: _ctx.redirectUrl,
37724
37825
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
37725
37826
  }, [
37726
37827
  createBaseVNode("span", {
@@ -37758,7 +37859,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
37758
37859
  alt: "",
37759
37860
  onError: _cache[0] || (_cache[0] = (...args) => _ctx.onError && _ctx.onError(...args))
37760
37861
  }, null, 42, _hoisted_3$3)) : createCommentVNode("", true)
37761
- ], 10, _hoisted_1$f)
37862
+ ], 10, _hoisted_1$g)
37762
37863
  ], 2);
37763
37864
  }
37764
37865
  const cssModules$r = {};
@@ -37784,6 +37885,9 @@ const initSmartButton = (params, data2, preferredLanguage, isLoggedIn) => {
37784
37885
  }).catch(() => {
37785
37886
  });
37786
37887
  };
37888
+ const shouldImmediateExecutePayment = (smartButtonParams2) => {
37889
+ return smartButtonParams2.type === "pay" && isLoggedIn && (smartButtonParams2 == null ? void 0 : smartButtonParams2.autoInvoke) && OTTLoginState.isJustLoggedIn;
37890
+ };
37787
37891
  const app = createApp({
37788
37892
  setup() {
37789
37893
  return () => h(AppVue, {
@@ -37807,7 +37911,7 @@ const initSmartButton = (params, data2, preferredLanguage, isLoggedIn) => {
37807
37911
  }
37808
37912
  },
37809
37913
  onMount: () => {
37810
- if (smartButtonParams.type === "pay" && isLoggedIn && (smartButtonParams == null ? void 0 : smartButtonParams.autoInvoke) && OTTLoginState.isJustLoggedIn) {
37914
+ if (shouldImmediateExecutePayment(smartButtonParams)) {
37811
37915
  triggerPayment();
37812
37916
  }
37813
37917
  }
@@ -37864,12 +37968,13 @@ async function getExpectedCashbackInfo(orderInfo) {
37864
37968
  storeId: orderInfo == null ? void 0 : orderInfo.storeId,
37865
37969
  merchantPaymentId: orderInfo == null ? void 0 : orderInfo.merchantPaymentId
37866
37970
  };
37867
- return await ppFetch2({
37971
+ const resp = await ppFetch2({
37868
37972
  method: "POST",
37869
37973
  url: "web-api/app/v1/smartpayment/cashback/expected",
37870
37974
  params: query,
37871
37975
  data: body2
37872
37976
  });
37977
+ return resp;
37873
37978
  }
37874
37979
  function createCashbackInfo(cashbackResponse) {
37875
37980
  var _a2, _b;
@@ -38001,6 +38106,22 @@ const userProfileFormValidationTypes = [
38001
38106
  "NUMBER"
38002
38107
  ];
38003
38108
  const lg = getLanguage();
38109
+ const getStringConvertedHalfWidth = (value2, spaceFullWidth, spaceHalfWidth) => {
38110
+ let newValue = "";
38111
+ for (const char of value2) {
38112
+ const code = char.charCodeAt(0);
38113
+ if (65313 <= code && code <= 65338) {
38114
+ newValue += String.fromCharCode(code - 65313 + 65);
38115
+ } else if (65345 <= code && code <= 65370) {
38116
+ newValue += String.fromCharCode(code - 65345 + 97);
38117
+ } else if (char === spaceFullWidth) {
38118
+ newValue += spaceHalfWidth;
38119
+ } else {
38120
+ newValue += char;
38121
+ }
38122
+ }
38123
+ return newValue;
38124
+ };
38004
38125
  const validators = {
38005
38126
  KATA_KANA: (value2) => {
38006
38127
  if (value2.length > 16) {
@@ -38035,20 +38156,12 @@ const validators = {
38035
38156
  }
38036
38157
  let spaceFullWidth = "\u3000";
38037
38158
  let spaceHalfWidth = " ";
38038
- if (/^([a-zA-Za-zA-Z]+[\s]?[a-zA-Za-zA-Z]*)+$/.test(value2)) {
38039
- let newValue = "";
38040
- for (const char of value2) {
38041
- const code = char.charCodeAt(0);
38042
- if (65313 <= code && code <= 65338) {
38043
- newValue += String.fromCharCode(code - 65313 + 65);
38044
- } else if (65345 <= code && code <= 65370) {
38045
- newValue += String.fromCharCode(code - 65345 + 97);
38046
- } else if (char === spaceFullWidth) {
38047
- newValue += spaceHalfWidth;
38048
- } else {
38049
- newValue += char;
38050
- }
38051
- }
38159
+ if (isAlphabet(value2)) {
38160
+ let newValue = getStringConvertedHalfWidth(
38161
+ value2,
38162
+ spaceFullWidth,
38163
+ spaceHalfWidth
38164
+ );
38052
38165
  if (newValue.length > 0) {
38053
38166
  newValue = newValue.toLowerCase().replace(/^(.)|\s+(.)/g, (c) => c.toUpperCase());
38054
38167
  }
@@ -38316,13 +38429,11 @@ const useRegisterUserInfoStore = defineStore("registerUserInfo", {
38316
38429
  },
38317
38430
  getEmailStatus() {
38318
38431
  getUserProfileDataV2().then((resp) => {
38319
- switch (resp.ppFetchResult) {
38320
- case "success":
38321
- this.email = resp.body.unsigned.data.email || null;
38322
- this.emailStatus = resp.body.unsigned.data.emailStatus || null;
38323
- break;
38324
- default:
38325
- throw new Error();
38432
+ if (resp.ppFetchResult === "success") {
38433
+ this.email = resp.body.unsigned.data.email || null;
38434
+ this.emailStatus = resp.body.unsigned.data.emailStatus || null;
38435
+ } else {
38436
+ throw new Error();
38326
38437
  }
38327
38438
  }).catch(() => {
38328
38439
  const lg2 = getLanguage();
@@ -38573,7 +38684,7 @@ const _sfc_main$v = defineComponent({
38573
38684
  };
38574
38685
  }
38575
38686
  });
38576
- const _hoisted_1$e = ["type", "pattern", "inputmode", "placeholder"];
38687
+ const _hoisted_1$f = ["type", "pattern", "inputmode", "placeholder"];
38577
38688
  const _hoisted_2$4 = ["src"];
38578
38689
  function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
38579
38690
  return openBlock(), createElementBlock("div", {
@@ -38593,7 +38704,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
38593
38704
  class: normalizeClass(_ctx.$style.input),
38594
38705
  onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
38595
38706
  onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
38596
- }, null, 42, _hoisted_1$e), [
38707
+ }, null, 42, _hoisted_1$f), [
38597
38708
  [vModelDynamic, _ctx.state.value]
38598
38709
  ]),
38599
38710
  withDirectives(createBaseVNode("button", {
@@ -38650,7 +38761,7 @@ const _sfc_main$u = defineComponent({
38650
38761
  };
38651
38762
  }
38652
38763
  });
38653
- const _hoisted_1$d = ["onClick"];
38764
+ const _hoisted_1$e = ["onClick"];
38654
38765
  function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
38655
38766
  return openBlock(), createElementBlock("div", {
38656
38767
  class: normalizeClass(_ctx.$style.container)
@@ -38663,7 +38774,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
38663
38774
  [_ctx.$style.selected]: button4 === _ctx.selectedValue
38664
38775
  }),
38665
38776
  onClick: ($event) => _ctx.onClick(button4)
38666
- }, toDisplayString(button4), 11, _hoisted_1$d);
38777
+ }, toDisplayString(button4), 11, _hoisted_1$e);
38667
38778
  }), 128))
38668
38779
  ], 2);
38669
38780
  }
@@ -38749,7 +38860,7 @@ const _sfc_main$t = defineComponent({
38749
38860
  };
38750
38861
  }
38751
38862
  });
38752
- const _hoisted_1$c = ["src"];
38863
+ const _hoisted_1$d = ["src"];
38753
38864
  function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
38754
38865
  return openBlock(), createElementBlock("div", {
38755
38866
  class: normalizeClass(_ctx.$style.container)
@@ -38777,7 +38888,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
38777
38888
  class: normalizeClass(_ctx.$style.icon),
38778
38889
  src: _ctx.images.iconRightArrowGray,
38779
38890
  alt: ">"
38780
- }, null, 10, _hoisted_1$c)
38891
+ }, null, 10, _hoisted_1$d)
38781
38892
  ], 2),
38782
38893
  _ctx.notVerified ? (openBlock(), createElementBlock("div", {
38783
38894
  key: 0,
@@ -38884,9 +38995,9 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
38884
38995
  const cssModules$n = {};
38885
38996
  cssModules$n["$style"] = style0$n;
38886
38997
  var RegisterUserInfoDataPointGroup = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__cssModules", cssModules$n]]);
38887
- const container$8 = "_container_rustj_1";
38888
- const name = "_name_rustj_6";
38889
- const value = "_value_rustj_12";
38998
+ const container$8 = "_container_7iz73_1";
38999
+ const name = "_name_7iz73_6";
39000
+ const value = "_value_7iz73_13";
38890
39001
  var style0$m = {
38891
39002
  container: container$8,
38892
39003
  name,
@@ -38923,16 +39034,18 @@ const _sfc_main$r = defineComponent({
38923
39034
  }
38924
39035
  }
38925
39036
  });
39037
+ const _hoisted_1$c = { "aria-label": "User Info" };
38926
39038
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
38927
39039
  return openBlock(), createElementBlock("div", {
38928
39040
  class: normalizeClass(_ctx.$style.container)
38929
39041
  }, [
38930
- createBaseVNode("table", null, [
39042
+ createBaseVNode("table", _hoisted_1$c, [
38931
39043
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dataPointGroups, (group) => {
38932
39044
  return openBlock(), createElementBlock("tr", {
38933
39045
  key: group.groupType
38934
39046
  }, [
38935
- createBaseVNode("td", {
39047
+ createBaseVNode("th", {
39048
+ scope: "row",
38936
39049
  class: normalizeClass(_ctx.$style.name)
38937
39050
  }, toDisplayString(group.groupName), 3),
38938
39051
  createBaseVNode("td", {
@@ -39780,7 +39893,7 @@ const _sfc_main$g = defineComponent({
39780
39893
  };
39781
39894
  const noPayoutMethod = computed(() => {
39782
39895
  var _a2;
39783
- return !(((_a2 = props.payoutMethods) == null ? void 0 : _a2.length) > 0);
39896
+ return !props.payoutMethods || ((_a2 = props.payoutMethods) == null ? void 0 : _a2.length) === 0;
39784
39897
  });
39785
39898
  return {
39786
39899
  lg: lg2,
@@ -39992,9 +40105,9 @@ function getBankInfo(params) {
39992
40105
  if (complete) {
39993
40106
  params.complete = createWrapComplete(complete);
39994
40107
  }
39995
- execute$1(params);
40108
+ execute$4(params);
39996
40109
  }
39997
- function execute$1(params) {
40110
+ function execute$4(params) {
39998
40111
  var _a2, _b;
39999
40112
  try {
40000
40113
  const container2 = document.createElement("div");
@@ -40275,19 +40388,16 @@ const useRegisterPaymentFeaturesStore = defineStore(
40275
40388
  return true;
40276
40389
  },
40277
40390
  handleErrorResponse(response) {
40278
- switch (response.ppFetchResult) {
40279
- case "timeout":
40280
- this.result = {
40281
- type: "fail",
40282
- errorCode: MiniAppErrorType.timeOut
40283
- };
40284
- return;
40285
- default:
40286
- this.result = {
40287
- type: "fail",
40288
- errorCode: MiniAppErrorType.serverError
40289
- };
40290
- return;
40391
+ if (response.ppFetchResult === "timeout") {
40392
+ this.result = {
40393
+ type: "fail",
40394
+ errorCode: MiniAppErrorType.timeOut
40395
+ };
40396
+ } else {
40397
+ this.result = {
40398
+ type: "fail",
40399
+ errorCode: MiniAppErrorType.serverError
40400
+ };
40291
40401
  }
40292
40402
  },
40293
40403
  async setAutoTopupConfiguration() {
@@ -40769,7 +40879,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
40769
40879
  }, [
40770
40880
  createVNode(_component_Bank, {
40771
40881
  bank: _ctx.bankMethod,
40772
- round: ""
40882
+ round: "",
40883
+ "ignore-bank-maintenance-flag": ""
40773
40884
  }, null, 8, ["bank"]),
40774
40885
  createBaseVNode("img", {
40775
40886
  class: normalizeClass(_ctx.$style.icon),
@@ -41048,7 +41159,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
41048
41159
  class: normalizeClass(_ctx.$style.icon)
41049
41160
  }, [
41050
41161
  createBaseVNode("img", {
41051
- src: _ctx.showEmoneyOnlyNotice ? _ctx.images.iconInfo : _ctx.images.iconNotice
41162
+ src: _ctx.showEmoneyOnlyNotice ? _ctx.images.iconInfo : _ctx.images.iconNotice,
41163
+ alt: ""
41052
41164
  }, null, 8, _hoisted_3)
41053
41165
  ], 2),
41054
41166
  createBaseVNode("div", {
@@ -41357,6 +41469,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
41357
41469
  "payment-methods": _ctx.paymentMethodsList,
41358
41470
  "select-index": _ctx.selectIndex,
41359
41471
  "is-topup": true,
41472
+ "ignore-bank-maintenance-flag": "",
41360
41473
  onSelectPaymentMethod: _ctx.selectPaymentList
41361
41474
  }, null, 8, ["class", "payment-methods", "select-index", "onSelectPaymentMethod"])
41362
41475
  ]),
@@ -42072,9 +42185,9 @@ function triggerFailCallback(params, errorCode) {
42072
42185
  }
42073
42186
  async function getCashbackInformation(params) {
42074
42187
  const newParams = reconstructParams(params);
42075
- await execute(newParams);
42188
+ await execute$3(newParams);
42076
42189
  }
42077
- async function execute(params) {
42190
+ async function execute$3(params) {
42078
42191
  var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
42079
42192
  try {
42080
42193
  if (!(params == null ? void 0 : params.merchantPaymentId)) {
@@ -42108,6 +42221,176 @@ async function execute(params) {
42108
42221
  return (_k = params == null ? void 0 : params.fail) == null ? void 0 : _k.call(params, { errorCode: MiniAppErrorType.serverError });
42109
42222
  }
42110
42223
  }
42224
+ function addShortcut(params) {
42225
+ var _a2;
42226
+ const newParams = reconstructParams(params);
42227
+ if (Object.values(AddShortcutTypes).includes(params.type)) {
42228
+ execute$2(newParams);
42229
+ } else {
42230
+ (_a2 = newParams == null ? void 0 : newParams.fail) == null ? void 0 : _a2.call(newParams, {
42231
+ errorCode: MiniAppErrorType.badRequestInsufficientParameter
42232
+ });
42233
+ return;
42234
+ }
42235
+ }
42236
+ function execute$2(params) {
42237
+ var _a2;
42238
+ if (params.type === AddShortcutTypes.FAVORITE) {
42239
+ addToFavorite(params).catch(() => {
42240
+ });
42241
+ } else {
42242
+ const isMethodSupported = checkVersion(MinVersion.OS_HOME_SCREEN_ICON);
42243
+ if (!isMethodSupported) {
42244
+ (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, {
42245
+ errorCode: MiniAppErrorType.notAvailable
42246
+ });
42247
+ return;
42248
+ }
42249
+ closeApp({
42250
+ options: {
42251
+ deeplink: "paypay://addMiniAppShortcut"
42252
+ },
42253
+ fail: params.fail
42254
+ });
42255
+ }
42256
+ }
42257
+ async function addToFavorite(params) {
42258
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
42259
+ const clientId = getClientId();
42260
+ if (!clientId) {
42261
+ (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.sdkNotInitialized });
42262
+ return;
42263
+ }
42264
+ const getAPIResponse = await shortcutApiHandler(
42265
+ "GET",
42266
+ void 0,
42267
+ { clientId }
42268
+ );
42269
+ if (getAPIResponse.ppFetchResult === "apiError" && ((_b = getAPIResponse.body.unsigned) == null ? void 0 : _b.resultInfo.code) === "RESOURCE_NOT_FOUND") {
42270
+ (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, {
42271
+ errorCode: MiniAppErrorType.badRequest
42272
+ });
42273
+ return;
42274
+ } else if (getAPIResponse.ppFetchResult !== "success") {
42275
+ (_d = params == null ? void 0 : params.fail) == null ? void 0 : _d.call(params, {
42276
+ errorCode: getFailErrorCode(getAPIResponse.ppFetchResult)
42277
+ });
42278
+ return;
42279
+ }
42280
+ const miniappMetadata = getAPIResponse.body.unsigned.data.smartFunctionInfoList[0];
42281
+ if (miniappMetadata.exists) {
42282
+ (_e = params == null ? void 0 : params.success) == null ? void 0 : _e.call(params);
42283
+ return;
42284
+ }
42285
+ const addFavoriteRes = await shortcutApiHandler(
42286
+ "PUT",
42287
+ { featureId: miniappMetadata.featureId },
42288
+ void 0
42289
+ );
42290
+ if (addFavoriteRes.ppFetchResult === "apiError") {
42291
+ (_h = params == null ? void 0 : params.fail) == null ? void 0 : _h.call(params, {
42292
+ errorCode: (_g = (_f = addFavoriteRes.body.unsigned) == null ? void 0 : _f.resultInfo.code) != null ? _g : MiniAppErrorType.serverError
42293
+ });
42294
+ return;
42295
+ } else if (addFavoriteRes.ppFetchResult !== "success") {
42296
+ (_i = params == null ? void 0 : params.fail) == null ? void 0 : _i.call(params, {
42297
+ errorCode: getFailErrorCode(addFavoriteRes.ppFetchResult)
42298
+ });
42299
+ return;
42300
+ }
42301
+ (_j = params == null ? void 0 : params.success) == null ? void 0 : _j.call(params);
42302
+ }
42303
+ async function shortcutApiHandler(method2, data2, params) {
42304
+ return await ppFetch2({
42305
+ method: method2,
42306
+ url: "web-api/app/v1/shortcut",
42307
+ data: data2,
42308
+ params
42309
+ });
42310
+ }
42311
+ function shortcutExists(params) {
42312
+ var _a2;
42313
+ const newParams = reconstructParams(params);
42314
+ if (Object.values(ShortcutExistsTypes).includes(params.type)) {
42315
+ execute$1(newParams).catch(() => {
42316
+ });
42317
+ } else {
42318
+ (_a2 = newParams == null ? void 0 : newParams.fail) == null ? void 0 : _a2.call(newParams, {
42319
+ errorCode: MiniAppErrorType.badRequestInsufficientParameter
42320
+ });
42321
+ return;
42322
+ }
42323
+ }
42324
+ async function execute$1(params) {
42325
+ var _a2, _b, _c, _d, _e, _f;
42326
+ const clientId = getClientId();
42327
+ if (!clientId) {
42328
+ (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.sdkNotInitialized });
42329
+ return;
42330
+ }
42331
+ const res = await ppFetch2({
42332
+ method: "GET",
42333
+ url: "web-api/app/v1/shortcut",
42334
+ params: {
42335
+ clientId
42336
+ }
42337
+ });
42338
+ if (res.ppFetchResult === "apiError" && ((_b = res.body.unsigned) == null ? void 0 : _b.resultInfo.code) === "RESOURCE_NOT_FOUND") {
42339
+ (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, {
42340
+ errorCode: MiniAppErrorType.badRequest
42341
+ });
42342
+ return;
42343
+ } else if (res.ppFetchResult !== "success") {
42344
+ (_d = params == null ? void 0 : params.fail) == null ? void 0 : _d.call(params, {
42345
+ errorCode: getFailErrorCode(res.ppFetchResult)
42346
+ });
42347
+ return;
42348
+ }
42349
+ const miniappMetadata = res.body.unsigned.data.smartFunctionInfoList[0];
42350
+ (_f = params == null ? void 0 : params.success) == null ? void 0 : _f.call(params, {
42351
+ exists: (_e = miniappMetadata.exists) != null ? _e : false
42352
+ });
42353
+ }
42354
+ async function getUserPaymentFeatureSettings(params) {
42355
+ const newParams = reconstructParams(params);
42356
+ await execute(newParams);
42357
+ }
42358
+ async function execute(params) {
42359
+ var _a2, _b, _c, _d, _e;
42360
+ try {
42361
+ const grantStatus = await checkPermission(
42362
+ PermissionName.mini_app_check_payment_method
42363
+ );
42364
+ if (grantStatus !== PermissionStatus.granted) {
42365
+ return (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.insufficientScope });
42366
+ }
42367
+ const res = await ppFetch2({
42368
+ method: "GET",
42369
+ url: "web-api/app/v1/users/paymentFeatureSettings",
42370
+ params: {
42371
+ merchantId: params == null ? void 0 : params.merchant,
42372
+ productType: params == null ? void 0 : params.productType,
42373
+ paymentFeatureType: params == null ? void 0 : params.type
42374
+ }
42375
+ });
42376
+ if (res.ppFetchResult !== "success") {
42377
+ (_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, {
42378
+ errorCode: getFailErrorCode(res.ppFetchResult)
42379
+ });
42380
+ return;
42381
+ }
42382
+ const userPaymentFeatureSettings = res.body.unsigned.data;
42383
+ let paymentFeatures = {};
42384
+ (_c = Object.entries(userPaymentFeatureSettings)) == null ? void 0 : _c.forEach(([key2, value2]) => {
42385
+ paymentFeatures[key2.toUpperCase()] = value2 ? "AVAILABLE" : "UNAVAILABLE";
42386
+ });
42387
+ (_d = params == null ? void 0 : params.success) == null ? void 0 : _d.call(params, {
42388
+ paymentFeatures
42389
+ });
42390
+ } catch {
42391
+ return (_e = params == null ? void 0 : params.fail) == null ? void 0 : _e.call(params, { errorCode: MiniAppErrorType.serverError });
42392
+ }
42393
+ }
42111
42394
  class MiniAppModule extends JsBridgeModule {
42112
42395
  constructor(jsBridge2) {
42113
42396
  super();
@@ -42173,9 +42456,6 @@ class MiniAppModule extends JsBridgeModule {
42173
42456
  });
42174
42457
  }
42175
42458
  createOrder(params) {
42176
- if (!this.isExecutableService(params)) {
42177
- return;
42178
- }
42179
42459
  makePayment(params).catch(() => {
42180
42460
  });
42181
42461
  }
@@ -42302,6 +42582,16 @@ class MiniAppModule extends JsBridgeModule {
42302
42582
  registerPaymentFeatures(params) {
42303
42583
  registerPaymentFeatures(params);
42304
42584
  }
42585
+ addShortcut(params) {
42586
+ addShortcut(params);
42587
+ }
42588
+ shortcutExists(params) {
42589
+ shortcutExists(params);
42590
+ }
42591
+ getUserPaymentFeatureSettings(params) {
42592
+ getUserPaymentFeatureSettings(params).catch(() => {
42593
+ });
42594
+ }
42305
42595
  }
42306
42596
  class PayPayJsBridge extends PayPayJsBridgeBase {
42307
42597
  }