@paypay/mini-app-js-sdk 1.58.0 → 1.60.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.
- package/dist/mini-app-api.d.ts +2 -1
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +592 -402
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/getUserPaymentFeatureSettings.d.ts +2 -0
- package/dist/model/makePayment.d.ts +0 -6
- package/dist/package/payment-method/Bank.vue.d.ts +11 -0
- package/dist/package/payment-method/index.d.ts +11 -0
- package/dist/package/payment-method-list/index.vue.d.ts +11 -0
- package/dist/types.d.ts +5 -0
- package/dist/utils/api.d.ts +0 -8
- package/dist/utils/fetch.d.ts +1 -2
- package/dist/utils/helper.d.ts +1 -0
- package/dist/views/error-sheet/Index.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +1 -0
- package/dist/views/input-address/hook/app.d.ts +1 -1
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +11 -0
- package/dist/views/smart-button/App.vue.d.ts +1 -0
- package/package.json +2 -1
|
@@ -50,8 +50,8 @@ function normalizeNativeResponseData(data2) {
|
|
|
50
50
|
}
|
|
51
51
|
class JsBridge {
|
|
52
52
|
constructor(global2) {
|
|
53
|
-
this.version = "1.
|
|
54
|
-
this.revision = "
|
|
53
|
+
this.version = "1.60.0";
|
|
54
|
+
this.revision = "fa361bf";
|
|
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).
|
|
62
|
+
Math.random().toString(36).slice(2, 10),
|
|
63
63
|
"_",
|
|
64
64
|
new Date().getTime()
|
|
65
65
|
].join("");
|
|
@@ -1318,10 +1318,10 @@ function getLanguage() {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
function getPayPayLanguage() {
|
|
1320
1320
|
var _a2, _b;
|
|
1321
|
-
let preferredLanguage = (_a2 = navigator.language) == null ? void 0 : _a2.
|
|
1321
|
+
let preferredLanguage = (_a2 = navigator.language) == null ? void 0 : _a2.slice(0, 2);
|
|
1322
1322
|
const langSplit = navigator.userAgent.split(" Lang/");
|
|
1323
1323
|
if (langSplit.length > 1) {
|
|
1324
|
-
preferredLanguage = (_b = langSplit[1].split(" ")[0].
|
|
1324
|
+
preferredLanguage = (_b = langSplit[1].split(" ")[0].slice(0, 2)) != null ? _b : preferredLanguage;
|
|
1325
1325
|
}
|
|
1326
1326
|
return preferredLanguage;
|
|
1327
1327
|
}
|
|
@@ -1471,55 +1471,62 @@ async function topup$3(queryParams, body2) {
|
|
|
1471
1471
|
return res;
|
|
1472
1472
|
}
|
|
1473
1473
|
async function getCashBackInfo() {
|
|
1474
|
-
|
|
1474
|
+
const result2 = await ppFetch2({
|
|
1475
1475
|
method: "GET",
|
|
1476
1476
|
url: "/web-api/app/platform/v1/balance",
|
|
1477
1477
|
headers: {
|
|
1478
1478
|
"INTERNAL-CALL": "true"
|
|
1479
1479
|
}
|
|
1480
1480
|
});
|
|
1481
|
+
return result2;
|
|
1481
1482
|
}
|
|
1482
1483
|
async function getAddressByZip(params) {
|
|
1483
|
-
|
|
1484
|
+
const result2 = await ppFetch2({
|
|
1484
1485
|
method: "GET",
|
|
1485
1486
|
url: "web-api/app/v1/addressbyzip",
|
|
1486
1487
|
params
|
|
1487
1488
|
});
|
|
1489
|
+
return result2;
|
|
1488
1490
|
}
|
|
1489
1491
|
async function getAddressList() {
|
|
1490
|
-
|
|
1492
|
+
const result2 = ppFetch2({
|
|
1491
1493
|
method: "GET",
|
|
1492
1494
|
url: "web-api/app/v1/users/addresslist",
|
|
1493
1495
|
params: {
|
|
1494
1496
|
type: "PREFERRED"
|
|
1495
1497
|
}
|
|
1496
1498
|
});
|
|
1499
|
+
return result2;
|
|
1497
1500
|
}
|
|
1498
1501
|
async function postAddress(body2) {
|
|
1499
|
-
|
|
1502
|
+
const result2 = await ppFetch2({
|
|
1500
1503
|
method: "POST",
|
|
1501
1504
|
url: "web-api/app/v1/users/address",
|
|
1502
1505
|
data: body2
|
|
1503
1506
|
});
|
|
1507
|
+
return result2;
|
|
1504
1508
|
}
|
|
1505
1509
|
async function editAddress(body2, id) {
|
|
1506
|
-
|
|
1510
|
+
const result2 = await ppFetch2({
|
|
1507
1511
|
method: "PUT",
|
|
1508
1512
|
url: `web-api/app/v1/users/address/${id}`,
|
|
1509
1513
|
data: body2
|
|
1510
1514
|
});
|
|
1515
|
+
return result2;
|
|
1511
1516
|
}
|
|
1512
1517
|
async function deleteAddress(id) {
|
|
1513
|
-
|
|
1518
|
+
const result2 = await ppFetch2({
|
|
1514
1519
|
method: "DELETE",
|
|
1515
1520
|
url: `web-api/app/v1/users/address/${id}`
|
|
1516
1521
|
});
|
|
1522
|
+
return result2;
|
|
1517
1523
|
}
|
|
1518
1524
|
async function setSelectedAddress(addressId) {
|
|
1519
|
-
|
|
1525
|
+
const result2 = ppFetch2({
|
|
1520
1526
|
url: `web-api/app/v1/users/address/selected/${addressId}`,
|
|
1521
1527
|
method: "PUT"
|
|
1522
1528
|
});
|
|
1529
|
+
return result2;
|
|
1523
1530
|
}
|
|
1524
1531
|
async function getUserProfileData() {
|
|
1525
1532
|
return ppFetch2({
|
|
@@ -1759,7 +1766,13 @@ var MiniAppRuntime = /* @__PURE__ */ ((MiniAppRuntime2) => {
|
|
|
1759
1766
|
return MiniAppRuntime2;
|
|
1760
1767
|
})(MiniAppRuntime || {});
|
|
1761
1768
|
function getRuntime() {
|
|
1762
|
-
|
|
1769
|
+
if (navigator.userAgent.match(/(iPad|iPhone|iPod)/i) && isPayPayMiniApp()) {
|
|
1770
|
+
return "IOS";
|
|
1771
|
+
} else if (navigator.userAgent.match(/Android/i) && isPayPayMiniApp()) {
|
|
1772
|
+
return "ANDROID";
|
|
1773
|
+
} else {
|
|
1774
|
+
return "WEB";
|
|
1775
|
+
}
|
|
1763
1776
|
}
|
|
1764
1777
|
function isPayPayMiniApp() {
|
|
1765
1778
|
return navigator.userAgent.includes("PayPayMiniApp/");
|
|
@@ -1907,6 +1920,9 @@ function getButtonType(button4, onlyButton = false) {
|
|
|
1907
1920
|
return button4.buttonType;
|
|
1908
1921
|
}
|
|
1909
1922
|
}
|
|
1923
|
+
function isAlphabet(value2) {
|
|
1924
|
+
return /^([a-zA-Za-zA-Z]+[\s]?[a-zA-Za-zA-Z]*)+$/.test(value2);
|
|
1925
|
+
}
|
|
1910
1926
|
const opaUrl = () => {
|
|
1911
1927
|
switch (getEnv()) {
|
|
1912
1928
|
case "staging":
|
|
@@ -1927,11 +1943,11 @@ const opaUrl = () => {
|
|
|
1927
1943
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
1928
1944
|
let headers = new Headers({
|
|
1929
1945
|
"Content-Type": "application/json",
|
|
1930
|
-
"Client-Version": "1.
|
|
1946
|
+
"Client-Version": "1.60.0",
|
|
1931
1947
|
"Client-OS-Type": getRuntime(),
|
|
1932
1948
|
...customHeaders
|
|
1933
1949
|
});
|
|
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") {
|
|
1950
|
+
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
1951
|
headers.set("Client-UUID", getClientUUID());
|
|
1936
1952
|
headers.set("Device-UUID", getDeviceUUID());
|
|
1937
1953
|
headers.set("Client-Type", "MINIAPP");
|
|
@@ -2155,10 +2171,10 @@ var MiniAppStatusType = /* @__PURE__ */ ((MiniAppStatusType2) => {
|
|
|
2155
2171
|
})(MiniAppStatusType || {});
|
|
2156
2172
|
function getUAID(params) {
|
|
2157
2173
|
const newParams = reconstructParams(params);
|
|
2158
|
-
execute$
|
|
2174
|
+
execute$h(newParams).catch(() => {
|
|
2159
2175
|
});
|
|
2160
2176
|
}
|
|
2161
|
-
async function execute$
|
|
2177
|
+
async function execute$h(params) {
|
|
2162
2178
|
var _a2, _b, _c, _d, _e;
|
|
2163
2179
|
const res = await ppFetch2({
|
|
2164
2180
|
method: "GET",
|
|
@@ -2172,9 +2188,9 @@ async function execute$g(params) {
|
|
|
2172
2188
|
}
|
|
2173
2189
|
function checkAccessToken(params) {
|
|
2174
2190
|
const newParams = reconstructParams(params);
|
|
2175
|
-
execute$
|
|
2191
|
+
execute$g(newParams);
|
|
2176
2192
|
}
|
|
2177
|
-
function execute$
|
|
2193
|
+
function execute$g(params) {
|
|
2178
2194
|
var _a2, _b;
|
|
2179
2195
|
const clientId = getClientId();
|
|
2180
2196
|
const token = getAccessToken();
|
|
@@ -2199,9 +2215,9 @@ function execute$f(params) {
|
|
|
2199
2215
|
}
|
|
2200
2216
|
async function getUserProfile(params) {
|
|
2201
2217
|
const newParams = reconstructParams(params);
|
|
2202
|
-
await execute$
|
|
2218
|
+
await execute$f(newParams);
|
|
2203
2219
|
}
|
|
2204
|
-
async function execute$
|
|
2220
|
+
async function execute$f(params) {
|
|
2205
2221
|
var _a2, _b;
|
|
2206
2222
|
const res = await ppFetch2({
|
|
2207
2223
|
method: "GET",
|
|
@@ -7704,23 +7720,26 @@ const OTTLoginState = reactive({
|
|
|
7704
7720
|
});
|
|
7705
7721
|
async function init(params) {
|
|
7706
7722
|
const newParams = reconstructParams(params);
|
|
7707
|
-
await execute$
|
|
7723
|
+
await execute$e(newParams);
|
|
7708
7724
|
}
|
|
7709
|
-
|
|
7710
|
-
|
|
7725
|
+
function checkAppVersion() {
|
|
7726
|
+
const appVersion = getAppVersion();
|
|
7727
|
+
if (appVersion) {
|
|
7728
|
+
if (semVerCompare("2.69.0", appVersion)) {
|
|
7729
|
+
setTimeout(fixDeprecatedCloseApp, 1e4);
|
|
7730
|
+
const jsBridge2 = new JsBridge(window);
|
|
7731
|
+
return jsBridge2.callNative("showUpdateWarning", {
|
|
7732
|
+
isMandatory: true
|
|
7733
|
+
});
|
|
7734
|
+
}
|
|
7735
|
+
}
|
|
7736
|
+
}
|
|
7737
|
+
async function execute$e(params) {
|
|
7738
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
7711
7739
|
try {
|
|
7712
7740
|
saveEnv((_a2 = params == null ? void 0 : params.env) != null ? _a2 : "");
|
|
7713
7741
|
saveClientId((_b = params == null ? void 0 : params.clientId) != null ? _b : "");
|
|
7714
|
-
|
|
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
|
-
}
|
|
7742
|
+
checkAppVersion();
|
|
7724
7743
|
const url = new URL(window.location.href);
|
|
7725
7744
|
const urlParams = url.searchParams;
|
|
7726
7745
|
let token = urlParams == null ? void 0 : urlParams.get("token");
|
|
@@ -7752,26 +7771,11 @@ async function execute$d(params) {
|
|
|
7752
7771
|
return;
|
|
7753
7772
|
}
|
|
7754
7773
|
if (((_d = (_c = res == null ? void 0 : res.body) == null ? void 0 : _c.resultInfo) == null ? void 0 : _d.code) === "SUCCESS") {
|
|
7755
|
-
|
|
7756
|
-
|
|
7774
|
+
await initApp(
|
|
7775
|
+
params,
|
|
7776
|
+
(_f = (_e = res == null ? void 0 : res.body) == null ? void 0 : _e.data) == null ? void 0 : _f.accessToken,
|
|
7777
|
+
(_h = (_g = res == null ? void 0 : res.body) == null ? void 0 : _g.data) == null ? void 0 : _h.refreshToken
|
|
7757
7778
|
);
|
|
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
7779
|
} else {
|
|
7776
7780
|
throw Error();
|
|
7777
7781
|
}
|
|
@@ -7779,10 +7783,31 @@ async function execute$d(params) {
|
|
|
7779
7783
|
failedAuth(params, MiniAppErrorType.serverError);
|
|
7780
7784
|
return;
|
|
7781
7785
|
}
|
|
7782
|
-
(
|
|
7786
|
+
(_i = params == null ? void 0 : params.success) == null ? void 0 : _i.call(params, {
|
|
7783
7787
|
statusCode: MiniAppStatusType.initialized
|
|
7784
7788
|
});
|
|
7785
7789
|
}
|
|
7790
|
+
async function initApp(params, accessToken, refreshToken2) {
|
|
7791
|
+
var _a2, _b;
|
|
7792
|
+
const appDetailResult = await initAppDetail(accessToken != null ? accessToken : "");
|
|
7793
|
+
if (!appDetailResult) {
|
|
7794
|
+
throw Error();
|
|
7795
|
+
}
|
|
7796
|
+
saveEnv((_a2 = params == null ? void 0 : params.env) != null ? _a2 : "");
|
|
7797
|
+
saveAccessToken(accessToken != null ? accessToken : "");
|
|
7798
|
+
saveRefreshToken(refreshToken2 != null ? refreshToken2 : "");
|
|
7799
|
+
OTTLoginState.setLoginState(true);
|
|
7800
|
+
setTimeout(() => {
|
|
7801
|
+
OTTLoginState.setLoginState(false);
|
|
7802
|
+
}, 5e3);
|
|
7803
|
+
saveUserData();
|
|
7804
|
+
saveClientId((_b = params == null ? void 0 : params.clientId) != null ? _b : "");
|
|
7805
|
+
removeCodeVerifier();
|
|
7806
|
+
const configResult = await initAppConfiguration();
|
|
7807
|
+
if (!configResult) {
|
|
7808
|
+
throw Error();
|
|
7809
|
+
}
|
|
7810
|
+
}
|
|
7786
7811
|
function fixDeprecatedCloseApp() {
|
|
7787
7812
|
const jsBridge2 = new JsBridge(window);
|
|
7788
7813
|
jsBridge2.callNative("closeApp", {});
|
|
@@ -7839,7 +7864,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
7839
7864
|
}
|
|
7840
7865
|
return target;
|
|
7841
7866
|
};
|
|
7842
|
-
const _hoisted_1$
|
|
7867
|
+
const _hoisted_1$X = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
7843
7868
|
function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7844
7869
|
return openBlock(), createElementBlock("div", {
|
|
7845
7870
|
class: normalizeClass(_ctx.$style.loading)
|
|
@@ -7850,7 +7875,7 @@ function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7850
7875
|
createBaseVNode("div", {
|
|
7851
7876
|
class: normalizeClass(_ctx.$style.bounce2)
|
|
7852
7877
|
}, null, 2),
|
|
7853
|
-
_hoisted_1$
|
|
7878
|
+
_hoisted_1$X
|
|
7854
7879
|
], 2);
|
|
7855
7880
|
}
|
|
7856
7881
|
const cssModules$1r = {};
|
|
@@ -8223,22 +8248,16 @@ const ActionSheet = defineComponent({
|
|
|
8223
8248
|
YState.y = 0;
|
|
8224
8249
|
};
|
|
8225
8250
|
const touchMove = (e) => {
|
|
8226
|
-
if (!props.forbiddenSwipe) {
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
e.preventDefault();
|
|
8230
|
-
}
|
|
8251
|
+
if (!props.forbiddenSwipe && e.cancelable) {
|
|
8252
|
+
e.stopPropagation();
|
|
8253
|
+
e.preventDefault();
|
|
8231
8254
|
}
|
|
8232
8255
|
if (props.forbiddenSwipe) {
|
|
8233
8256
|
return;
|
|
8234
8257
|
}
|
|
8235
8258
|
YState.moving = true;
|
|
8236
8259
|
const newY = e.changedTouches[0].clientY - YState.initial;
|
|
8237
|
-
|
|
8238
|
-
YState.y = newY;
|
|
8239
|
-
} else {
|
|
8240
|
-
YState.y = 0;
|
|
8241
|
-
}
|
|
8260
|
+
YState.y = newY >= 0 ? newY : 0;
|
|
8242
8261
|
};
|
|
8243
8262
|
const close2 = () => {
|
|
8244
8263
|
if (props.show) {
|
|
@@ -8294,6 +8313,7 @@ const ActionSheet = defineComponent({
|
|
|
8294
8313
|
default: () => {
|
|
8295
8314
|
var _a2, _b;
|
|
8296
8315
|
return [withDirectives(createVNode("div", {
|
|
8316
|
+
"role": this.type === "alert" ? "alertdialog" : "dialog",
|
|
8297
8317
|
"class": [styles$6.actionSheetWrapper, styles$6.actionSheetParent, {
|
|
8298
8318
|
[styles$6.round]: this.round,
|
|
8299
8319
|
[styles$6.fullscreen]: this.fullScreen,
|
|
@@ -8563,17 +8583,7 @@ const _sfc_main$1B = defineComponent({
|
|
|
8563
8583
|
openWebviewInternal({ url: buttonInfo == null ? void 0 : buttonInfo.deeplink });
|
|
8564
8584
|
return;
|
|
8565
8585
|
}
|
|
8566
|
-
|
|
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
|
-
}
|
|
8586
|
+
this.openWebView(buttonInfo);
|
|
8577
8587
|
closeApp({
|
|
8578
8588
|
options: {
|
|
8579
8589
|
deeplink: buttonInfo.deeplink
|
|
@@ -8586,12 +8596,24 @@ const _sfc_main$1B = defineComponent({
|
|
|
8586
8596
|
return;
|
|
8587
8597
|
}
|
|
8588
8598
|
this.$emit("close-click");
|
|
8589
|
-
|
|
8599
|
+
},
|
|
8600
|
+
openWebView(buttonInfo) {
|
|
8601
|
+
if (buttonInfo.deeplink) {
|
|
8602
|
+
try {
|
|
8603
|
+
const url = new URL(buttonInfo.deeplink);
|
|
8604
|
+
const urlParam = url.searchParams.get("url");
|
|
8605
|
+
if (buttonInfo.deeplink.startsWith("paypay://") && (url.host === "embed" || url.pathname === "//embed") && urlParam) {
|
|
8606
|
+
openWebviewInternal({ url: urlParam });
|
|
8607
|
+
return;
|
|
8608
|
+
}
|
|
8609
|
+
} catch {
|
|
8610
|
+
}
|
|
8611
|
+
}
|
|
8590
8612
|
},
|
|
8591
8613
|
getButtonType
|
|
8592
8614
|
}
|
|
8593
8615
|
});
|
|
8594
|
-
const _hoisted_1$
|
|
8616
|
+
const _hoisted_1$W = ["src"];
|
|
8595
8617
|
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8596
8618
|
const _component_Button = resolveComponent("Button");
|
|
8597
8619
|
const _component_ActionSheet = resolveComponent("ActionSheet");
|
|
@@ -8610,8 +8632,9 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8610
8632
|
createBaseVNode("img", {
|
|
8611
8633
|
src: _ctx.iconUrl,
|
|
8612
8634
|
class: normalizeClass(_ctx.style.errorIcon),
|
|
8613
|
-
style: normalizeStyle(_ctx.iconStyle)
|
|
8614
|
-
|
|
8635
|
+
style: normalizeStyle(_ctx.iconStyle),
|
|
8636
|
+
alt: ""
|
|
8637
|
+
}, null, 14, _hoisted_1$W)
|
|
8615
8638
|
], 2),
|
|
8616
8639
|
_ctx.errorTitle ? (openBlock(), createElementBlock("div", {
|
|
8617
8640
|
key: 0,
|
|
@@ -9025,10 +9048,10 @@ async function getUserGrantedPermission() {
|
|
|
9025
9048
|
}
|
|
9026
9049
|
async function getBalance(params) {
|
|
9027
9050
|
const newParams = reconstructParams(params);
|
|
9028
|
-
await execute$
|
|
9051
|
+
await execute$d(newParams);
|
|
9029
9052
|
}
|
|
9030
|
-
async function execute$
|
|
9031
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h
|
|
9053
|
+
async function execute$d(params) {
|
|
9054
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
9032
9055
|
try {
|
|
9033
9056
|
const grantStatus = await checkPermission(
|
|
9034
9057
|
PermissionName.mini_app_payment_balance
|
|
@@ -9055,11 +9078,10 @@ async function execute$c(params) {
|
|
|
9055
9078
|
return (_h = params == null ? void 0 : params.fail) == null ? void 0 : _h.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
9056
9079
|
} finally {
|
|
9057
9080
|
}
|
|
9058
|
-
return (_i = params == null ? void 0 : params.fail) == null ? void 0 : _i.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
9059
9081
|
}
|
|
9060
9082
|
async function getAuthStatus(params) {
|
|
9061
9083
|
const newParams = reconstructParams(params);
|
|
9062
|
-
await execute$
|
|
9084
|
+
await execute$c(newParams);
|
|
9063
9085
|
}
|
|
9064
9086
|
async function handlePKCE() {
|
|
9065
9087
|
const codeVerifier = generateCodeVerifier();
|
|
@@ -9081,7 +9103,7 @@ async function handleFailCallback(params, errorCode) {
|
|
|
9081
9103
|
code
|
|
9082
9104
|
});
|
|
9083
9105
|
}
|
|
9084
|
-
async function execute$
|
|
9106
|
+
async function execute$c(params) {
|
|
9085
9107
|
var _a2, _b, _c, _d, _e, _f;
|
|
9086
9108
|
try {
|
|
9087
9109
|
const clientId = getClientId();
|
|
@@ -9114,24 +9136,22 @@ async function execute$b(params) {
|
|
|
9114
9136
|
);
|
|
9115
9137
|
}
|
|
9116
9138
|
}
|
|
9117
|
-
const headerWrapper$1 = "
|
|
9118
|
-
const header$c = "
|
|
9119
|
-
const icon$e = "
|
|
9120
|
-
const
|
|
9121
|
-
const
|
|
9122
|
-
const
|
|
9123
|
-
const
|
|
9124
|
-
const
|
|
9125
|
-
const
|
|
9126
|
-
const
|
|
9127
|
-
const iconRightText = "_iconRightText_1i30m_64";
|
|
9139
|
+
const headerWrapper$1 = "_headerWrapper_fwek7_1";
|
|
9140
|
+
const header$c = "_header_fwek7_1";
|
|
9141
|
+
const icon$e = "_icon_fwek7_12";
|
|
9142
|
+
const backButton = "_backButton_fwek7_20";
|
|
9143
|
+
const fixed = "_fixed_fwek7_25";
|
|
9144
|
+
const underLined = "_underLined_fwek7_43";
|
|
9145
|
+
const text$8 = "_text_fwek7_46";
|
|
9146
|
+
const dot$2 = "_dot_fwek7_50";
|
|
9147
|
+
const iconRight = "_iconRight_fwek7_53";
|
|
9148
|
+
const iconRightText = "_iconRightText_fwek7_62";
|
|
9128
9149
|
var styles$4 = {
|
|
9129
9150
|
headerWrapper: headerWrapper$1,
|
|
9130
9151
|
header: header$c,
|
|
9131
9152
|
icon: icon$e,
|
|
9153
|
+
backButton,
|
|
9132
9154
|
fixed,
|
|
9133
|
-
back: back$1,
|
|
9134
|
-
close: close$1,
|
|
9135
9155
|
underLined,
|
|
9136
9156
|
text: text$8,
|
|
9137
9157
|
dot: dot$2,
|
|
@@ -9209,15 +9229,18 @@ const Header = defineComponent({
|
|
|
9209
9229
|
[styles$4.fixed]: props.fixed
|
|
9210
9230
|
}],
|
|
9211
9231
|
"style": headerStyle.value
|
|
9212
|
-
}, [props.showIcon && createVNode("
|
|
9232
|
+
}, [props.showIcon && createVNode("button", {
|
|
9233
|
+
"class": styles$4.backButton,
|
|
9213
9234
|
"data-testid": "header-close",
|
|
9214
9235
|
"onClick": () => emit("click")
|
|
9215
|
-
}, [createVNode("
|
|
9216
|
-
"
|
|
9236
|
+
}, [createVNode("img", {
|
|
9237
|
+
"src": props.icon === "close" ? images.iconClose : images.iconBackArrow,
|
|
9238
|
+
"alt": props.icon === "close" ? "\u9589\u3058\u308B" : "\u623B\u308B",
|
|
9239
|
+
"class": `${styles$4.icon}`
|
|
9217
9240
|
}, null)]), createVNode("div", {
|
|
9218
9241
|
"class": `${styles$4.text} ${props.titleClassName} ${props.rightIcon ? styles$4.iconRightText : ""}`,
|
|
9219
9242
|
"data-testid": "header-text"
|
|
9220
|
-
}, [props.title]), props.rightIcon && createVNode("div", null, [createVNode("
|
|
9243
|
+
}, [props.title]), props.rightIcon && createVNode("div", null, [createVNode("em", {
|
|
9221
9244
|
"class": `${styles$4.iconRight} ${styles$4[props.rightIcon]}`,
|
|
9222
9245
|
"data-testid": "header-right-button",
|
|
9223
9246
|
"onClick": () => emit("right-click")
|
|
@@ -9265,7 +9288,7 @@ const DesktopHeader = defineComponent({
|
|
|
9265
9288
|
"class": `${styles$3.headerWrapper} ${styles$3.header} ${props.class}`
|
|
9266
9289
|
}, [createVNode("div", {
|
|
9267
9290
|
"class": `${styles$3.container}`
|
|
9268
|
-
}, [createVNode("
|
|
9291
|
+
}, [createVNode("em", {
|
|
9269
9292
|
"class": `${styles$3.paypayIcon} `
|
|
9270
9293
|
}, null), createVNode("span", {
|
|
9271
9294
|
"class": `${styles$3.title}`
|
|
@@ -9276,7 +9299,8 @@ const DesktopHeader = defineComponent({
|
|
|
9276
9299
|
"title": storeName2
|
|
9277
9300
|
}, [storeName2]), createVNode("img", {
|
|
9278
9301
|
"src": storeImage2,
|
|
9279
|
-
"class": `${styles$3.storeImage}
|
|
9302
|
+
"class": `${styles$3.storeImage} `,
|
|
9303
|
+
"alt": ""
|
|
9280
9304
|
}, null)])]);
|
|
9281
9305
|
}
|
|
9282
9306
|
});
|
|
@@ -9343,16 +9367,16 @@ function useBreakpoints() {
|
|
|
9343
9367
|
windowHeight: computed(() => windowHeight.value)
|
|
9344
9368
|
};
|
|
9345
9369
|
}
|
|
9346
|
-
const wrapperClass$q = "
|
|
9347
|
-
const breakDownList = "
|
|
9348
|
-
const nonUsable = "
|
|
9349
|
-
const breakDownEnter = "
|
|
9350
|
-
const breakDownIcon = "
|
|
9351
|
-
const breakDownIconReverse = "
|
|
9352
|
-
const enterActive = "
|
|
9353
|
-
const leaveActive = "
|
|
9354
|
-
const enterTo = "
|
|
9355
|
-
const leaveTo = "
|
|
9370
|
+
const wrapperClass$q = "_wrapperClass_cefik_1";
|
|
9371
|
+
const breakDownList = "_breakDownList_cefik_1";
|
|
9372
|
+
const nonUsable = "_nonUsable_cefik_17";
|
|
9373
|
+
const breakDownEnter = "_breakDownEnter_cefik_35";
|
|
9374
|
+
const breakDownIcon = "_breakDownIcon_cefik_40";
|
|
9375
|
+
const breakDownIconReverse = "_breakDownIconReverse_cefik_52";
|
|
9376
|
+
const enterActive = "_enterActive_cefik_55";
|
|
9377
|
+
const leaveActive = "_leaveActive_cefik_60";
|
|
9378
|
+
const enterTo = "_enterTo_cefik_65";
|
|
9379
|
+
const leaveTo = "_leaveTo_cefik_69";
|
|
9356
9380
|
var style0$1o = {
|
|
9357
9381
|
wrapperClass: wrapperClass$q,
|
|
9358
9382
|
breakDownList,
|
|
@@ -9416,7 +9440,7 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9416
9440
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.toggleBreakDown && _ctx.toggleBreakDown(...args), ["stop"]))
|
|
9417
9441
|
}, [
|
|
9418
9442
|
createTextVNode(toDisplayString(_ctx.lg.wallet.desc), 1),
|
|
9419
|
-
createBaseVNode("
|
|
9443
|
+
createBaseVNode("em", {
|
|
9420
9444
|
class: normalizeClass({
|
|
9421
9445
|
[_ctx.$style.breakDownIconReverse]: _ctx.openBreakDown,
|
|
9422
9446
|
[_ctx.$style.breakDownIcon]: true
|
|
@@ -9555,7 +9579,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
9555
9579
|
};
|
|
9556
9580
|
}
|
|
9557
9581
|
});
|
|
9558
|
-
const _hoisted_1$
|
|
9582
|
+
const _hoisted_1$V = ["src"];
|
|
9559
9583
|
const _hoisted_2$p = ["src"];
|
|
9560
9584
|
function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9561
9585
|
const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
|
|
@@ -9576,8 +9600,9 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9576
9600
|
}, [
|
|
9577
9601
|
createBaseVNode("img", {
|
|
9578
9602
|
src: _ctx.images.iconBalanceIcon,
|
|
9579
|
-
class: normalizeClass(_ctx.$style.img)
|
|
9580
|
-
|
|
9603
|
+
class: normalizeClass(_ctx.$style.img),
|
|
9604
|
+
alt: ""
|
|
9605
|
+
}, null, 10, _hoisted_1$V)
|
|
9581
9606
|
], 2),
|
|
9582
9607
|
createBaseVNode("div", {
|
|
9583
9608
|
class: normalizeClass(_ctx.$style.walletContainer)
|
|
@@ -9615,7 +9640,7 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9615
9640
|
}
|
|
9616
9641
|
])
|
|
9617
9642
|
}, [
|
|
9618
|
-
createBaseVNode("
|
|
9643
|
+
createBaseVNode("em", {
|
|
9619
9644
|
class: normalizeClass(_ctx.$style.arrowRight)
|
|
9620
9645
|
}, null, 2)
|
|
9621
9646
|
], 2)
|
|
@@ -9755,7 +9780,7 @@ const _sfc_main$1x = defineComponent({
|
|
|
9755
9780
|
};
|
|
9756
9781
|
}
|
|
9757
9782
|
});
|
|
9758
|
-
const _hoisted_1$
|
|
9783
|
+
const _hoisted_1$U = ["src"];
|
|
9759
9784
|
const _hoisted_2$o = ["src"];
|
|
9760
9785
|
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9761
9786
|
return openBlock(), createElementBlock("div", {
|
|
@@ -9775,8 +9800,9 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9775
9800
|
_ctx.creditInfo.logo ? (openBlock(), createElementBlock("img", {
|
|
9776
9801
|
key: 0,
|
|
9777
9802
|
class: normalizeClass([_ctx.style.cardImg, _ctx.creditInfo.style]),
|
|
9778
|
-
src: _ctx.creditInfo.logo
|
|
9779
|
-
|
|
9803
|
+
src: _ctx.creditInfo.logo,
|
|
9804
|
+
alt: ""
|
|
9805
|
+
}, null, 10, _hoisted_1$U)) : createCommentVNode("", true)
|
|
9780
9806
|
], 2),
|
|
9781
9807
|
createBaseVNode("div", {
|
|
9782
9808
|
class: normalizeClass(_ctx.style.content)
|
|
@@ -9809,7 +9835,7 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9809
9835
|
}
|
|
9810
9836
|
])
|
|
9811
9837
|
}, [
|
|
9812
|
-
createBaseVNode("
|
|
9838
|
+
createBaseVNode("em", {
|
|
9813
9839
|
class: normalizeClass(_ctx.style.arrowRight)
|
|
9814
9840
|
}, null, 2)
|
|
9815
9841
|
], 2)
|
|
@@ -9909,7 +9935,7 @@ const _sfc_main$1w = defineComponent({
|
|
|
9909
9935
|
};
|
|
9910
9936
|
}
|
|
9911
9937
|
});
|
|
9912
|
-
const _hoisted_1$
|
|
9938
|
+
const _hoisted_1$T = ["src"];
|
|
9913
9939
|
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9914
9940
|
return openBlock(), createElementBlock("div", {
|
|
9915
9941
|
class: normalizeClass([
|
|
@@ -9931,8 +9957,9 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9931
9957
|
}, [
|
|
9932
9958
|
createBaseVNode("img", {
|
|
9933
9959
|
class: normalizeClass([_ctx.style.bankImg, { [_ctx.style.round]: _ctx.round }]),
|
|
9934
|
-
src: _ctx.bankInfo.logo
|
|
9935
|
-
|
|
9960
|
+
src: _ctx.bankInfo.logo,
|
|
9961
|
+
alt: ""
|
|
9962
|
+
}, null, 10, _hoisted_1$T)
|
|
9936
9963
|
], 2),
|
|
9937
9964
|
createBaseVNode("div", {
|
|
9938
9965
|
class: normalizeClass(_ctx.style.content)
|
|
@@ -9958,7 +9985,7 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9958
9985
|
}
|
|
9959
9986
|
])
|
|
9960
9987
|
}, [
|
|
9961
|
-
createBaseVNode("
|
|
9988
|
+
createBaseVNode("em", {
|
|
9962
9989
|
class: normalizeClass(_ctx.style.arrowRight)
|
|
9963
9990
|
}, null, 2)
|
|
9964
9991
|
], 2)
|
|
@@ -10032,7 +10059,7 @@ const _sfc_main$1v = defineComponent({
|
|
|
10032
10059
|
};
|
|
10033
10060
|
}
|
|
10034
10061
|
});
|
|
10035
|
-
const _hoisted_1$
|
|
10062
|
+
const _hoisted_1$S = ["src"];
|
|
10036
10063
|
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10037
10064
|
return openBlock(), createElementBlock("div", {
|
|
10038
10065
|
class: normalizeClass([_ctx.$style.wrapperClass, _ctx.$style.container])
|
|
@@ -10040,8 +10067,9 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10040
10067
|
createBaseVNode("div", null, [
|
|
10041
10068
|
createBaseVNode("img", {
|
|
10042
10069
|
class: normalizeClass(_ctx.$style.sbidImg),
|
|
10043
|
-
src: _ctx.images.softbank
|
|
10044
|
-
|
|
10070
|
+
src: _ctx.images.softbank,
|
|
10071
|
+
alt: ""
|
|
10072
|
+
}, null, 10, _hoisted_1$S)
|
|
10045
10073
|
]),
|
|
10046
10074
|
createBaseVNode("span", {
|
|
10047
10075
|
class: normalizeClass(_ctx.$style.content)
|
|
@@ -10061,7 +10089,7 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10061
10089
|
}
|
|
10062
10090
|
])
|
|
10063
10091
|
}, [
|
|
10064
|
-
createBaseVNode("
|
|
10092
|
+
createBaseVNode("em", {
|
|
10065
10093
|
class: normalizeClass(_ctx.$style.arrowRight)
|
|
10066
10094
|
}, null, 2)
|
|
10067
10095
|
], 2)
|
|
@@ -10132,7 +10160,7 @@ const _sfc_main$1u = defineComponent({
|
|
|
10132
10160
|
};
|
|
10133
10161
|
}
|
|
10134
10162
|
});
|
|
10135
|
-
const _hoisted_1$
|
|
10163
|
+
const _hoisted_1$R = ["src"];
|
|
10136
10164
|
function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10137
10165
|
return openBlock(), createElementBlock("div", {
|
|
10138
10166
|
class: normalizeClass([
|
|
@@ -10147,8 +10175,9 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10147
10175
|
createBaseVNode("div", null, [
|
|
10148
10176
|
createBaseVNode("img", {
|
|
10149
10177
|
src: _ctx.images.payLater,
|
|
10150
|
-
class: normalizeClass(_ctx.$style.imageContainer)
|
|
10151
|
-
|
|
10178
|
+
class: normalizeClass(_ctx.$style.imageContainer),
|
|
10179
|
+
alt: ""
|
|
10180
|
+
}, null, 10, _hoisted_1$R)
|
|
10152
10181
|
]),
|
|
10153
10182
|
createBaseVNode("div", {
|
|
10154
10183
|
class: normalizeClass(_ctx.$style.container)
|
|
@@ -10168,7 +10197,7 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10168
10197
|
}
|
|
10169
10198
|
])
|
|
10170
10199
|
}, [
|
|
10171
|
-
createBaseVNode("
|
|
10200
|
+
createBaseVNode("em", {
|
|
10172
10201
|
class: normalizeClass(_ctx.$style.arrowRight)
|
|
10173
10202
|
}, null, 2)
|
|
10174
10203
|
], 2)
|
|
@@ -12592,8 +12621,8 @@ var lottie_svg = { exports: {} };
|
|
|
12592
12621
|
intervalStart += kSampleStepSize;
|
|
12593
12622
|
}
|
|
12594
12623
|
--currentSample;
|
|
12595
|
-
var
|
|
12596
|
-
var guessForT = intervalStart +
|
|
12624
|
+
var dist2 = (aX - mSampleValues[currentSample]) / (mSampleValues[currentSample + 1] - mSampleValues[currentSample]);
|
|
12625
|
+
var guessForT = intervalStart + dist2 * kSampleStepSize;
|
|
12597
12626
|
var initialSlope = getSlope(guessForT, mX1, mX2);
|
|
12598
12627
|
if (initialSlope >= NEWTON_MIN_SLOPE) {
|
|
12599
12628
|
return newtonRaphsonIterate(aX, guessForT, mX1, mX2);
|
|
@@ -18814,9 +18843,9 @@ var lottie_svg = { exports: {} };
|
|
|
18814
18843
|
} else if (percent <= -1) {
|
|
18815
18844
|
percent = -0.99;
|
|
18816
18845
|
}
|
|
18817
|
-
var
|
|
18818
|
-
var x = Math.cos(ang + itemData.a.v) *
|
|
18819
|
-
var y = Math.sin(ang + itemData.a.v) *
|
|
18846
|
+
var dist2 = rad * percent;
|
|
18847
|
+
var x = Math.cos(ang + itemData.a.v) * dist2 + pt1[0];
|
|
18848
|
+
var y = Math.sin(ang + itemData.a.v) * dist2 + pt1[1];
|
|
18820
18849
|
gfill.setAttribute("fx", x);
|
|
18821
18850
|
gfill.setAttribute("fy", y);
|
|
18822
18851
|
if (hasOpacity && !itemData.g._collapsable) {
|
|
@@ -23071,7 +23100,7 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23071
23100
|
createBaseVNode("div", {
|
|
23072
23101
|
class: normalizeClass(_ctx.style.arrowContainer)
|
|
23073
23102
|
}, [
|
|
23074
|
-
createBaseVNode("
|
|
23103
|
+
createBaseVNode("em", {
|
|
23075
23104
|
class: normalizeClass(_ctx.style.arrow)
|
|
23076
23105
|
}, null, 2)
|
|
23077
23106
|
], 2)
|
|
@@ -23163,7 +23192,7 @@ const _sfc_main$1s = defineComponent({
|
|
|
23163
23192
|
};
|
|
23164
23193
|
}
|
|
23165
23194
|
});
|
|
23166
|
-
const _hoisted_1$
|
|
23195
|
+
const _hoisted_1$Q = ["src"];
|
|
23167
23196
|
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23168
23197
|
const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
|
|
23169
23198
|
return openBlock(), createElementBlock("div", {
|
|
@@ -23175,8 +23204,9 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23175
23204
|
}, [
|
|
23176
23205
|
createBaseVNode("img", {
|
|
23177
23206
|
class: normalizeClass(_ctx.style.img),
|
|
23178
|
-
src: _ctx.images.iconBalanceIcon
|
|
23179
|
-
|
|
23207
|
+
src: _ctx.images.iconBalanceIcon,
|
|
23208
|
+
alt: ""
|
|
23209
|
+
}, null, 10, _hoisted_1$Q)
|
|
23180
23210
|
], 2),
|
|
23181
23211
|
createBaseVNode("div", {
|
|
23182
23212
|
class: normalizeClass(_ctx.style.label)
|
|
@@ -23392,7 +23422,7 @@ const _sfc_main$1r = defineComponent({
|
|
|
23392
23422
|
};
|
|
23393
23423
|
}
|
|
23394
23424
|
});
|
|
23395
|
-
const _hoisted_1$
|
|
23425
|
+
const _hoisted_1$P = ["src"];
|
|
23396
23426
|
const _hoisted_2$n = ["src"];
|
|
23397
23427
|
const _hoisted_3$a = ["onClick"];
|
|
23398
23428
|
function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -23414,8 +23444,9 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23414
23444
|
}, [
|
|
23415
23445
|
createBaseVNode("img", {
|
|
23416
23446
|
src: _ctx.cardInfo.logo,
|
|
23417
|
-
class: normalizeClass([_ctx.style.img, _ctx.cardInfo.style])
|
|
23418
|
-
|
|
23447
|
+
class: normalizeClass([_ctx.style.img, _ctx.cardInfo.style]),
|
|
23448
|
+
alt: ""
|
|
23449
|
+
}, null, 10, _hoisted_1$P)
|
|
23419
23450
|
], 2)
|
|
23420
23451
|
], 2),
|
|
23421
23452
|
createBaseVNode("div", {
|
|
@@ -23443,7 +23474,8 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23443
23474
|
}, [
|
|
23444
23475
|
createBaseVNode("img", {
|
|
23445
23476
|
src: _ctx.authInfo.img,
|
|
23446
|
-
class: normalizeClass(_ctx.authInfo.imgStyle)
|
|
23477
|
+
class: normalizeClass(_ctx.authInfo.imgStyle),
|
|
23478
|
+
alt: ""
|
|
23447
23479
|
}, null, 10, _hoisted_2$n),
|
|
23448
23480
|
createBaseVNode("span", null, toDisplayString(_ctx.authInfo.text), 1)
|
|
23449
23481
|
], 2)
|
|
@@ -23548,6 +23580,11 @@ const _sfc_main$1q = defineComponent({
|
|
|
23548
23580
|
type: Boolean,
|
|
23549
23581
|
required: false,
|
|
23550
23582
|
default: false
|
|
23583
|
+
},
|
|
23584
|
+
ignoreBankMaintenanceFlag: {
|
|
23585
|
+
type: Boolean,
|
|
23586
|
+
default: false,
|
|
23587
|
+
required: false
|
|
23551
23588
|
}
|
|
23552
23589
|
},
|
|
23553
23590
|
emits: {
|
|
@@ -23580,12 +23617,13 @@ const _sfc_main$1q = defineComponent({
|
|
|
23580
23617
|
openUrl(info2.linkUrl);
|
|
23581
23618
|
}
|
|
23582
23619
|
};
|
|
23583
|
-
const isDisable = computed(
|
|
23584
|
-
|
|
23585
|
-
|
|
23586
|
-
return
|
|
23620
|
+
const isDisable = computed(() => {
|
|
23621
|
+
var _a2, _b, _c, _d;
|
|
23622
|
+
if (((_b = (_a2 = props.bank) == null ? void 0 : _a2.bankInfo) == null ? void 0 : _b.paymentMethodStatus) === PaymentMethodStatus.MAINTENANCE && props.ignoreBankMaintenanceFlag) {
|
|
23623
|
+
return false;
|
|
23587
23624
|
}
|
|
23588
|
-
|
|
23625
|
+
return ((_d = (_c = props.bank) == null ? void 0 : _c.bankInfo) == null ? void 0 : _d.paymentMethodStatus) !== PaymentMethodStatus.ACTIVATED;
|
|
23626
|
+
});
|
|
23589
23627
|
const handleSelect = () => {
|
|
23590
23628
|
if (isDisable == null ? void 0 : isDisable.value) {
|
|
23591
23629
|
return;
|
|
@@ -23622,7 +23660,7 @@ const _sfc_main$1q = defineComponent({
|
|
|
23622
23660
|
};
|
|
23623
23661
|
}
|
|
23624
23662
|
});
|
|
23625
|
-
const _hoisted_1$
|
|
23663
|
+
const _hoisted_1$O = ["src"];
|
|
23626
23664
|
const _hoisted_2$m = ["onClick"];
|
|
23627
23665
|
function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23628
23666
|
const _component_Button = resolveComponent("Button");
|
|
@@ -23643,8 +23681,9 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23643
23681
|
}, [
|
|
23644
23682
|
createBaseVNode("img", {
|
|
23645
23683
|
class: normalizeClass([_ctx.style.img, { [_ctx.style.round]: _ctx.round }]),
|
|
23646
|
-
src: _ctx.bankInfo.logo
|
|
23647
|
-
|
|
23684
|
+
src: _ctx.bankInfo.logo,
|
|
23685
|
+
alt: ""
|
|
23686
|
+
}, null, 10, _hoisted_1$O)
|
|
23648
23687
|
], 2)
|
|
23649
23688
|
], 2),
|
|
23650
23689
|
createBaseVNode("div", {
|
|
@@ -23795,7 +23834,7 @@ const _sfc_main$1p = defineComponent({
|
|
|
23795
23834
|
};
|
|
23796
23835
|
}
|
|
23797
23836
|
});
|
|
23798
|
-
const _hoisted_1$
|
|
23837
|
+
const _hoisted_1$N = ["src"];
|
|
23799
23838
|
const _hoisted_2$l = ["onClick"];
|
|
23800
23839
|
function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23801
23840
|
const _component_Button = resolveComponent("Button");
|
|
@@ -23813,8 +23852,9 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23813
23852
|
}, [
|
|
23814
23853
|
createBaseVNode("img", {
|
|
23815
23854
|
class: normalizeClass(_ctx.style.img),
|
|
23816
|
-
src: _ctx.images.softbank
|
|
23817
|
-
|
|
23855
|
+
src: _ctx.images.softbank,
|
|
23856
|
+
alt: ""
|
|
23857
|
+
}, null, 10, _hoisted_1$N)
|
|
23818
23858
|
], 2),
|
|
23819
23859
|
createBaseVNode("div", {
|
|
23820
23860
|
class: normalizeClass(_ctx.style.content)
|
|
@@ -23961,7 +24001,7 @@ const _sfc_main$1o = defineComponent({
|
|
|
23961
24001
|
};
|
|
23962
24002
|
}
|
|
23963
24003
|
});
|
|
23964
|
-
const _hoisted_1$
|
|
24004
|
+
const _hoisted_1$M = ["src"];
|
|
23965
24005
|
const _hoisted_2$k = ["onClick"];
|
|
23966
24006
|
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23967
24007
|
const _component_Button = resolveComponent("Button");
|
|
@@ -23980,8 +24020,9 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23980
24020
|
}, [
|
|
23981
24021
|
createBaseVNode("img", {
|
|
23982
24022
|
class: normalizeClass(_ctx.$style.img),
|
|
23983
|
-
src: _ctx.images.payLater
|
|
23984
|
-
|
|
24023
|
+
src: _ctx.images.payLater,
|
|
24024
|
+
alt: ""
|
|
24025
|
+
}, null, 10, _hoisted_1$M)
|
|
23985
24026
|
], 2),
|
|
23986
24027
|
createBaseVNode("div", {
|
|
23987
24028
|
class: normalizeClass(_ctx.$style.content)
|
|
@@ -24038,6 +24079,11 @@ const PaymentMethod = defineComponent({
|
|
|
24038
24079
|
required: true,
|
|
24039
24080
|
default: () => {
|
|
24040
24081
|
}
|
|
24082
|
+
},
|
|
24083
|
+
ignoreBankMaintenanceFlag: {
|
|
24084
|
+
type: Boolean,
|
|
24085
|
+
default: false,
|
|
24086
|
+
required: false
|
|
24041
24087
|
}
|
|
24042
24088
|
},
|
|
24043
24089
|
emits: {
|
|
@@ -24060,6 +24106,7 @@ const PaymentMethod = defineComponent({
|
|
|
24060
24106
|
return createVNode(Bank, {
|
|
24061
24107
|
"bank": this.paymentMethod,
|
|
24062
24108
|
"round": true,
|
|
24109
|
+
"ignoreBankMaintenanceFlag": this.ignoreBankMaintenanceFlag,
|
|
24063
24110
|
"onSelect": () => this.$emit("select")
|
|
24064
24111
|
}, null);
|
|
24065
24112
|
case PaymentMethodType.SBID_CARRIER_BILLING:
|
|
@@ -24112,6 +24159,11 @@ const _sfc_main$1n = defineComponent({
|
|
|
24112
24159
|
type: Boolean,
|
|
24113
24160
|
required: false,
|
|
24114
24161
|
default: false
|
|
24162
|
+
},
|
|
24163
|
+
ignoreBankMaintenanceFlag: {
|
|
24164
|
+
type: Boolean,
|
|
24165
|
+
default: false,
|
|
24166
|
+
required: false
|
|
24115
24167
|
}
|
|
24116
24168
|
},
|
|
24117
24169
|
emits: {
|
|
@@ -24128,11 +24180,14 @@ const _sfc_main$1n = defineComponent({
|
|
|
24128
24180
|
};
|
|
24129
24181
|
}
|
|
24130
24182
|
});
|
|
24183
|
+
const _hoisted_1$L = ["aria-selected"];
|
|
24131
24184
|
function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24132
24185
|
const _component_PaymentMethod = resolveComponent("PaymentMethod");
|
|
24133
24186
|
return openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.paymentMethods, (paymentMethod2, index2) => {
|
|
24134
24187
|
return openBlock(), createElementBlock("div", {
|
|
24135
24188
|
key: paymentMethod2.paymentMethodId,
|
|
24189
|
+
role: "option",
|
|
24190
|
+
"aria-selected": index2 === _ctx.selectPaymentIndex,
|
|
24136
24191
|
class: normalizeClass([
|
|
24137
24192
|
_ctx.style.wrapperClass,
|
|
24138
24193
|
{ [_ctx.style.methodItem]: true, [_ctx.style.topupMethodItem]: _ctx.isTopup }
|
|
@@ -24143,7 +24198,7 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24143
24198
|
class: normalizeClass(_ctx.style.iconContainer)
|
|
24144
24199
|
}, [
|
|
24145
24200
|
createBaseVNode("div", null, [
|
|
24146
|
-
createBaseVNode("
|
|
24201
|
+
createBaseVNode("em", {
|
|
24147
24202
|
class: normalizeClass({
|
|
24148
24203
|
[_ctx.style.iconHidden]: index2 !== _ctx.selectPaymentIndex,
|
|
24149
24204
|
[_ctx.style.iconGreenTick]: true
|
|
@@ -24154,9 +24209,10 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24154
24209
|
createVNode(_component_PaymentMethod, {
|
|
24155
24210
|
"data-testid": "payment-method",
|
|
24156
24211
|
"payment-method": paymentMethod2,
|
|
24212
|
+
"ignore-bank-maintenance-flag": _ctx.ignoreBankMaintenanceFlag,
|
|
24157
24213
|
onSelect: ($event) => _ctx.select(index2)
|
|
24158
|
-
}, null, 8, ["payment-method", "onSelect"])
|
|
24159
|
-
],
|
|
24214
|
+
}, null, 8, ["payment-method", "ignore-bank-maintenance-flag", "onSelect"])
|
|
24215
|
+
], 10, _hoisted_1$L);
|
|
24160
24216
|
}), 128);
|
|
24161
24217
|
}
|
|
24162
24218
|
const cssModules$1c = {};
|
|
@@ -24225,7 +24281,7 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24225
24281
|
style: normalizeStyle(_ctx.textStyle),
|
|
24226
24282
|
"data-testid": "maintenance-info-text"
|
|
24227
24283
|
}, toDisplayString((_a2 = _ctx.maintenanceInfo) == null ? void 0 : _a2.text), 7),
|
|
24228
|
-
((_b = _ctx.maintenanceInfo) == null ? void 0 : _b.linkUrl) ? (openBlock(), createElementBlock("
|
|
24284
|
+
((_b = _ctx.maintenanceInfo) == null ? void 0 : _b.linkUrl) ? (openBlock(), createElementBlock("em", {
|
|
24229
24285
|
key: 0,
|
|
24230
24286
|
class: normalizeClass(_ctx.$style.rightArror),
|
|
24231
24287
|
"data-testid": "maintenance-info-link"
|
|
@@ -24334,7 +24390,7 @@ const _sfc_main$1l = defineComponent({
|
|
|
24334
24390
|
};
|
|
24335
24391
|
}
|
|
24336
24392
|
});
|
|
24337
|
-
const _hoisted_1$
|
|
24393
|
+
const _hoisted_1$K = ["src"];
|
|
24338
24394
|
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24339
24395
|
const _component_PaymentType = resolveComponent("PaymentType");
|
|
24340
24396
|
const _component_MaintenanceInfo = resolveComponent("MaintenanceInfo");
|
|
@@ -24365,8 +24421,9 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24365
24421
|
}, [
|
|
24366
24422
|
createBaseVNode("img", {
|
|
24367
24423
|
src: _ctx.images.bankIcon,
|
|
24368
|
-
class: normalizeClass(_ctx.style.bankIcon)
|
|
24369
|
-
|
|
24424
|
+
class: normalizeClass(_ctx.style.bankIcon),
|
|
24425
|
+
alt: ""
|
|
24426
|
+
}, null, 10, _hoisted_1$K),
|
|
24370
24427
|
createBaseVNode("div", {
|
|
24371
24428
|
class: normalizeClass(_ctx.style.addMethodMsg)
|
|
24372
24429
|
}, toDisplayString(_ctx.lg.choosePayment.addMethod), 3),
|
|
@@ -24386,6 +24443,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24386
24443
|
}, null, 8, ["maintenance-info"])) : createCommentVNode("", true),
|
|
24387
24444
|
_ctx.showPaymentMethodList ? withDirectives((openBlock(), createElementBlock("div", {
|
|
24388
24445
|
key: 3,
|
|
24446
|
+
role: "listbox",
|
|
24389
24447
|
class: normalizeClass(_ctx.style.contentContainer)
|
|
24390
24448
|
}, [
|
|
24391
24449
|
createVNode(_component_PaymentMethodList, {
|
|
@@ -24515,7 +24573,7 @@ const _sfc_main$1k = defineComponent({
|
|
|
24515
24573
|
};
|
|
24516
24574
|
}
|
|
24517
24575
|
});
|
|
24518
|
-
const _hoisted_1$
|
|
24576
|
+
const _hoisted_1$J = { "data-testid": "address-title" };
|
|
24519
24577
|
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24520
24578
|
const _component_Button = resolveComponent("Button");
|
|
24521
24579
|
return openBlock(), createElementBlock("div", {
|
|
@@ -24529,7 +24587,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24529
24587
|
createBaseVNode("div", {
|
|
24530
24588
|
class: normalizeClass(_ctx.style.header)
|
|
24531
24589
|
}, [
|
|
24532
|
-
createBaseVNode("span", _hoisted_1$
|
|
24590
|
+
createBaseVNode("span", _hoisted_1$J, toDisplayString(_ctx.address.kyc ? _ctx.lg.userAddress.title : _ctx.address.title), 1)
|
|
24533
24591
|
], 2),
|
|
24534
24592
|
createBaseVNode("div", {
|
|
24535
24593
|
class: normalizeClass([_ctx.style.text]),
|
|
@@ -24555,7 +24613,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24555
24613
|
class: normalizeClass(_ctx.style.selectedContainer),
|
|
24556
24614
|
"data-test": "address-selected"
|
|
24557
24615
|
}, [
|
|
24558
|
-
createBaseVNode("
|
|
24616
|
+
createBaseVNode("em", {
|
|
24559
24617
|
class: normalizeClass(_ctx.style.selected)
|
|
24560
24618
|
}, null, 2)
|
|
24561
24619
|
], 2)) : createCommentVNode("", true)
|
|
@@ -24640,12 +24698,12 @@ const _sfc_main$1j = defineComponent({
|
|
|
24640
24698
|
};
|
|
24641
24699
|
}
|
|
24642
24700
|
});
|
|
24643
|
-
const _hoisted_1$
|
|
24701
|
+
const _hoisted_1$I = { key: 0 };
|
|
24644
24702
|
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24645
24703
|
const _component_Button = resolveComponent("Button");
|
|
24646
24704
|
const _component_Divider = resolveComponent("Divider");
|
|
24647
24705
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
24648
|
-
!_ctx.isDesktop ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
24706
|
+
!_ctx.isDesktop ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
24649
24707
|
createBaseVNode("div", {
|
|
24650
24708
|
class: normalizeClass(_ctx.style.footer),
|
|
24651
24709
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.add && _ctx.add(...args))
|
|
@@ -24656,7 +24714,7 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24656
24714
|
createBaseVNode("div", {
|
|
24657
24715
|
class: normalizeClass(_ctx.style.arrowContainer)
|
|
24658
24716
|
}, [
|
|
24659
|
-
createBaseVNode("
|
|
24717
|
+
createBaseVNode("em", {
|
|
24660
24718
|
class: normalizeClass(_ctx.style.arrow)
|
|
24661
24719
|
}, null, 2)
|
|
24662
24720
|
], 2)
|
|
@@ -24692,14 +24750,14 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24692
24750
|
createBaseVNode("div", {
|
|
24693
24751
|
class: normalizeClass(_ctx.style.content)
|
|
24694
24752
|
}, [
|
|
24695
|
-
_ctx.isDesktop ? (openBlock(), createElementBlock("
|
|
24753
|
+
_ctx.isDesktop ? (openBlock(), createElementBlock("em", {
|
|
24696
24754
|
key: 0,
|
|
24697
24755
|
class: normalizeClass(_ctx.style.addIcon)
|
|
24698
24756
|
}, null, 2)) : createCommentVNode("", true),
|
|
24699
24757
|
createBaseVNode("span", {
|
|
24700
24758
|
class: normalizeClass(_ctx.style.buttonLink)
|
|
24701
24759
|
}, toDisplayString(_ctx.lg.userAddress.addAddress), 3),
|
|
24702
|
-
!_ctx.isDesktop ? (openBlock(), createElementBlock("
|
|
24760
|
+
!_ctx.isDesktop ? (openBlock(), createElementBlock("em", {
|
|
24703
24761
|
key: 1,
|
|
24704
24762
|
class: normalizeClass(_ctx.style.arrow)
|
|
24705
24763
|
}, null, 2)) : createCommentVNode("", true)
|
|
@@ -24906,7 +24964,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24906
24964
|
class: normalizeClass(_ctx.$style.content),
|
|
24907
24965
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("clickAddAddress"))
|
|
24908
24966
|
}, [
|
|
24909
|
-
createBaseVNode("
|
|
24967
|
+
createBaseVNode("em", {
|
|
24910
24968
|
class: normalizeClass(_ctx.$style.addIcon)
|
|
24911
24969
|
}, null, 2),
|
|
24912
24970
|
createBaseVNode("span", {
|
|
@@ -24971,12 +25029,12 @@ const _sfc_main$1f = defineComponent({
|
|
|
24971
25029
|
};
|
|
24972
25030
|
}
|
|
24973
25031
|
});
|
|
24974
|
-
const _hoisted_1$
|
|
25032
|
+
const _hoisted_1$H = { "data-testid": "selected-address" };
|
|
24975
25033
|
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24976
25034
|
const _component_NoRegisteredAddressMessage = resolveComponent("NoRegisteredAddressMessage");
|
|
24977
25035
|
const _component_AddressInfo = resolveComponent("AddressInfo");
|
|
24978
25036
|
const _component_Footer = resolveComponent("Footer");
|
|
24979
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25037
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
24980
25038
|
createBaseVNode("div", {
|
|
24981
25039
|
class: normalizeClass(_ctx.$style.container)
|
|
24982
25040
|
}, [
|
|
@@ -25335,6 +25393,10 @@ const _sfc_main$1e = defineComponent({
|
|
|
25335
25393
|
var _a3;
|
|
25336
25394
|
return (_a3 = selectedAddress == null ? void 0 : selectedAddress.value) == null ? void 0 : _a3.id;
|
|
25337
25395
|
}),
|
|
25396
|
+
isSelected: (index2) => {
|
|
25397
|
+
var _a3, _b;
|
|
25398
|
+
return ((_a3 = props.addresses[index2]) == null ? void 0 : _a3.id) === ((_b = selectedAddress == null ? void 0 : selectedAddress.value) == null ? void 0 : _b.id);
|
|
25399
|
+
},
|
|
25338
25400
|
showAddresses,
|
|
25339
25401
|
hideAddresses,
|
|
25340
25402
|
confirmAddresses,
|
|
@@ -25376,21 +25438,24 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25376
25438
|
class: normalizeClass(_ctx.style.desktopTitle)
|
|
25377
25439
|
}, toDisplayString(_ctx.lg.userAddress.address), 3)) : createCommentVNode("", true),
|
|
25378
25440
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
25441
|
+
role: "listbox",
|
|
25379
25442
|
class: normalizeClass({
|
|
25380
25443
|
[_ctx.style.container]: true,
|
|
25381
25444
|
[_ctx.style.contentContainer]: true,
|
|
25382
25445
|
[_ctx.style.contentContainerMp]: _ctx.isMakepayment
|
|
25383
25446
|
})
|
|
25384
25447
|
}, [
|
|
25385
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.addresses, (address2) => {
|
|
25448
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.addresses, (address2, index2) => {
|
|
25386
25449
|
return openBlock(), createBlock(_component_Address, {
|
|
25387
25450
|
key: address2.id,
|
|
25451
|
+
role: "option",
|
|
25388
25452
|
address: address2,
|
|
25389
|
-
selected: (
|
|
25453
|
+
selected: _ctx.isSelected(index2),
|
|
25454
|
+
"aria-selected": _ctx.isSelected(index2),
|
|
25390
25455
|
"is-makepayment": _ctx.isMakepayment,
|
|
25391
25456
|
onSelect: ($event) => _ctx.selectIndex(address2),
|
|
25392
25457
|
onEdit: ($event) => _ctx.$emit("edit", address2)
|
|
25393
|
-
}, null, 8, ["address", "selected", "is-makepayment", "onSelect", "onEdit"]);
|
|
25458
|
+
}, null, 8, ["address", "selected", "aria-selected", "is-makepayment", "onSelect", "onEdit"]);
|
|
25394
25459
|
}), 128)),
|
|
25395
25460
|
_ctx.showsNoRegisteredAddressMessage ? (openBlock(), createBlock(_component_NoRegisteredAddressMessage, {
|
|
25396
25461
|
key: 0,
|
|
@@ -25793,7 +25858,8 @@ const Icon = defineComponent({
|
|
|
25793
25858
|
return createVNode("div", {
|
|
25794
25859
|
"class": `${styles.iconContainer} ${this.class}`
|
|
25795
25860
|
}, [createVNode("img", {
|
|
25796
|
-
"src": img2.downArrow
|
|
25861
|
+
"src": img2.downArrow,
|
|
25862
|
+
"alt": "\u4E0B\u5411\u304D\u77E2\u5370"
|
|
25797
25863
|
}, null)]);
|
|
25798
25864
|
}
|
|
25799
25865
|
});
|
|
@@ -26271,10 +26337,10 @@ const _sfc_main$1c = defineComponent({
|
|
|
26271
26337
|
};
|
|
26272
26338
|
}
|
|
26273
26339
|
});
|
|
26274
|
-
const _hoisted_1$
|
|
26340
|
+
const _hoisted_1$G = { key: 0 };
|
|
26275
26341
|
const _hoisted_2$j = ["disabled", "onClick"];
|
|
26276
26342
|
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26277
|
-
return _ctx.open ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
26343
|
+
return _ctx.open ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
26278
26344
|
createBaseVNode("div", {
|
|
26279
26345
|
class: normalizeClass(_ctx.style.title)
|
|
26280
26346
|
}, toDisplayString(_ctx.lg.userAddress.tagForm), 3),
|
|
@@ -26706,7 +26772,7 @@ const _sfc_main$1a = defineComponent({
|
|
|
26706
26772
|
};
|
|
26707
26773
|
}
|
|
26708
26774
|
});
|
|
26709
|
-
const _hoisted_1$
|
|
26775
|
+
const _hoisted_1$F = ["src"];
|
|
26710
26776
|
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26711
26777
|
const _component_Button = resolveComponent("Button");
|
|
26712
26778
|
const _component_ActionSheet = resolveComponent("ActionSheet");
|
|
@@ -26724,8 +26790,9 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26724
26790
|
class: normalizeClass(_ctx.style.deleteSheet)
|
|
26725
26791
|
}, [
|
|
26726
26792
|
createBaseVNode("img", {
|
|
26727
|
-
src: _ctx.img.iconError
|
|
26728
|
-
|
|
26793
|
+
src: _ctx.img.iconError,
|
|
26794
|
+
alt: "!"
|
|
26795
|
+
}, null, 8, _hoisted_1$F),
|
|
26729
26796
|
createBaseVNode("p", {
|
|
26730
26797
|
class: normalizeClass(_ctx.style.title)
|
|
26731
26798
|
}, toDisplayString(_ctx.lg.userAddress.deleteTitle), 3),
|
|
@@ -27589,7 +27656,7 @@ const _sfc_main$16 = defineComponent({
|
|
|
27589
27656
|
};
|
|
27590
27657
|
}
|
|
27591
27658
|
});
|
|
27592
|
-
const _hoisted_1$
|
|
27659
|
+
const _hoisted_1$E = ["src"];
|
|
27593
27660
|
const _hoisted_2$i = { key: 1 };
|
|
27594
27661
|
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27595
27662
|
const _component_DesktopHeader = resolveComponent("DesktopHeader");
|
|
@@ -27633,8 +27700,9 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27633
27700
|
}, [
|
|
27634
27701
|
createBaseVNode("img", {
|
|
27635
27702
|
src: _ctx.bannerInfo.iconImageUrl,
|
|
27636
|
-
class: normalizeClass(_ctx.style.bannerIcon)
|
|
27637
|
-
|
|
27703
|
+
class: normalizeClass(_ctx.style.bannerIcon),
|
|
27704
|
+
alt: ""
|
|
27705
|
+
}, null, 10, _hoisted_1$E),
|
|
27638
27706
|
createBaseVNode("p", {
|
|
27639
27707
|
class: normalizeClass(_ctx.style.bannerTitle)
|
|
27640
27708
|
}, toDisplayString(_ctx.bannerInfo.title), 3)
|
|
@@ -27735,7 +27803,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27735
27803
|
class: normalizeClass(_ctx.style.addAddress)
|
|
27736
27804
|
}, [
|
|
27737
27805
|
createTextVNode(toDisplayString(_ctx.lg.payment.noAddress) + " ", 1),
|
|
27738
|
-
createBaseVNode("
|
|
27806
|
+
createBaseVNode("em", {
|
|
27739
27807
|
class: normalizeClass(_ctx.style.arrow)
|
|
27740
27808
|
}, null, 2)
|
|
27741
27809
|
], 2)) : createCommentVNode("", true)
|
|
@@ -27917,6 +27985,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27917
27985
|
onClick: _ctx.back
|
|
27918
27986
|
}, null, 8, ["title", "onClick"]),
|
|
27919
27987
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
27988
|
+
role: "listbox",
|
|
27920
27989
|
class: normalizeClass(_ctx.style.contentContainer)
|
|
27921
27990
|
}, [
|
|
27922
27991
|
createVNode(_component_MaintenanceInfo, { "maintenance-info": _ctx.appealDescription }, null, 8, ["maintenance-info"]),
|
|
@@ -28115,7 +28184,7 @@ const _sfc_main$13 = defineComponent({
|
|
|
28115
28184
|
};
|
|
28116
28185
|
}
|
|
28117
28186
|
});
|
|
28118
|
-
const _hoisted_1$
|
|
28187
|
+
const _hoisted_1$D = ["onClick"];
|
|
28119
28188
|
const _hoisted_2$h = ["src"];
|
|
28120
28189
|
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
28121
28190
|
var _a2, _b, _c;
|
|
@@ -28178,13 +28247,13 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28178
28247
|
createBaseVNode("div", {
|
|
28179
28248
|
class: normalizeClass(_ctx.$style.amount)
|
|
28180
28249
|
}, toDisplayString(cashBack2.amountText), 3),
|
|
28181
|
-
_ctx.showDeepLink ? (openBlock(), createElementBlock("
|
|
28250
|
+
_ctx.showDeepLink ? (openBlock(), createElementBlock("em", {
|
|
28182
28251
|
key: 0,
|
|
28183
28252
|
class: normalizeClass(_ctx.$style.openIcon),
|
|
28184
28253
|
"data-test": "open-icon"
|
|
28185
28254
|
}, null, 2)) : createCommentVNode("", true)
|
|
28186
28255
|
], 6)
|
|
28187
|
-
], 10, _hoisted_1$
|
|
28256
|
+
], 10, _hoisted_1$D);
|
|
28188
28257
|
}), 128))
|
|
28189
28258
|
], 2),
|
|
28190
28259
|
createBaseVNode("div", {
|
|
@@ -28759,7 +28828,7 @@ const _sfc_main$11 = defineComponent({
|
|
|
28759
28828
|
};
|
|
28760
28829
|
}
|
|
28761
28830
|
});
|
|
28762
|
-
const _hoisted_1$
|
|
28831
|
+
const _hoisted_1$C = ["src"];
|
|
28763
28832
|
const _hoisted_2$g = /* @__PURE__ */ createBaseVNode("span", null, "\u6C7A\u6E08\u756A\u53F7", -1);
|
|
28764
28833
|
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
28765
28834
|
const _component_DesktopHeader = resolveComponent("DesktopHeader");
|
|
@@ -28800,8 +28869,9 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28800
28869
|
}, [
|
|
28801
28870
|
createBaseVNode("img", {
|
|
28802
28871
|
src: _ctx.storeImage,
|
|
28803
|
-
class: normalizeClass(_ctx.style.storeLogo)
|
|
28804
|
-
|
|
28872
|
+
class: normalizeClass(_ctx.style.storeLogo),
|
|
28873
|
+
alt: ""
|
|
28874
|
+
}, null, 10, _hoisted_1$C)
|
|
28805
28875
|
], 2)) : createCommentVNode("", true),
|
|
28806
28876
|
createBaseVNode("div", {
|
|
28807
28877
|
class: normalizeClass(_ctx.style.content)
|
|
@@ -28857,7 +28927,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28857
28927
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.copy && _ctx.copy(...args), ["stop"]))
|
|
28858
28928
|
}, [
|
|
28859
28929
|
createTextVNode(toDisplayString(_ctx.paymentId), 1),
|
|
28860
|
-
createBaseVNode("
|
|
28930
|
+
createBaseVNode("em", {
|
|
28861
28931
|
class: normalizeClass(_ctx.style.copyIcon)
|
|
28862
28932
|
}, null, 2)
|
|
28863
28933
|
], 2)
|
|
@@ -28970,7 +29040,7 @@ const _sfc_main$10 = defineComponent({
|
|
|
28970
29040
|
};
|
|
28971
29041
|
}
|
|
28972
29042
|
});
|
|
28973
|
-
const _hoisted_1$
|
|
29043
|
+
const _hoisted_1$B = ["src"];
|
|
28974
29044
|
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
28975
29045
|
const _component_Button = resolveComponent("Button");
|
|
28976
29046
|
return openBlock(), createElementBlock("div", {
|
|
@@ -28978,8 +29048,9 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28978
29048
|
}, [
|
|
28979
29049
|
createBaseVNode("img", {
|
|
28980
29050
|
src: _ctx.images.iconError,
|
|
28981
|
-
class: normalizeClass(_ctx.$style.headerImage)
|
|
28982
|
-
|
|
29051
|
+
class: normalizeClass(_ctx.$style.headerImage),
|
|
29052
|
+
alt: "!"
|
|
29053
|
+
}, null, 10, _hoisted_1$B),
|
|
28983
29054
|
createBaseVNode("div", {
|
|
28984
29055
|
class: normalizeClass(_ctx.$style.content)
|
|
28985
29056
|
}, [
|
|
@@ -29016,13 +29087,13 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29016
29087
|
const cssModules$S = {};
|
|
29017
29088
|
cssModules$S["$style"] = style0$S;
|
|
29018
29089
|
var CloseConfirmation = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__cssModules", cssModules$S]]);
|
|
29019
|
-
const paymentConsult = "
|
|
29020
|
-
const headerImage = "
|
|
29021
|
-
const content$6 = "
|
|
29022
|
-
const title$g = "
|
|
29023
|
-
const description$b = "
|
|
29090
|
+
const paymentConsult = "_paymentConsult_y6kxg_2";
|
|
29091
|
+
const headerImage = "_headerImage_y6kxg_12";
|
|
29092
|
+
const content$6 = "_content_y6kxg_16";
|
|
29093
|
+
const title$g = "_title_y6kxg_20";
|
|
29094
|
+
const description$b = "_description_y6kxg_28";
|
|
29024
29095
|
var style0$R = {
|
|
29025
|
-
"ppmna-default-font": "_ppmna-default-
|
|
29096
|
+
"ppmna-default-font": "_ppmna-default-font_y6kxg_1",
|
|
29026
29097
|
paymentConsult,
|
|
29027
29098
|
headerImage,
|
|
29028
29099
|
content: content$6,
|
|
@@ -29065,7 +29136,6 @@ const _sfc_main$$ = defineComponent({
|
|
|
29065
29136
|
return;
|
|
29066
29137
|
}
|
|
29067
29138
|
context.emit("close");
|
|
29068
|
-
return;
|
|
29069
29139
|
};
|
|
29070
29140
|
const buttonList = computed(() => {
|
|
29071
29141
|
return filterErrorButtonList(props.consultInfo.buttonList);
|
|
@@ -29082,7 +29152,7 @@ const _sfc_main$$ = defineComponent({
|
|
|
29082
29152
|
getButtonType
|
|
29083
29153
|
}
|
|
29084
29154
|
});
|
|
29085
|
-
const _hoisted_1$
|
|
29155
|
+
const _hoisted_1$A = ["src"];
|
|
29086
29156
|
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
29087
29157
|
const _component_Button = resolveComponent("Button");
|
|
29088
29158
|
return openBlock(), createElementBlock("div", {
|
|
@@ -29091,8 +29161,9 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29091
29161
|
}, [
|
|
29092
29162
|
createBaseVNode("img", {
|
|
29093
29163
|
src: _ctx.iconUrl,
|
|
29094
|
-
class: normalizeClass(_ctx.$style.headerImage)
|
|
29095
|
-
|
|
29164
|
+
class: normalizeClass(_ctx.$style.headerImage),
|
|
29165
|
+
alt: ""
|
|
29166
|
+
}, null, 10, _hoisted_1$A),
|
|
29096
29167
|
createBaseVNode("div", {
|
|
29097
29168
|
class: normalizeClass(_ctx.$style.content)
|
|
29098
29169
|
}, [
|
|
@@ -29167,7 +29238,7 @@ const _sfc_main$_ = defineComponent({
|
|
|
29167
29238
|
};
|
|
29168
29239
|
}
|
|
29169
29240
|
});
|
|
29170
|
-
const _hoisted_1$
|
|
29241
|
+
const _hoisted_1$z = ["for"];
|
|
29171
29242
|
const _hoisted_2$f = ["id"];
|
|
29172
29243
|
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
29173
29244
|
return openBlock(), createElementBlock("div", {
|
|
@@ -29188,7 +29259,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29188
29259
|
}, null, 42, _hoisted_2$f), [
|
|
29189
29260
|
[vModelText, _ctx.value]
|
|
29190
29261
|
])
|
|
29191
|
-
], 10, _hoisted_1$
|
|
29262
|
+
], 10, _hoisted_1$z)
|
|
29192
29263
|
], 2);
|
|
29193
29264
|
}
|
|
29194
29265
|
const cssModules$Q = {};
|
|
@@ -29266,7 +29337,7 @@ const _sfc_main$Z = defineComponent({
|
|
|
29266
29337
|
};
|
|
29267
29338
|
}
|
|
29268
29339
|
});
|
|
29269
|
-
const _hoisted_1$
|
|
29340
|
+
const _hoisted_1$y = ["src"];
|
|
29270
29341
|
const _hoisted_2$e = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
29271
29342
|
const _hoisted_3$9 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
29272
29343
|
const _hoisted_4$3 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
@@ -29285,8 +29356,9 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29285
29356
|
class: normalizeClass(_ctx.$style.header)
|
|
29286
29357
|
}, [
|
|
29287
29358
|
createBaseVNode("img", {
|
|
29288
|
-
src: _ctx.images.iconBirthday
|
|
29289
|
-
|
|
29359
|
+
src: _ctx.images.iconBirthday,
|
|
29360
|
+
alt: ""
|
|
29361
|
+
}, null, 8, _hoisted_1$y)
|
|
29290
29362
|
], 2),
|
|
29291
29363
|
createBaseVNode("div", {
|
|
29292
29364
|
class: normalizeClass(_ctx.$style.content)
|
|
@@ -29412,7 +29484,7 @@ const _sfc_main$Y = defineComponent({
|
|
|
29412
29484
|
};
|
|
29413
29485
|
}
|
|
29414
29486
|
});
|
|
29415
|
-
const _hoisted_1$
|
|
29487
|
+
const _hoisted_1$x = ["src"];
|
|
29416
29488
|
const _hoisted_2$d = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
29417
29489
|
const _hoisted_3$8 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
29418
29490
|
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -29429,8 +29501,9 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29429
29501
|
}, [
|
|
29430
29502
|
createBaseVNode("img", {
|
|
29431
29503
|
src: _ctx.images.iconMinorAge,
|
|
29432
|
-
class: normalizeClass(_ctx.$style.error)
|
|
29433
|
-
|
|
29504
|
+
class: normalizeClass(_ctx.$style.error),
|
|
29505
|
+
alt: "\u30A8\u30E9\u30FC"
|
|
29506
|
+
}, null, 10, _hoisted_1$x)
|
|
29434
29507
|
], 2),
|
|
29435
29508
|
createBaseVNode("div", {
|
|
29436
29509
|
class: normalizeClass(_ctx.$style.content)
|
|
@@ -29517,7 +29590,7 @@ const _sfc_main$X = defineComponent({
|
|
|
29517
29590
|
};
|
|
29518
29591
|
}
|
|
29519
29592
|
});
|
|
29520
|
-
const _hoisted_1$
|
|
29593
|
+
const _hoisted_1$w = ["src"];
|
|
29521
29594
|
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
29522
29595
|
return openBlock(), createElementBlock("div", {
|
|
29523
29596
|
role: "button",
|
|
@@ -29528,8 +29601,9 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29528
29601
|
}, [
|
|
29529
29602
|
createBaseVNode("img", {
|
|
29530
29603
|
class: normalizeClass(_ctx.style.buttonImage),
|
|
29531
|
-
src: _ctx.imageUrl
|
|
29532
|
-
|
|
29604
|
+
src: _ctx.imageUrl,
|
|
29605
|
+
alt: ""
|
|
29606
|
+
}, null, 10, _hoisted_1$w)
|
|
29533
29607
|
], 2),
|
|
29534
29608
|
createBaseVNode("span", {
|
|
29535
29609
|
class: normalizeClass(_ctx.style.buttonText)
|
|
@@ -29583,24 +29657,14 @@ function makeSound(url) {
|
|
|
29583
29657
|
if (!url) {
|
|
29584
29658
|
return;
|
|
29585
29659
|
}
|
|
29586
|
-
|
|
29587
|
-
|
|
29588
|
-
|
|
29589
|
-
|
|
29590
|
-
|
|
29591
|
-
|
|
29592
|
-
|
|
29593
|
-
|
|
29594
|
-
console.warn(e);
|
|
29595
|
-
});
|
|
29596
|
-
} catch (e) {
|
|
29597
|
-
console.warn(e);
|
|
29598
|
-
}
|
|
29599
|
-
}
|
|
29600
|
-
});
|
|
29601
|
-
} catch (e) {
|
|
29602
|
-
console.warn(e);
|
|
29603
|
-
}
|
|
29660
|
+
const audio = new Audio(url);
|
|
29661
|
+
setTimeout(() => {
|
|
29662
|
+
if (audio) {
|
|
29663
|
+
audio.play().catch((e) => {
|
|
29664
|
+
console.warn(e);
|
|
29665
|
+
});
|
|
29666
|
+
}
|
|
29667
|
+
});
|
|
29604
29668
|
}
|
|
29605
29669
|
var isVue2 = false;
|
|
29606
29670
|
/*!
|
|
@@ -30519,9 +30583,6 @@ const useMakePaymentStore = defineStore("makePayment", {
|
|
|
30519
30583
|
res,
|
|
30520
30584
|
options == null ? void 0 : options.api
|
|
30521
30585
|
);
|
|
30522
|
-
if ((res == null ? void 0 : res.ppFetchResult) === "apiError" && options.api === "consult") {
|
|
30523
|
-
return true;
|
|
30524
|
-
}
|
|
30525
30586
|
if ((res == null ? void 0 : res.ppFetchResult) !== "success") {
|
|
30526
30587
|
if (!options.dryRun) {
|
|
30527
30588
|
const { errorDescription, errorIcon: errorIcon2, errorTitle: errorTitle2 } = createErrorFromType(options.type);
|
|
@@ -30630,7 +30691,6 @@ const useMakePaymentStore = defineStore("makePayment", {
|
|
|
30630
30691
|
amount: (_a2 = props.paymentParams.amount) == null ? void 0 : _a2.amount,
|
|
30631
30692
|
productType: props.paymentParams.productType
|
|
30632
30693
|
});
|
|
30633
|
-
const errorHandled = this.private_handleError(res, { api: "consult" });
|
|
30634
30694
|
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)) {
|
|
30635
30695
|
this.consultState.consultInfo = res.body.unsigned.data.error.displayErrorResponse;
|
|
30636
30696
|
this.consultState.showConsult = true;
|
|
@@ -30641,6 +30701,7 @@ const useMakePaymentStore = defineStore("makePayment", {
|
|
|
30641
30701
|
this.consultState.insufficientBalanceInfo = res.body.unsigned.data.error.insufficientBalanceInfo;
|
|
30642
30702
|
return true;
|
|
30643
30703
|
}
|
|
30704
|
+
const errorHandled = this.private_handleError(res, { api: "consult" });
|
|
30644
30705
|
if ((res == null ? void 0 : res.ppFetchResult) !== "success" || !errorHandled) {
|
|
30645
30706
|
return false;
|
|
30646
30707
|
}
|
|
@@ -30870,12 +30931,19 @@ const _sfc_main$W = defineComponent({
|
|
|
30870
30931
|
return (_a2 = animation.value) != null ? _a2 : { optionalText: "", url: "" };
|
|
30871
30932
|
}
|
|
30872
30933
|
),
|
|
30873
|
-
animationUrl: computed(
|
|
30874
|
-
|
|
30875
|
-
|
|
30876
|
-
|
|
30934
|
+
animationUrl: computed(() => {
|
|
30935
|
+
var _a2;
|
|
30936
|
+
if (animation.value) {
|
|
30937
|
+
if (isDesktop.value) {
|
|
30938
|
+
const url = (_a2 = animation.value.largeUrl) != null ? _a2 : animation.value.url;
|
|
30939
|
+
return url;
|
|
30940
|
+
} else {
|
|
30941
|
+
return animation.value.url;
|
|
30942
|
+
}
|
|
30943
|
+
} else {
|
|
30944
|
+
return "";
|
|
30877
30945
|
}
|
|
30878
|
-
),
|
|
30946
|
+
}),
|
|
30879
30947
|
type,
|
|
30880
30948
|
showContent: computed(() => uiState.showContent),
|
|
30881
30949
|
showFullScreenContent: computed(() => uiState.showFullscreenContent),
|
|
@@ -30901,7 +30969,7 @@ const _sfc_main$W = defineComponent({
|
|
|
30901
30969
|
};
|
|
30902
30970
|
}
|
|
30903
30971
|
});
|
|
30904
|
-
const _hoisted_1$
|
|
30972
|
+
const _hoisted_1$v = ["src"];
|
|
30905
30973
|
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30906
30974
|
const _component_Lottie = resolveComponent("Lottie");
|
|
30907
30975
|
const _component_FloatingButton = resolveComponent("FloatingButton");
|
|
@@ -30931,9 +30999,10 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30931
30999
|
class: normalizeClass(_ctx.style.closeImage),
|
|
30932
31000
|
src: _ctx.images.whiteIconClose,
|
|
30933
31001
|
style: normalizeStyle([_ctx.isMobile ? _ctx.headerFix : {}]),
|
|
31002
|
+
alt: "\u9589\u3058\u308B",
|
|
30934
31003
|
"data-testid": "cash-back-detail-close-button",
|
|
30935
31004
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.close && _ctx.close(...args))
|
|
30936
|
-
}, null, 14, _hoisted_1$
|
|
31005
|
+
}, null, 14, _hoisted_1$v)) : createCommentVNode("", true),
|
|
30937
31006
|
_ctx.showFullScreenContent ? (openBlock(), createElementBlock("div", {
|
|
30938
31007
|
key: 1,
|
|
30939
31008
|
class: normalizeClass(_ctx.style.campaignContainer)
|
|
@@ -31029,7 +31098,7 @@ const _sfc_main$V = defineComponent({
|
|
|
31029
31098
|
};
|
|
31030
31099
|
}
|
|
31031
31100
|
});
|
|
31032
|
-
const _hoisted_1$
|
|
31101
|
+
const _hoisted_1$u = ["onClick"];
|
|
31033
31102
|
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31034
31103
|
return openBlock(), createElementBlock("ul", {
|
|
31035
31104
|
class: normalizeClass(_ctx.style.container),
|
|
@@ -31047,7 +31116,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31047
31116
|
createBaseVNode("span", {
|
|
31048
31117
|
class: normalizeClass(_ctx.style.unit)
|
|
31049
31118
|
}, "\u5186", 2)
|
|
31050
|
-
], 10, _hoisted_1$
|
|
31119
|
+
], 10, _hoisted_1$u);
|
|
31051
31120
|
}), 128))
|
|
31052
31121
|
], 2);
|
|
31053
31122
|
}
|
|
@@ -31123,7 +31192,7 @@ const _sfc_main$U = defineComponent({
|
|
|
31123
31192
|
};
|
|
31124
31193
|
}
|
|
31125
31194
|
});
|
|
31126
|
-
const _hoisted_1$
|
|
31195
|
+
const _hoisted_1$t = ["src"];
|
|
31127
31196
|
const _hoisted_2$c = { key: 0 };
|
|
31128
31197
|
const _hoisted_3$7 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
|
|
31129
31198
|
const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
|
|
@@ -31137,8 +31206,9 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31137
31206
|
}, [
|
|
31138
31207
|
createBaseVNode("img", {
|
|
31139
31208
|
src: _ctx.appLogo,
|
|
31140
|
-
class: normalizeClass(_ctx.style.appLogo)
|
|
31141
|
-
|
|
31209
|
+
class: normalizeClass(_ctx.style.appLogo),
|
|
31210
|
+
alt: ""
|
|
31211
|
+
}, null, 10, _hoisted_1$t),
|
|
31142
31212
|
createBaseVNode("div", {
|
|
31143
31213
|
class: normalizeClass(_ctx.style.appName)
|
|
31144
31214
|
}, toDisplayString(_ctx.appDetail.appName), 3)
|
|
@@ -31253,7 +31323,7 @@ const _sfc_main$T = defineComponent({
|
|
|
31253
31323
|
};
|
|
31254
31324
|
}
|
|
31255
31325
|
});
|
|
31256
|
-
const _hoisted_1$
|
|
31326
|
+
const _hoisted_1$s = ["src"];
|
|
31257
31327
|
const _hoisted_2$b = ["src"];
|
|
31258
31328
|
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31259
31329
|
return openBlock(), createElementBlock("div", {
|
|
@@ -31272,15 +31342,17 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31272
31342
|
_ctx.iconImageUrl && !_ctx.iconAlignRight ? (openBlock(), createElementBlock("img", {
|
|
31273
31343
|
key: 0,
|
|
31274
31344
|
src: _ctx.iconImageUrl,
|
|
31275
|
-
class: normalizeClass(_ctx.style.icon)
|
|
31276
|
-
|
|
31345
|
+
class: normalizeClass(_ctx.style.icon),
|
|
31346
|
+
alt: ""
|
|
31347
|
+
}, null, 10, _hoisted_1$s)) : createCommentVNode("", true),
|
|
31277
31348
|
createBaseVNode("span", {
|
|
31278
31349
|
class: normalizeClass([_ctx.style.title, _ctx.textStyle])
|
|
31279
31350
|
}, toDisplayString(_ctx.title), 3),
|
|
31280
31351
|
_ctx.iconImageUrl && _ctx.iconAlignRight ? (openBlock(), createElementBlock("img", {
|
|
31281
31352
|
key: 1,
|
|
31282
31353
|
src: _ctx.iconImageUrl,
|
|
31283
|
-
class: normalizeClass(_ctx.style.icon)
|
|
31354
|
+
class: normalizeClass(_ctx.style.icon),
|
|
31355
|
+
alt: ""
|
|
31284
31356
|
}, null, 10, _hoisted_2$b)) : createCommentVNode("", true)
|
|
31285
31357
|
], 2)
|
|
31286
31358
|
], 2);
|
|
@@ -31420,7 +31492,7 @@ const _sfc_main$S = defineComponent({
|
|
|
31420
31492
|
};
|
|
31421
31493
|
}
|
|
31422
31494
|
});
|
|
31423
|
-
const _hoisted_1$
|
|
31495
|
+
const _hoisted_1$r = ["onClick"];
|
|
31424
31496
|
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31425
31497
|
const _component_Select = resolveComponent("Select");
|
|
31426
31498
|
return openBlock(), createElementBlock("div", {
|
|
@@ -31439,7 +31511,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31439
31511
|
role: "button",
|
|
31440
31512
|
"data-test": "select-amount",
|
|
31441
31513
|
onClick: ($event) => _ctx.select(amount2)
|
|
31442
|
-
}, toDisplayString(_ctx.operator) + toDisplayString(_ctx.numberWithCommas(amount2)), 11, _hoisted_1$
|
|
31514
|
+
}, toDisplayString(_ctx.operator) + toDisplayString(_ctx.numberWithCommas(amount2)), 11, _hoisted_1$r);
|
|
31443
31515
|
}), 128)),
|
|
31444
31516
|
_ctx.isSelectMoreVisible ? (openBlock(), createElementBlock("div", {
|
|
31445
31517
|
key: 0,
|
|
@@ -31713,7 +31785,7 @@ const _sfc_main$R = defineComponent({
|
|
|
31713
31785
|
};
|
|
31714
31786
|
}
|
|
31715
31787
|
});
|
|
31716
|
-
const _hoisted_1$
|
|
31788
|
+
const _hoisted_1$q = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
|
|
31717
31789
|
const _hoisted_2$a = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
31718
31790
|
const _hoisted_3$6 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
31719
31791
|
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -31756,7 +31828,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31756
31828
|
class: normalizeClass(_ctx.style.topupAmount)
|
|
31757
31829
|
}, [
|
|
31758
31830
|
createTextVNode(toDisplayString(_ctx.topupAmountText), 1),
|
|
31759
|
-
_hoisted_1$
|
|
31831
|
+
_hoisted_1$q
|
|
31760
31832
|
], 2)
|
|
31761
31833
|
], 2)
|
|
31762
31834
|
], 2),
|
|
@@ -31960,6 +32032,11 @@ const _sfc_main$Q = defineComponent({
|
|
|
31960
32032
|
appealDescription: {
|
|
31961
32033
|
type: Object,
|
|
31962
32034
|
default: null
|
|
32035
|
+
},
|
|
32036
|
+
ignoreBankMaintenanceFlag: {
|
|
32037
|
+
type: Boolean,
|
|
32038
|
+
default: false,
|
|
32039
|
+
required: false
|
|
31963
32040
|
}
|
|
31964
32041
|
},
|
|
31965
32042
|
emits: {
|
|
@@ -31986,7 +32063,7 @@ const _sfc_main$Q = defineComponent({
|
|
|
31986
32063
|
};
|
|
31987
32064
|
}
|
|
31988
32065
|
});
|
|
31989
|
-
const _hoisted_1$
|
|
32066
|
+
const _hoisted_1$p = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
31990
32067
|
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31991
32068
|
const _component_Header = resolveComponent("Header");
|
|
31992
32069
|
const _component_MaintenanceInfo = resolveComponent("MaintenanceInfo");
|
|
@@ -32006,6 +32083,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32006
32083
|
onClick: _ctx.back
|
|
32007
32084
|
}, null, 8, ["title", "show-icon", "onClick"])) : createCommentVNode("", true),
|
|
32008
32085
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
32086
|
+
role: "listbox",
|
|
32009
32087
|
class: normalizeClass({ [_ctx.style.paymentList]: true, [_ctx.style.payment]: !_ctx.isTopup }),
|
|
32010
32088
|
"data-testid": "payment-list"
|
|
32011
32089
|
}, [
|
|
@@ -32014,8 +32092,9 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32014
32092
|
"select-payment-index": _ctx.selectIndex,
|
|
32015
32093
|
"payment-methods": _ctx.paymentMethods,
|
|
32016
32094
|
"is-topup": _ctx.isTopup,
|
|
32095
|
+
"ignore-bank-maintenance-flag": _ctx.ignoreBankMaintenanceFlag,
|
|
32017
32096
|
onSelect: _ctx.select
|
|
32018
|
-
}, null, 8, ["select-payment-index", "payment-methods", "is-topup", "onSelect"])
|
|
32097
|
+
}, null, 8, ["select-payment-index", "payment-methods", "is-topup", "ignore-bank-maintenance-flag", "onSelect"])
|
|
32019
32098
|
], 2)), [
|
|
32020
32099
|
[_directive_vertical_scroll]
|
|
32021
32100
|
]),
|
|
@@ -32028,7 +32107,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32028
32107
|
class: normalizeClass(_ctx.style.bottomText)
|
|
32029
32108
|
}, [
|
|
32030
32109
|
createTextVNode(toDisplayString(_ctx.lg.choosePayment.desc1), 1),
|
|
32031
|
-
_hoisted_1$
|
|
32110
|
+
_hoisted_1$p,
|
|
32032
32111
|
createTextVNode(" " + toDisplayString(_ctx.lg.choosePayment.desc2), 1)
|
|
32033
32112
|
], 2)
|
|
32034
32113
|
], 6)
|
|
@@ -32570,7 +32649,7 @@ const _sfc_main$O = defineComponent({
|
|
|
32570
32649
|
};
|
|
32571
32650
|
}
|
|
32572
32651
|
});
|
|
32573
|
-
const _hoisted_1$
|
|
32652
|
+
const _hoisted_1$o = ["src"];
|
|
32574
32653
|
const _hoisted_2$9 = { key: 0 };
|
|
32575
32654
|
const _hoisted_3$5 = {
|
|
32576
32655
|
key: 1,
|
|
@@ -32591,8 +32670,8 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32591
32670
|
createBaseVNode("img", {
|
|
32592
32671
|
class: normalizeClass(_ctx.$style.icon),
|
|
32593
32672
|
src: _ctx.images.icon3DSecure,
|
|
32594
|
-
alt: ""
|
|
32595
|
-
}, null, 10, _hoisted_1$
|
|
32673
|
+
alt: "3D\u30BB\u30AD\u30E5\u30A2"
|
|
32674
|
+
}, null, 10, _hoisted_1$o),
|
|
32596
32675
|
createBaseVNode("h1", {
|
|
32597
32676
|
class: normalizeClass(_ctx.$style.title)
|
|
32598
32677
|
}, toDisplayString(_ctx.lg.title), 3),
|
|
@@ -33268,7 +33347,8 @@ const initMakePayment = async (initMakePayment2) => {
|
|
|
33268
33347
|
document.body.appendChild(container2);
|
|
33269
33348
|
transactionWarning = (event) => {
|
|
33270
33349
|
event.preventDefault();
|
|
33271
|
-
|
|
33350
|
+
event.returnValue = "";
|
|
33351
|
+
return "";
|
|
33272
33352
|
};
|
|
33273
33353
|
window.addEventListener("beforeunload", transactionWarning);
|
|
33274
33354
|
};
|
|
@@ -33506,7 +33586,7 @@ const _sfc_main$L = defineComponent({
|
|
|
33506
33586
|
getButtonType
|
|
33507
33587
|
}
|
|
33508
33588
|
});
|
|
33509
|
-
const _hoisted_1$
|
|
33589
|
+
const _hoisted_1$n = ["src"];
|
|
33510
33590
|
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33511
33591
|
const _component_Button = resolveComponent("Button");
|
|
33512
33592
|
return openBlock(), createElementBlock("div", {
|
|
@@ -33514,8 +33594,9 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33514
33594
|
}, [
|
|
33515
33595
|
createBaseVNode("img", {
|
|
33516
33596
|
src: _ctx.iconUrl,
|
|
33517
|
-
class: normalizeClass(_ctx.style.bannerInfoIcon)
|
|
33518
|
-
|
|
33597
|
+
class: normalizeClass(_ctx.style.bannerInfoIcon),
|
|
33598
|
+
alt: ""
|
|
33599
|
+
}, null, 10, _hoisted_1$n),
|
|
33519
33600
|
createBaseVNode("div", {
|
|
33520
33601
|
class: normalizeClass(_ctx.style.bannerTitle)
|
|
33521
33602
|
}, toDisplayString(_ctx.title), 3),
|
|
@@ -33711,7 +33792,7 @@ const _sfc_main$J = defineComponent({
|
|
|
33711
33792
|
}
|
|
33712
33793
|
}
|
|
33713
33794
|
});
|
|
33714
|
-
const _hoisted_1$
|
|
33795
|
+
const _hoisted_1$m = ["src"];
|
|
33715
33796
|
const _hoisted_2$8 = ["src"];
|
|
33716
33797
|
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33717
33798
|
const _component_Divider = resolveComponent("Divider");
|
|
@@ -33720,10 +33801,10 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33720
33801
|
class: normalizeClass(_ctx.style.completion)
|
|
33721
33802
|
}, [
|
|
33722
33803
|
createBaseVNode("img", {
|
|
33723
|
-
alt: "",
|
|
33804
|
+
alt: "\u30DA\u30A4\u30DA\u30A4",
|
|
33724
33805
|
class: normalizeClass(_ctx.style.paypayLogo),
|
|
33725
33806
|
src: _ctx.images.paypay
|
|
33726
|
-
}, null, 10, _hoisted_1$
|
|
33807
|
+
}, null, 10, _hoisted_1$m),
|
|
33727
33808
|
createBaseVNode("div", {
|
|
33728
33809
|
class: normalizeClass(_ctx.style.title)
|
|
33729
33810
|
}, toDisplayString(_ctx.lg.topupCompletion.title), 3),
|
|
@@ -33755,7 +33836,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33755
33836
|
createTextVNode(toDisplayString(_ctx.topUpId) + " ", 1),
|
|
33756
33837
|
createBaseVNode("img", {
|
|
33757
33838
|
"data-test": "copy-id",
|
|
33758
|
-
alt: "",
|
|
33839
|
+
alt: "\u30B3\u30D4\u30FC",
|
|
33759
33840
|
src: _ctx.images.copyIcon,
|
|
33760
33841
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.copyId && _ctx.copyId(...args))
|
|
33761
33842
|
}, null, 8, _hoisted_2$8)
|
|
@@ -34056,7 +34137,8 @@ const _sfc_main$I = defineComponent({
|
|
|
34056
34137
|
(_a2 = document.getElementById("fake_input")) == null ? void 0 : _a2.focus();
|
|
34057
34138
|
const cashbackInfo2 = await getCashBackInfo();
|
|
34058
34139
|
if (!cashbackInfo2 || (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) !== "success") {
|
|
34059
|
-
|
|
34140
|
+
const errorType = (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) === "timeout" ? MiniAppErrorType.timeOut : MiniAppErrorType.serverError;
|
|
34141
|
+
this.errorCode = (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) === "notAuthorized" ? MiniAppErrorType.notAuthorized : errorType;
|
|
34060
34142
|
this.showError();
|
|
34061
34143
|
return;
|
|
34062
34144
|
}
|
|
@@ -34262,7 +34344,7 @@ const _sfc_main$I = defineComponent({
|
|
|
34262
34344
|
}
|
|
34263
34345
|
}
|
|
34264
34346
|
});
|
|
34265
|
-
const _hoisted_1$
|
|
34347
|
+
const _hoisted_1$l = { key: 0 };
|
|
34266
34348
|
const _hoisted_2$7 = { key: 1 };
|
|
34267
34349
|
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34268
34350
|
const _component_Header = resolveComponent("Header");
|
|
@@ -34366,7 +34448,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34366
34448
|
createBaseVNode("div", {
|
|
34367
34449
|
class: normalizeClass(_ctx.$style.invalidAmount)
|
|
34368
34450
|
}, [
|
|
34369
|
-
_ctx.minAmountUnmet ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
34451
|
+
_ctx.minAmountUnmet ? (openBlock(), createElementBlock("span", _hoisted_1$l, toDisplayString(_ctx.minAMountErrorMessage), 1)) : createCommentVNode("", true),
|
|
34370
34452
|
_ctx.maxAmountExceeded ? (openBlock(), createElementBlock("span", _hoisted_2$7, toDisplayString(_ctx.lg.topup.maxAmount), 1)) : createCommentVNode("", true)
|
|
34371
34453
|
], 2)
|
|
34372
34454
|
], 2),
|
|
@@ -34675,9 +34757,9 @@ function removeStorageData(params) {
|
|
|
34675
34757
|
}
|
|
34676
34758
|
async function getPermissionStatus(params) {
|
|
34677
34759
|
const newParams = reconstructParams(params);
|
|
34678
|
-
await execute$
|
|
34760
|
+
await execute$b(newParams);
|
|
34679
34761
|
}
|
|
34680
|
-
async function execute$
|
|
34762
|
+
async function execute$b(params) {
|
|
34681
34763
|
var _a2, _b, _c;
|
|
34682
34764
|
try {
|
|
34683
34765
|
const permissionList = await getUserGrantedPermission();
|
|
@@ -35018,7 +35100,7 @@ const _sfc_main$G = defineComponent({
|
|
|
35018
35100
|
}
|
|
35019
35101
|
}
|
|
35020
35102
|
});
|
|
35021
|
-
const _hoisted_1$
|
|
35103
|
+
const _hoisted_1$k = ["src"];
|
|
35022
35104
|
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
35023
35105
|
const _component_Button = resolveComponent("Button");
|
|
35024
35106
|
const _component_ActionSheet = resolveComponent("ActionSheet");
|
|
@@ -35035,8 +35117,9 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35035
35117
|
}, [
|
|
35036
35118
|
createBaseVNode("img", {
|
|
35037
35119
|
src: _ctx.images.iconAppUpdate,
|
|
35038
|
-
class: normalizeClass(_ctx.$style.updateIcon)
|
|
35039
|
-
|
|
35120
|
+
class: normalizeClass(_ctx.$style.updateIcon),
|
|
35121
|
+
alt: "\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8"
|
|
35122
|
+
}, null, 10, _hoisted_1$k),
|
|
35040
35123
|
createBaseVNode("span", {
|
|
35041
35124
|
class: normalizeClass(_ctx.$style.updateTitle),
|
|
35042
35125
|
"data-testid": "update-title"
|
|
@@ -35132,9 +35215,9 @@ function showUpdateWarning$1(params) {
|
|
|
35132
35215
|
}
|
|
35133
35216
|
async function getPlatformInformation(params) {
|
|
35134
35217
|
const newParams = reconstructParams(params);
|
|
35135
|
-
await execute$
|
|
35218
|
+
await execute$a(newParams);
|
|
35136
35219
|
}
|
|
35137
|
-
async function execute$
|
|
35220
|
+
async function execute$a(params) {
|
|
35138
35221
|
var _a2, _b;
|
|
35139
35222
|
let sdkVersion = null;
|
|
35140
35223
|
let preferredLanguage = getPayPayLanguage();
|
|
@@ -35165,9 +35248,9 @@ async function execute$9(params) {
|
|
|
35165
35248
|
}
|
|
35166
35249
|
function getDeviceInformation(params) {
|
|
35167
35250
|
const newParams = reconstructParams(params);
|
|
35168
|
-
execute$
|
|
35251
|
+
execute$9(newParams);
|
|
35169
35252
|
}
|
|
35170
|
-
function execute$
|
|
35253
|
+
function execute$9(params) {
|
|
35171
35254
|
var _a2;
|
|
35172
35255
|
const runtime = getRuntime();
|
|
35173
35256
|
(_a2 = params == null ? void 0 : params.success) == null ? void 0 : _a2.call(params, {
|
|
@@ -35250,7 +35333,7 @@ const _sfc_main$F = defineComponent({
|
|
|
35250
35333
|
};
|
|
35251
35334
|
}
|
|
35252
35335
|
});
|
|
35253
|
-
const _hoisted_1$
|
|
35336
|
+
const _hoisted_1$j = ["src"];
|
|
35254
35337
|
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
35255
35338
|
const _component_Button = resolveComponent("Button");
|
|
35256
35339
|
const _component_ActionSheet = resolveComponent("ActionSheet");
|
|
@@ -35265,8 +35348,9 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35265
35348
|
createBaseVNode("div", null, [
|
|
35266
35349
|
createBaseVNode("img", {
|
|
35267
35350
|
src: _ctx.images.iconOpenApp,
|
|
35268
|
-
class: normalizeClass(_ctx.style.appIcon)
|
|
35269
|
-
|
|
35351
|
+
class: normalizeClass(_ctx.style.appIcon),
|
|
35352
|
+
alt: "\u5916\u90E8\u30A2\u30D7\u30EA\u3092\u958B\u304F"
|
|
35353
|
+
}, null, 10, _hoisted_1$j),
|
|
35270
35354
|
createBaseVNode("span", {
|
|
35271
35355
|
class: normalizeClass(_ctx.style.title)
|
|
35272
35356
|
}, toDisplayString(_ctx.lg.openApp.title), 3)
|
|
@@ -35384,9 +35468,9 @@ async function share(shareParams) {
|
|
|
35384
35468
|
}
|
|
35385
35469
|
async function getKycInformation(params) {
|
|
35386
35470
|
const newParams = reconstructParams(params);
|
|
35387
|
-
await execute$
|
|
35471
|
+
await execute$8(newParams);
|
|
35388
35472
|
}
|
|
35389
|
-
async function execute$
|
|
35473
|
+
async function execute$8(params) {
|
|
35390
35474
|
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
35391
35475
|
try {
|
|
35392
35476
|
const grantStatus = await checkPermission(PermissionName.mini_app_kyc);
|
|
@@ -35741,7 +35825,6 @@ async function getUserLocation(getUserLocationParams) {
|
|
|
35741
35825
|
}
|
|
35742
35826
|
});
|
|
35743
35827
|
resolve2(null);
|
|
35744
|
-
return;
|
|
35745
35828
|
},
|
|
35746
35829
|
() => {
|
|
35747
35830
|
var _a4;
|
|
@@ -35749,7 +35832,6 @@ async function getUserLocation(getUserLocationParams) {
|
|
|
35749
35832
|
errorCode: MiniAppErrorType.hostAppLocationDenied
|
|
35750
35833
|
});
|
|
35751
35834
|
resolve2(null);
|
|
35752
|
-
return;
|
|
35753
35835
|
},
|
|
35754
35836
|
{
|
|
35755
35837
|
enableHighAccuracy: (params == null ? void 0 : params.accuracy) === "high",
|
|
@@ -35762,7 +35844,6 @@ async function getUserLocation(getUserLocationParams) {
|
|
|
35762
35844
|
errorCode: MiniAppErrorType.hostAppLocationDenied
|
|
35763
35845
|
});
|
|
35764
35846
|
resolve2(null);
|
|
35765
|
-
return;
|
|
35766
35847
|
}
|
|
35767
35848
|
});
|
|
35768
35849
|
} catch {
|
|
@@ -35810,12 +35891,12 @@ async function checkPaymentMethod(checkPayMethodParams) {
|
|
|
35810
35891
|
}
|
|
35811
35892
|
function debug(params) {
|
|
35812
35893
|
const newParams = reconstructParams(params);
|
|
35813
|
-
execute$
|
|
35894
|
+
execute$7(newParams);
|
|
35814
35895
|
}
|
|
35815
|
-
function execute$
|
|
35896
|
+
function execute$7(params) {
|
|
35816
35897
|
var _a2;
|
|
35817
35898
|
(_a2 = params == null ? void 0 : params.success) == null ? void 0 : _a2.call(params, {
|
|
35818
|
-
v: "1.
|
|
35899
|
+
v: "1.60.0"
|
|
35819
35900
|
});
|
|
35820
35901
|
}
|
|
35821
35902
|
function useCallBack(props, ctx) {
|
|
@@ -36076,7 +36157,6 @@ const Email = defineComponent({
|
|
|
36076
36157
|
if (!runSyncRule(value2, rule) && value2) {
|
|
36077
36158
|
state.validateFailed = true;
|
|
36078
36159
|
state.validateMessage = getRuleMessage(value2, rule);
|
|
36079
|
-
return;
|
|
36080
36160
|
}
|
|
36081
36161
|
}), Promise.resolve());
|
|
36082
36162
|
const renderMessage = () => {
|
|
@@ -36279,7 +36359,7 @@ const _sfc_main$C = defineComponent({
|
|
|
36279
36359
|
};
|
|
36280
36360
|
}
|
|
36281
36361
|
});
|
|
36282
|
-
const _hoisted_1$
|
|
36362
|
+
const _hoisted_1$i = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
36283
36363
|
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
36284
36364
|
const _component_Button = resolveComponent("Button");
|
|
36285
36365
|
const _component_ActionSheet = resolveComponent("ActionSheet");
|
|
@@ -36294,7 +36374,8 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36294
36374
|
}, [
|
|
36295
36375
|
createBaseVNode("img", {
|
|
36296
36376
|
src: "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-email.svg",
|
|
36297
|
-
class: normalizeClass(_ctx.$style.icon)
|
|
36377
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
36378
|
+
alt: "\u30E1\u30FC\u30EB\u30A2\u30A4\u30B3\u30F3"
|
|
36298
36379
|
}, null, 2),
|
|
36299
36380
|
createBaseVNode("div", {
|
|
36300
36381
|
class: normalizeClass(_ctx.$style.text)
|
|
@@ -36303,7 +36384,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36303
36384
|
class: normalizeClass(_ctx.$style.content)
|
|
36304
36385
|
}, [
|
|
36305
36386
|
createTextVNode(" \u8A8D\u8A3C\u30E1\u30FC\u30EB\u3092\u518D\u9001\u3059\u308B\u304B"),
|
|
36306
|
-
_hoisted_1$
|
|
36387
|
+
_hoisted_1$i,
|
|
36307
36388
|
createTextVNode(" \u5225\u306E\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3067\u767B\u9332\u3092\u3084\u308A\u76F4\u3057\u3066\u304F\u3060\u3055\u3044 ")
|
|
36308
36389
|
], 2),
|
|
36309
36390
|
createBaseVNode("div", {
|
|
@@ -36467,7 +36548,7 @@ const _sfc_main$B = defineComponent({
|
|
|
36467
36548
|
};
|
|
36468
36549
|
}
|
|
36469
36550
|
});
|
|
36470
|
-
const _hoisted_1$
|
|
36551
|
+
const _hoisted_1$h = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
36471
36552
|
const _hoisted_2$6 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
36472
36553
|
const _hoisted_3$4 = /* @__PURE__ */ createBaseVNode("svg", {
|
|
36473
36554
|
width: "20",
|
|
@@ -36522,7 +36603,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36522
36603
|
class: normalizeClass(_ctx.$style.mailContent)
|
|
36523
36604
|
}, [
|
|
36524
36605
|
createTextVNode(" \u4E0A\u8A18\u30A2\u30C9\u30EC\u30B9\u306B\u78BA\u8A8D\u30E1\u30FC\u30EB\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F"),
|
|
36525
|
-
_hoisted_1$
|
|
36606
|
+
_hoisted_1$h,
|
|
36526
36607
|
createTextVNode(" \u30E1\u30FC\u30EB\u306B\u8A18\u8F09\u3055\u308C\u305FURL\u304B\u3089"),
|
|
36527
36608
|
_hoisted_2$6,
|
|
36528
36609
|
createBaseVNode("span", {
|
|
@@ -36732,7 +36813,7 @@ const _sfc_main$A = defineComponent({
|
|
|
36732
36813
|
};
|
|
36733
36814
|
}
|
|
36734
36815
|
});
|
|
36735
|
-
const _hoisted_1$
|
|
36816
|
+
const _hoisted_1$g = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
36736
36817
|
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
36737
36818
|
var _a2;
|
|
36738
36819
|
const _component_Email = resolveComponent("Email");
|
|
@@ -36781,7 +36862,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36781
36862
|
class: normalizeClass(_ctx.$style.info)
|
|
36782
36863
|
}, [
|
|
36783
36864
|
createTextVNode(" \u3053\u306E\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306FPayPay\u306B\u3082\u767B\u9332\u3055\u308C\u307E\u3059"),
|
|
36784
|
-
_hoisted_1$
|
|
36865
|
+
_hoisted_1$g,
|
|
36785
36866
|
createTextVNode(" \u914D\u4FE1\u306E\u8A2D\u5B9A\u306F\u30D7\u30ED\u30D5\u30A3\u30FC\u30EB\u753B\u9762\u304B\u3089\u53EF\u80FD\u3067\u3059 ")
|
|
36786
36867
|
], 2),
|
|
36787
36868
|
createBaseVNode("div", {
|
|
@@ -36982,9 +37063,9 @@ function registerEmail(params, allowsUpdate = false) {
|
|
|
36982
37063
|
}
|
|
36983
37064
|
function registerKyc(params) {
|
|
36984
37065
|
const newParams = reconstructParams(params);
|
|
36985
|
-
execute$
|
|
37066
|
+
execute$6(newParams);
|
|
36986
37067
|
}
|
|
36987
|
-
function execute$
|
|
37068
|
+
function execute$6(params) {
|
|
36988
37069
|
var _a2;
|
|
36989
37070
|
params = {
|
|
36990
37071
|
...params,
|
|
@@ -36999,7 +37080,7 @@ function execute$5(params) {
|
|
|
36999
37080
|
let deeplink = `paypay://kyc/top?appId=${clientId}&appName=${encodeURIComponent(
|
|
37000
37081
|
(appDetail == null ? void 0 : appDetail.appName) || ""
|
|
37001
37082
|
)}`;
|
|
37002
|
-
Object.entries(params).
|
|
37083
|
+
Object.entries(params).forEach(([key2, value2]) => {
|
|
37003
37084
|
if (typeof value2 !== "function") {
|
|
37004
37085
|
let kycData = encodeURIComponent(String(value2));
|
|
37005
37086
|
if (Array.isArray(value2)) {
|
|
@@ -37030,13 +37111,13 @@ const MinVersion = {
|
|
|
37030
37111
|
};
|
|
37031
37112
|
async function startMultiFactorAuth(params) {
|
|
37032
37113
|
const newParams = reconstructParams(params);
|
|
37033
|
-
await execute$
|
|
37114
|
+
await execute$5(newParams);
|
|
37034
37115
|
}
|
|
37035
37116
|
function validType(params) {
|
|
37036
37117
|
const authTypes = ["BIOMETRIC"];
|
|
37037
37118
|
return authTypes.includes(params == null ? void 0 : params.type);
|
|
37038
37119
|
}
|
|
37039
|
-
async function execute$
|
|
37120
|
+
async function execute$5(params) {
|
|
37040
37121
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
37041
37122
|
if (!validType(params)) {
|
|
37042
37123
|
return (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.invalidType });
|
|
@@ -37077,9 +37158,9 @@ async function execute$4(params) {
|
|
|
37077
37158
|
}
|
|
37078
37159
|
function logout(params) {
|
|
37079
37160
|
const newParams = reconstructParams(params);
|
|
37080
|
-
execute$
|
|
37161
|
+
execute$4(newParams);
|
|
37081
37162
|
}
|
|
37082
|
-
function execute$
|
|
37163
|
+
function execute$4(params) {
|
|
37083
37164
|
var _a2, _b;
|
|
37084
37165
|
try {
|
|
37085
37166
|
Object.entries(PpLocalStorageKey).forEach(([_, value2]) => {
|
|
@@ -37094,9 +37175,9 @@ function execute$3(params) {
|
|
|
37094
37175
|
}
|
|
37095
37176
|
async function verifyMultiFactorAuthResult(params) {
|
|
37096
37177
|
const newParams = reconstructParams(params);
|
|
37097
|
-
await execute$
|
|
37178
|
+
await execute$3(newParams);
|
|
37098
37179
|
}
|
|
37099
|
-
async function execute$
|
|
37180
|
+
async function execute$3(params) {
|
|
37100
37181
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
37101
37182
|
const urlParams = new URLSearchParams(window.location.search);
|
|
37102
37183
|
const sessionId = urlParams == null ? void 0 : urlParams.get("ppSessionId");
|
|
@@ -37566,6 +37647,42 @@ function getRenderLoginInfo(params) {
|
|
|
37566
37647
|
preferredLanguage
|
|
37567
37648
|
};
|
|
37568
37649
|
}
|
|
37650
|
+
var dist = {};
|
|
37651
|
+
Object.defineProperty(dist, "__esModule", { value: true });
|
|
37652
|
+
var sanitizeUrl_1 = dist.sanitizeUrl = void 0;
|
|
37653
|
+
var invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im;
|
|
37654
|
+
var htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g;
|
|
37655
|
+
var htmlCtrlEntityRegex = /&(newline|tab);/gi;
|
|
37656
|
+
var ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;
|
|
37657
|
+
var urlSchemeRegex = /^.+(:|:)/gim;
|
|
37658
|
+
var relativeFirstCharacters = [".", "/"];
|
|
37659
|
+
function isRelativeUrlWithoutProtocol(url) {
|
|
37660
|
+
return relativeFirstCharacters.indexOf(url[0]) > -1;
|
|
37661
|
+
}
|
|
37662
|
+
function decodeHtmlCharacters(str) {
|
|
37663
|
+
return str.replace(htmlEntitiesRegex, function(match, dec) {
|
|
37664
|
+
return String.fromCharCode(dec);
|
|
37665
|
+
});
|
|
37666
|
+
}
|
|
37667
|
+
function sanitizeUrl(url) {
|
|
37668
|
+
var sanitizedUrl = decodeHtmlCharacters(url || "").replace(htmlCtrlEntityRegex, "").replace(ctrlCharactersRegex, "").trim();
|
|
37669
|
+
if (!sanitizedUrl) {
|
|
37670
|
+
return "about:blank";
|
|
37671
|
+
}
|
|
37672
|
+
if (isRelativeUrlWithoutProtocol(sanitizedUrl)) {
|
|
37673
|
+
return sanitizedUrl;
|
|
37674
|
+
}
|
|
37675
|
+
var urlSchemeParseResults = sanitizedUrl.match(urlSchemeRegex);
|
|
37676
|
+
if (!urlSchemeParseResults) {
|
|
37677
|
+
return sanitizedUrl;
|
|
37678
|
+
}
|
|
37679
|
+
var urlScheme = urlSchemeParseResults[0];
|
|
37680
|
+
if (invalidProtocolRegex.test(urlScheme)) {
|
|
37681
|
+
return "about:blank";
|
|
37682
|
+
}
|
|
37683
|
+
return sanitizedUrl;
|
|
37684
|
+
}
|
|
37685
|
+
sanitizeUrl_1 = dist.sanitizeUrl = sanitizeUrl;
|
|
37569
37686
|
const smartBtn = "_smartBtn_1112c_1";
|
|
37570
37687
|
const sm = "_sm_1112c_1";
|
|
37571
37688
|
const leftSection$1 = "_leftSection_1112c_18";
|
|
@@ -37658,15 +37775,23 @@ const _sfc_main$y = defineComponent({
|
|
|
37658
37775
|
onMounted(() => {
|
|
37659
37776
|
emit("mount");
|
|
37660
37777
|
});
|
|
37778
|
+
const redirectUrl = computed(() => {
|
|
37779
|
+
if ((props == null ? void 0 : props.url) && isValidUrl(props.url)) {
|
|
37780
|
+
const sanitizedUrl = sanitizeUrl_1(props.url);
|
|
37781
|
+
return sanitizedUrl !== "about:blank" ? sanitizedUrl : void 0;
|
|
37782
|
+
}
|
|
37783
|
+
return void 0;
|
|
37784
|
+
});
|
|
37661
37785
|
return {
|
|
37662
37786
|
onClick,
|
|
37663
37787
|
onError,
|
|
37664
37788
|
iconUrl,
|
|
37665
|
-
smallBtn
|
|
37789
|
+
smallBtn,
|
|
37790
|
+
redirectUrl
|
|
37666
37791
|
};
|
|
37667
37792
|
}
|
|
37668
37793
|
});
|
|
37669
|
-
const _hoisted_1$
|
|
37794
|
+
const _hoisted_1$f = ["href"];
|
|
37670
37795
|
const _hoisted_2$5 = ["src"];
|
|
37671
37796
|
const _hoisted_3$3 = ["src"];
|
|
37672
37797
|
function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -37684,7 +37809,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37684
37809
|
{ [_ctx.$style.shortText]: _ctx.isShortText }
|
|
37685
37810
|
]),
|
|
37686
37811
|
"data-testid": "smart-btn-container",
|
|
37687
|
-
href: _ctx.
|
|
37812
|
+
href: _ctx.redirectUrl,
|
|
37688
37813
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
37689
37814
|
}, [
|
|
37690
37815
|
createBaseVNode("span", {
|
|
@@ -37722,7 +37847,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37722
37847
|
alt: "",
|
|
37723
37848
|
onError: _cache[0] || (_cache[0] = (...args) => _ctx.onError && _ctx.onError(...args))
|
|
37724
37849
|
}, null, 42, _hoisted_3$3)) : createCommentVNode("", true)
|
|
37725
|
-
], 10, _hoisted_1$
|
|
37850
|
+
], 10, _hoisted_1$f)
|
|
37726
37851
|
], 2);
|
|
37727
37852
|
}
|
|
37728
37853
|
const cssModules$r = {};
|
|
@@ -37748,6 +37873,9 @@ const initSmartButton = (params, data2, preferredLanguage, isLoggedIn) => {
|
|
|
37748
37873
|
}).catch(() => {
|
|
37749
37874
|
});
|
|
37750
37875
|
};
|
|
37876
|
+
const shouldImmediateExecutePayment = (smartButtonParams2) => {
|
|
37877
|
+
return smartButtonParams2.type === "pay" && isLoggedIn && (smartButtonParams2 == null ? void 0 : smartButtonParams2.autoInvoke) && OTTLoginState.isJustLoggedIn;
|
|
37878
|
+
};
|
|
37751
37879
|
const app = createApp({
|
|
37752
37880
|
setup() {
|
|
37753
37881
|
return () => h(AppVue, {
|
|
@@ -37771,7 +37899,7 @@ const initSmartButton = (params, data2, preferredLanguage, isLoggedIn) => {
|
|
|
37771
37899
|
}
|
|
37772
37900
|
},
|
|
37773
37901
|
onMount: () => {
|
|
37774
|
-
if (
|
|
37902
|
+
if (shouldImmediateExecutePayment(smartButtonParams)) {
|
|
37775
37903
|
triggerPayment();
|
|
37776
37904
|
}
|
|
37777
37905
|
}
|
|
@@ -37828,12 +37956,13 @@ async function getExpectedCashbackInfo(orderInfo) {
|
|
|
37828
37956
|
storeId: orderInfo == null ? void 0 : orderInfo.storeId,
|
|
37829
37957
|
merchantPaymentId: orderInfo == null ? void 0 : orderInfo.merchantPaymentId
|
|
37830
37958
|
};
|
|
37831
|
-
|
|
37959
|
+
const resp = await ppFetch2({
|
|
37832
37960
|
method: "POST",
|
|
37833
37961
|
url: "web-api/app/v1/smartpayment/cashback/expected",
|
|
37834
37962
|
params: query,
|
|
37835
37963
|
data: body2
|
|
37836
37964
|
});
|
|
37965
|
+
return resp;
|
|
37837
37966
|
}
|
|
37838
37967
|
function createCashbackInfo(cashbackResponse) {
|
|
37839
37968
|
var _a2, _b;
|
|
@@ -37965,6 +38094,22 @@ const userProfileFormValidationTypes = [
|
|
|
37965
38094
|
"NUMBER"
|
|
37966
38095
|
];
|
|
37967
38096
|
const lg = getLanguage();
|
|
38097
|
+
const getStringConvertedHalfWidth = (value2, spaceFullWidth, spaceHalfWidth) => {
|
|
38098
|
+
let newValue = "";
|
|
38099
|
+
for (const char of value2) {
|
|
38100
|
+
const code = char.charCodeAt(0);
|
|
38101
|
+
if (65313 <= code && code <= 65338) {
|
|
38102
|
+
newValue += String.fromCharCode(code - 65313 + 65);
|
|
38103
|
+
} else if (65345 <= code && code <= 65370) {
|
|
38104
|
+
newValue += String.fromCharCode(code - 65345 + 97);
|
|
38105
|
+
} else if (char === spaceFullWidth) {
|
|
38106
|
+
newValue += spaceHalfWidth;
|
|
38107
|
+
} else {
|
|
38108
|
+
newValue += char;
|
|
38109
|
+
}
|
|
38110
|
+
}
|
|
38111
|
+
return newValue;
|
|
38112
|
+
};
|
|
37968
38113
|
const validators = {
|
|
37969
38114
|
KATA_KANA: (value2) => {
|
|
37970
38115
|
if (value2.length > 16) {
|
|
@@ -37999,20 +38144,12 @@ const validators = {
|
|
|
37999
38144
|
}
|
|
38000
38145
|
let spaceFullWidth = "\u3000";
|
|
38001
38146
|
let spaceHalfWidth = " ";
|
|
38002
|
-
if (
|
|
38003
|
-
let newValue =
|
|
38004
|
-
|
|
38005
|
-
|
|
38006
|
-
|
|
38007
|
-
|
|
38008
|
-
} else if (65345 <= code && code <= 65370) {
|
|
38009
|
-
newValue += String.fromCharCode(code - 65345 + 97);
|
|
38010
|
-
} else if (char === spaceFullWidth) {
|
|
38011
|
-
newValue += spaceHalfWidth;
|
|
38012
|
-
} else {
|
|
38013
|
-
newValue += char;
|
|
38014
|
-
}
|
|
38015
|
-
}
|
|
38147
|
+
if (isAlphabet(value2)) {
|
|
38148
|
+
let newValue = getStringConvertedHalfWidth(
|
|
38149
|
+
value2,
|
|
38150
|
+
spaceFullWidth,
|
|
38151
|
+
spaceHalfWidth
|
|
38152
|
+
);
|
|
38016
38153
|
if (newValue.length > 0) {
|
|
38017
38154
|
newValue = newValue.toLowerCase().replace(/^(.)|\s+(.)/g, (c) => c.toUpperCase());
|
|
38018
38155
|
}
|
|
@@ -38280,13 +38417,11 @@ const useRegisterUserInfoStore = defineStore("registerUserInfo", {
|
|
|
38280
38417
|
},
|
|
38281
38418
|
getEmailStatus() {
|
|
38282
38419
|
getUserProfileDataV2().then((resp) => {
|
|
38283
|
-
|
|
38284
|
-
|
|
38285
|
-
|
|
38286
|
-
|
|
38287
|
-
|
|
38288
|
-
default:
|
|
38289
|
-
throw new Error();
|
|
38420
|
+
if (resp.ppFetchResult === "success") {
|
|
38421
|
+
this.email = resp.body.unsigned.data.email || null;
|
|
38422
|
+
this.emailStatus = resp.body.unsigned.data.emailStatus || null;
|
|
38423
|
+
} else {
|
|
38424
|
+
throw new Error();
|
|
38290
38425
|
}
|
|
38291
38426
|
}).catch(() => {
|
|
38292
38427
|
const lg2 = getLanguage();
|
|
@@ -38537,7 +38672,7 @@ const _sfc_main$v = defineComponent({
|
|
|
38537
38672
|
};
|
|
38538
38673
|
}
|
|
38539
38674
|
});
|
|
38540
|
-
const _hoisted_1$
|
|
38675
|
+
const _hoisted_1$e = ["type", "pattern", "inputmode", "placeholder"];
|
|
38541
38676
|
const _hoisted_2$4 = ["src"];
|
|
38542
38677
|
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
38543
38678
|
return openBlock(), createElementBlock("div", {
|
|
@@ -38557,7 +38692,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38557
38692
|
class: normalizeClass(_ctx.$style.input),
|
|
38558
38693
|
onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
|
|
38559
38694
|
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
|
|
38560
|
-
}, null, 42, _hoisted_1$
|
|
38695
|
+
}, null, 42, _hoisted_1$e), [
|
|
38561
38696
|
[vModelDynamic, _ctx.state.value]
|
|
38562
38697
|
]),
|
|
38563
38698
|
withDirectives(createBaseVNode("button", {
|
|
@@ -38565,7 +38700,8 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38565
38700
|
onMousedown: _cache[3] || (_cache[3] = (...args) => _ctx.onClear && _ctx.onClear(...args))
|
|
38566
38701
|
}, [
|
|
38567
38702
|
createBaseVNode("img", {
|
|
38568
|
-
src: _ctx.images.iconInputClear
|
|
38703
|
+
src: _ctx.images.iconInputClear,
|
|
38704
|
+
alt: "\u30AF\u30EA\u30A2"
|
|
38569
38705
|
}, null, 8, _hoisted_2$4)
|
|
38570
38706
|
], 34), [
|
|
38571
38707
|
[vShow, _ctx.showsClearButton]
|
|
@@ -38613,7 +38749,7 @@ const _sfc_main$u = defineComponent({
|
|
|
38613
38749
|
};
|
|
38614
38750
|
}
|
|
38615
38751
|
});
|
|
38616
|
-
const _hoisted_1$
|
|
38752
|
+
const _hoisted_1$d = ["onClick"];
|
|
38617
38753
|
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
38618
38754
|
return openBlock(), createElementBlock("div", {
|
|
38619
38755
|
class: normalizeClass(_ctx.$style.container)
|
|
@@ -38626,7 +38762,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38626
38762
|
[_ctx.$style.selected]: button4 === _ctx.selectedValue
|
|
38627
38763
|
}),
|
|
38628
38764
|
onClick: ($event) => _ctx.onClick(button4)
|
|
38629
|
-
}, toDisplayString(button4), 11, _hoisted_1$
|
|
38765
|
+
}, toDisplayString(button4), 11, _hoisted_1$d);
|
|
38630
38766
|
}), 128))
|
|
38631
38767
|
], 2);
|
|
38632
38768
|
}
|
|
@@ -38712,7 +38848,7 @@ const _sfc_main$t = defineComponent({
|
|
|
38712
38848
|
};
|
|
38713
38849
|
}
|
|
38714
38850
|
});
|
|
38715
|
-
const _hoisted_1$
|
|
38851
|
+
const _hoisted_1$c = ["src"];
|
|
38716
38852
|
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
38717
38853
|
return openBlock(), createElementBlock("div", {
|
|
38718
38854
|
class: normalizeClass(_ctx.$style.container)
|
|
@@ -38738,8 +38874,9 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38738
38874
|
}, toDisplayString(_ctx.lg.registerUserInfo.change), 3)) : createCommentVNode("", true),
|
|
38739
38875
|
createBaseVNode("img", {
|
|
38740
38876
|
class: normalizeClass(_ctx.$style.icon),
|
|
38741
|
-
src: _ctx.images.iconRightArrowGray
|
|
38742
|
-
|
|
38877
|
+
src: _ctx.images.iconRightArrowGray,
|
|
38878
|
+
alt: ">"
|
|
38879
|
+
}, null, 10, _hoisted_1$c)
|
|
38743
38880
|
], 2),
|
|
38744
38881
|
_ctx.notVerified ? (openBlock(), createElementBlock("div", {
|
|
38745
38882
|
key: 0,
|
|
@@ -39059,7 +39196,7 @@ const _sfc_main$p = defineComponent({
|
|
|
39059
39196
|
};
|
|
39060
39197
|
}
|
|
39061
39198
|
});
|
|
39062
|
-
const _hoisted_1$
|
|
39199
|
+
const _hoisted_1$b = ["src"];
|
|
39063
39200
|
function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
39064
39201
|
const _component_RegisterUserInfoProgressView = resolveComponent("RegisterUserInfoProgressView");
|
|
39065
39202
|
const _component_RegisterUserInfoUneditableDataView = resolveComponent("RegisterUserInfoUneditableDataView");
|
|
@@ -39085,8 +39222,9 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39085
39222
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.store.showKycInfoSheet && _ctx.store.showKycInfoSheet(...args))
|
|
39086
39223
|
}, [
|
|
39087
39224
|
createBaseVNode("img", {
|
|
39088
|
-
src: _ctx.images.iconPen
|
|
39089
|
-
|
|
39225
|
+
src: _ctx.images.iconPen,
|
|
39226
|
+
alt: "\u30DA\u30F3\u30A2\u30A4\u30B3\u30F3"
|
|
39227
|
+
}, null, 8, _hoisted_1$b)
|
|
39090
39228
|
])
|
|
39091
39229
|
], 2),
|
|
39092
39230
|
createVNode(_component_RegisterUserInfoUneditableDataView, { "data-point-groups": _ctx.kycDataPointGroups }, null, 8, ["data-point-groups"])
|
|
@@ -39154,7 +39292,7 @@ const _sfc_main$o = defineComponent({
|
|
|
39154
39292
|
};
|
|
39155
39293
|
}
|
|
39156
39294
|
});
|
|
39157
|
-
const _hoisted_1$
|
|
39295
|
+
const _hoisted_1$a = ["disabled"];
|
|
39158
39296
|
const _hoisted_2$3 = ["disabled"];
|
|
39159
39297
|
const _hoisted_3$2 = ["disabled"];
|
|
39160
39298
|
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -39173,7 +39311,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39173
39311
|
class: normalizeClass(_ctx.$style.back),
|
|
39174
39312
|
disabled: _ctx.store.ui.isSavingData,
|
|
39175
39313
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.store.onBackButton && _ctx.store.onBackButton(...args))
|
|
39176
|
-
}, toDisplayString(_ctx.lg.registerUserInfo.footer.backButton), 11, _hoisted_1$
|
|
39314
|
+
}, toDisplayString(_ctx.lg.registerUserInfo.footer.backButton), 11, _hoisted_1$a)) : createCommentVNode("", true),
|
|
39177
39315
|
createBaseVNode("button", {
|
|
39178
39316
|
class: normalizeClass(_ctx.$style.next),
|
|
39179
39317
|
disabled: _ctx.store.shouldDisableSaveButton,
|
|
@@ -39576,7 +39714,7 @@ const _sfc_main$i = defineComponent({
|
|
|
39576
39714
|
};
|
|
39577
39715
|
}
|
|
39578
39716
|
});
|
|
39579
|
-
const _hoisted_1$
|
|
39717
|
+
const _hoisted_1$9 = ["src"];
|
|
39580
39718
|
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
39581
39719
|
return openBlock(), createElementBlock("div", {
|
|
39582
39720
|
class: normalizeClass([_ctx.$style.wrapperClass, _ctx.$style.paymentMethodContainer])
|
|
@@ -39586,8 +39724,9 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39586
39724
|
}, [
|
|
39587
39725
|
createBaseVNode("img", {
|
|
39588
39726
|
class: normalizeClass(_ctx.$style.img),
|
|
39589
|
-
src: _ctx.payoutInfo.logo
|
|
39590
|
-
|
|
39727
|
+
src: _ctx.payoutInfo.logo,
|
|
39728
|
+
alt: ""
|
|
39729
|
+
}, null, 10, _hoisted_1$9)
|
|
39591
39730
|
], 2),
|
|
39592
39731
|
createBaseVNode("div", {
|
|
39593
39732
|
class: normalizeClass(_ctx.$style.label)
|
|
@@ -39653,18 +39792,21 @@ const _sfc_main$h = defineComponent({
|
|
|
39653
39792
|
};
|
|
39654
39793
|
}
|
|
39655
39794
|
});
|
|
39795
|
+
const _hoisted_1$8 = ["aria-selected"];
|
|
39656
39796
|
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
39657
39797
|
const _component_PayoutMethodView = resolveComponent("PayoutMethodView");
|
|
39658
39798
|
return openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.payoutMethods, (payoutMethod, index2) => {
|
|
39659
39799
|
return openBlock(), createElementBlock("div", {
|
|
39660
39800
|
key: payoutMethod.payoutMethodId,
|
|
39801
|
+
role: "option",
|
|
39802
|
+
"aria-selected": index2 === _ctx.selectedPayoutIndex,
|
|
39661
39803
|
class: normalizeClass(_ctx.$style.methodItem)
|
|
39662
39804
|
}, [
|
|
39663
39805
|
createBaseVNode("div", {
|
|
39664
39806
|
class: normalizeClass(_ctx.$style.iconContainer)
|
|
39665
39807
|
}, [
|
|
39666
39808
|
createBaseVNode("div", null, [
|
|
39667
|
-
createBaseVNode("
|
|
39809
|
+
createBaseVNode("em", {
|
|
39668
39810
|
class: normalizeClass({
|
|
39669
39811
|
[_ctx.$style.iconHidden]: index2 !== _ctx.selectedPayoutIndex,
|
|
39670
39812
|
[_ctx.$style.iconGreenTick]: true
|
|
@@ -39677,7 +39819,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39677
39819
|
"payout-method": payoutMethod,
|
|
39678
39820
|
onClick: ($event) => _ctx.handleClick(index2)
|
|
39679
39821
|
}, null, 8, ["payout-method", "onClick"])
|
|
39680
|
-
],
|
|
39822
|
+
], 10, _hoisted_1$8);
|
|
39681
39823
|
}), 128);
|
|
39682
39824
|
}
|
|
39683
39825
|
const cssModules$e = {};
|
|
@@ -39737,7 +39879,7 @@ const _sfc_main$g = defineComponent({
|
|
|
39737
39879
|
};
|
|
39738
39880
|
const noPayoutMethod = computed(() => {
|
|
39739
39881
|
var _a2;
|
|
39740
|
-
return !((
|
|
39882
|
+
return !props.payoutMethods || ((_a2 = props.payoutMethods) == null ? void 0 : _a2.length) === 0;
|
|
39741
39883
|
});
|
|
39742
39884
|
return {
|
|
39743
39885
|
lg: lg2,
|
|
@@ -39780,6 +39922,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39780
39922
|
}), 64))
|
|
39781
39923
|
], 2)) : withDirectives((openBlock(), createElementBlock("div", {
|
|
39782
39924
|
key: 1,
|
|
39925
|
+
role: "listbox",
|
|
39783
39926
|
class: normalizeClass([_ctx.$style.content, _ctx.$style.contentHeight])
|
|
39784
39927
|
}, [
|
|
39785
39928
|
createVNode(_component_PayoutMethodList, {
|
|
@@ -39948,9 +40091,9 @@ function getBankInfo(params) {
|
|
|
39948
40091
|
if (complete) {
|
|
39949
40092
|
params.complete = createWrapComplete(complete);
|
|
39950
40093
|
}
|
|
39951
|
-
execute$
|
|
40094
|
+
execute$2(params);
|
|
39952
40095
|
}
|
|
39953
|
-
function execute$
|
|
40096
|
+
function execute$2(params) {
|
|
39954
40097
|
var _a2, _b;
|
|
39955
40098
|
try {
|
|
39956
40099
|
const container2 = document.createElement("div");
|
|
@@ -40231,19 +40374,16 @@ const useRegisterPaymentFeaturesStore = defineStore(
|
|
|
40231
40374
|
return true;
|
|
40232
40375
|
},
|
|
40233
40376
|
handleErrorResponse(response) {
|
|
40234
|
-
|
|
40235
|
-
|
|
40236
|
-
|
|
40237
|
-
|
|
40238
|
-
|
|
40239
|
-
|
|
40240
|
-
|
|
40241
|
-
|
|
40242
|
-
|
|
40243
|
-
|
|
40244
|
-
errorCode: MiniAppErrorType.serverError
|
|
40245
|
-
};
|
|
40246
|
-
return;
|
|
40377
|
+
if (response.ppFetchResult === "timeout") {
|
|
40378
|
+
this.result = {
|
|
40379
|
+
type: "fail",
|
|
40380
|
+
errorCode: MiniAppErrorType.timeOut
|
|
40381
|
+
};
|
|
40382
|
+
} else {
|
|
40383
|
+
this.result = {
|
|
40384
|
+
type: "fail",
|
|
40385
|
+
errorCode: MiniAppErrorType.serverError
|
|
40386
|
+
};
|
|
40247
40387
|
}
|
|
40248
40388
|
},
|
|
40249
40389
|
async setAutoTopupConfiguration() {
|
|
@@ -40725,11 +40865,13 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40725
40865
|
}, [
|
|
40726
40866
|
createVNode(_component_Bank, {
|
|
40727
40867
|
bank: _ctx.bankMethod,
|
|
40728
|
-
round: ""
|
|
40868
|
+
round: "",
|
|
40869
|
+
"ignore-bank-maintenance-flag": ""
|
|
40729
40870
|
}, null, 8, ["bank"]),
|
|
40730
40871
|
createBaseVNode("img", {
|
|
40731
40872
|
class: normalizeClass(_ctx.$style.icon),
|
|
40732
|
-
src: _ctx.images.iconRightArrowGray
|
|
40873
|
+
src: _ctx.images.iconRightArrowGray,
|
|
40874
|
+
alt: ">"
|
|
40733
40875
|
}, null, 10, _hoisted_1$7)
|
|
40734
40876
|
], 2)) : createCommentVNode("", true),
|
|
40735
40877
|
_ctx.creditMethod ? (openBlock(), createElementBlock("div", {
|
|
@@ -40743,7 +40885,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40743
40885
|
createVNode(_component_CreditCard, { credit: _ctx.creditMethod }, null, 8, ["credit"]),
|
|
40744
40886
|
createBaseVNode("img", {
|
|
40745
40887
|
class: normalizeClass(_ctx.$style.icon),
|
|
40746
|
-
src: _ctx.images.iconRightArrowGray
|
|
40888
|
+
src: _ctx.images.iconRightArrowGray,
|
|
40889
|
+
alt: ">"
|
|
40747
40890
|
}, null, 10, _hoisted_2$2)
|
|
40748
40891
|
], 2)) : createCommentVNode("", true),
|
|
40749
40892
|
_ctx.sbidMethod ? (openBlock(), createElementBlock("div", {
|
|
@@ -40757,7 +40900,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40757
40900
|
createVNode(_component_SbidBank, { sbid: _ctx.sbidMethod }, null, 8, ["sbid"]),
|
|
40758
40901
|
createBaseVNode("img", {
|
|
40759
40902
|
class: normalizeClass(_ctx.$style.icon),
|
|
40760
|
-
src: _ctx.images.iconRightArrowGray
|
|
40903
|
+
src: _ctx.images.iconRightArrowGray,
|
|
40904
|
+
alt: ">"
|
|
40761
40905
|
}, null, 10, _hoisted_3$1)
|
|
40762
40906
|
], 2)) : createCommentVNode("", true),
|
|
40763
40907
|
_ctx.payLaterCcMethod ? (openBlock(), createElementBlock("div", {
|
|
@@ -40771,7 +40915,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40771
40915
|
createVNode(_component_PayLaterCC, { "pay-later": _ctx.payLaterCcMethod }, null, 8, ["pay-later"]),
|
|
40772
40916
|
createBaseVNode("img", {
|
|
40773
40917
|
class: normalizeClass(_ctx.$style.icon),
|
|
40774
|
-
src: _ctx.images.iconRightArrowGray
|
|
40918
|
+
src: _ctx.images.iconRightArrowGray,
|
|
40919
|
+
alt: ">"
|
|
40775
40920
|
}, null, 10, _hoisted_4)
|
|
40776
40921
|
], 2)) : createCommentVNode("", true)
|
|
40777
40922
|
])) : (openBlock(), createElementBlock("div", {
|
|
@@ -40786,7 +40931,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40786
40931
|
createBaseVNode("img", {
|
|
40787
40932
|
class: normalizeClass(_ctx.$style.bankIcon),
|
|
40788
40933
|
src: _ctx.images.bankIcon,
|
|
40789
|
-
alt: ""
|
|
40934
|
+
alt: "\u9280\u884C\u30A2\u30A4\u30B3\u30F3"
|
|
40790
40935
|
}, null, 10, _hoisted_5)
|
|
40791
40936
|
], 2),
|
|
40792
40937
|
createBaseVNode("div", null, [
|
|
@@ -40802,7 +40947,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40802
40947
|
]),
|
|
40803
40948
|
createBaseVNode("img", {
|
|
40804
40949
|
class: normalizeClass(_ctx.$style.icon),
|
|
40805
|
-
src: _ctx.images.iconArrowRightBlue
|
|
40950
|
+
src: _ctx.images.iconArrowRightBlue,
|
|
40951
|
+
alt: ">"
|
|
40806
40952
|
}, null, 10, _hoisted_8)
|
|
40807
40953
|
], 2))
|
|
40808
40954
|
]);
|
|
@@ -40932,7 +41078,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40932
41078
|
createBaseVNode("img", {
|
|
40933
41079
|
class: normalizeClass(_ctx.$style.icon),
|
|
40934
41080
|
src: _ctx.images.iconTopupSetup,
|
|
40935
|
-
alt: ""
|
|
41081
|
+
alt: "\u30C1\u30E3\u30FC\u30B8"
|
|
40936
41082
|
}, null, 10, _hoisted_1$6),
|
|
40937
41083
|
createBaseVNode("h1", {
|
|
40938
41084
|
class: normalizeClass(_ctx.$style.title),
|
|
@@ -40975,7 +41121,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40975
41121
|
], 2),
|
|
40976
41122
|
createBaseVNode("img", {
|
|
40977
41123
|
class: normalizeClass(_ctx.$style.icon),
|
|
40978
|
-
src: _ctx.images.iconRightArrowGray
|
|
41124
|
+
src: _ctx.images.iconRightArrowGray,
|
|
41125
|
+
alt: ">"
|
|
40979
41126
|
}, null, 10, _hoisted_2$1)
|
|
40980
41127
|
], 2)
|
|
40981
41128
|
], 2)
|
|
@@ -41083,7 +41230,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41083
41230
|
createBaseVNode("img", {
|
|
41084
41231
|
class: normalizeClass(_ctx.$style.icon),
|
|
41085
41232
|
src: _ctx.images.iconExitMiniApp,
|
|
41086
|
-
alt: ""
|
|
41233
|
+
alt: "!"
|
|
41087
41234
|
}, null, 10, _hoisted_1$5),
|
|
41088
41235
|
createBaseVNode("h1", {
|
|
41089
41236
|
class: normalizeClass(_ctx.$style.title)
|
|
@@ -41308,6 +41455,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41308
41455
|
"payment-methods": _ctx.paymentMethodsList,
|
|
41309
41456
|
"select-index": _ctx.selectIndex,
|
|
41310
41457
|
"is-topup": true,
|
|
41458
|
+
"ignore-bank-maintenance-flag": "",
|
|
41311
41459
|
onSelectPaymentMethod: _ctx.selectPaymentList
|
|
41312
41460
|
}, null, 8, ["class", "payment-methods", "select-index", "onSelectPaymentMethod"])
|
|
41313
41461
|
]),
|
|
@@ -41364,7 +41512,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41364
41512
|
}, [
|
|
41365
41513
|
createBaseVNode("img", {
|
|
41366
41514
|
src: _ctx.images.iconTopupSuccess,
|
|
41367
|
-
alt: ""
|
|
41515
|
+
alt: "\u5B8C\u4E86"
|
|
41368
41516
|
}, null, 8, _hoisted_1$3),
|
|
41369
41517
|
createBaseVNode("h1", {
|
|
41370
41518
|
class: normalizeClass(_ctx.$style.title)
|
|
@@ -41496,7 +41644,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41496
41644
|
createBaseVNode("img", {
|
|
41497
41645
|
class: normalizeClass(_ctx.$style.icon),
|
|
41498
41646
|
src: _ctx.images.iconExitMiniApp,
|
|
41499
|
-
alt: ""
|
|
41647
|
+
alt: "!"
|
|
41500
41648
|
}, null, 10, _hoisted_1$2),
|
|
41501
41649
|
createBaseVNode("h1", {
|
|
41502
41650
|
class: normalizeClass(_ctx.$style.title)
|
|
@@ -41598,7 +41746,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41598
41746
|
createBaseVNode("img", {
|
|
41599
41747
|
class: normalizeClass(_ctx.$style.icon),
|
|
41600
41748
|
src: _ctx.images.iconTopupNotice,
|
|
41601
|
-
alt: ""
|
|
41749
|
+
alt: "!"
|
|
41602
41750
|
}, null, 10, _hoisted_1$1),
|
|
41603
41751
|
createBaseVNode("h1", {
|
|
41604
41752
|
class: normalizeClass(_ctx.$style.title)
|
|
@@ -41871,7 +42019,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41871
42019
|
}, [
|
|
41872
42020
|
createBaseVNode("img", {
|
|
41873
42021
|
src: _ctx.images.iconAppUpdate,
|
|
41874
|
-
class: normalizeClass(_ctx.$style.icon)
|
|
42022
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
42023
|
+
alt: "\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8"
|
|
41875
42024
|
}, null, 10, _hoisted_1),
|
|
41876
42025
|
createBaseVNode("span", {
|
|
41877
42026
|
class: normalizeClass(_ctx.$style.description),
|
|
@@ -42022,9 +42171,9 @@ function triggerFailCallback(params, errorCode) {
|
|
|
42022
42171
|
}
|
|
42023
42172
|
async function getCashbackInformation(params) {
|
|
42024
42173
|
const newParams = reconstructParams(params);
|
|
42025
|
-
await execute(newParams);
|
|
42174
|
+
await execute$1(newParams);
|
|
42026
42175
|
}
|
|
42027
|
-
async function execute(params) {
|
|
42176
|
+
async function execute$1(params) {
|
|
42028
42177
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
42029
42178
|
try {
|
|
42030
42179
|
if (!(params == null ? void 0 : params.merchantPaymentId)) {
|
|
@@ -42058,6 +42207,46 @@ async function execute(params) {
|
|
|
42058
42207
|
return (_k = params == null ? void 0 : params.fail) == null ? void 0 : _k.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
42059
42208
|
}
|
|
42060
42209
|
}
|
|
42210
|
+
async function getUserPaymentFeatureSettings(params) {
|
|
42211
|
+
const newParams = reconstructParams(params);
|
|
42212
|
+
await execute(newParams);
|
|
42213
|
+
}
|
|
42214
|
+
async function execute(params) {
|
|
42215
|
+
var _a2, _b, _c, _d, _e;
|
|
42216
|
+
try {
|
|
42217
|
+
const grantStatus = await checkPermission(
|
|
42218
|
+
PermissionName.mini_app_check_payment_method
|
|
42219
|
+
);
|
|
42220
|
+
if (grantStatus !== PermissionStatus.granted) {
|
|
42221
|
+
return (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.insufficientScope });
|
|
42222
|
+
}
|
|
42223
|
+
const res = await ppFetch2({
|
|
42224
|
+
method: "GET",
|
|
42225
|
+
url: "web-api/app/v1/users/paymentFeatureSettings",
|
|
42226
|
+
params: {
|
|
42227
|
+
merchantId: params == null ? void 0 : params.merchant,
|
|
42228
|
+
productType: params == null ? void 0 : params.productType,
|
|
42229
|
+
paymentFeatureType: params == null ? void 0 : params.type
|
|
42230
|
+
}
|
|
42231
|
+
});
|
|
42232
|
+
if (res.ppFetchResult !== "success") {
|
|
42233
|
+
(_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, {
|
|
42234
|
+
errorCode: getFailErrorCode(res.ppFetchResult)
|
|
42235
|
+
});
|
|
42236
|
+
return;
|
|
42237
|
+
}
|
|
42238
|
+
const userPaymentFeatureSettings = res.body.unsigned.data;
|
|
42239
|
+
let paymentFeatures = {};
|
|
42240
|
+
(_c = Object.entries(userPaymentFeatureSettings)) == null ? void 0 : _c.forEach(([key2, value2]) => {
|
|
42241
|
+
paymentFeatures[key2.toUpperCase()] = value2 ? "AVAILABLE" : "UNAVAILABLE";
|
|
42242
|
+
});
|
|
42243
|
+
(_d = params == null ? void 0 : params.success) == null ? void 0 : _d.call(params, {
|
|
42244
|
+
paymentFeatures
|
|
42245
|
+
});
|
|
42246
|
+
} catch {
|
|
42247
|
+
return (_e = params == null ? void 0 : params.fail) == null ? void 0 : _e.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
42248
|
+
}
|
|
42249
|
+
}
|
|
42061
42250
|
class MiniAppModule extends JsBridgeModule {
|
|
42062
42251
|
constructor(jsBridge2) {
|
|
42063
42252
|
super();
|
|
@@ -42123,9 +42312,6 @@ class MiniAppModule extends JsBridgeModule {
|
|
|
42123
42312
|
});
|
|
42124
42313
|
}
|
|
42125
42314
|
createOrder(params) {
|
|
42126
|
-
if (!this.isExecutableService(params)) {
|
|
42127
|
-
return;
|
|
42128
|
-
}
|
|
42129
42315
|
makePayment(params).catch(() => {
|
|
42130
42316
|
});
|
|
42131
42317
|
}
|
|
@@ -42252,6 +42438,10 @@ class MiniAppModule extends JsBridgeModule {
|
|
|
42252
42438
|
registerPaymentFeatures(params) {
|
|
42253
42439
|
registerPaymentFeatures(params);
|
|
42254
42440
|
}
|
|
42441
|
+
getUserPaymentFeatureSettings(params) {
|
|
42442
|
+
getUserPaymentFeatureSettings(params).catch(() => {
|
|
42443
|
+
});
|
|
42444
|
+
}
|
|
42255
42445
|
}
|
|
42256
42446
|
class PayPayJsBridge extends PayPayJsBridgeBase {
|
|
42257
42447
|
}
|