@paypay/mini-app-js-sdk 1.26.0 → 1.29.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/composition-api/useRegisterEmail.d.ts +1 -1
- package/dist/jsbridge-core/jsbridge.d.ts +10 -10
- package/dist/jsbridge-core/lib/reconstructParams.d.ts +2 -1
- package/dist/jsbridge-core/module.d.ts +1 -3
- package/dist/jsbridge-core/paypay-jsbridge.d.ts +2 -3
- package/dist/mini-app-api.d.ts +15 -14
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +505 -304
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/checkAccessToken.d.ts +2 -2
- package/dist/model/bridge/debug.d.ts +2 -2
- package/dist/model/bridge/getAuthStatus.d.ts +2 -2
- package/dist/model/bridge/getDeviceInformation.d.ts +2 -2
- package/dist/model/bridge/getPlatformInformation.d.ts +1 -1
- package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
- package/dist/model/bridge/getUAID.d.ts +2 -2
- package/dist/model/bridge/getUserProfile.d.ts +2 -2
- package/dist/model/bridge/index.d.ts +1 -0
- package/dist/model/bridge/logout.d.ts +2 -2
- package/dist/model/bridge/openMiniApp.d.ts +2 -0
- package/dist/model/bridge/registerEmail.d.ts +1 -1
- package/dist/model/bridge/removeStorageData.d.ts +2 -2
- package/dist/model/bridge/scanCode.d.ts +1 -1
- package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +2 -2
- package/dist/model/makePayment.d.ts +2 -0
- package/dist/package/payment-method/PayLaterCC.vue.d.ts +291 -0
- package/dist/package/payment-method/SbidBank.vue.d.ts +5 -0
- package/dist/package/payment-method/Wallet.vue.d.ts +5 -1
- package/dist/package/payment-type/PayLaterCC.vue.d.ts +289 -0
- package/dist/package/payment-type/Sbid.vue.d.ts +5 -0
- package/dist/package/payment-type/Wallet.vue.d.ts +5 -0
- package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +6 -0
- package/dist/types.d.ts +36 -31
- package/dist/utils/getImages.d.ts +1 -0
- package/dist/utils/getLanguage.d.ts +4 -0
- package/dist/utils/helper.d.ts +1 -0
- package/dist/views/email-registration/App.vue.d.ts +7 -3
- package/dist/views/email-registration/hooks/callback.d.ts +1 -1
- package/dist/views/error-sheet/Index.vue.d.ts +5 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +5 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +4 -0
- package/dist/views/make-payment/Main.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +6 -0
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +12 -0
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +5 -0
- package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +5 -0
- package/dist/views/make-payment/hooks/app-hooks.d.ts +5 -0
- package/dist/views/open-app/App.vue.d.ts +5 -0
- package/dist/views/open-map/App.vue.d.ts +4 -0
- package/dist/views/show-update-warning/App.vue.d.ts +5 -0
- package/dist/views/smart-button/App.vue.d.ts +2 -2
- package/dist/views/take-photo/App.vue.d.ts +4 -0
- package/dist/views/topup/App.vue.d.ts +6 -1
- package/dist/views/topup/CashbackInfo.vue.d.ts +4 -0
- package/dist/views/topup/TopupCompletion.vue.d.ts +5 -0
- package/package.json +1 -1
- package/dist/utils/common.d.ts +0 -2
|
@@ -65,7 +65,8 @@ function normalizeNativeResponseData(data2) {
|
|
|
65
65
|
}
|
|
66
66
|
class JsBridge {
|
|
67
67
|
constructor(global2) {
|
|
68
|
-
this.version = "1.
|
|
68
|
+
this.version = "1.29.0";
|
|
69
|
+
this.revision = "c280ce6";
|
|
69
70
|
this.messageHandlers = new Map();
|
|
70
71
|
this.responseCallbacks = new Map();
|
|
71
72
|
this.global = global2;
|
|
@@ -958,7 +959,7 @@ const birthdayConfirm$1 = {
|
|
|
958
959
|
const birthdayConfirmError$1 = {
|
|
959
960
|
title: "\u3053\u306E\u30AD\u30E3\u30F3\u30DA\u30FC\u30F3\u3067\u5F53\u9078\u3057\u305F",
|
|
960
961
|
title2: "PayPay\u6B8B\u9AD8\u306F\u7372\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",
|
|
961
|
-
desc: "\u8868\u793A\u3055\u308C\u3066\u3044\u308B\u7372\u5F97\
|
|
962
|
+
desc: "\u8868\u793A\u3055\u308C\u3066\u3044\u308B\u7372\u5F97\u30DD\u30A4\u30F3\u30C8\u984D\u306F\u3001",
|
|
962
963
|
desc2: "\u30AD\u30E3\u30F3\u30DA\u30FC\u30F3\u898F\u7D04\u306B\u57FA\u3065\u304D\u5F8C\u65E5\u53D6\u308A\u6D88\u3057\u307E\u3059",
|
|
963
964
|
helpBtn: "\u30D8\u30EB\u30D7\u30DA\u30FC\u30B8\u3092\u78BA\u8A8D",
|
|
964
965
|
closeBtn: "\u9589\u3058\u308B"
|
|
@@ -1068,8 +1069,12 @@ const wallet$1 = {
|
|
|
1068
1069
|
desc: "\u5185\u8A33\u3092\u898B\u308B",
|
|
1069
1070
|
eMoney: "PayPay\u30DE\u30CD\u30FC",
|
|
1070
1071
|
nonUsable: "PayPay\u30DE\u30CD\u30FC\u30E9\u30A4\u30C8",
|
|
1071
|
-
cashBackUsable: "PayPay\
|
|
1072
|
-
cashBackExpirable: "PayPay\
|
|
1072
|
+
cashBackUsable: "PayPay\u30DD\u30A4\u30F3\u30C8",
|
|
1073
|
+
cashBackExpirable: "PayPay\u30DD\u30A4\u30F3\u30C8\u30E9\u30A4\u30C8",
|
|
1074
|
+
balance: "\u5229\u7528\u53EF\u80FD\u984D\uFF1A"
|
|
1075
|
+
};
|
|
1076
|
+
const payLater$2 = {
|
|
1077
|
+
title: "PayPay\u3042\u3068\u6255\u3044",
|
|
1073
1078
|
balance: "\u5229\u7528\u53EF\u80FD\u984D\uFF1A"
|
|
1074
1079
|
};
|
|
1075
1080
|
const softbank$2 = {
|
|
@@ -1131,6 +1136,7 @@ var ja = {
|
|
|
1131
1136
|
paymentMethod: paymentMethod$2,
|
|
1132
1137
|
paymentMethodStatus: paymentMethodStatus$1,
|
|
1133
1138
|
wallet: wallet$1,
|
|
1139
|
+
payLater: payLater$2,
|
|
1134
1140
|
softbank: softbank$2,
|
|
1135
1141
|
registerEmail: registerEmail$2,
|
|
1136
1142
|
smartLogin: smartLogin$1,
|
|
@@ -1161,6 +1167,7 @@ var ja$1 = /* @__PURE__ */ Object.freeze({
|
|
|
1161
1167
|
paymentMethod: paymentMethod$2,
|
|
1162
1168
|
paymentMethodStatus: paymentMethodStatus$1,
|
|
1163
1169
|
wallet: wallet$1,
|
|
1170
|
+
payLater: payLater$2,
|
|
1164
1171
|
softbank: softbank$2,
|
|
1165
1172
|
registerEmail: registerEmail$2,
|
|
1166
1173
|
smartLogin: smartLogin$1,
|
|
@@ -1325,7 +1332,7 @@ function trimExtraChar(value2, char, regExp) {
|
|
|
1325
1332
|
}
|
|
1326
1333
|
return value2.slice(0, index2 + 1) + value2.slice(index2).replace(regExp, "");
|
|
1327
1334
|
}
|
|
1328
|
-
function formatNumber
|
|
1335
|
+
function formatNumber(value2, options) {
|
|
1329
1336
|
if (options == null ? void 0 : options.allowDot) {
|
|
1330
1337
|
value2 = trimExtraChar(value2, ".", /\./g);
|
|
1331
1338
|
} else {
|
|
@@ -1342,6 +1349,9 @@ function formatNumber$3(value2, options) {
|
|
|
1342
1349
|
const numberWithCommas = (x = 0) => {
|
|
1343
1350
|
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
1344
1351
|
};
|
|
1352
|
+
function formatAmount(val2) {
|
|
1353
|
+
return (val2 == null ? void 0 : val2.toLocaleString()) || "-";
|
|
1354
|
+
}
|
|
1345
1355
|
function formatCurrency(val2, n) {
|
|
1346
1356
|
const re = `\\d(?=(\\d{3})+${n > 0 ? "\\." : "$"})`;
|
|
1347
1357
|
return val2 == null ? void 0 : val2.toFixed(Math.max(0, ~~n)).replace(new RegExp(re, "g"), "$&,");
|
|
@@ -1518,7 +1528,7 @@ const opaUrl = () => {
|
|
|
1518
1528
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
1519
1529
|
let headers = new Headers(__spreadValues({
|
|
1520
1530
|
"Content-Type": "application/json",
|
|
1521
|
-
"Client-Version": "1.
|
|
1531
|
+
"Client-Version": "1.29.0",
|
|
1522
1532
|
"Client-OS-Type": getRuntime()
|
|
1523
1533
|
}, customHeaders));
|
|
1524
1534
|
if (urlEndpoint === "web-api/app/v2/payment/methods" || urlEndpoint === "web-api/app/v2/payment/consult" || urlEndpoint === "web-api/app/v1/payment/cashbackDetail" || urlEndpoint === "web-api/app/v1/confirmAgeForCashback" || urlEndpoint === "web-api/app/v1/internal/request" || urlEndpoint === "web-api/app/v1/addressbyzip" || urlEndpoint === "/web-api/app/platform/v1/balance") {
|
|
@@ -1755,6 +1765,16 @@ function reconstructParams(params) {
|
|
|
1755
1765
|
}, 0);
|
|
1756
1766
|
};
|
|
1757
1767
|
}
|
|
1768
|
+
var MiniAppStatusType;
|
|
1769
|
+
(function(MiniAppStatusType2) {
|
|
1770
|
+
MiniAppStatusType2["validToken"] = "TOKEN_VALID";
|
|
1771
|
+
MiniAppStatusType2["initialized"] = "INITIALIZED";
|
|
1772
|
+
MiniAppStatusType2["emailRegistered"] = "EMAIL_REGISTERED";
|
|
1773
|
+
MiniAppStatusType2["emailNotVerified"] = "EMAIL_NOT_VERIFIED";
|
|
1774
|
+
MiniAppStatusType2["success"] = "SUCCESS";
|
|
1775
|
+
MiniAppStatusType2["loggedOut"] = "LOGGED_OUT";
|
|
1776
|
+
MiniAppStatusType2["connected"] = "CONNECTED";
|
|
1777
|
+
})(MiniAppStatusType || (MiniAppStatusType = {}));
|
|
1758
1778
|
function getUAID(params) {
|
|
1759
1779
|
reconstructParams(params);
|
|
1760
1780
|
execute$e(params).catch(() => {
|
|
@@ -1772,16 +1792,6 @@ async function execute$e(params) {
|
|
|
1772
1792
|
const userId = (_b = res == null ? void 0 : res.signed) == null ? void 0 : _b.jws;
|
|
1773
1793
|
(userId == null ? void 0 : userId.length) ? (_c = params == null ? void 0 : params.success) == null ? void 0 : _c.call(params, { jws: userId }) : (_d = params == null ? void 0 : params.fail) == null ? void 0 : _d.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
1774
1794
|
}
|
|
1775
|
-
var MiniAppStatusType;
|
|
1776
|
-
(function(MiniAppStatusType2) {
|
|
1777
|
-
MiniAppStatusType2["validToken"] = "TOKEN_VALID";
|
|
1778
|
-
MiniAppStatusType2["initialized"] = "INITIALIZED";
|
|
1779
|
-
MiniAppStatusType2["emailRegistered"] = "EMAIL_REGISTERED";
|
|
1780
|
-
MiniAppStatusType2["emailNotVerified"] = "EMAIL_NOT_VERIFIED";
|
|
1781
|
-
MiniAppStatusType2["success"] = "SUCCESS";
|
|
1782
|
-
MiniAppStatusType2["loggedOut"] = "LOGGED_OUT";
|
|
1783
|
-
MiniAppStatusType2["connected"] = "CONNECTED";
|
|
1784
|
-
})(MiniAppStatusType || (MiniAppStatusType = {}));
|
|
1785
1795
|
function checkAccessToken(params) {
|
|
1786
1796
|
reconstructParams(params);
|
|
1787
1797
|
execute$d(params);
|
|
@@ -7560,10 +7570,10 @@ const ActionSheet = defineComponent({
|
|
|
7560
7570
|
})]);
|
|
7561
7571
|
}
|
|
7562
7572
|
});
|
|
7563
|
-
const container$
|
|
7573
|
+
const container$m = "_container_g8jc8_2";
|
|
7564
7574
|
const primary = "_primary_g8jc8_24";
|
|
7565
7575
|
const focus = "_focus_g8jc8_35";
|
|
7566
|
-
const disabled$
|
|
7576
|
+
const disabled$3 = "_disabled_g8jc8_41";
|
|
7567
7577
|
const success = "_success_g8jc8_46";
|
|
7568
7578
|
const warning$1 = "_warning_g8jc8_68";
|
|
7569
7579
|
const danger = "_danger_g8jc8_90";
|
|
@@ -7580,10 +7590,10 @@ const bounce1 = "_bounce1_g8jc8_228";
|
|
|
7580
7590
|
const bounce2 = "_bounce2_g8jc8_231";
|
|
7581
7591
|
var styles$3 = {
|
|
7582
7592
|
"ppmna-default-font": "_ppmna-default-font_g8jc8_1",
|
|
7583
|
-
container: container$
|
|
7593
|
+
container: container$m,
|
|
7584
7594
|
primary,
|
|
7585
7595
|
focus,
|
|
7586
|
-
disabled: disabled$
|
|
7596
|
+
disabled: disabled$3,
|
|
7587
7597
|
success,
|
|
7588
7598
|
warning: warning$1,
|
|
7589
7599
|
danger,
|
|
@@ -7851,7 +7861,7 @@ const Input = defineComponent({
|
|
|
7851
7861
|
}
|
|
7852
7862
|
if (props.type === "number" || props.type === "digit") {
|
|
7853
7863
|
const isNumber = props.type === "number";
|
|
7854
|
-
value2 = formatNumber
|
|
7864
|
+
value2 = formatNumber(value2, {
|
|
7855
7865
|
allowDot: isNumber,
|
|
7856
7866
|
allowMinus: isNumber
|
|
7857
7867
|
});
|
|
@@ -19971,6 +19981,7 @@ const paypayRecWhite = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-pa
|
|
|
19971
19981
|
const downArrow = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-arrow-down.svg";
|
|
19972
19982
|
const bankIcon$1 = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/bank.svg";
|
|
19973
19983
|
const confetti = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/animation/confetti.json";
|
|
19984
|
+
const payLater$1 = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/paylater.svg";
|
|
19974
19985
|
var images = {
|
|
19975
19986
|
iconBalanceError,
|
|
19976
19987
|
animationDone,
|
|
@@ -20005,28 +20016,29 @@ var images = {
|
|
|
20005
20016
|
paypayRecWhite,
|
|
20006
20017
|
downArrow,
|
|
20007
20018
|
bankIcon: bankIcon$1,
|
|
20008
|
-
confetti
|
|
20019
|
+
confetti,
|
|
20020
|
+
payLater: payLater$1
|
|
20009
20021
|
};
|
|
20010
20022
|
function getImages() {
|
|
20011
20023
|
return images;
|
|
20012
20024
|
}
|
|
20013
20025
|
const header$7 = "_header_319hz_1";
|
|
20014
|
-
const container$
|
|
20026
|
+
const container$l = "_container_319hz_11";
|
|
20015
20027
|
const paypayIcon = "_paypayIcon_319hz_19";
|
|
20016
|
-
const rightAlign$
|
|
20028
|
+
const rightAlign$2 = "_rightAlign_319hz_30";
|
|
20017
20029
|
const storeName = "_storeName_319hz_38";
|
|
20018
20030
|
const storeImage = "_storeImage_319hz_50";
|
|
20019
20031
|
const title$8 = "_title_319hz_56";
|
|
20020
20032
|
var styles$1 = {
|
|
20021
20033
|
header: header$7,
|
|
20022
|
-
container: container$
|
|
20034
|
+
container: container$l,
|
|
20023
20035
|
paypayIcon,
|
|
20024
|
-
rightAlign: rightAlign$
|
|
20036
|
+
rightAlign: rightAlign$2,
|
|
20025
20037
|
storeName,
|
|
20026
20038
|
storeImage,
|
|
20027
20039
|
title: title$8
|
|
20028
20040
|
};
|
|
20029
|
-
const img$
|
|
20041
|
+
const img$c = getImages();
|
|
20030
20042
|
const DesktopHeader = defineComponent({
|
|
20031
20043
|
props: {
|
|
20032
20044
|
class: {
|
|
@@ -20043,7 +20055,7 @@ const DesktopHeader = defineComponent({
|
|
|
20043
20055
|
setup(props) {
|
|
20044
20056
|
const appDtls = getAppDetail$1();
|
|
20045
20057
|
const appDetail = appDtls ? JSON.parse(appDtls) : void 0;
|
|
20046
|
-
const storeImage2 = (appDetail == null ? void 0 : appDetail.appLogo) || img$
|
|
20058
|
+
const storeImage2 = (appDetail == null ? void 0 : appDetail.appLogo) || img$c.merchant;
|
|
20047
20059
|
const storeName2 = appDetail == null ? void 0 : appDetail.appName;
|
|
20048
20060
|
return () => createVNode("div", {
|
|
20049
20061
|
"class": `${styles$1.header} ${props.class}`
|
|
@@ -20068,7 +20080,7 @@ const breakDownList = "_breakDownList_crfwr_1";
|
|
|
20068
20080
|
const breakDownEnter = "_breakDownEnter_crfwr_54";
|
|
20069
20081
|
const breakDownIcon = "_breakDownIcon_crfwr_59";
|
|
20070
20082
|
const breakDownIconReverse = "_breakDownIconReverse_crfwr_71";
|
|
20071
|
-
var style0$
|
|
20083
|
+
var style0$N = {
|
|
20072
20084
|
breakDownList,
|
|
20073
20085
|
"non-usable": "_non-usable_crfwr_17",
|
|
20074
20086
|
"breakDownList-enter-active": "_breakDownList-enter-active_crfwr_35",
|
|
@@ -20088,10 +20100,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
20088
20100
|
}
|
|
20089
20101
|
return target;
|
|
20090
20102
|
};
|
|
20091
|
-
|
|
20092
|
-
return (val2 == null ? void 0 : val2.toLocaleString()) || "-";
|
|
20093
|
-
}
|
|
20094
|
-
const _sfc_main$$ = defineComponent({
|
|
20103
|
+
const _sfc_main$11 = defineComponent({
|
|
20095
20104
|
props: {
|
|
20096
20105
|
wallet: {
|
|
20097
20106
|
type: Object,
|
|
@@ -20112,14 +20121,15 @@ const _sfc_main$$ = defineComponent({
|
|
|
20112
20121
|
cashBackExpirableBalanceInfo
|
|
20113
20122
|
} = ((_b = (_a = props == null ? void 0 : props.wallet) == null ? void 0 : _a.walletInfo) == null ? void 0 : _b.walletDetail) || {};
|
|
20114
20123
|
return {
|
|
20115
|
-
emoney:
|
|
20124
|
+
emoney: formatAmount(emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.balance),
|
|
20116
20125
|
emoneyUsable: emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.usable,
|
|
20117
|
-
prepaid:
|
|
20126
|
+
prepaid: formatAmount(prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.balance),
|
|
20118
20127
|
prepaidUsable: prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.usable,
|
|
20119
|
-
cashBack:
|
|
20128
|
+
cashBack: formatAmount(cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.balance),
|
|
20120
20129
|
cashBackUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable,
|
|
20121
|
-
cashBackExpirable:
|
|
20122
|
-
cashBackExpirebleUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable
|
|
20130
|
+
cashBackExpirable: formatAmount(cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance),
|
|
20131
|
+
cashBackExpirebleUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable,
|
|
20132
|
+
showExpirableBalance: cashBackExpirableBalanceInfo && (cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance) > 0
|
|
20123
20133
|
};
|
|
20124
20134
|
});
|
|
20125
20135
|
return {
|
|
@@ -20131,7 +20141,7 @@ const _sfc_main$$ = defineComponent({
|
|
|
20131
20141
|
};
|
|
20132
20142
|
}
|
|
20133
20143
|
});
|
|
20134
|
-
function _sfc_render
|
|
20144
|
+
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20135
20145
|
return openBlock(), createElementBlock("div", null, [
|
|
20136
20146
|
_ctx.walletDetail ? (openBlock(), createElementBlock("span", {
|
|
20137
20147
|
key: 0,
|
|
@@ -20171,14 +20181,15 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20171
20181
|
class: normalizeClass({ "non-usable": !_ctx.walletDetail.cashBackUsable })
|
|
20172
20182
|
}, [
|
|
20173
20183
|
createBaseVNode("span", null, toDisplayString(_ctx.lg.wallet.cashBackUsable), 1),
|
|
20174
|
-
createBaseVNode("span", null, toDisplayString(_ctx.walletDetail.cashBack) + "
|
|
20184
|
+
createBaseVNode("span", null, toDisplayString(_ctx.walletDetail.cashBack) + "pt", 1)
|
|
20175
20185
|
], 2),
|
|
20176
|
-
|
|
20186
|
+
_ctx.walletDetail.showExpirableBalance ? (openBlock(), createElementBlock("li", {
|
|
20187
|
+
key: 0,
|
|
20177
20188
|
class: normalizeClass({ "non-usable": !_ctx.walletDetail.cashBackExpirebleUsable })
|
|
20178
20189
|
}, [
|
|
20179
20190
|
createBaseVNode("span", null, toDisplayString(_ctx.lg.wallet.cashBackExpirable), 1),
|
|
20180
|
-
createBaseVNode("span", null, toDisplayString(_ctx.walletDetail.cashBackExpirable) + "
|
|
20181
|
-
], 2)
|
|
20191
|
+
createBaseVNode("span", null, toDisplayString(_ctx.walletDetail.cashBackExpirable) + "pt", 1)
|
|
20192
|
+
], 2)) : createCommentVNode("", true)
|
|
20182
20193
|
])
|
|
20183
20194
|
], 2)) : createCommentVNode("", true)
|
|
20184
20195
|
]),
|
|
@@ -20186,18 +20197,15 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20186
20197
|
}, 8, ["name"])
|
|
20187
20198
|
]);
|
|
20188
20199
|
}
|
|
20189
|
-
const cssModules$
|
|
20190
|
-
cssModules$
|
|
20191
|
-
var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
20192
|
-
const img$
|
|
20193
|
-
var style0$
|
|
20194
|
-
img: img$
|
|
20200
|
+
const cssModules$O = {};
|
|
20201
|
+
cssModules$O["$style"] = style0$N;
|
|
20202
|
+
var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__cssModules", cssModules$O]]);
|
|
20203
|
+
const img$b = "_img_373i3_1";
|
|
20204
|
+
var style0$M = {
|
|
20205
|
+
img: img$b
|
|
20195
20206
|
};
|
|
20196
20207
|
var Wallet_vue_vue_type_style_index_1_scoped_true_lang = "";
|
|
20197
|
-
|
|
20198
|
-
return (val2 == null ? void 0 : val2.toLocaleString()) || "-";
|
|
20199
|
-
}
|
|
20200
|
-
const _sfc_main$_ = defineComponent({
|
|
20208
|
+
const _sfc_main$10 = defineComponent({
|
|
20201
20209
|
components: {
|
|
20202
20210
|
WalletBreakdown
|
|
20203
20211
|
},
|
|
@@ -20214,7 +20222,7 @@ const _sfc_main$_ = defineComponent({
|
|
|
20214
20222
|
};
|
|
20215
20223
|
const formattedBalance = computed(() => {
|
|
20216
20224
|
var _a, _b, _c;
|
|
20217
|
-
return
|
|
20225
|
+
return formatAmount((_c = (_b = (_a = props.wallet.walletInfo) == null ? void 0 : _a.walletSummary) == null ? void 0 : _b.totalBalanceInfo) == null ? void 0 : _c.balance);
|
|
20218
20226
|
});
|
|
20219
20227
|
const style = useCssModule();
|
|
20220
20228
|
const walletDetail = computed(() => {
|
|
@@ -20226,13 +20234,13 @@ const _sfc_main$_ = defineComponent({
|
|
|
20226
20234
|
cashBackExpirableBalanceInfo
|
|
20227
20235
|
} = ((_b = (_a = props == null ? void 0 : props.wallet) == null ? void 0 : _a.walletInfo) == null ? void 0 : _b.walletDetail) || {};
|
|
20228
20236
|
return {
|
|
20229
|
-
emoney:
|
|
20237
|
+
emoney: formatAmount(emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.balance),
|
|
20230
20238
|
emoneyUsable: emoneyBalanceInfo == null ? void 0 : emoneyBalanceInfo.usable,
|
|
20231
|
-
prepaid:
|
|
20239
|
+
prepaid: formatAmount(prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.balance),
|
|
20232
20240
|
prepaidUsable: prepaidBalanceInfo == null ? void 0 : prepaidBalanceInfo.usable,
|
|
20233
|
-
cashBack:
|
|
20241
|
+
cashBack: formatAmount(cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.balance),
|
|
20234
20242
|
cashBackUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable,
|
|
20235
|
-
cashBackExpirable:
|
|
20243
|
+
cashBackExpirable: formatAmount(cashBackExpirableBalanceInfo == null ? void 0 : cashBackExpirableBalanceInfo.balance),
|
|
20236
20244
|
cashBackExpirebleUsable: cashBackBalanceInfo == null ? void 0 : cashBackBalanceInfo.usable
|
|
20237
20245
|
};
|
|
20238
20246
|
});
|
|
@@ -20247,20 +20255,20 @@ const _sfc_main$_ = defineComponent({
|
|
|
20247
20255
|
};
|
|
20248
20256
|
}
|
|
20249
20257
|
});
|
|
20250
|
-
const _hoisted_1$
|
|
20258
|
+
const _hoisted_1$H = { class: "payment-method--content-container" };
|
|
20251
20259
|
const _hoisted_2$q = { class: "payment-method--content-container--image-container" };
|
|
20252
|
-
const _hoisted_3$
|
|
20260
|
+
const _hoisted_3$l = ["src"];
|
|
20253
20261
|
const _hoisted_4$h = { class: "payment-method--content-container--label" };
|
|
20254
20262
|
const _hoisted_5$d = { class: "payment-method--content-container--label--main" };
|
|
20255
20263
|
const _hoisted_6$6 = { class: "payment-method--content-container--label--sub" };
|
|
20256
|
-
function _sfc_render$
|
|
20264
|
+
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20257
20265
|
const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
|
|
20258
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20266
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
20259
20267
|
createBaseVNode("div", _hoisted_2$q, [
|
|
20260
20268
|
createBaseVNode("img", {
|
|
20261
20269
|
class: normalizeClass(_ctx.style.img),
|
|
20262
20270
|
src: _ctx.images.iconBalanceIcon
|
|
20263
|
-
}, null, 10, _hoisted_3$
|
|
20271
|
+
}, null, 10, _hoisted_3$l)
|
|
20264
20272
|
]),
|
|
20265
20273
|
createBaseVNode("div", _hoisted_4$h, [
|
|
20266
20274
|
createBaseVNode("span", _hoisted_5$d, toDisplayString(_ctx.lg.wallet.title), 1),
|
|
@@ -20269,10 +20277,10 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20269
20277
|
])
|
|
20270
20278
|
]);
|
|
20271
20279
|
}
|
|
20272
|
-
const cssModules$
|
|
20273
|
-
cssModules$
|
|
20274
|
-
var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20275
|
-
const img$
|
|
20280
|
+
const cssModules$N = {};
|
|
20281
|
+
cssModules$N["$style"] = style0$M;
|
|
20282
|
+
var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__cssModules", cssModules$N], ["__scopeId", "data-v-e0654490"]]);
|
|
20283
|
+
const img$a = "_img_p3zha_1";
|
|
20276
20284
|
const round$2 = "_round_p3zha_5";
|
|
20277
20285
|
const nonVisible$1 = "_nonVisible_p3zha_8";
|
|
20278
20286
|
const creditCardLabel = "_creditCardLabel_p3zha_11";
|
|
@@ -20285,8 +20293,8 @@ const creditCard$1 = "_creditCard_p3zha_11";
|
|
|
20285
20293
|
const maintainanceInfo$2 = "_maintainanceInfo_p3zha_39";
|
|
20286
20294
|
const paymentInfo$2 = "_paymentInfo_p3zha_45";
|
|
20287
20295
|
const fullWidth$1 = "_fullWidth_p3zha_48";
|
|
20288
|
-
var style0$
|
|
20289
|
-
img: img$
|
|
20296
|
+
var style0$L = {
|
|
20297
|
+
img: img$a,
|
|
20290
20298
|
round: round$2,
|
|
20291
20299
|
nonVisible: nonVisible$1,
|
|
20292
20300
|
creditCardLabel,
|
|
@@ -20301,14 +20309,14 @@ var style0$J = {
|
|
|
20301
20309
|
fullWidth: fullWidth$1
|
|
20302
20310
|
};
|
|
20303
20311
|
var CreditCard_vue_vue_type_style_index_1_scoped_true_lang$1 = "";
|
|
20304
|
-
const img$
|
|
20312
|
+
const img$9 = getImages();
|
|
20305
20313
|
const creditCardMap$1 = {
|
|
20306
|
-
[CreditTypes.JCB]: img$
|
|
20307
|
-
[CreditTypes.VISA]: img$
|
|
20308
|
-
[CreditTypes.MASTER]: img$
|
|
20309
|
-
[CreditTypes.AMEX]: img$
|
|
20314
|
+
[CreditTypes.JCB]: img$9.jcb,
|
|
20315
|
+
[CreditTypes.VISA]: img$9.visa,
|
|
20316
|
+
[CreditTypes.MASTER]: img$9.master,
|
|
20317
|
+
[CreditTypes.AMEX]: img$9.amex
|
|
20310
20318
|
};
|
|
20311
|
-
const _sfc_main
|
|
20319
|
+
const _sfc_main$$ = defineComponent({
|
|
20312
20320
|
components: {
|
|
20313
20321
|
Button
|
|
20314
20322
|
},
|
|
@@ -20347,14 +20355,14 @@ const _sfc_main$Z = defineComponent({
|
|
|
20347
20355
|
if (authenticated2)
|
|
20348
20356
|
return {
|
|
20349
20357
|
authenticated: true,
|
|
20350
|
-
img: img$
|
|
20358
|
+
img: img$9.checkGreen,
|
|
20351
20359
|
text: getLanguage().paymentMethod.checkGreen,
|
|
20352
20360
|
imgStyle: style.authorizedImg,
|
|
20353
20361
|
style: style.authorized
|
|
20354
20362
|
};
|
|
20355
20363
|
return {
|
|
20356
20364
|
authenticated: false,
|
|
20357
|
-
img: img$
|
|
20365
|
+
img: img$9.iconAlert,
|
|
20358
20366
|
text: getLanguage().paymentMethod.authenticated,
|
|
20359
20367
|
style: style.unAuthorized,
|
|
20360
20368
|
imgStyle: style.unAuthorizedImg
|
|
@@ -20365,13 +20373,13 @@ const _sfc_main$Z = defineComponent({
|
|
|
20365
20373
|
if (isPPCard.value) {
|
|
20366
20374
|
return {
|
|
20367
20375
|
title: getLanguage().paymentMethod.ppCardTitle,
|
|
20368
|
-
logo: img$
|
|
20376
|
+
logo: img$9.ppCard,
|
|
20369
20377
|
style: props.round ? style.round : ""
|
|
20370
20378
|
};
|
|
20371
20379
|
} else if (isYjCard.value) {
|
|
20372
20380
|
return {
|
|
20373
20381
|
title: getLanguage().paymentMethod.yjTitle,
|
|
20374
|
-
logo: img$
|
|
20382
|
+
logo: img$9.yahoo,
|
|
20375
20383
|
style: props.round ? style.round : ""
|
|
20376
20384
|
};
|
|
20377
20385
|
}
|
|
@@ -20409,12 +20417,12 @@ const _sfc_main$Z = defineComponent({
|
|
|
20409
20417
|
};
|
|
20410
20418
|
}
|
|
20411
20419
|
});
|
|
20412
|
-
const _hoisted_1$
|
|
20420
|
+
const _hoisted_1$G = ["src"];
|
|
20413
20421
|
const _hoisted_2$p = { class: "payment-method--content-container--label--main" };
|
|
20414
|
-
const _hoisted_3$
|
|
20422
|
+
const _hoisted_3$k = { class: "payment-method--content-container--label--sub" };
|
|
20415
20423
|
const _hoisted_4$g = ["src"];
|
|
20416
20424
|
const _hoisted_5$c = { class: "right-align" };
|
|
20417
|
-
function _sfc_render
|
|
20425
|
+
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20418
20426
|
const _component_Button = resolveComponent("Button");
|
|
20419
20427
|
return openBlock(), createElementBlock("div", {
|
|
20420
20428
|
class: normalizeClass(["payment-method--content-container", _ctx.getClass])
|
|
@@ -20426,7 +20434,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20426
20434
|
createBaseVNode("img", {
|
|
20427
20435
|
src: _ctx.cardInfo.logo,
|
|
20428
20436
|
class: normalizeClass([_ctx.style.img, _ctx.cardInfo.style])
|
|
20429
|
-
}, null, 10, _hoisted_1$
|
|
20437
|
+
}, null, 10, _hoisted_1$G)
|
|
20430
20438
|
], 2)
|
|
20431
20439
|
]),
|
|
20432
20440
|
createBaseVNode("div", {
|
|
@@ -20439,7 +20447,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20439
20447
|
class: normalizeClass(["payment-method--content-container--label", _ctx.style.creditCardLabel])
|
|
20440
20448
|
}, [
|
|
20441
20449
|
createBaseVNode("span", _hoisted_2$p, toDisplayString(_ctx.cardInfo.title), 1),
|
|
20442
|
-
createBaseVNode("span", _hoisted_3$
|
|
20450
|
+
createBaseVNode("span", _hoisted_3$k, " **** " + toDisplayString(_ctx.last4digits), 1),
|
|
20443
20451
|
createBaseVNode("div", {
|
|
20444
20452
|
class: normalizeClass([_ctx.style.authenticateStatusContainer, _ctx.authInfo.style])
|
|
20445
20453
|
}, [
|
|
@@ -20472,17 +20480,17 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20472
20480
|
], 2)
|
|
20473
20481
|
], 2);
|
|
20474
20482
|
}
|
|
20475
|
-
const cssModules$
|
|
20476
|
-
cssModules$
|
|
20477
|
-
var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
20478
|
-
const img$
|
|
20483
|
+
const cssModules$M = {};
|
|
20484
|
+
cssModules$M["$style"] = style0$L;
|
|
20485
|
+
var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__cssModules", cssModules$M], ["__scopeId", "data-v-4589c43a"]]);
|
|
20486
|
+
const img$8 = "_img_11k9z_1";
|
|
20479
20487
|
const round$1 = "_round_11k9z_5";
|
|
20480
20488
|
const branchNumber = "_branchNumber_11k9z_8";
|
|
20481
20489
|
const maintainanceInfo$1 = "_maintainanceInfo_11k9z_14";
|
|
20482
20490
|
const paymentInfo$1 = "_paymentInfo_11k9z_20";
|
|
20483
20491
|
const fullWidth = "_fullWidth_11k9z_23";
|
|
20484
|
-
var style0$
|
|
20485
|
-
img: img$
|
|
20492
|
+
var style0$K = {
|
|
20493
|
+
img: img$8,
|
|
20486
20494
|
round: round$1,
|
|
20487
20495
|
branchNumber,
|
|
20488
20496
|
maintainanceInfo: maintainanceInfo$1,
|
|
@@ -20499,7 +20507,7 @@ const getTypeText$1 = (val2) => {
|
|
|
20499
20507
|
return "";
|
|
20500
20508
|
}
|
|
20501
20509
|
};
|
|
20502
|
-
const _sfc_main$
|
|
20510
|
+
const _sfc_main$_ = defineComponent({
|
|
20503
20511
|
components: {
|
|
20504
20512
|
Button
|
|
20505
20513
|
},
|
|
@@ -20555,15 +20563,15 @@ const _sfc_main$Y = defineComponent({
|
|
|
20555
20563
|
};
|
|
20556
20564
|
}
|
|
20557
20565
|
});
|
|
20558
|
-
const _hoisted_1$
|
|
20566
|
+
const _hoisted_1$F = ["src"];
|
|
20559
20567
|
const _hoisted_2$o = { class: "payment-method--content-container--label" };
|
|
20560
|
-
const _hoisted_3$
|
|
20568
|
+
const _hoisted_3$j = { class: "payment-method--content-container--label--main" };
|
|
20561
20569
|
const _hoisted_4$f = {
|
|
20562
20570
|
key: 0,
|
|
20563
20571
|
class: "payment-method--content-container--label--sub"
|
|
20564
20572
|
};
|
|
20565
20573
|
const _hoisted_5$b = { class: "right-align" };
|
|
20566
|
-
function _sfc_render$
|
|
20574
|
+
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20567
20575
|
const _component_Button = resolveComponent("Button");
|
|
20568
20576
|
return openBlock(), createElementBlock("div", {
|
|
20569
20577
|
class: normalizeClass(["payment-method--content-container", _ctx.getClass])
|
|
@@ -20575,7 +20583,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20575
20583
|
createBaseVNode("img", {
|
|
20576
20584
|
class: normalizeClass([_ctx.style.img, { [_ctx.style.round]: _ctx.round }]),
|
|
20577
20585
|
src: _ctx.bankInfo.logo
|
|
20578
|
-
}, null, 10, _hoisted_1$
|
|
20586
|
+
}, null, 10, _hoisted_1$F)
|
|
20579
20587
|
], 2)
|
|
20580
20588
|
]),
|
|
20581
20589
|
createBaseVNode("div", {
|
|
@@ -20585,7 +20593,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20585
20593
|
class: normalizeClass(_ctx.style.paymentInfo)
|
|
20586
20594
|
}, [
|
|
20587
20595
|
createBaseVNode("div", _hoisted_2$o, [
|
|
20588
|
-
createBaseVNode("div", _hoisted_3$
|
|
20596
|
+
createBaseVNode("div", _hoisted_3$j, toDisplayString(_ctx.bankInfo.name), 1),
|
|
20589
20597
|
!!_ctx.bankInfo.branchName ? (openBlock(), createElementBlock("div", _hoisted_4$f, toDisplayString(_ctx.bankInfo.branchName), 1)) : createCommentVNode("", true),
|
|
20590
20598
|
createBaseVNode("div", null, [
|
|
20591
20599
|
createBaseVNode("span", {
|
|
@@ -20615,12 +20623,12 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20615
20623
|
], 2)
|
|
20616
20624
|
], 2);
|
|
20617
20625
|
}
|
|
20618
|
-
const cssModules$
|
|
20619
|
-
cssModules$
|
|
20620
|
-
var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20621
|
-
const container$
|
|
20626
|
+
const cssModules$L = {};
|
|
20627
|
+
cssModules$L["$style"] = style0$K;
|
|
20628
|
+
var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__cssModules", cssModules$L]]);
|
|
20629
|
+
const container$k = "_container_82o6p_1";
|
|
20622
20630
|
const imageContainer$1 = "_imageContainer_82o6p_7";
|
|
20623
|
-
const img$
|
|
20631
|
+
const img$7 = "_img_82o6p_11";
|
|
20624
20632
|
const content$9 = "_content_82o6p_15";
|
|
20625
20633
|
const paymentInfo = "_paymentInfo_82o6p_19";
|
|
20626
20634
|
const paymentDesc = "_paymentDesc_82o6p_23";
|
|
@@ -20629,11 +20637,11 @@ const subDesc = "_subDesc_82o6p_34";
|
|
|
20629
20637
|
const disable = "_disable_82o6p_40";
|
|
20630
20638
|
const centerAlign = "_centerAlign_82o6p_46";
|
|
20631
20639
|
const maintainanceInfo = "_maintainanceInfo_82o6p_49";
|
|
20632
|
-
const invalid = "_invalid_82o6p_55";
|
|
20633
|
-
var style0$
|
|
20634
|
-
container: container$
|
|
20640
|
+
const invalid$1 = "_invalid_82o6p_55";
|
|
20641
|
+
var style0$J = {
|
|
20642
|
+
container: container$k,
|
|
20635
20643
|
imageContainer: imageContainer$1,
|
|
20636
|
-
img: img$
|
|
20644
|
+
img: img$7,
|
|
20637
20645
|
content: content$9,
|
|
20638
20646
|
paymentInfo,
|
|
20639
20647
|
paymentDesc,
|
|
@@ -20642,9 +20650,9 @@ var style0$H = {
|
|
|
20642
20650
|
disable,
|
|
20643
20651
|
centerAlign,
|
|
20644
20652
|
maintainanceInfo,
|
|
20645
|
-
invalid
|
|
20653
|
+
invalid: invalid$1
|
|
20646
20654
|
};
|
|
20647
|
-
const _sfc_main$
|
|
20655
|
+
const _sfc_main$Z = defineComponent({
|
|
20648
20656
|
components: {
|
|
20649
20657
|
Button
|
|
20650
20658
|
},
|
|
@@ -20677,8 +20685,8 @@ const _sfc_main$X = defineComponent({
|
|
|
20677
20685
|
};
|
|
20678
20686
|
}
|
|
20679
20687
|
});
|
|
20680
|
-
const _hoisted_1$
|
|
20681
|
-
function _sfc_render$
|
|
20688
|
+
const _hoisted_1$E = ["src"];
|
|
20689
|
+
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20682
20690
|
const _component_Button = resolveComponent("Button");
|
|
20683
20691
|
return openBlock(), createElementBlock("div", {
|
|
20684
20692
|
class: normalizeClass([_ctx.style.container, _ctx.getClass, _ctx.isDisable ? _ctx.style.centerAlign : ""])
|
|
@@ -20689,7 +20697,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20689
20697
|
createBaseVNode("img", {
|
|
20690
20698
|
class: normalizeClass(_ctx.style.img),
|
|
20691
20699
|
src: _ctx.images.softbank
|
|
20692
|
-
}, null, 10, _hoisted_1$
|
|
20700
|
+
}, null, 10, _hoisted_1$E)
|
|
20693
20701
|
], 2),
|
|
20694
20702
|
createBaseVNode("div", {
|
|
20695
20703
|
class: normalizeClass(_ctx.style.content)
|
|
@@ -20733,9 +20741,104 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20733
20741
|
], 2)
|
|
20734
20742
|
], 2);
|
|
20735
20743
|
}
|
|
20736
|
-
const cssModules$
|
|
20737
|
-
cssModules$
|
|
20738
|
-
var Sbid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20744
|
+
const cssModules$K = {};
|
|
20745
|
+
cssModules$K["$style"] = style0$J;
|
|
20746
|
+
var Sbid = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__cssModules", cssModules$K]]);
|
|
20747
|
+
const img$6 = "_img_m6p0b_1";
|
|
20748
|
+
const container$j = "_container_m6p0b_5";
|
|
20749
|
+
const imgContainer$2 = "_imgContainer_m6p0b_10";
|
|
20750
|
+
const labelContainer = "_labelContainer_m6p0b_20";
|
|
20751
|
+
const mainLabel = "_mainLabel_m6p0b_27";
|
|
20752
|
+
const subLabel = "_subLabel_m6p0b_34";
|
|
20753
|
+
const disabled$2 = "_disabled_m6p0b_40";
|
|
20754
|
+
const rightAlign$1 = "_rightAlign_m6p0b_46";
|
|
20755
|
+
const invalid = "_invalid_m6p0b_50";
|
|
20756
|
+
var style0$I = {
|
|
20757
|
+
img: img$6,
|
|
20758
|
+
container: container$j,
|
|
20759
|
+
imgContainer: imgContainer$2,
|
|
20760
|
+
labelContainer,
|
|
20761
|
+
mainLabel,
|
|
20762
|
+
subLabel,
|
|
20763
|
+
disabled: disabled$2,
|
|
20764
|
+
rightAlign: rightAlign$1,
|
|
20765
|
+
invalid
|
|
20766
|
+
};
|
|
20767
|
+
const _sfc_main$Y = defineComponent({
|
|
20768
|
+
components: {
|
|
20769
|
+
Button
|
|
20770
|
+
},
|
|
20771
|
+
props: {
|
|
20772
|
+
payLater: {
|
|
20773
|
+
type: Object,
|
|
20774
|
+
required: true
|
|
20775
|
+
}
|
|
20776
|
+
},
|
|
20777
|
+
setup(props) {
|
|
20778
|
+
var _a, _b;
|
|
20779
|
+
return {
|
|
20780
|
+
formattedBalance: computed(() => {
|
|
20781
|
+
var _a2, _b2;
|
|
20782
|
+
return formatAmount((_b2 = (_a2 = props.payLater) == null ? void 0 : _a2.payLaterCcInfo) == null ? void 0 : _b2.availableAmount);
|
|
20783
|
+
}),
|
|
20784
|
+
isDisable: ((_b = (_a = props == null ? void 0 : props.payLater) == null ? void 0 : _a.payLaterCcInfo) == null ? void 0 : _b.paymentMethodStatus) !== PaymentMethodStatus.ACTIVATED,
|
|
20785
|
+
images: getImages(),
|
|
20786
|
+
lg: getLanguage(),
|
|
20787
|
+
paymentMethodStatusText: computed(() => {
|
|
20788
|
+
var _a2, _b2;
|
|
20789
|
+
return getPaymentMethodStatus(false, (_b2 = (_a2 = props == null ? void 0 : props.payLater) == null ? void 0 : _a2.payLaterCcInfo) == null ? void 0 : _b2.paymentMethodStatus);
|
|
20790
|
+
})
|
|
20791
|
+
};
|
|
20792
|
+
}
|
|
20793
|
+
});
|
|
20794
|
+
const _hoisted_1$D = ["src"];
|
|
20795
|
+
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20796
|
+
const _component_Button = resolveComponent("Button");
|
|
20797
|
+
return openBlock(), createElementBlock("div", {
|
|
20798
|
+
class: normalizeClass({
|
|
20799
|
+
[_ctx.$style.disabled]: _ctx.isDisable,
|
|
20800
|
+
[_ctx.$style.container]: true
|
|
20801
|
+
})
|
|
20802
|
+
}, [
|
|
20803
|
+
createBaseVNode("div", {
|
|
20804
|
+
class: normalizeClass(_ctx.$style.imgContainer)
|
|
20805
|
+
}, [
|
|
20806
|
+
createBaseVNode("img", {
|
|
20807
|
+
class: normalizeClass(_ctx.$style.img),
|
|
20808
|
+
src: _ctx.images.payLater
|
|
20809
|
+
}, null, 10, _hoisted_1$D)
|
|
20810
|
+
], 2),
|
|
20811
|
+
createBaseVNode("div", {
|
|
20812
|
+
class: normalizeClass(_ctx.$style.labelContainer)
|
|
20813
|
+
}, [
|
|
20814
|
+
createBaseVNode("span", {
|
|
20815
|
+
class: normalizeClass(_ctx.$style.mainLabel)
|
|
20816
|
+
}, toDisplayString(_ctx.lg.payLater.title), 3),
|
|
20817
|
+
createBaseVNode("span", {
|
|
20818
|
+
class: normalizeClass(_ctx.$style.subLabel)
|
|
20819
|
+
}, toDisplayString(_ctx.lg.payLater.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 3)
|
|
20820
|
+
], 2),
|
|
20821
|
+
createBaseVNode("span", {
|
|
20822
|
+
class: normalizeClass(_ctx.$style.rightAlign)
|
|
20823
|
+
}, [
|
|
20824
|
+
_ctx.isDisable ? (openBlock(), createBlock(_component_Button, {
|
|
20825
|
+
key: 0,
|
|
20826
|
+
disabled: true,
|
|
20827
|
+
class: normalizeClass(_ctx.$style.invalid),
|
|
20828
|
+
size: "small",
|
|
20829
|
+
type: "default"
|
|
20830
|
+
}, {
|
|
20831
|
+
default: withCtx(() => [
|
|
20832
|
+
createTextVNode(toDisplayString(_ctx.paymentMethodStatusText), 1)
|
|
20833
|
+
]),
|
|
20834
|
+
_: 1
|
|
20835
|
+
}, 8, ["class"])) : createCommentVNode("", true)
|
|
20836
|
+
], 2)
|
|
20837
|
+
], 2);
|
|
20838
|
+
}
|
|
20839
|
+
const cssModules$J = {};
|
|
20840
|
+
cssModules$J["$style"] = style0$I;
|
|
20841
|
+
var PayLaterCC = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__cssModules", cssModules$J]]);
|
|
20739
20842
|
const PaymentMethod = defineComponent({
|
|
20740
20843
|
props: {
|
|
20741
20844
|
paymentMethod: {
|
|
@@ -20746,7 +20849,7 @@ const PaymentMethod = defineComponent({
|
|
|
20746
20849
|
}
|
|
20747
20850
|
},
|
|
20748
20851
|
render() {
|
|
20749
|
-
var _a, _b, _c, _d, _e;
|
|
20852
|
+
var _a, _b, _c, _d, _e, _f;
|
|
20750
20853
|
if (((_a = this.paymentMethod) == null ? void 0 : _a.paymentMethodType) === PaymentMethodType.WALLET) {
|
|
20751
20854
|
return createVNode(Wallet, {
|
|
20752
20855
|
"wallet": this.paymentMethod
|
|
@@ -20768,6 +20871,11 @@ const PaymentMethod = defineComponent({
|
|
|
20768
20871
|
"sbid": this.paymentMethod
|
|
20769
20872
|
}, null);
|
|
20770
20873
|
}
|
|
20874
|
+
if (((_f = this.paymentMethod) == null ? void 0 : _f.paymentMethodType) === PaymentMethodType.PAY_LATER_CC) {
|
|
20875
|
+
return createVNode(PayLaterCC, {
|
|
20876
|
+
"payLater": this.paymentMethod
|
|
20877
|
+
}, null);
|
|
20878
|
+
}
|
|
20771
20879
|
return null;
|
|
20772
20880
|
}
|
|
20773
20881
|
});
|
|
@@ -20831,10 +20939,7 @@ function useBreakpoints() {
|
|
|
20831
20939
|
};
|
|
20832
20940
|
}
|
|
20833
20941
|
var Wallet_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
20834
|
-
|
|
20835
|
-
return (val2 == null ? void 0 : val2.toLocaleString()) || "-";
|
|
20836
|
-
}
|
|
20837
|
-
const _sfc_main$W = defineComponent({
|
|
20942
|
+
const _sfc_main$X = defineComponent({
|
|
20838
20943
|
components: {
|
|
20839
20944
|
WalletBreakdown
|
|
20840
20945
|
},
|
|
@@ -20847,7 +20952,7 @@ const _sfc_main$W = defineComponent({
|
|
|
20847
20952
|
setup(props) {
|
|
20848
20953
|
const formattedBalance = computed(() => {
|
|
20849
20954
|
var _a, _b, _c, _d;
|
|
20850
|
-
return
|
|
20955
|
+
return formatAmount((_d = (_c = (_b = (_a = props == null ? void 0 : props.wallet) == null ? void 0 : _a.walletInfo) == null ? void 0 : _b.walletSummary) == null ? void 0 : _c.totalBalanceInfo) == null ? void 0 : _d.balance);
|
|
20851
20956
|
});
|
|
20852
20957
|
const { isDesktop } = useBreakpoints();
|
|
20853
20958
|
return {
|
|
@@ -20858,17 +20963,17 @@ const _sfc_main$W = defineComponent({
|
|
|
20858
20963
|
};
|
|
20859
20964
|
}
|
|
20860
20965
|
});
|
|
20861
|
-
const _withScopeId$3 = (n) => (pushScopeId("data-v-
|
|
20862
|
-
const _hoisted_1$
|
|
20966
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-1405076b"), n = n(), popScopeId(), n);
|
|
20967
|
+
const _hoisted_1$C = { class: "ppmna-payment-type--container bank-method--right-align" };
|
|
20863
20968
|
const _hoisted_2$n = ["src"];
|
|
20864
|
-
const _hoisted_3$
|
|
20969
|
+
const _hoisted_3$i = { class: "ppmna-payment-type--container--main" };
|
|
20865
20970
|
const _hoisted_4$e = { class: "ppmna-payment-type--container--sub" };
|
|
20866
20971
|
const _hoisted_5$a = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createBaseVNode("div", { class: "payment-type--arrow-right-container" }, [
|
|
20867
20972
|
/* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
|
|
20868
20973
|
], -1));
|
|
20869
|
-
function _sfc_render$
|
|
20974
|
+
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20870
20975
|
const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
|
|
20871
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20976
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
20872
20977
|
createBaseVNode("div", null, [
|
|
20873
20978
|
createBaseVNode("img", {
|
|
20874
20979
|
src: _ctx.images.iconBalanceIcon,
|
|
@@ -20876,7 +20981,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20876
20981
|
}, null, 8, _hoisted_2$n)
|
|
20877
20982
|
]),
|
|
20878
20983
|
createBaseVNode("div", null, [
|
|
20879
|
-
createBaseVNode("div", _hoisted_3$
|
|
20984
|
+
createBaseVNode("div", _hoisted_3$i, toDisplayString(_ctx.lg.wallet.title), 1),
|
|
20880
20985
|
createBaseVNode("div", _hoisted_4$e, toDisplayString(_ctx.lg.wallet.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 1),
|
|
20881
20986
|
_ctx.isDesktop ? (openBlock(), createBlock(_component_WalletBreakdown, {
|
|
20882
20987
|
key: 0,
|
|
@@ -20886,12 +20991,12 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20886
20991
|
_hoisted_5$a
|
|
20887
20992
|
]);
|
|
20888
20993
|
}
|
|
20889
|
-
var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20994
|
+
var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__scopeId", "data-v-1405076b"]]);
|
|
20890
20995
|
const main = "_main_1rgsx_1";
|
|
20891
20996
|
const auth = "_auth_1rgsx_6";
|
|
20892
20997
|
const authImage = "_authImage_1rgsx_11";
|
|
20893
20998
|
const authText = "_authText_1rgsx_14";
|
|
20894
|
-
const imgContainer = "_imgContainer_1rgsx_18";
|
|
20999
|
+
const imgContainer$1 = "_imgContainer_1rgsx_18";
|
|
20895
21000
|
const img$5 = "_img_1rgsx_18";
|
|
20896
21001
|
const content$8 = "_content_1rgsx_25";
|
|
20897
21002
|
const authenticated = "_authenticated_1rgsx_30";
|
|
@@ -20899,12 +21004,12 @@ const notAuthenticated = "_notAuthenticated_1rgsx_33";
|
|
|
20899
21004
|
const authorizedImg = "_authorizedImg_1rgsx_36";
|
|
20900
21005
|
const unAuthorizedImg = "_unAuthorizedImg_1rgsx_40";
|
|
20901
21006
|
const creditCard = "_creditCard_1rgsx_43";
|
|
20902
|
-
var style0$
|
|
21007
|
+
var style0$H = {
|
|
20903
21008
|
main,
|
|
20904
21009
|
auth,
|
|
20905
21010
|
authImage,
|
|
20906
21011
|
authText,
|
|
20907
|
-
imgContainer,
|
|
21012
|
+
imgContainer: imgContainer$1,
|
|
20908
21013
|
img: img$5,
|
|
20909
21014
|
content: content$8,
|
|
20910
21015
|
authenticated,
|
|
@@ -20922,7 +21027,7 @@ const creditCardMap = {
|
|
|
20922
21027
|
[CreditTypes.AMEX]: img$4.amex,
|
|
20923
21028
|
yj: img$4.yahoo
|
|
20924
21029
|
};
|
|
20925
|
-
const _sfc_main$
|
|
21030
|
+
const _sfc_main$W = defineComponent({
|
|
20926
21031
|
props: {
|
|
20927
21032
|
credit: {
|
|
20928
21033
|
type: Object,
|
|
@@ -20988,15 +21093,15 @@ const _sfc_main$V = defineComponent({
|
|
|
20988
21093
|
}
|
|
20989
21094
|
});
|
|
20990
21095
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-609b4d94"), n = n(), popScopeId(), n);
|
|
20991
|
-
const _hoisted_1$
|
|
21096
|
+
const _hoisted_1$B = { class: "ppmna-payment-type--container" };
|
|
20992
21097
|
const _hoisted_2$m = ["src"];
|
|
20993
|
-
const _hoisted_3$
|
|
21098
|
+
const _hoisted_3$h = { class: "ppmna-payment-type--container--sub" };
|
|
20994
21099
|
const _hoisted_4$d = ["src"];
|
|
20995
21100
|
const _hoisted_5$9 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createBaseVNode("div", { class: "payment-type--arrow-right-container" }, [
|
|
20996
21101
|
/* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
|
|
20997
21102
|
], -1));
|
|
20998
|
-
function _sfc_render$
|
|
20999
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21103
|
+
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21104
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
21000
21105
|
createBaseVNode("div", {
|
|
21001
21106
|
class: normalizeClass(["ppmna-payment-type--container--img-container", _ctx.style.imgContainer])
|
|
21002
21107
|
}, [
|
|
@@ -21012,7 +21117,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21012
21117
|
createBaseVNode("div", {
|
|
21013
21118
|
class: normalizeClass(_ctx.style.main)
|
|
21014
21119
|
}, toDisplayString(_ctx.creditInfo.label), 3),
|
|
21015
|
-
createBaseVNode("div", _hoisted_3$
|
|
21120
|
+
createBaseVNode("div", _hoisted_3$h, " **** " + toDisplayString(_ctx.last4digits), 1),
|
|
21016
21121
|
createBaseVNode("span", {
|
|
21017
21122
|
class: normalizeClass([_ctx.style.auth, _ctx.authInfo.style])
|
|
21018
21123
|
}, [
|
|
@@ -21028,16 +21133,16 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21028
21133
|
_hoisted_5$9
|
|
21029
21134
|
]);
|
|
21030
21135
|
}
|
|
21031
|
-
const cssModules$
|
|
21032
|
-
cssModules$
|
|
21033
|
-
var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21136
|
+
const cssModules$I = {};
|
|
21137
|
+
cssModules$I["$style"] = style0$H;
|
|
21138
|
+
var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$W], ["__cssModules", cssModules$I], ["__scopeId", "data-v-609b4d94"]]);
|
|
21034
21139
|
const img$3 = "_img_1c6xt_1";
|
|
21035
21140
|
const branchCode = "_branchCode_1c6xt_5";
|
|
21036
21141
|
const content$7 = "_content_1c6xt_8";
|
|
21037
21142
|
const roundContainer = "_roundContainer_1c6xt_12";
|
|
21038
21143
|
const round = "_round_1c6xt_12";
|
|
21039
21144
|
const bankName = "_bankName_1c6xt_18";
|
|
21040
|
-
var style0$
|
|
21145
|
+
var style0$G = {
|
|
21041
21146
|
img: img$3,
|
|
21042
21147
|
branchCode,
|
|
21043
21148
|
content: content$7,
|
|
@@ -21055,7 +21160,7 @@ const getTypeText = (val2) => {
|
|
|
21055
21160
|
return "";
|
|
21056
21161
|
}
|
|
21057
21162
|
};
|
|
21058
|
-
const _sfc_main$
|
|
21163
|
+
const _sfc_main$V = defineComponent({
|
|
21059
21164
|
props: {
|
|
21060
21165
|
bank: {
|
|
21061
21166
|
type: Object,
|
|
@@ -21095,14 +21200,14 @@ const _sfc_main$U = defineComponent({
|
|
|
21095
21200
|
}
|
|
21096
21201
|
});
|
|
21097
21202
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-5068d8d6"), n = n(), popScopeId(), n);
|
|
21098
|
-
const _hoisted_1$
|
|
21203
|
+
const _hoisted_1$A = { class: "ppmna-payment-type--container" };
|
|
21099
21204
|
const _hoisted_2$l = ["src"];
|
|
21100
|
-
const _hoisted_3$
|
|
21205
|
+
const _hoisted_3$g = { class: "ppmna-payment-type--container--sub" };
|
|
21101
21206
|
const _hoisted_4$c = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createBaseVNode("span", { class: "payment-type--arrow-right-container" }, [
|
|
21102
21207
|
/* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
|
|
21103
21208
|
], -1));
|
|
21104
|
-
function _sfc_render$
|
|
21105
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21209
|
+
function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21210
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
21106
21211
|
createBaseVNode("div", {
|
|
21107
21212
|
class: normalizeClass(["ppmna-payment-type--container--img-container", {
|
|
21108
21213
|
"round-style-payment-type": _ctx.round,
|
|
@@ -21120,7 +21225,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21120
21225
|
createBaseVNode("div", {
|
|
21121
21226
|
class: normalizeClass(_ctx.style.bankName)
|
|
21122
21227
|
}, toDisplayString(_ctx.bankInfo.name), 3),
|
|
21123
|
-
createBaseVNode("div", _hoisted_3$
|
|
21228
|
+
createBaseVNode("div", _hoisted_3$g, toDisplayString(_ctx.bankInfo.branchName), 1),
|
|
21124
21229
|
createBaseVNode("div", {
|
|
21125
21230
|
class: normalizeClass(_ctx.style.branchCode)
|
|
21126
21231
|
}, toDisplayString(`${_ctx.bankInfo.branchCode} *****${_ctx.bankInfo.digits}`), 3)
|
|
@@ -21128,17 +21233,17 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21128
21233
|
_hoisted_4$c
|
|
21129
21234
|
]);
|
|
21130
21235
|
}
|
|
21131
|
-
const cssModules$
|
|
21132
|
-
cssModules$
|
|
21133
|
-
var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21134
|
-
const container$
|
|
21236
|
+
const cssModules$H = {};
|
|
21237
|
+
cssModules$H["$style"] = style0$G;
|
|
21238
|
+
var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V], ["__cssModules", cssModules$H], ["__scopeId", "data-v-5068d8d6"]]);
|
|
21239
|
+
const container$i = "_container_18bci_1";
|
|
21135
21240
|
const imageContainer = "_imageContainer_18bci_14";
|
|
21136
21241
|
const img$2 = "_img_18bci_18";
|
|
21137
21242
|
const content$6 = "_content_18bci_22";
|
|
21138
21243
|
const desc1 = "_desc1_18bci_26";
|
|
21139
21244
|
const desc2 = "_desc2_18bci_30";
|
|
21140
|
-
var style0$
|
|
21141
|
-
container: container$
|
|
21245
|
+
var style0$F = {
|
|
21246
|
+
container: container$i,
|
|
21142
21247
|
imageContainer,
|
|
21143
21248
|
img: img$2,
|
|
21144
21249
|
content: content$6,
|
|
@@ -21146,7 +21251,7 @@ var style0$E = {
|
|
|
21146
21251
|
desc2
|
|
21147
21252
|
};
|
|
21148
21253
|
var Sbid_vue_vue_type_style_index_1_scoped_true_lang = "";
|
|
21149
|
-
const _sfc_main$
|
|
21254
|
+
const _sfc_main$U = defineComponent({
|
|
21150
21255
|
props: {
|
|
21151
21256
|
sbid: {
|
|
21152
21257
|
type: Object,
|
|
@@ -21169,11 +21274,11 @@ const _sfc_main$T = defineComponent({
|
|
|
21169
21274
|
}
|
|
21170
21275
|
});
|
|
21171
21276
|
const _withScopeId = (n) => (pushScopeId("data-v-19a611be"), n = n(), popScopeId(), n);
|
|
21172
|
-
const _hoisted_1$
|
|
21277
|
+
const _hoisted_1$z = ["src"];
|
|
21173
21278
|
const _hoisted_2$k = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("span", { class: "payment-type--arrow-right-container" }, [
|
|
21174
21279
|
/* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
|
|
21175
21280
|
], -1));
|
|
21176
|
-
function _sfc_render$
|
|
21281
|
+
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21177
21282
|
return openBlock(), createElementBlock("div", {
|
|
21178
21283
|
class: normalizeClass(_ctx.$style.container)
|
|
21179
21284
|
}, [
|
|
@@ -21183,7 +21288,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21183
21288
|
createBaseVNode("img", {
|
|
21184
21289
|
class: normalizeClass(_ctx.$style.img),
|
|
21185
21290
|
src: _ctx.images.softbank
|
|
21186
|
-
}, null, 10, _hoisted_1$
|
|
21291
|
+
}, null, 10, _hoisted_1$z)
|
|
21187
21292
|
], 2),
|
|
21188
21293
|
createBaseVNode("span", {
|
|
21189
21294
|
class: normalizeClass(_ctx.$style.content)
|
|
@@ -21198,9 +21303,72 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21198
21303
|
_hoisted_2$k
|
|
21199
21304
|
], 2);
|
|
21200
21305
|
}
|
|
21306
|
+
const cssModules$G = {};
|
|
21307
|
+
cssModules$G["$style"] = style0$F;
|
|
21308
|
+
var SbidType = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U], ["__cssModules", cssModules$G], ["__scopeId", "data-v-19a611be"]]);
|
|
21309
|
+
const container$h = "_container_1ebh4_1";
|
|
21310
|
+
const imgContainer = "_imgContainer_1ebh4_17";
|
|
21311
|
+
const mainContainer = "_mainContainer_1ebh4_25";
|
|
21312
|
+
const subContainer$1 = "_subContainer_1ebh4_31";
|
|
21313
|
+
const arrowContainer$2 = "_arrowContainer_1ebh4_35";
|
|
21314
|
+
const arrow$3 = "_arrow_1ebh4_35";
|
|
21315
|
+
var style0$E = {
|
|
21316
|
+
container: container$h,
|
|
21317
|
+
imgContainer,
|
|
21318
|
+
mainContainer,
|
|
21319
|
+
subContainer: subContainer$1,
|
|
21320
|
+
arrowContainer: arrowContainer$2,
|
|
21321
|
+
arrow: arrow$3
|
|
21322
|
+
};
|
|
21323
|
+
const _sfc_main$T = defineComponent({
|
|
21324
|
+
props: {
|
|
21325
|
+
payLater: {
|
|
21326
|
+
type: Object,
|
|
21327
|
+
required: true
|
|
21328
|
+
}
|
|
21329
|
+
},
|
|
21330
|
+
setup(props) {
|
|
21331
|
+
return {
|
|
21332
|
+
formattedBalance: computed(() => {
|
|
21333
|
+
var _a, _b;
|
|
21334
|
+
return formatAmount((_b = (_a = props == null ? void 0 : props.payLater) == null ? void 0 : _a.payLaterCcInfo) == null ? void 0 : _b.availableAmount);
|
|
21335
|
+
}),
|
|
21336
|
+
images: getImages(),
|
|
21337
|
+
lg: getLanguage()
|
|
21338
|
+
};
|
|
21339
|
+
}
|
|
21340
|
+
});
|
|
21341
|
+
const _hoisted_1$y = ["src"];
|
|
21342
|
+
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21343
|
+
return openBlock(), createElementBlock("div", {
|
|
21344
|
+
class: normalizeClass(_ctx.$style.container)
|
|
21345
|
+
}, [
|
|
21346
|
+
createBaseVNode("div", null, [
|
|
21347
|
+
createBaseVNode("img", {
|
|
21348
|
+
src: _ctx.images.payLater,
|
|
21349
|
+
class: normalizeClass(_ctx.$style.imgContainer)
|
|
21350
|
+
}, null, 10, _hoisted_1$y)
|
|
21351
|
+
]),
|
|
21352
|
+
createBaseVNode("div", null, [
|
|
21353
|
+
createBaseVNode("div", {
|
|
21354
|
+
class: normalizeClass(_ctx.$style.mainContainer)
|
|
21355
|
+
}, toDisplayString(_ctx.lg.payLater.title), 3),
|
|
21356
|
+
createBaseVNode("div", {
|
|
21357
|
+
class: normalizeClass(_ctx.$style.subContainer)
|
|
21358
|
+
}, toDisplayString(_ctx.lg.payLater.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 3)
|
|
21359
|
+
]),
|
|
21360
|
+
createBaseVNode("div", {
|
|
21361
|
+
class: normalizeClass(_ctx.$style.arrowContainer)
|
|
21362
|
+
}, [
|
|
21363
|
+
createBaseVNode("i", {
|
|
21364
|
+
class: normalizeClass(_ctx.$style.arrow)
|
|
21365
|
+
}, null, 2)
|
|
21366
|
+
], 2)
|
|
21367
|
+
], 2);
|
|
21368
|
+
}
|
|
21201
21369
|
const cssModules$F = {};
|
|
21202
21370
|
cssModules$F["$style"] = style0$E;
|
|
21203
|
-
var
|
|
21371
|
+
var PayLaterType = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T], ["__cssModules", cssModules$F]]);
|
|
21204
21372
|
const PaymentType = defineComponent({
|
|
21205
21373
|
props: {
|
|
21206
21374
|
paymentMethod: {
|
|
@@ -21212,6 +21380,7 @@ const PaymentType = defineComponent({
|
|
|
21212
21380
|
}
|
|
21213
21381
|
},
|
|
21214
21382
|
render() {
|
|
21383
|
+
var _a;
|
|
21215
21384
|
const paymentMethod2 = this.paymentMethod;
|
|
21216
21385
|
if ((paymentMethod2 == null ? void 0 : paymentMethod2.paymentMethodType) === PaymentMethodType.WALLET) {
|
|
21217
21386
|
return createVNode(WalletType, {
|
|
@@ -21234,6 +21403,11 @@ const PaymentType = defineComponent({
|
|
|
21234
21403
|
"sbid": paymentMethod2
|
|
21235
21404
|
}, null);
|
|
21236
21405
|
}
|
|
21406
|
+
if (((_a = this.paymentMethod) == null ? void 0 : _a.paymentMethodType) === PaymentMethodType.PAY_LATER_CC) {
|
|
21407
|
+
return createVNode(PayLaterType, {
|
|
21408
|
+
"payLater": this.paymentMethod
|
|
21409
|
+
}, null);
|
|
21410
|
+
}
|
|
21237
21411
|
return null;
|
|
21238
21412
|
}
|
|
21239
21413
|
});
|
|
@@ -22397,7 +22571,8 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22397
22571
|
_ctx.address.receiver ? (openBlock(), createElementBlock("div", {
|
|
22398
22572
|
key: 1,
|
|
22399
22573
|
class: normalizeClass([_ctx.style.text, _ctx.style.receiver]),
|
|
22400
|
-
"data-test": "address-receiver"
|
|
22574
|
+
"data-test": "address-receiver",
|
|
22575
|
+
"data-testid": "address-receiver"
|
|
22401
22576
|
}, toDisplayString(_ctx.address.receiver), 3)) : createCommentVNode("", true),
|
|
22402
22577
|
_ctx.selected ? (openBlock(), createElementBlock("div", {
|
|
22403
22578
|
key: 2,
|
|
@@ -25052,7 +25227,7 @@ const _sfc_main$w = defineComponent({
|
|
|
25052
25227
|
});
|
|
25053
25228
|
const _hoisted_1$n = ["src"];
|
|
25054
25229
|
const _hoisted_2$g = { key: 2 };
|
|
25055
|
-
const _hoisted_3$
|
|
25230
|
+
const _hoisted_3$f = { key: 2 };
|
|
25056
25231
|
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25057
25232
|
const _component_DesktopHeader = resolveComponent("DesktopHeader");
|
|
25058
25233
|
const _component_Header = resolveComponent("Header");
|
|
@@ -25279,7 +25454,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25279
25454
|
]),
|
|
25280
25455
|
_: 1
|
|
25281
25456
|
}, 8, ["class", "onClick"])) : createCommentVNode("", true),
|
|
25282
|
-
_ctx.isSufficient ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
25457
|
+
_ctx.isSufficient ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
25283
25458
|
createVNode(_component_Button, {
|
|
25284
25459
|
"no-margin": _ctx.isDesktop,
|
|
25285
25460
|
"data-test": "click-charge",
|
|
@@ -25527,20 +25702,22 @@ const _sfc_main$t = defineComponent({
|
|
|
25527
25702
|
emits: ["close"],
|
|
25528
25703
|
setup() {
|
|
25529
25704
|
const lg2 = getLanguage();
|
|
25705
|
+
const showDeepLink = isPayPayMiniApp();
|
|
25530
25706
|
const openDeepLink = (url) => {
|
|
25531
|
-
if ((url == null ? void 0 : url.length) > 0) {
|
|
25707
|
+
if ((url == null ? void 0 : url.length) > 0 && showDeepLink) {
|
|
25532
25708
|
openWebviewInternal({ url });
|
|
25533
25709
|
}
|
|
25534
25710
|
};
|
|
25535
25711
|
return {
|
|
25536
25712
|
openDeepLink,
|
|
25537
|
-
lg: lg2
|
|
25713
|
+
lg: lg2,
|
|
25714
|
+
showDeepLink
|
|
25538
25715
|
};
|
|
25539
25716
|
}
|
|
25540
25717
|
});
|
|
25541
25718
|
const _hoisted_1$m = { class: "make-payment-cashback-detail-list" };
|
|
25542
25719
|
const _hoisted_2$f = { class: "make-payment-cashback-detail-list--header" };
|
|
25543
|
-
const _hoisted_3$
|
|
25720
|
+
const _hoisted_3$e = { class: "header-title-container" };
|
|
25544
25721
|
const _hoisted_4$b = {
|
|
25545
25722
|
class: "title",
|
|
25546
25723
|
"data-test": "cashback-detail-list-title"
|
|
@@ -25549,13 +25726,17 @@ const _hoisted_5$8 = {
|
|
|
25549
25726
|
class: "price",
|
|
25550
25727
|
"data-test": "cashback-detail-list-price"
|
|
25551
25728
|
};
|
|
25552
|
-
const _hoisted_6$5 = /* @__PURE__ */ createBaseVNode("span", { class: "unit" }, "
|
|
25729
|
+
const _hoisted_6$5 = /* @__PURE__ */ createBaseVNode("span", { class: "unit" }, "pt", -1);
|
|
25553
25730
|
const _hoisted_7$4 = { class: "make-payment-cashback-detail-list--container" };
|
|
25554
25731
|
const _hoisted_8$3 = ["onClick"];
|
|
25555
25732
|
const _hoisted_9$3 = { class: "campaign" };
|
|
25556
25733
|
const _hoisted_10$1 = { class: "right-container" };
|
|
25557
25734
|
const _hoisted_11$1 = { class: "amount" };
|
|
25558
|
-
const _hoisted_12$1 =
|
|
25735
|
+
const _hoisted_12$1 = {
|
|
25736
|
+
key: 0,
|
|
25737
|
+
class: "open-icon",
|
|
25738
|
+
"data-test": "open-icon"
|
|
25739
|
+
};
|
|
25559
25740
|
const _hoisted_13 = { class: "make-payment-cashback-detail-list--footer" };
|
|
25560
25741
|
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25561
25742
|
var _a, _b, _c;
|
|
@@ -25567,7 +25748,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25567
25748
|
"data-test": "cashback-detail-back-close",
|
|
25568
25749
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
25569
25750
|
}),
|
|
25570
|
-
createBaseVNode("div", _hoisted_3$
|
|
25751
|
+
createBaseVNode("div", _hoisted_3$e, [
|
|
25571
25752
|
createBaseVNode("div", _hoisted_4$b, toDisplayString((_a = _ctx.cashBackDetail) == null ? void 0 : _a.cashBackDetailListDescription), 1),
|
|
25572
25753
|
createBaseVNode("div", _hoisted_5$8, [
|
|
25573
25754
|
createTextVNode(toDisplayString((_b = _ctx.cashBackDetail) == null ? void 0 : _b.cashBackAmount), 1),
|
|
@@ -25586,7 +25767,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25586
25767
|
createBaseVNode("div", _hoisted_9$3, toDisplayString(cashBack2.campaignName), 1),
|
|
25587
25768
|
createBaseVNode("div", _hoisted_10$1, [
|
|
25588
25769
|
createBaseVNode("div", _hoisted_11$1, toDisplayString(cashBack2.amountText), 1),
|
|
25589
|
-
_hoisted_12$1
|
|
25770
|
+
_ctx.showDeepLink ? (openBlock(), createElementBlock("i", _hoisted_12$1)) : createCommentVNode("", true)
|
|
25590
25771
|
])
|
|
25591
25772
|
], 8, _hoisted_8$3);
|
|
25592
25773
|
}), 128))
|
|
@@ -25704,7 +25885,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25704
25885
|
createTextVNode(toDisplayString(_ctx.cashBackInfo.cashBackAmount) + " ", 1),
|
|
25705
25886
|
createBaseVNode("span", {
|
|
25706
25887
|
class: normalizeClass(_ctx.style.cashBackUnit)
|
|
25707
|
-
}, "
|
|
25888
|
+
}, "pt", 2)
|
|
25708
25889
|
], 2)) : createCommentVNode("", true)
|
|
25709
25890
|
], 2),
|
|
25710
25891
|
createBaseVNode("div", {
|
|
@@ -26137,7 +26318,7 @@ const _sfc_main$r = defineComponent({
|
|
|
26137
26318
|
});
|
|
26138
26319
|
const _hoisted_1$l = ["src"];
|
|
26139
26320
|
const _hoisted_2$e = /* @__PURE__ */ createBaseVNode("span", null, "\u6C7A\u6E08\u756A\u53F7", -1);
|
|
26140
|
-
const _hoisted_3$
|
|
26321
|
+
const _hoisted_3$d = /* @__PURE__ */ createTextVNode(" \u9589\u3058\u308B ");
|
|
26141
26322
|
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26142
26323
|
const _component_DesktopHeader = resolveComponent("DesktopHeader");
|
|
26143
26324
|
const _component_CashBackDetailRow = resolveComponent("CashBackDetailRow");
|
|
@@ -26250,7 +26431,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26250
26431
|
onClick: _ctx.click
|
|
26251
26432
|
}, {
|
|
26252
26433
|
default: withCtx(() => [
|
|
26253
|
-
_hoisted_3$
|
|
26434
|
+
_hoisted_3$d
|
|
26254
26435
|
]),
|
|
26255
26436
|
_: 1
|
|
26256
26437
|
}, 8, ["disabled", "onClick"])
|
|
@@ -26332,7 +26513,7 @@ const _sfc_main$q = defineComponent({
|
|
|
26332
26513
|
});
|
|
26333
26514
|
const _hoisted_1$k = { class: "make-payment-close-confirmation" };
|
|
26334
26515
|
const _hoisted_2$d = ["src"];
|
|
26335
|
-
const _hoisted_3$
|
|
26516
|
+
const _hoisted_3$c = { class: "make-payment-close-confirmation--content" };
|
|
26336
26517
|
const _hoisted_4$a = { class: "make-payment-close-confirmation--content--title" };
|
|
26337
26518
|
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26338
26519
|
const _component_Button = resolveComponent("Button");
|
|
@@ -26341,7 +26522,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26341
26522
|
src: _ctx.images.iconError,
|
|
26342
26523
|
class: "make-payment-close-confirmation--header--image"
|
|
26343
26524
|
}, null, 8, _hoisted_2$d),
|
|
26344
|
-
createBaseVNode("div", _hoisted_3$
|
|
26525
|
+
createBaseVNode("div", _hoisted_3$c, [
|
|
26345
26526
|
createBaseVNode("p", _hoisted_4$a, toDisplayString(_ctx.lg.closeConfirmation.title), 1)
|
|
26346
26527
|
]),
|
|
26347
26528
|
createBaseVNode("div", null, [
|
|
@@ -26427,7 +26608,7 @@ const _sfc_main$p = defineComponent({
|
|
|
26427
26608
|
});
|
|
26428
26609
|
const _hoisted_1$j = { class: "make-payment-consult" };
|
|
26429
26610
|
const _hoisted_2$c = ["src"];
|
|
26430
|
-
const _hoisted_3$
|
|
26611
|
+
const _hoisted_3$b = { class: "make-payment-consult--content" };
|
|
26431
26612
|
const _hoisted_4$9 = {
|
|
26432
26613
|
class: "make-payment-consult--content--title",
|
|
26433
26614
|
"data-test": "consult-title"
|
|
@@ -26443,7 +26624,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26443
26624
|
src: _ctx.iconUrl,
|
|
26444
26625
|
class: "make-payment-consult--header--image"
|
|
26445
26626
|
}, null, 8, _hoisted_2$c),
|
|
26446
|
-
createBaseVNode("div", _hoisted_3$
|
|
26627
|
+
createBaseVNode("div", _hoisted_3$b, [
|
|
26447
26628
|
createBaseVNode("p", _hoisted_4$9, toDisplayString(_ctx.title), 1),
|
|
26448
26629
|
createBaseVNode("p", _hoisted_5$7, toDisplayString(_ctx.description), 1)
|
|
26449
26630
|
]),
|
|
@@ -26518,7 +26699,7 @@ const _sfc_main$o = defineComponent({
|
|
|
26518
26699
|
});
|
|
26519
26700
|
const _hoisted_1$i = { class: "make-payment-cashback-detail-birthday-picker" };
|
|
26520
26701
|
const _hoisted_2$b = { class: "make-payment-cashback-detail-birthday-picker--header" };
|
|
26521
|
-
const _hoisted_3$
|
|
26702
|
+
const _hoisted_3$a = ["src"];
|
|
26522
26703
|
const _hoisted_4$8 = { class: "make-payment-cashback-detail-birthday-picker--content" };
|
|
26523
26704
|
const _hoisted_5$6 = { class: "title" };
|
|
26524
26705
|
const _hoisted_6$4 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
@@ -26538,7 +26719,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26538
26719
|
createBaseVNode("div", _hoisted_2$b, [
|
|
26539
26720
|
createBaseVNode("img", {
|
|
26540
26721
|
src: _ctx.images.iconBirthday
|
|
26541
|
-
}, null, 8, _hoisted_3$
|
|
26722
|
+
}, null, 8, _hoisted_3$a)
|
|
26542
26723
|
]),
|
|
26543
26724
|
createBaseVNode("div", _hoisted_4$8, [
|
|
26544
26725
|
createBaseVNode("p", _hoisted_5$6, [
|
|
@@ -26629,7 +26810,7 @@ const _sfc_main$n = defineComponent({
|
|
|
26629
26810
|
});
|
|
26630
26811
|
const _hoisted_1$h = { class: "make-payment-cashback-detail-birthday-picker" };
|
|
26631
26812
|
const _hoisted_2$a = { class: "make-payment-cashback-detail-birthday-picker--header" };
|
|
26632
|
-
const _hoisted_3$
|
|
26813
|
+
const _hoisted_3$9 = ["src"];
|
|
26633
26814
|
const _hoisted_4$7 = { class: "make-payment-cashback-detail-birthday-picker--content" };
|
|
26634
26815
|
const _hoisted_5$5 = { class: "title" };
|
|
26635
26816
|
const _hoisted_6$3 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
@@ -26646,7 +26827,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26646
26827
|
createBaseVNode("img", {
|
|
26647
26828
|
src: _ctx.images.iconMinorAge,
|
|
26648
26829
|
class: "error-in-birthday"
|
|
26649
|
-
}, null, 8, _hoisted_3$
|
|
26830
|
+
}, null, 8, _hoisted_3$9)
|
|
26650
26831
|
]),
|
|
26651
26832
|
createBaseVNode("div", _hoisted_4$7, [
|
|
26652
26833
|
createBaseVNode("p", _hoisted_5$5, [
|
|
@@ -26881,6 +27062,7 @@ const _sfc_main$l = defineComponent({
|
|
|
26881
27062
|
const { postAgeConfirm } = getAgeConfirm();
|
|
26882
27063
|
const lg2 = getLanguage();
|
|
26883
27064
|
const images2 = getImages();
|
|
27065
|
+
const { isDesktop } = useBreakpoints();
|
|
26884
27066
|
const isCountDown = ref(false);
|
|
26885
27067
|
const countDown = useCountDown({
|
|
26886
27068
|
time: 5e3,
|
|
@@ -26907,7 +27089,8 @@ const _sfc_main$l = defineComponent({
|
|
|
26907
27089
|
s.addEventListener("data_ready", (_) => {
|
|
26908
27090
|
var _a;
|
|
26909
27091
|
uiState.animationLoaded = true;
|
|
26910
|
-
|
|
27092
|
+
if (isPayPayMiniApp())
|
|
27093
|
+
makeSound((_a = animation.value) == null ? void 0 : _a.soundUrl);
|
|
26911
27094
|
});
|
|
26912
27095
|
s.addEventListener("complete", uiState.animationListener);
|
|
26913
27096
|
};
|
|
@@ -26993,6 +27176,10 @@ const _sfc_main$l = defineComponent({
|
|
|
26993
27176
|
var _a;
|
|
26994
27177
|
return (_a = animation.value) != null ? _a : { optionalText: "", url: "" };
|
|
26995
27178
|
}),
|
|
27179
|
+
animationUrl: computed(() => {
|
|
27180
|
+
var _a;
|
|
27181
|
+
return animation.value ? isDesktop.value ? (_a = animation.value.largeUrl) != null ? _a : animation.value.url : animation.value.url : "";
|
|
27182
|
+
}),
|
|
26996
27183
|
type,
|
|
26997
27184
|
showContent: computed(() => uiState.showContent),
|
|
26998
27185
|
showFullScreenContent: computed(() => uiState.showFullscreenContent),
|
|
@@ -27032,7 +27219,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27032
27219
|
}, [
|
|
27033
27220
|
createVNode(_component_Lottie, {
|
|
27034
27221
|
loop: false,
|
|
27035
|
-
path: _ctx.
|
|
27222
|
+
path: _ctx.animationUrl,
|
|
27036
27223
|
autoplay: false,
|
|
27037
27224
|
styles: { width: "auto", height: "auto" },
|
|
27038
27225
|
"class-name": _ctx.style.lottieContainer,
|
|
@@ -27177,7 +27364,7 @@ const _sfc_main$k = defineComponent({
|
|
|
27177
27364
|
});
|
|
27178
27365
|
const _hoisted_1$e = ["src"];
|
|
27179
27366
|
const _hoisted_2$9 = { key: 0 };
|
|
27180
|
-
const _hoisted_3$
|
|
27367
|
+
const _hoisted_3$8 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
|
|
27181
27368
|
const _hoisted_4$6 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
|
|
27182
27369
|
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27183
27370
|
return openBlock(), createElementBlock("div", null, [
|
|
@@ -27207,7 +27394,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27207
27394
|
class: normalizeClass(_ctx.style.amount)
|
|
27208
27395
|
}, [
|
|
27209
27396
|
createTextVNode(toDisplayString(_ctx.formatPrice), 1),
|
|
27210
|
-
_hoisted_3$
|
|
27397
|
+
_hoisted_3$8
|
|
27211
27398
|
], 2)
|
|
27212
27399
|
], 2)
|
|
27213
27400
|
], 2),
|
|
@@ -27238,30 +27425,30 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27238
27425
|
const cssModules$c = {};
|
|
27239
27426
|
cssModules$c["$style"] = style0$b;
|
|
27240
27427
|
var TopInfo = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__cssModules", cssModules$c]]);
|
|
27241
|
-
const chargeMainTitle = "
|
|
27242
|
-
const chargeTitle = "
|
|
27243
|
-
const bannerInfo = "
|
|
27244
|
-
const topupAmount = "
|
|
27245
|
-
const chargeArea = "
|
|
27246
|
-
const paymentMethodContainer = "
|
|
27247
|
-
const desktopUi = "
|
|
27248
|
-
const itemContainer = "
|
|
27249
|
-
const chargeLabel = "
|
|
27250
|
-
const paymentMethod$1 = "
|
|
27251
|
-
const buttonContainer = "
|
|
27252
|
-
const successContainer = "
|
|
27253
|
-
const hidden = "
|
|
27254
|
-
const nonVisible = "
|
|
27255
|
-
const loadingText$1 = "
|
|
27256
|
-
const unAvailable = "
|
|
27257
|
-
const cancelBtn = "
|
|
27258
|
-
const change = "
|
|
27259
|
-
const chargeBtnSticky = "
|
|
27260
|
-
const chargeWrapper = "
|
|
27261
|
-
const chargeTitleContainer = "
|
|
27262
|
-
const chargeListWrapper = "
|
|
27428
|
+
const chargeMainTitle = "_chargeMainTitle_5f7zo_7";
|
|
27429
|
+
const chargeTitle = "_chargeTitle_5f7zo_14";
|
|
27430
|
+
const bannerInfo = "_bannerInfo_5f7zo_19";
|
|
27431
|
+
const topupAmount = "_topupAmount_5f7zo_27";
|
|
27432
|
+
const chargeArea = "_chargeArea_5f7zo_41";
|
|
27433
|
+
const paymentMethodContainer = "_paymentMethodContainer_5f7zo_61";
|
|
27434
|
+
const desktopUi = "_desktopUi_5f7zo_78";
|
|
27435
|
+
const itemContainer = "_itemContainer_5f7zo_84";
|
|
27436
|
+
const chargeLabel = "_chargeLabel_5f7zo_92";
|
|
27437
|
+
const paymentMethod$1 = "_paymentMethod_5f7zo_61";
|
|
27438
|
+
const buttonContainer = "_buttonContainer_5f7zo_108";
|
|
27439
|
+
const successContainer = "_successContainer_5f7zo_114";
|
|
27440
|
+
const hidden = "_hidden_5f7zo_125";
|
|
27441
|
+
const nonVisible = "_nonVisible_5f7zo_134";
|
|
27442
|
+
const loadingText$1 = "_loadingText_5f7zo_137";
|
|
27443
|
+
const unAvailable = "_unAvailable_5f7zo_149";
|
|
27444
|
+
const cancelBtn = "_cancelBtn_5f7zo_168";
|
|
27445
|
+
const change = "_change_5f7zo_173";
|
|
27446
|
+
const chargeBtnSticky = "_chargeBtnSticky_5f7zo_189";
|
|
27447
|
+
const chargeWrapper = "_chargeWrapper_5f7zo_202";
|
|
27448
|
+
const chargeTitleContainer = "_chargeTitleContainer_5f7zo_208";
|
|
27449
|
+
const chargeListWrapper = "_chargeListWrapper_5f7zo_214";
|
|
27263
27450
|
var style0$a = {
|
|
27264
|
-
"ppmna-default-font": "_ppmna-default-
|
|
27451
|
+
"ppmna-default-font": "_ppmna-default-font_5f7zo_1",
|
|
27265
27452
|
chargeMainTitle,
|
|
27266
27453
|
chargeTitle,
|
|
27267
27454
|
bannerInfo,
|
|
@@ -27464,6 +27651,7 @@ const _sfc_main$j = defineComponent({
|
|
|
27464
27651
|
});
|
|
27465
27652
|
const _hoisted_1$d = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
|
|
27466
27653
|
const _hoisted_2$8 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
27654
|
+
const _hoisted_3$7 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
27467
27655
|
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27468
27656
|
const _component_BannerHeader = resolveComponent("BannerHeader");
|
|
27469
27657
|
const _component_ChargeAmountList = resolveComponent("ChargeAmountList");
|
|
@@ -27545,8 +27733,16 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27545
27733
|
onClick: _ctx.openPaymentMethod
|
|
27546
27734
|
}, null, 8, ["payment-method", "class", "onClick"])
|
|
27547
27735
|
], 2)) : createCommentVNode("", true),
|
|
27548
|
-
_ctx.isDesktop ?
|
|
27736
|
+
!_ctx.available && _ctx.isDesktop ? (openBlock(), createElementBlock("div", {
|
|
27549
27737
|
key: 1,
|
|
27738
|
+
class: normalizeClass(_ctx.style.unAvailable)
|
|
27739
|
+
}, [
|
|
27740
|
+
createTextVNode(toDisplayString(_ctx.lg.topContent.unavailable1), 1),
|
|
27741
|
+
_hoisted_2$8,
|
|
27742
|
+
createTextVNode(" " + toDisplayString(_ctx.lg.topContent.unavailable2), 1)
|
|
27743
|
+
], 2)) : createCommentVNode("", true),
|
|
27744
|
+
_ctx.available && _ctx.isDesktop ? withDirectives((openBlock(), createBlock(_component_PayMethod, {
|
|
27745
|
+
key: 2,
|
|
27550
27746
|
title: _ctx.lg.topContent.chargeLabel,
|
|
27551
27747
|
loading: false,
|
|
27552
27748
|
"payment-method": _ctx.paymentMethod,
|
|
@@ -27560,7 +27756,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27560
27756
|
[vShow, !_ctx.done]
|
|
27561
27757
|
]) : createCommentVNode("", true),
|
|
27562
27758
|
_ctx.showUserAddress && _ctx.isDesktop ? (openBlock(), createBlock(_component_GetUserAddressApp, {
|
|
27563
|
-
key:
|
|
27759
|
+
key: 3,
|
|
27564
27760
|
show: !_ctx.done,
|
|
27565
27761
|
addresses: _ctx.addresses,
|
|
27566
27762
|
"get-user-address-params": {},
|
|
@@ -27587,7 +27783,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27587
27783
|
class: normalizeClass(_ctx.style.unAvailable)
|
|
27588
27784
|
}, [
|
|
27589
27785
|
createTextVNode(toDisplayString(_ctx.lg.topContent.unavailable1), 1),
|
|
27590
|
-
|
|
27786
|
+
_hoisted_3$7,
|
|
27591
27787
|
createTextVNode(" " + toDisplayString(_ctx.lg.topContent.unavailable2), 1)
|
|
27592
27788
|
], 2)) : createCommentVNode("", true),
|
|
27593
27789
|
createVNode(_component_Button, {
|
|
@@ -27619,7 +27815,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27619
27815
|
], 2)
|
|
27620
27816
|
], 2),
|
|
27621
27817
|
_ctx.done ? (openBlock(), createElementBlock("div", {
|
|
27622
|
-
key:
|
|
27818
|
+
key: 4,
|
|
27623
27819
|
class: normalizeClass(_ctx.style.successContainer)
|
|
27624
27820
|
}, [
|
|
27625
27821
|
createVNode(_component_Lottie, {
|
|
@@ -27761,6 +27957,10 @@ function isAvailablePaymentMethod(paymentMethod2) {
|
|
|
27761
27957
|
const sbid = paymentMethod2.sbidCarrierBillingInfo;
|
|
27762
27958
|
return (sbid == null ? void 0 : sbid.paymentMethodStatus) === PaymentMethodStatus.ACTIVATED;
|
|
27763
27959
|
}
|
|
27960
|
+
if (paymentMethod2.paymentMethodType === PaymentMethodType.PAY_LATER_CC) {
|
|
27961
|
+
const payLater2 = paymentMethod2.payLaterCcInfo;
|
|
27962
|
+
return (payLater2 == null ? void 0 : payLater2.paymentMethodStatus) === PaymentMethodStatus.ACTIVATED;
|
|
27963
|
+
}
|
|
27764
27964
|
return false;
|
|
27765
27965
|
}
|
|
27766
27966
|
function hasAvailablePaymentMethod(paymentMethods) {
|
|
@@ -27778,7 +27978,7 @@ function findFirstValidMethod(paymentMethods, type) {
|
|
|
27778
27978
|
return -1;
|
|
27779
27979
|
}
|
|
27780
27980
|
function isValidPaymentMethod(savedMethod, paymentMethods, type) {
|
|
27781
|
-
var _a, _b, _c, _d;
|
|
27981
|
+
var _a, _b, _c, _d, _e;
|
|
27782
27982
|
if (savedMethod) {
|
|
27783
27983
|
const payMethod = paymentMethods.find((method) => method.paymentMethodId === savedMethod);
|
|
27784
27984
|
switch (payMethod == null ? void 0 : payMethod.paymentMethodType) {
|
|
@@ -27790,6 +27990,8 @@ function isValidPaymentMethod(savedMethod, paymentMethods, type) {
|
|
|
27790
27990
|
return ((_c = payMethod.bankInfo) == null ? void 0 : _c.paymentMethodStatus) === "ACTIVATED";
|
|
27791
27991
|
case PaymentMethodType.SBID_CARRIER_BILLING:
|
|
27792
27992
|
return ((_d = payMethod.sbidCarrierBillingInfo) == null ? void 0 : _d.paymentMethodStatus) === "ACTIVATED";
|
|
27993
|
+
case PaymentMethodType.PAY_LATER_CC:
|
|
27994
|
+
return ((_e = payMethod.payLaterCcInfo) == null ? void 0 : _e.paymentMethodStatus) === "ACTIVATED";
|
|
27793
27995
|
default:
|
|
27794
27996
|
return false;
|
|
27795
27997
|
}
|
|
@@ -28228,12 +28430,6 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28228
28430
|
const cssModules$9 = {};
|
|
28229
28431
|
cssModules$9["$style"] = style0$8;
|
|
28230
28432
|
var Charge = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__cssModules", cssModules$9]]);
|
|
28231
|
-
function filterUnsupportedPaymentMethod(paymentMethods) {
|
|
28232
|
-
const methods = paymentMethods ? paymentMethods.filter(function(method) {
|
|
28233
|
-
return method.paymentMethodType !== (PaymentMethodType.PAY_LATER || PaymentMethodType.PAY_LATER_CC);
|
|
28234
|
-
}) : paymentMethods;
|
|
28235
|
-
return methods;
|
|
28236
|
-
}
|
|
28237
28433
|
const img$1 = getImages();
|
|
28238
28434
|
function createErrorFromType(type) {
|
|
28239
28435
|
const lg2 = getLanguage();
|
|
@@ -28494,8 +28690,8 @@ function usePaymentMethod(props) {
|
|
|
28494
28690
|
if (walletPaymentMethod && walletPaymentMethod.descriptionBannerInfo) {
|
|
28495
28691
|
paymentState.bannerInfo = walletPaymentMethod.descriptionBannerInfo;
|
|
28496
28692
|
}
|
|
28497
|
-
paymentState.paymentMethods = filterUnsupportedPaymentMethod(paymentMethodList);
|
|
28498
28693
|
const lastSavedMethod = getLastPaymentMethod();
|
|
28694
|
+
paymentState.paymentMethods = paymentMethodList;
|
|
28499
28695
|
paymentState.selectPaymentIndex = isValidPaymentMethod(lastSavedMethod, paymentState == null ? void 0 : paymentState.paymentMethods, PaymentOpType.PAY) ? paymentState.paymentMethods.findIndex((method) => method.paymentMethodId === lastSavedMethod) : findFirstValidMethod(paymentState.paymentMethods, PaymentOpType.PAY);
|
|
28500
28696
|
return {
|
|
28501
28697
|
res,
|
|
@@ -29599,9 +29795,18 @@ const initMakePayment = async (initMakePayment2) => {
|
|
|
29599
29795
|
window.addEventListener("beforeunload", transactionWarning);
|
|
29600
29796
|
};
|
|
29601
29797
|
function createWrap(fn) {
|
|
29602
|
-
return (arg) =>
|
|
29603
|
-
|
|
29604
|
-
|
|
29798
|
+
return (arg) => {
|
|
29799
|
+
setTimeout(() => {
|
|
29800
|
+
fn(arg);
|
|
29801
|
+
}, 0);
|
|
29802
|
+
};
|
|
29803
|
+
}
|
|
29804
|
+
function createWrapComplete(fn) {
|
|
29805
|
+
return () => {
|
|
29806
|
+
setTimeout(() => {
|
|
29807
|
+
fn();
|
|
29808
|
+
}, 0);
|
|
29809
|
+
};
|
|
29605
29810
|
}
|
|
29606
29811
|
const makePayment = async (params) => {
|
|
29607
29812
|
var _a, _b, _c, _d;
|
|
@@ -29622,7 +29827,7 @@ const makePayment = async (params) => {
|
|
|
29622
29827
|
if (fail)
|
|
29623
29828
|
params.fail = createWrap(fail);
|
|
29624
29829
|
if (complete)
|
|
29625
|
-
params.complete =
|
|
29830
|
+
params.complete = createWrapComplete(complete);
|
|
29626
29831
|
initMakePayment(params).catch(() => {
|
|
29627
29832
|
});
|
|
29628
29833
|
};
|
|
@@ -29678,7 +29883,7 @@ function showErrorSheet(params) {
|
|
|
29678
29883
|
try {
|
|
29679
29884
|
initErrorSheet(params);
|
|
29680
29885
|
} catch {
|
|
29681
|
-
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
|
|
29886
|
+
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.unknown });
|
|
29682
29887
|
}
|
|
29683
29888
|
}
|
|
29684
29889
|
const container = "_container_17pxy_1";
|
|
@@ -29827,7 +30032,7 @@ function showAlert(params) {
|
|
|
29827
30032
|
try {
|
|
29828
30033
|
initAlertSheet(params);
|
|
29829
30034
|
} catch {
|
|
29830
|
-
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
|
|
30035
|
+
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.unknown });
|
|
29831
30036
|
}
|
|
29832
30037
|
}
|
|
29833
30038
|
const bannerInfoContainer = "_bannerInfoContainer_1l754_1";
|
|
@@ -30151,46 +30356,46 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30151
30356
|
const cssModules$4 = {};
|
|
30152
30357
|
cssModules$4["$style"] = style0$4;
|
|
30153
30358
|
var TopupCompletion = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__cssModules", cssModules$4]]);
|
|
30154
|
-
const topupWrapper = "
|
|
30155
|
-
const fullHeight = "
|
|
30156
|
-
const bannerText = "
|
|
30157
|
-
const topupMoneyLabel = "
|
|
30158
|
-
const topupCharge = "
|
|
30159
|
-
const fullHeightCharge = "
|
|
30160
|
-
const bannerMargin = "
|
|
30161
|
-
const topup$2 = "
|
|
30162
|
-
const noBorder = "
|
|
30163
|
-
const banner = "
|
|
30164
|
-
const invalidAmount = "
|
|
30165
|
-
const loadingText = "
|
|
30166
|
-
const choosePayment$1 = "
|
|
30167
|
-
const amountList = "
|
|
30168
|
-
const balance = "
|
|
30169
|
-
const chargeSelect = "
|
|
30170
|
-
const blueDivider = "
|
|
30171
|
-
const chargeMoney = "
|
|
30172
|
-
const unit = "
|
|
30173
|
-
const chargeInput = "
|
|
30174
|
-
const inputLeft = "
|
|
30175
|
-
const inputRight = "
|
|
30176
|
-
const noMethod = "
|
|
30177
|
-
const topupMoney = "
|
|
30178
|
-
const moneyLabel = "
|
|
30179
|
-
const btnContainer = "
|
|
30180
|
-
const fullBtnContainer = "
|
|
30181
|
-
const moneyList = "
|
|
30182
|
-
const doneContainer = "
|
|
30183
|
-
const ppmnaLottie = "
|
|
30184
|
-
const moreMoney = "
|
|
30185
|
-
const fullHeightPayMethod = "
|
|
30186
|
-
const fullHeightInput = "
|
|
30187
|
-
const fullHeightLottie = "
|
|
30188
|
-
const paymentType = "
|
|
30359
|
+
const topupWrapper = "_topupWrapper_eufp7_7";
|
|
30360
|
+
const fullHeight = "_fullHeight_eufp7_13";
|
|
30361
|
+
const bannerText = "_bannerText_eufp7_20";
|
|
30362
|
+
const topupMoneyLabel = "_topupMoneyLabel_eufp7_23";
|
|
30363
|
+
const topupCharge = "_topupCharge_eufp7_31";
|
|
30364
|
+
const fullHeightCharge = "_fullHeightCharge_eufp7_37";
|
|
30365
|
+
const bannerMargin = "_bannerMargin_eufp7_40";
|
|
30366
|
+
const topup$2 = "_topup_eufp7_7";
|
|
30367
|
+
const noBorder = "_noBorder_eufp7_52";
|
|
30368
|
+
const banner = "_banner_eufp7_20";
|
|
30369
|
+
const invalidAmount = "_invalidAmount_eufp7_58";
|
|
30370
|
+
const loadingText = "_loadingText_eufp7_63";
|
|
30371
|
+
const choosePayment$1 = "_choosePayment_eufp7_72";
|
|
30372
|
+
const amountList = "_amountList_eufp7_79";
|
|
30373
|
+
const balance = "_balance_eufp7_99";
|
|
30374
|
+
const chargeSelect = "_chargeSelect_eufp7_106";
|
|
30375
|
+
const blueDivider = "_blueDivider_eufp7_112";
|
|
30376
|
+
const chargeMoney = "_chargeMoney_eufp7_119";
|
|
30377
|
+
const unit = "_unit_eufp7_125";
|
|
30378
|
+
const chargeInput = "_chargeInput_eufp7_128";
|
|
30379
|
+
const inputLeft = "_inputLeft_eufp7_143";
|
|
30380
|
+
const inputRight = "_inputRight_eufp7_150";
|
|
30381
|
+
const noMethod = "_noMethod_eufp7_157";
|
|
30382
|
+
const topupMoney = "_topupMoney_eufp7_23";
|
|
30383
|
+
const moneyLabel = "_moneyLabel_eufp7_170";
|
|
30384
|
+
const btnContainer = "_btnContainer_eufp7_174";
|
|
30385
|
+
const fullBtnContainer = "_fullBtnContainer_eufp7_181";
|
|
30386
|
+
const moneyList = "_moneyList_eufp7_196";
|
|
30387
|
+
const doneContainer = "_doneContainer_eufp7_200";
|
|
30388
|
+
const ppmnaLottie = "_ppmnaLottie_eufp7_207";
|
|
30389
|
+
const moreMoney = "_moreMoney_eufp7_212";
|
|
30390
|
+
const fullHeightPayMethod = "_fullHeightPayMethod_eufp7_217";
|
|
30391
|
+
const fullHeightInput = "_fullHeightInput_eufp7_223";
|
|
30392
|
+
const fullHeightLottie = "_fullHeightLottie_eufp7_226";
|
|
30393
|
+
const paymentType = "_paymentType_eufp7_230";
|
|
30189
30394
|
var style0$3 = {
|
|
30190
|
-
"ppmna-default-font": "_ppmna-default-
|
|
30395
|
+
"ppmna-default-font": "_ppmna-default-font_eufp7_1",
|
|
30191
30396
|
topupWrapper,
|
|
30192
30397
|
fullHeight,
|
|
30193
|
-
"btn-position": "_btn-
|
|
30398
|
+
"btn-position": "_btn-position_eufp7_17",
|
|
30194
30399
|
bannerText,
|
|
30195
30400
|
topupMoneyLabel,
|
|
30196
30401
|
topupCharge,
|
|
@@ -30364,8 +30569,8 @@ const _sfc_main$a = defineComponent({
|
|
|
30364
30569
|
this.errorShow = true;
|
|
30365
30570
|
return;
|
|
30366
30571
|
}
|
|
30367
|
-
this.paymentMethodList =
|
|
30368
|
-
this.
|
|
30572
|
+
this.paymentMethodList = (_h = (_g = (_f = paymentIdResponse.body.unsigned) == null ? void 0 : _f.data) == null ? void 0 : _g.payload) == null ? void 0 : _h.paymentMethodList;
|
|
30573
|
+
this.findFirstValidMethodTopup();
|
|
30369
30574
|
const config = getAppConfig();
|
|
30370
30575
|
if (config) {
|
|
30371
30576
|
this.inputMoney = (_i = config == null ? void 0 : config.topupHalfSheetRecommendedAmount[0]) == null ? void 0 : _i.value;
|
|
@@ -30378,41 +30583,11 @@ const _sfc_main$a = defineComponent({
|
|
|
30378
30583
|
createAnime(s) {
|
|
30379
30584
|
this.lottieAnim = s;
|
|
30380
30585
|
},
|
|
30381
|
-
|
|
30382
|
-
var _a
|
|
30586
|
+
findFirstValidMethodTopup() {
|
|
30587
|
+
var _a;
|
|
30383
30588
|
if (((_a = this.paymentMethodList) == null ? void 0 : _a.length) > 0) {
|
|
30384
|
-
|
|
30385
|
-
|
|
30386
|
-
case PaymentMethodType.BANK:
|
|
30387
|
-
case PaymentMethodType.YMONEY_BANK:
|
|
30388
|
-
if (((_b = payMethod.bankInfo) == null ? void 0 : _b.paymentMethodStatus) === "ACTIVATED") {
|
|
30389
|
-
this.selectedPaymentMethod = payMethod;
|
|
30390
|
-
this.selectPaymentIndex = index2;
|
|
30391
|
-
return;
|
|
30392
|
-
}
|
|
30393
|
-
break;
|
|
30394
|
-
case PaymentMethodType.CREDIT_CARD:
|
|
30395
|
-
if (((_c = payMethod.creditCardInfo) == null ? void 0 : _c.paymentMethodStatus) === "ACTIVATED" && !((_d = payMethod.creditCardInfo) == null ? void 0 : _d.isExpired)) {
|
|
30396
|
-
this.selectedPaymentMethod = payMethod;
|
|
30397
|
-
this.selectPaymentIndex = index2;
|
|
30398
|
-
return;
|
|
30399
|
-
}
|
|
30400
|
-
break;
|
|
30401
|
-
case PaymentMethodType.SBID_CARRIER_BILLING:
|
|
30402
|
-
if (((_e = payMethod.sbidCarrierBillingInfo) == null ? void 0 : _e.paymentMethodStatus) === "ACTIVATED") {
|
|
30403
|
-
this.selectedPaymentMethod = payMethod;
|
|
30404
|
-
this.selectPaymentIndex = index2;
|
|
30405
|
-
return;
|
|
30406
|
-
}
|
|
30407
|
-
break;
|
|
30408
|
-
case PaymentMethodType.WALLET:
|
|
30409
|
-
this.selectedPaymentMethod = payMethod;
|
|
30410
|
-
this.selectPaymentIndex = index2;
|
|
30411
|
-
return;
|
|
30412
|
-
}
|
|
30413
|
-
if (index2 < ((_f = this.paymentMethodList) == null ? void 0 : _f.length)) {
|
|
30414
|
-
this.findFirstValidMethod(++index2);
|
|
30415
|
-
}
|
|
30589
|
+
this.selectPaymentIndex = findFirstValidMethod(this.paymentMethodList, PaymentOpType.TOPUP);
|
|
30590
|
+
this.selectedPaymentMethod = this.paymentMethodList[this.selectPaymentIndex];
|
|
30416
30591
|
}
|
|
30417
30592
|
},
|
|
30418
30593
|
async switchInput() {
|
|
@@ -31025,7 +31200,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
31025
31200
|
}
|
|
31026
31201
|
} catch {
|
|
31027
31202
|
this.errorShow = true;
|
|
31028
|
-
(_e = (_d = this.warningParams) == null ? void 0 : _d.fail) == null ? void 0 : _e.call(_d);
|
|
31203
|
+
(_e = (_d = this.warningParams) == null ? void 0 : _d.fail) == null ? void 0 : _e.call(_d, { errorCode: MiniAppErrorType.unknown });
|
|
31029
31204
|
} finally {
|
|
31030
31205
|
this.$emit("close-click");
|
|
31031
31206
|
}
|
|
@@ -31088,7 +31263,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31088
31263
|
}, null, 8, ["show", "error-text"])
|
|
31089
31264
|
], 64);
|
|
31090
31265
|
}
|
|
31091
|
-
var AppVue$5 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-
|
|
31266
|
+
var AppVue$5 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-f36ed910"]]);
|
|
31092
31267
|
const initShowUpdateWarning = (params) => {
|
|
31093
31268
|
const show2 = ref(true);
|
|
31094
31269
|
const warningParams = reactive(params);
|
|
@@ -31970,6 +32145,19 @@ function openApp$1(params) {
|
|
|
31970
32145
|
}
|
|
31971
32146
|
initOpenApp(params);
|
|
31972
32147
|
}
|
|
32148
|
+
function openMiniApp(params) {
|
|
32149
|
+
var _a, _b;
|
|
32150
|
+
if (params) {
|
|
32151
|
+
reconstructParams(params);
|
|
32152
|
+
}
|
|
32153
|
+
const clientId = getClientId();
|
|
32154
|
+
if (!clientId) {
|
|
32155
|
+
return (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.sdkNotInitialized });
|
|
32156
|
+
}
|
|
32157
|
+
const appUrl = (params == null ? void 0 : params.redirectUrl) ? `paypay://miniapp?appId=${clientId}&redirectUrl=${encodeURIComponent(params == null ? void 0 : params.redirectUrl)}` : `paypay://miniapp?appId=${clientId}`;
|
|
32158
|
+
window.location.href = appUrl;
|
|
32159
|
+
(_b = params == null ? void 0 : params.success) == null ? void 0 : _b.call(params);
|
|
32160
|
+
}
|
|
31973
32161
|
async function checkPaymentMethod(params) {
|
|
31974
32162
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
31975
32163
|
reconstructParams(params);
|
|
@@ -32042,7 +32230,7 @@ function debug(params) {
|
|
|
32042
32230
|
function execute$5(params) {
|
|
32043
32231
|
var _a;
|
|
32044
32232
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
|
|
32045
|
-
v: "1.
|
|
32233
|
+
v: "1.29.0"
|
|
32046
32234
|
});
|
|
32047
32235
|
}
|
|
32048
32236
|
function useCallBack(props, ctx) {
|
|
@@ -33277,7 +33465,9 @@ const initSmartButton = (params, data2, preferredLanguage, isLoggedIn) => {
|
|
|
33277
33465
|
function renderLoginButton(params, lg2, preferredLanguage, loggedinUser) {
|
|
33278
33466
|
var _a, _b;
|
|
33279
33467
|
if (!(params == null ? void 0 : params.containerId) || !document.getElementById(params == null ? void 0 : params.containerId)) {
|
|
33280
|
-
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params
|
|
33468
|
+
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, {
|
|
33469
|
+
errorCode: MiniAppErrorType.badRequestInsufficientParameter
|
|
33470
|
+
});
|
|
33281
33471
|
return console.error("Invalid container Id");
|
|
33282
33472
|
}
|
|
33283
33473
|
let data2 = {
|
|
@@ -33302,7 +33492,9 @@ function renderLoginButton(params, lg2, preferredLanguage, loggedinUser) {
|
|
|
33302
33492
|
function renderPayButton(params, lg2, preferredLanguage, isLoggedIn, cashbackInfo) {
|
|
33303
33493
|
var _a;
|
|
33304
33494
|
if (!(params == null ? void 0 : params.containerId) || !document.getElementById(params == null ? void 0 : params.containerId)) {
|
|
33305
|
-
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params
|
|
33495
|
+
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, {
|
|
33496
|
+
errorCode: MiniAppErrorType.badRequestInsufficientParameter
|
|
33497
|
+
});
|
|
33306
33498
|
return console.error("Invalid container Id");
|
|
33307
33499
|
}
|
|
33308
33500
|
let data2 = {
|
|
@@ -33392,7 +33584,7 @@ const birthdayConfirm = {
|
|
|
33392
33584
|
const birthdayConfirmError = {
|
|
33393
33585
|
title: "Winning this campaign",
|
|
33394
33586
|
title2: "PayPay balance could not be earned.",
|
|
33395
|
-
desc: "The displayed
|
|
33587
|
+
desc: "The displayed point amount is",
|
|
33396
33588
|
desc2: "Cancelled at a later date based on campaign terms",
|
|
33397
33589
|
helpBtn: "Check help page",
|
|
33398
33590
|
closeBtn: "Close"
|
|
@@ -33500,8 +33692,12 @@ const wallet = {
|
|
|
33500
33692
|
desc: "See the breakdown",
|
|
33501
33693
|
eMoney: "PayPay Money",
|
|
33502
33694
|
nonUsable: "PayPay Money Lite",
|
|
33503
|
-
cashBackUsable: "PayPay
|
|
33504
|
-
cashBackExpirable: "PayPay
|
|
33695
|
+
cashBackUsable: "PayPay Point",
|
|
33696
|
+
cashBackExpirable: "PayPay Point Light",
|
|
33697
|
+
balance: "Available amount:"
|
|
33698
|
+
};
|
|
33699
|
+
const payLater = {
|
|
33700
|
+
title: "PayPay deferred payment",
|
|
33505
33701
|
balance: "Available amount:"
|
|
33506
33702
|
};
|
|
33507
33703
|
const softbank = {
|
|
@@ -33554,6 +33750,7 @@ var en = {
|
|
|
33554
33750
|
paymentMethod,
|
|
33555
33751
|
paymentMethodStatus,
|
|
33556
33752
|
wallet,
|
|
33753
|
+
payLater,
|
|
33557
33754
|
softbank,
|
|
33558
33755
|
smartLogin,
|
|
33559
33756
|
smartPay,
|
|
@@ -33583,6 +33780,7 @@ var en$1 = /* @__PURE__ */ Object.freeze({
|
|
|
33583
33780
|
paymentMethod,
|
|
33584
33781
|
paymentMethodStatus,
|
|
33585
33782
|
wallet,
|
|
33783
|
+
payLater,
|
|
33586
33784
|
softbank,
|
|
33587
33785
|
smartLogin,
|
|
33588
33786
|
smartPay,
|
|
@@ -33663,7 +33861,7 @@ function callbackHandler(params, callback) {
|
|
|
33663
33861
|
try {
|
|
33664
33862
|
callback();
|
|
33665
33863
|
} catch {
|
|
33666
|
-
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
|
|
33864
|
+
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.unknown });
|
|
33667
33865
|
}
|
|
33668
33866
|
}
|
|
33669
33867
|
function setSessionData(params) {
|
|
@@ -33781,6 +33979,9 @@ class MiniAppModule extends JsBridgeModule {
|
|
|
33781
33979
|
this.jsBridge.callNative("openMap", params);
|
|
33782
33980
|
}
|
|
33783
33981
|
}
|
|
33982
|
+
openMiniApp(params) {
|
|
33983
|
+
openMiniApp(params);
|
|
33984
|
+
}
|
|
33784
33985
|
closeApp(params) {
|
|
33785
33986
|
closeApp(params);
|
|
33786
33987
|
}
|