@paypay/mini-app-js-sdk 1.29.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +280 -198
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/makePayment.d.ts +1 -0
- package/dist/model/uiComponents.d.ts +2 -1
- package/dist/package/charge-amount-list/index.vue.d.ts +8 -0
- package/dist/package/payment-method/PayLaterCC.vue.d.ts +2 -0
- package/dist/package/payment-method/SbidBank.vue.d.ts +2 -0
- package/dist/package/payment-method/Wallet.vue.d.ts +2 -0
- package/dist/package/payment-type/PayLaterCC.vue.d.ts +2 -0
- package/dist/package/payment-type/Sbid.vue.d.ts +2 -0
- package/dist/package/payment-type/Wallet.vue.d.ts +3 -0
- package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +2 -0
- package/dist/utils/getImages.d.ts +1 -0
- package/dist/utils/getLanguage.d.ts +1 -0
- package/dist/utils/helper.d.ts +2 -0
- package/dist/views/email-registration/App.vue.d.ts +1 -0
- package/dist/views/error-sheet/Index.vue.d.ts +8 -2
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +2 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +2 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +2 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +2 -0
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +2 -0
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +2 -0
- package/dist/views/make-payment/Sheets/Consult.vue.d.ts +1 -1
- package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +2 -0
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +2 -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 +2 -0
- package/dist/views/make-payment/hooks/app-hooks.d.ts +1 -0
- package/dist/views/open-app/App.vue.d.ts +2 -0
- package/dist/views/open-map/App.vue.d.ts +1 -0
- package/dist/views/show-update-warning/App.vue.d.ts +2 -0
- package/dist/views/take-photo/App.vue.d.ts +1 -0
- package/dist/views/topup/App.vue.d.ts +2 -0
- package/dist/views/topup/CashbackInfo.vue.d.ts +1 -0
- package/dist/views/topup/TopupCompletion.vue.d.ts +2 -0
- package/package.json +1 -1
|
@@ -65,8 +65,8 @@ function normalizeNativeResponseData(data2) {
|
|
|
65
65
|
}
|
|
66
66
|
class JsBridge {
|
|
67
67
|
constructor(global2) {
|
|
68
|
-
this.version = "1.
|
|
69
|
-
this.revision = "
|
|
68
|
+
this.version = "1.32.0";
|
|
69
|
+
this.revision = "19afd4b";
|
|
70
70
|
this.messageHandlers = new Map();
|
|
71
71
|
this.responseCallbacks = new Map();
|
|
72
72
|
this.global = global2;
|
|
@@ -1070,8 +1070,9 @@ const wallet$1 = {
|
|
|
1070
1070
|
eMoney: "PayPay\u30DE\u30CD\u30FC",
|
|
1071
1071
|
nonUsable: "PayPay\u30DE\u30CD\u30FC\u30E9\u30A4\u30C8",
|
|
1072
1072
|
cashBackUsable: "PayPay\u30DD\u30A4\u30F3\u30C8",
|
|
1073
|
-
cashBackExpirable: "PayPay\
|
|
1074
|
-
balance: "\u5229\u7528\u53EF\u80FD\u984D\uFF1A"
|
|
1073
|
+
cashBackExpirable: "PayPay\u30DC\u30FC\u30CA\u30B9\u30E9\u30A4\u30C8",
|
|
1074
|
+
balance: "\u5229\u7528\u53EF\u80FD\u984D\uFF1A",
|
|
1075
|
+
autoCharge: "\u30AA\u30FC\u30C8\u30C1\u30E3\u30FC\u30B8"
|
|
1075
1076
|
};
|
|
1076
1077
|
const payLater$2 = {
|
|
1077
1078
|
title: "PayPay\u3042\u3068\u6255\u3044",
|
|
@@ -1316,6 +1317,120 @@ const sendAge = (payload) => {
|
|
|
1316
1317
|
data: payload
|
|
1317
1318
|
});
|
|
1318
1319
|
};
|
|
1320
|
+
var UIComponentsButtonActionType;
|
|
1321
|
+
(function(UIComponentsButtonActionType2) {
|
|
1322
|
+
UIComponentsButtonActionType2["DEEPLINK"] = "DEEPLINK";
|
|
1323
|
+
UIComponentsButtonActionType2["CLOSE"] = "CLOSE";
|
|
1324
|
+
UIComponentsButtonActionType2["NATIVE"] = "NATIVE";
|
|
1325
|
+
})(UIComponentsButtonActionType || (UIComponentsButtonActionType = {}));
|
|
1326
|
+
var UIComponentsButtonType;
|
|
1327
|
+
(function(UIComponentsButtonType2) {
|
|
1328
|
+
UIComponentsButtonType2["BLUE"] = "BLUE";
|
|
1329
|
+
UIComponentsButtonType2["WHITE"] = "WHITE";
|
|
1330
|
+
})(UIComponentsButtonType || (UIComponentsButtonType = {}));
|
|
1331
|
+
async function topup$3(queryParams, body) {
|
|
1332
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1333
|
+
const res = await ppFetch({
|
|
1334
|
+
method: "POST",
|
|
1335
|
+
url: "web-api/app/v1/payment/topup",
|
|
1336
|
+
params: queryParams,
|
|
1337
|
+
data: body
|
|
1338
|
+
});
|
|
1339
|
+
if ("error" in res) {
|
|
1340
|
+
return res;
|
|
1341
|
+
}
|
|
1342
|
+
const isSuccess = ((_b = (_a = res.unsigned) == null ? void 0 : _a.resultInfo) == null ? void 0 : _b.code) === "SUCCESS" && ["COMPLETED"].includes((_d = (_c = res.unsigned) == null ? void 0 : _c.data) == null ? void 0 : _d.status);
|
|
1343
|
+
if (isSuccess) {
|
|
1344
|
+
saveTopup({
|
|
1345
|
+
amount: (_g = (_f = (_e = res.unsigned) == null ? void 0 : _e.data) == null ? void 0 : _f.amount) == null ? void 0 : _g.amount
|
|
1346
|
+
});
|
|
1347
|
+
}
|
|
1348
|
+
return res;
|
|
1349
|
+
}
|
|
1350
|
+
async function getCashBackInfo() {
|
|
1351
|
+
return await ppFetch({
|
|
1352
|
+
method: "GET",
|
|
1353
|
+
url: "/web-api/app/platform/v1/balance",
|
|
1354
|
+
headers: {
|
|
1355
|
+
"INTERNAL-CALL": "true"
|
|
1356
|
+
}
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
async function getAddressByZip(params) {
|
|
1360
|
+
return await ppFetch({
|
|
1361
|
+
method: "GET",
|
|
1362
|
+
url: "web-api/app/v1/addressbyzip",
|
|
1363
|
+
params
|
|
1364
|
+
});
|
|
1365
|
+
}
|
|
1366
|
+
async function getAddressList() {
|
|
1367
|
+
return ppFetch({
|
|
1368
|
+
method: "GET",
|
|
1369
|
+
url: "web-api/app/v1/users/addresslist",
|
|
1370
|
+
params: {
|
|
1371
|
+
type: "PREFERRED"
|
|
1372
|
+
}
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
async function postAddress(body) {
|
|
1376
|
+
return await ppFetch({
|
|
1377
|
+
method: "POST",
|
|
1378
|
+
url: "web-api/app/v1/users/address",
|
|
1379
|
+
data: body
|
|
1380
|
+
});
|
|
1381
|
+
}
|
|
1382
|
+
async function editAddress(body, id) {
|
|
1383
|
+
return await ppFetch({
|
|
1384
|
+
method: "PUT",
|
|
1385
|
+
url: `web-api/app/v1/users/address/${id}`,
|
|
1386
|
+
data: body
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
async function deleteAddress(id) {
|
|
1390
|
+
return await ppFetch({
|
|
1391
|
+
method: "DELETE",
|
|
1392
|
+
url: `web-api/app/v1/users/address/${id}`
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
async function setSelectedAddress(addressId) {
|
|
1396
|
+
return ppFetch({
|
|
1397
|
+
url: `web-api/app/v1/users/address/selected/${addressId}`,
|
|
1398
|
+
method: "PUT"
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
async function getUserProfileData() {
|
|
1402
|
+
return ppFetch({
|
|
1403
|
+
url: "web-api/app/v1/users/profile",
|
|
1404
|
+
method: "GET"
|
|
1405
|
+
});
|
|
1406
|
+
}
|
|
1407
|
+
async function registerEmail$1(email) {
|
|
1408
|
+
return ppFetch({
|
|
1409
|
+
url: "web-api/app/v1/users/email",
|
|
1410
|
+
method: "POST",
|
|
1411
|
+
data: {
|
|
1412
|
+
email
|
|
1413
|
+
}
|
|
1414
|
+
});
|
|
1415
|
+
}
|
|
1416
|
+
async function resendEmail() {
|
|
1417
|
+
return ppFetch({
|
|
1418
|
+
url: "web-api/app/v1/users/resendVerification",
|
|
1419
|
+
method: "POST"
|
|
1420
|
+
});
|
|
1421
|
+
}
|
|
1422
|
+
function getUserLocationRequest(params) {
|
|
1423
|
+
return ppFetch({
|
|
1424
|
+
url: "web-api/app/v1/location",
|
|
1425
|
+
method: "GET",
|
|
1426
|
+
params: {
|
|
1427
|
+
validTimeMinutes: params.validTimeMinutes
|
|
1428
|
+
}
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1431
|
+
function isValidUrl(urlChallenge) {
|
|
1432
|
+
return /^https?:\/\//.test(urlChallenge);
|
|
1433
|
+
}
|
|
1319
1434
|
function isDef(val2) {
|
|
1320
1435
|
return val2 !== void 0 && val2 !== null;
|
|
1321
1436
|
}
|
|
@@ -1512,6 +1627,20 @@ function getPaymentMethodStatus(isExpired, val2) {
|
|
|
1512
1627
|
return lg2.paymentMethod.expired;
|
|
1513
1628
|
return val2 && val2 in PaymentMethodStatus ? lg2.paymentMethodStatus[val2] : "";
|
|
1514
1629
|
}
|
|
1630
|
+
function filterErrorButtonList(buttonList) {
|
|
1631
|
+
return buttonList == null ? void 0 : buttonList.filter((button2) => {
|
|
1632
|
+
var _a, _b;
|
|
1633
|
+
if (button2.actionType === UIComponentsButtonActionType.NATIVE) {
|
|
1634
|
+
return false;
|
|
1635
|
+
} else {
|
|
1636
|
+
if (isPayPayMiniApp() || button2.actionType === UIComponentsButtonActionType.CLOSE) {
|
|
1637
|
+
return true;
|
|
1638
|
+
} else {
|
|
1639
|
+
return (button2 == null ? void 0 : button2.deeplink) && isValidUrl(button2 == null ? void 0 : button2.deeplink) || ((_a = button2 == null ? void 0 : button2.deeplink) == null ? void 0 : _a.startsWith("paypay://embed")) && ((_b = button2 == null ? void 0 : button2.deeplink) == null ? void 0 : _b.includes("?url="));
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1515
1644
|
const opaUrl = () => {
|
|
1516
1645
|
switch (getEnv()) {
|
|
1517
1646
|
case "staging":
|
|
@@ -1528,7 +1657,7 @@ const opaUrl = () => {
|
|
|
1528
1657
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
1529
1658
|
let headers = new Headers(__spreadValues({
|
|
1530
1659
|
"Content-Type": "application/json",
|
|
1531
|
-
"Client-Version": "1.
|
|
1660
|
+
"Client-Version": "1.32.0",
|
|
1532
1661
|
"Client-OS-Type": getRuntime()
|
|
1533
1662
|
}, customHeaders));
|
|
1534
1663
|
if (urlEndpoint === "web-api/app/v2/payment/methods" || urlEndpoint === "web-api/app/v2/payment/consult" || urlEndpoint === "web-api/app/v1/payment/cashbackDetail" || urlEndpoint === "web-api/app/v1/confirmAgeForCashback" || urlEndpoint === "web-api/app/v1/internal/request" || urlEndpoint === "web-api/app/v1/addressbyzip" || urlEndpoint === "/web-api/app/platform/v1/balance") {
|
|
@@ -19970,6 +20099,7 @@ const softbank$1 = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/payment/sof
|
|
|
19970
20099
|
const iconBirthday = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-birthday.svg";
|
|
19971
20100
|
const iconMinorAge = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-minor-age.svg";
|
|
19972
20101
|
const iconClose = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-close.svg";
|
|
20102
|
+
const whiteIconClose = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-close-white.svg";
|
|
19973
20103
|
const myOffer = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-myoffer-multi.svg";
|
|
19974
20104
|
const lightBlue = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-more-lightblue.svg";
|
|
19975
20105
|
const iconBalanceIcon = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-balance-icon.svg";
|
|
@@ -20006,6 +20136,7 @@ var images = {
|
|
|
20006
20136
|
iconBirthday,
|
|
20007
20137
|
iconMinorAge,
|
|
20008
20138
|
iconClose,
|
|
20139
|
+
whiteIconClose,
|
|
20009
20140
|
myOffer,
|
|
20010
20141
|
lightBlue,
|
|
20011
20142
|
iconBalanceIcon,
|
|
@@ -20197,9 +20328,9 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20197
20328
|
}, 8, ["name"])
|
|
20198
20329
|
]);
|
|
20199
20330
|
}
|
|
20200
|
-
const cssModules$
|
|
20201
|
-
cssModules$
|
|
20202
|
-
var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__cssModules", cssModules$
|
|
20331
|
+
const cssModules$P = {};
|
|
20332
|
+
cssModules$P["$style"] = style0$N;
|
|
20333
|
+
var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__cssModules", cssModules$P]]);
|
|
20203
20334
|
const img$b = "_img_373i3_1";
|
|
20204
20335
|
var style0$M = {
|
|
20205
20336
|
img: img$b
|
|
@@ -20260,7 +20391,7 @@ const _hoisted_2$q = { class: "payment-method--content-container--image-containe
|
|
|
20260
20391
|
const _hoisted_3$l = ["src"];
|
|
20261
20392
|
const _hoisted_4$h = { class: "payment-method--content-container--label" };
|
|
20262
20393
|
const _hoisted_5$d = { class: "payment-method--content-container--label--main" };
|
|
20263
|
-
const _hoisted_6$
|
|
20394
|
+
const _hoisted_6$7 = { class: "payment-method--content-container--label--sub" };
|
|
20264
20395
|
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20265
20396
|
const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
|
|
20266
20397
|
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
@@ -20272,14 +20403,14 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20272
20403
|
]),
|
|
20273
20404
|
createBaseVNode("div", _hoisted_4$h, [
|
|
20274
20405
|
createBaseVNode("span", _hoisted_5$d, toDisplayString(_ctx.lg.wallet.title), 1),
|
|
20275
|
-
createBaseVNode("span", _hoisted_6$
|
|
20406
|
+
createBaseVNode("span", _hoisted_6$7, toDisplayString(_ctx.formattedBalance) + "\u5186 ", 1),
|
|
20276
20407
|
createVNode(_component_WalletBreakdown, { wallet: _ctx.wallet }, null, 8, ["wallet"])
|
|
20277
20408
|
])
|
|
20278
20409
|
]);
|
|
20279
20410
|
}
|
|
20280
|
-
const cssModules$
|
|
20281
|
-
cssModules$
|
|
20282
|
-
var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__cssModules", cssModules$
|
|
20411
|
+
const cssModules$O = {};
|
|
20412
|
+
cssModules$O["$style"] = style0$M;
|
|
20413
|
+
var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__cssModules", cssModules$O], ["__scopeId", "data-v-e0654490"]]);
|
|
20283
20414
|
const img$a = "_img_p3zha_1";
|
|
20284
20415
|
const round$2 = "_round_p3zha_5";
|
|
20285
20416
|
const nonVisible$1 = "_nonVisible_p3zha_8";
|
|
@@ -20480,9 +20611,9 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20480
20611
|
], 2)
|
|
20481
20612
|
], 2);
|
|
20482
20613
|
}
|
|
20483
|
-
const cssModules$
|
|
20484
|
-
cssModules$
|
|
20485
|
-
var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__cssModules", cssModules$
|
|
20614
|
+
const cssModules$N = {};
|
|
20615
|
+
cssModules$N["$style"] = style0$L;
|
|
20616
|
+
var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__cssModules", cssModules$N], ["__scopeId", "data-v-4589c43a"]]);
|
|
20486
20617
|
const img$8 = "_img_11k9z_1";
|
|
20487
20618
|
const round$1 = "_round_11k9z_5";
|
|
20488
20619
|
const branchNumber = "_branchNumber_11k9z_8";
|
|
@@ -20623,9 +20754,9 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20623
20754
|
], 2)
|
|
20624
20755
|
], 2);
|
|
20625
20756
|
}
|
|
20626
|
-
const cssModules$
|
|
20627
|
-
cssModules$
|
|
20628
|
-
var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__cssModules", cssModules$
|
|
20757
|
+
const cssModules$M = {};
|
|
20758
|
+
cssModules$M["$style"] = style0$K;
|
|
20759
|
+
var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__cssModules", cssModules$M]]);
|
|
20629
20760
|
const container$k = "_container_82o6p_1";
|
|
20630
20761
|
const imageContainer$1 = "_imageContainer_82o6p_7";
|
|
20631
20762
|
const img$7 = "_img_82o6p_11";
|
|
@@ -20741,9 +20872,9 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20741
20872
|
], 2)
|
|
20742
20873
|
], 2);
|
|
20743
20874
|
}
|
|
20744
|
-
const cssModules$
|
|
20745
|
-
cssModules$
|
|
20746
|
-
var Sbid = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__cssModules", cssModules$
|
|
20875
|
+
const cssModules$L = {};
|
|
20876
|
+
cssModules$L["$style"] = style0$J;
|
|
20877
|
+
var Sbid = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__cssModules", cssModules$L]]);
|
|
20747
20878
|
const img$6 = "_img_m6p0b_1";
|
|
20748
20879
|
const container$j = "_container_m6p0b_5";
|
|
20749
20880
|
const imgContainer$2 = "_imgContainer_m6p0b_10";
|
|
@@ -20836,9 +20967,9 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20836
20967
|
], 2)
|
|
20837
20968
|
], 2);
|
|
20838
20969
|
}
|
|
20839
|
-
const cssModules$
|
|
20840
|
-
cssModules$
|
|
20841
|
-
var PayLaterCC = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__cssModules", cssModules$
|
|
20970
|
+
const cssModules$K = {};
|
|
20971
|
+
cssModules$K["$style"] = style0$I;
|
|
20972
|
+
var PayLaterCC = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__cssModules", cssModules$K]]);
|
|
20842
20973
|
const PaymentMethod = defineComponent({
|
|
20843
20974
|
props: {
|
|
20844
20975
|
paymentMethod: {
|
|
@@ -20939,6 +21070,14 @@ function useBreakpoints() {
|
|
|
20939
21070
|
};
|
|
20940
21071
|
}
|
|
20941
21072
|
var Wallet_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
21073
|
+
const chargeContainer = "_chargeContainer_1teaz_1";
|
|
21074
|
+
const greenTick = "_greenTick_1teaz_6";
|
|
21075
|
+
const autoCharge = "_autoCharge_1teaz_10";
|
|
21076
|
+
var style1$1 = {
|
|
21077
|
+
chargeContainer,
|
|
21078
|
+
greenTick,
|
|
21079
|
+
autoCharge
|
|
21080
|
+
};
|
|
20942
21081
|
const _sfc_main$X = defineComponent({
|
|
20943
21082
|
components: {
|
|
20944
21083
|
WalletBreakdown
|
|
@@ -20955,20 +21094,26 @@ const _sfc_main$X = defineComponent({
|
|
|
20955
21094
|
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);
|
|
20956
21095
|
});
|
|
20957
21096
|
const { isDesktop } = useBreakpoints();
|
|
21097
|
+
const isPreTransactionAutoChargeEnabled = computed(() => {
|
|
21098
|
+
var _a, _b;
|
|
21099
|
+
return (_b = (_a = props == null ? void 0 : props.wallet) == null ? void 0 : _a.walletInfo) == null ? void 0 : _b.isPreTransactionAutoChargeEnabled;
|
|
21100
|
+
});
|
|
20958
21101
|
return {
|
|
20959
21102
|
formattedBalance,
|
|
20960
21103
|
images: getImages(),
|
|
20961
21104
|
lg: getLanguage(),
|
|
20962
|
-
isDesktop
|
|
21105
|
+
isDesktop,
|
|
21106
|
+
isPreTransactionAutoChargeEnabled
|
|
20963
21107
|
};
|
|
20964
21108
|
}
|
|
20965
21109
|
});
|
|
20966
|
-
const _withScopeId$3 = (n) => (pushScopeId("data-v-
|
|
21110
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-aa178176"), n = n(), popScopeId(), n);
|
|
20967
21111
|
const _hoisted_1$C = { class: "ppmna-payment-type--container bank-method--right-align" };
|
|
20968
21112
|
const _hoisted_2$n = ["src"];
|
|
20969
21113
|
const _hoisted_3$i = { class: "ppmna-payment-type--container--main" };
|
|
20970
21114
|
const _hoisted_4$e = { class: "ppmna-payment-type--container--sub" };
|
|
20971
|
-
const _hoisted_5$a =
|
|
21115
|
+
const _hoisted_5$a = ["src"];
|
|
21116
|
+
const _hoisted_6$6 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createBaseVNode("div", { class: "payment-type--arrow-right-container" }, [
|
|
20972
21117
|
/* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
|
|
20973
21118
|
], -1));
|
|
20974
21119
|
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -20983,15 +21128,30 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20983
21128
|
createBaseVNode("div", null, [
|
|
20984
21129
|
createBaseVNode("div", _hoisted_3$i, toDisplayString(_ctx.lg.wallet.title), 1),
|
|
20985
21130
|
createBaseVNode("div", _hoisted_4$e, toDisplayString(_ctx.lg.wallet.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 1),
|
|
20986
|
-
_ctx.
|
|
21131
|
+
_ctx.isPreTransactionAutoChargeEnabled ? (openBlock(), createElementBlock("div", {
|
|
20987
21132
|
key: 0,
|
|
21133
|
+
class: normalizeClass(_ctx.$style.chargeContainer)
|
|
21134
|
+
}, [
|
|
21135
|
+
createBaseVNode("img", {
|
|
21136
|
+
class: normalizeClass(_ctx.$style.greenTick),
|
|
21137
|
+
src: _ctx.images.checkGreen,
|
|
21138
|
+
alt: "green-tick"
|
|
21139
|
+
}, null, 10, _hoisted_5$a),
|
|
21140
|
+
createBaseVNode("span", {
|
|
21141
|
+
class: normalizeClass(_ctx.$style.autoCharge)
|
|
21142
|
+
}, toDisplayString(_ctx.lg.wallet.autoCharge), 3)
|
|
21143
|
+
], 2)) : createCommentVNode("", true),
|
|
21144
|
+
_ctx.isDesktop ? (openBlock(), createBlock(_component_WalletBreakdown, {
|
|
21145
|
+
key: 1,
|
|
20988
21146
|
wallet: _ctx.wallet
|
|
20989
21147
|
}, null, 8, ["wallet"])) : createCommentVNode("", true)
|
|
20990
21148
|
]),
|
|
20991
|
-
|
|
21149
|
+
_hoisted_6$6
|
|
20992
21150
|
]);
|
|
20993
21151
|
}
|
|
20994
|
-
|
|
21152
|
+
const cssModules$J = {};
|
|
21153
|
+
cssModules$J["$style"] = style1$1;
|
|
21154
|
+
var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__cssModules", cssModules$J], ["__scopeId", "data-v-aa178176"]]);
|
|
20995
21155
|
const main = "_main_1rgsx_1";
|
|
20996
21156
|
const auth = "_auth_1rgsx_6";
|
|
20997
21157
|
const authImage = "_authImage_1rgsx_11";
|
|
@@ -21929,6 +22089,11 @@ const _sfc_main$Q = defineComponent({
|
|
|
21929
22089
|
type: Array,
|
|
21930
22090
|
default: () => [2e3, 3e3, 5e3, 1e4, 3e4, 5e4, 1e5],
|
|
21931
22091
|
required: false
|
|
22092
|
+
},
|
|
22093
|
+
isTopup: {
|
|
22094
|
+
type: Boolean,
|
|
22095
|
+
required: false,
|
|
22096
|
+
default: false
|
|
21932
22097
|
}
|
|
21933
22098
|
},
|
|
21934
22099
|
emits: ["setmoney", "switchinput", "selectmoremoney"],
|
|
@@ -21960,7 +22125,7 @@ const _sfc_main$Q = defineComponent({
|
|
|
21960
22125
|
};
|
|
21961
22126
|
const handleSelectMoreClick = (e) => {
|
|
21962
22127
|
e == null ? void 0 : e.stopPropagation();
|
|
21963
|
-
if (isMobile.value) {
|
|
22128
|
+
if (isMobile.value || props.isTopup) {
|
|
21964
22129
|
emit("selectmoremoney");
|
|
21965
22130
|
} else {
|
|
21966
22131
|
state.toggleDropdown = true;
|
|
@@ -23117,109 +23282,6 @@ function useAddressControl$1() {
|
|
|
23117
23282
|
confirmSelectedAddress
|
|
23118
23283
|
};
|
|
23119
23284
|
}
|
|
23120
|
-
async function topup$3(queryParams, body) {
|
|
23121
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
23122
|
-
const res = await ppFetch({
|
|
23123
|
-
method: "POST",
|
|
23124
|
-
url: "web-api/app/v1/payment/topup",
|
|
23125
|
-
params: queryParams,
|
|
23126
|
-
data: body
|
|
23127
|
-
});
|
|
23128
|
-
if ("error" in res) {
|
|
23129
|
-
return res;
|
|
23130
|
-
}
|
|
23131
|
-
const isSuccess = ((_b = (_a = res.unsigned) == null ? void 0 : _a.resultInfo) == null ? void 0 : _b.code) === "SUCCESS" && ["COMPLETED"].includes((_d = (_c = res.unsigned) == null ? void 0 : _c.data) == null ? void 0 : _d.status);
|
|
23132
|
-
if (isSuccess) {
|
|
23133
|
-
saveTopup({
|
|
23134
|
-
amount: (_g = (_f = (_e = res.unsigned) == null ? void 0 : _e.data) == null ? void 0 : _f.amount) == null ? void 0 : _g.amount
|
|
23135
|
-
});
|
|
23136
|
-
}
|
|
23137
|
-
return res;
|
|
23138
|
-
}
|
|
23139
|
-
async function getCashBackInfo() {
|
|
23140
|
-
return await ppFetch({
|
|
23141
|
-
method: "GET",
|
|
23142
|
-
url: "/web-api/app/platform/v1/balance",
|
|
23143
|
-
headers: {
|
|
23144
|
-
"INTERNAL-CALL": "true"
|
|
23145
|
-
}
|
|
23146
|
-
});
|
|
23147
|
-
}
|
|
23148
|
-
async function getAddressByZip(params) {
|
|
23149
|
-
return await ppFetch({
|
|
23150
|
-
method: "GET",
|
|
23151
|
-
url: "web-api/app/v1/addressbyzip",
|
|
23152
|
-
params
|
|
23153
|
-
});
|
|
23154
|
-
}
|
|
23155
|
-
async function getAddressList() {
|
|
23156
|
-
return ppFetch({
|
|
23157
|
-
method: "GET",
|
|
23158
|
-
url: "web-api/app/v1/users/addresslist",
|
|
23159
|
-
params: {
|
|
23160
|
-
type: "PREFERRED"
|
|
23161
|
-
}
|
|
23162
|
-
});
|
|
23163
|
-
}
|
|
23164
|
-
async function postAddress(body) {
|
|
23165
|
-
return await ppFetch({
|
|
23166
|
-
method: "POST",
|
|
23167
|
-
url: "web-api/app/v1/users/address",
|
|
23168
|
-
data: body
|
|
23169
|
-
});
|
|
23170
|
-
}
|
|
23171
|
-
async function editAddress(body, id) {
|
|
23172
|
-
return await ppFetch({
|
|
23173
|
-
method: "PUT",
|
|
23174
|
-
url: `web-api/app/v1/users/address/${id}`,
|
|
23175
|
-
data: body
|
|
23176
|
-
});
|
|
23177
|
-
}
|
|
23178
|
-
async function deleteAddress(id) {
|
|
23179
|
-
return await ppFetch({
|
|
23180
|
-
method: "DELETE",
|
|
23181
|
-
url: `web-api/app/v1/users/address/${id}`
|
|
23182
|
-
});
|
|
23183
|
-
}
|
|
23184
|
-
async function setSelectedAddress(addressId) {
|
|
23185
|
-
return ppFetch({
|
|
23186
|
-
url: `web-api/app/v1/users/address/selected/${addressId}`,
|
|
23187
|
-
method: "PUT"
|
|
23188
|
-
});
|
|
23189
|
-
}
|
|
23190
|
-
async function getUserProfileData() {
|
|
23191
|
-
return ppFetch({
|
|
23192
|
-
url: "web-api/app/v1/users/profile",
|
|
23193
|
-
method: "GET"
|
|
23194
|
-
});
|
|
23195
|
-
}
|
|
23196
|
-
async function registerEmail$1(email) {
|
|
23197
|
-
return ppFetch({
|
|
23198
|
-
url: "web-api/app/v1/users/email",
|
|
23199
|
-
method: "POST",
|
|
23200
|
-
data: {
|
|
23201
|
-
email
|
|
23202
|
-
}
|
|
23203
|
-
});
|
|
23204
|
-
}
|
|
23205
|
-
async function resendEmail() {
|
|
23206
|
-
return ppFetch({
|
|
23207
|
-
url: "web-api/app/v1/users/resendVerification",
|
|
23208
|
-
method: "POST"
|
|
23209
|
-
});
|
|
23210
|
-
}
|
|
23211
|
-
function getUserLocationRequest(params) {
|
|
23212
|
-
return ppFetch({
|
|
23213
|
-
url: "web-api/app/v1/location",
|
|
23214
|
-
method: "GET",
|
|
23215
|
-
params: {
|
|
23216
|
-
validTimeMinutes: params.validTimeMinutes
|
|
23217
|
-
}
|
|
23218
|
-
});
|
|
23219
|
-
}
|
|
23220
|
-
function isValidUrl(urlChallenge) {
|
|
23221
|
-
return /^https?:\/\//.test(urlChallenge);
|
|
23222
|
-
}
|
|
23223
23285
|
const root$6 = "_root_122l2_2";
|
|
23224
23286
|
const title$5 = "_title_122l2_6";
|
|
23225
23287
|
const container$a = "_container_122l2_13";
|
|
@@ -24660,6 +24722,23 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24660
24722
|
const cssModules$l = {};
|
|
24661
24723
|
cssModules$l["$style"] = style0$k;
|
|
24662
24724
|
var App = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z], ["__cssModules", cssModules$l]]);
|
|
24725
|
+
function closeApp(params) {
|
|
24726
|
+
var _a;
|
|
24727
|
+
if (params) {
|
|
24728
|
+
reconstructParams(params);
|
|
24729
|
+
}
|
|
24730
|
+
if (isPayPayMiniApp()) {
|
|
24731
|
+
if ((_a = params == null ? void 0 : params.options) == null ? void 0 : _a.deeplink) {
|
|
24732
|
+
window.location.href = params.options.deeplink;
|
|
24733
|
+
} else {
|
|
24734
|
+
window.location.href = "paypay://closeMiniApp";
|
|
24735
|
+
}
|
|
24736
|
+
}
|
|
24737
|
+
setTimeout(function() {
|
|
24738
|
+
var _a2;
|
|
24739
|
+
(_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.deeplinkUnavailable });
|
|
24740
|
+
}, 300);
|
|
24741
|
+
}
|
|
24663
24742
|
function openWebview(params) {
|
|
24664
24743
|
var _a, _b, _c, _d;
|
|
24665
24744
|
reconstructParams(params);
|
|
@@ -24727,23 +24806,13 @@ function getAuthUrl(redirectUrl) {
|
|
|
24727
24806
|
const clientId = (_a = getClientId()) != null ? _a : "";
|
|
24728
24807
|
return `${authUrl}/portal/auth/mini-app/permission?clientId=${clientId}&redirectUrl=${encodeURIComponent(redirectUrl)}`;
|
|
24729
24808
|
}
|
|
24730
|
-
|
|
24731
|
-
|
|
24732
|
-
|
|
24733
|
-
|
|
24734
|
-
|
|
24735
|
-
|
|
24736
|
-
|
|
24737
|
-
UIComponentsButtonType2["BLUE"] = "BLUE";
|
|
24738
|
-
UIComponentsButtonType2["WHITE"] = "WHITE";
|
|
24739
|
-
})(UIComponentsButtonType || (UIComponentsButtonType = {}));
|
|
24740
|
-
const errorContainer = "_errorContainer_9pch3_1";
|
|
24741
|
-
const errorIcon = "_errorIcon_9pch3_8";
|
|
24742
|
-
const unit$2 = "_unit_9pch3_15";
|
|
24743
|
-
const errorTitle = "_errorTitle_9pch3_18";
|
|
24744
|
-
const subTitle = "_subTitle_9pch3_26";
|
|
24745
|
-
const btnContainer$2 = "_btnContainer_9pch3_34";
|
|
24746
|
-
const closeBtn = "_closeBtn_9pch3_38";
|
|
24809
|
+
const errorContainer = "_errorContainer_169nl_1";
|
|
24810
|
+
const errorIcon = "_errorIcon_169nl_8";
|
|
24811
|
+
const unit$2 = "_unit_169nl_15";
|
|
24812
|
+
const errorTitle = "_errorTitle_169nl_18";
|
|
24813
|
+
const subTitle = "_subTitle_169nl_26";
|
|
24814
|
+
const btnContainer$2 = "_btnContainer_169nl_34";
|
|
24815
|
+
const closeBtn = "_closeBtn_169nl_38";
|
|
24747
24816
|
var style0$j = {
|
|
24748
24817
|
errorContainer,
|
|
24749
24818
|
errorIcon,
|
|
@@ -24793,6 +24862,15 @@ const _sfc_main$y = defineComponent({
|
|
|
24793
24862
|
lg: getLanguage()
|
|
24794
24863
|
};
|
|
24795
24864
|
},
|
|
24865
|
+
computed: {
|
|
24866
|
+
buttonListData() {
|
|
24867
|
+
return filterErrorButtonList(this.buttonList);
|
|
24868
|
+
},
|
|
24869
|
+
onlyButton() {
|
|
24870
|
+
var _a;
|
|
24871
|
+
return ((_a = this.buttonListData) == null ? void 0 : _a.length) === 1;
|
|
24872
|
+
}
|
|
24873
|
+
},
|
|
24796
24874
|
methods: {
|
|
24797
24875
|
buttonClick(buttonInfo) {
|
|
24798
24876
|
var _a;
|
|
@@ -24803,12 +24881,24 @@ const _sfc_main$y = defineComponent({
|
|
|
24803
24881
|
const splitUrl = (_a = buttonInfo == null ? void 0 : buttonInfo.deeplink) == null ? void 0 : _a.split("?url=");
|
|
24804
24882
|
if ((splitUrl == null ? void 0 : splitUrl.length) === 2) {
|
|
24805
24883
|
openWebviewInternal({ url: splitUrl[1] });
|
|
24884
|
+
} else {
|
|
24885
|
+
closeApp({
|
|
24886
|
+
options: {
|
|
24887
|
+
deeplink: buttonInfo.deeplink
|
|
24888
|
+
}
|
|
24889
|
+
});
|
|
24806
24890
|
}
|
|
24807
24891
|
}
|
|
24808
24892
|
return;
|
|
24809
24893
|
}
|
|
24810
24894
|
this.$emit("close-click");
|
|
24811
24895
|
return;
|
|
24896
|
+
},
|
|
24897
|
+
getButtonType(type) {
|
|
24898
|
+
if (type === UIComponentsButtonType.BLUE || this.onlyButton) {
|
|
24899
|
+
return "primary";
|
|
24900
|
+
}
|
|
24901
|
+
return "link";
|
|
24812
24902
|
}
|
|
24813
24903
|
}
|
|
24814
24904
|
});
|
|
@@ -24840,15 +24930,15 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24840
24930
|
createBaseVNode("div", {
|
|
24841
24931
|
class: normalizeClass(_ctx.style.subTitle)
|
|
24842
24932
|
}, toDisplayString(_ctx.errorText), 3),
|
|
24843
|
-
_ctx.
|
|
24933
|
+
_ctx.buttonListData ? (openBlock(), createElementBlock("span", {
|
|
24844
24934
|
key: 1,
|
|
24845
24935
|
class: normalizeClass(_ctx.style.btnContainer)
|
|
24846
24936
|
}, [
|
|
24847
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.
|
|
24937
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonListData, (item, index2) => {
|
|
24848
24938
|
return openBlock(), createElementBlock("div", { key: index2 }, [
|
|
24849
24939
|
createVNode(_component_Button, {
|
|
24850
24940
|
block: "",
|
|
24851
|
-
type: item.buttonType
|
|
24941
|
+
type: _ctx.getButtonType(item.buttonType),
|
|
24852
24942
|
onClick: ($event) => _ctx.buttonClick(item)
|
|
24853
24943
|
}, {
|
|
24854
24944
|
default: withCtx(() => [
|
|
@@ -26565,7 +26655,8 @@ const _sfc_main$p = defineComponent({
|
|
|
26565
26655
|
emits: ["close"],
|
|
26566
26656
|
setup(props, context) {
|
|
26567
26657
|
const getButtonType = (type) => {
|
|
26568
|
-
|
|
26658
|
+
var _a;
|
|
26659
|
+
if (type === UIComponentsButtonType.BLUE || ((_a = buttonList == null ? void 0 : buttonList.value) == null ? void 0 : _a.length) === 1) {
|
|
26569
26660
|
return "primary";
|
|
26570
26661
|
}
|
|
26571
26662
|
return "link";
|
|
@@ -26579,6 +26670,12 @@ const _sfc_main$p = defineComponent({
|
|
|
26579
26670
|
const splitUrl = (_a = buttonInfo == null ? void 0 : buttonInfo.deeplink) == null ? void 0 : _a.split("?url=");
|
|
26580
26671
|
if ((splitUrl == null ? void 0 : splitUrl.length) === 2) {
|
|
26581
26672
|
openWebviewInternal({ url: splitUrl[1] });
|
|
26673
|
+
} else {
|
|
26674
|
+
closeApp({
|
|
26675
|
+
options: {
|
|
26676
|
+
deeplink: buttonInfo.deeplink
|
|
26677
|
+
}
|
|
26678
|
+
});
|
|
26582
26679
|
}
|
|
26583
26680
|
}
|
|
26584
26681
|
return;
|
|
@@ -26587,14 +26684,7 @@ const _sfc_main$p = defineComponent({
|
|
|
26587
26684
|
return;
|
|
26588
26685
|
};
|
|
26589
26686
|
const buttonList = computed(() => {
|
|
26590
|
-
|
|
26591
|
-
return props.consultInfo.buttonList;
|
|
26592
|
-
} else {
|
|
26593
|
-
return props.consultInfo.buttonList.filter((button2) => {
|
|
26594
|
-
var _a;
|
|
26595
|
-
return !((_a = button2.deeplink) == null ? void 0 : _a.startsWith("paypay://"));
|
|
26596
|
-
});
|
|
26597
|
-
}
|
|
26687
|
+
return filterErrorButtonList(props.consultInfo.buttonList);
|
|
26598
26688
|
});
|
|
26599
26689
|
return {
|
|
26600
26690
|
getButtonType,
|
|
@@ -27058,11 +27148,12 @@ const _sfc_main$l = defineComponent({
|
|
|
27058
27148
|
},
|
|
27059
27149
|
emits: ["close"],
|
|
27060
27150
|
setup(props, { emit }) {
|
|
27151
|
+
const cashback2 = ref();
|
|
27061
27152
|
const { animation, uiState, type } = useData$1(props);
|
|
27062
27153
|
const { postAgeConfirm } = getAgeConfirm();
|
|
27063
27154
|
const lg2 = getLanguage();
|
|
27064
27155
|
const images2 = getImages();
|
|
27065
|
-
const { isDesktop } = useBreakpoints();
|
|
27156
|
+
const { isDesktop, isMobile } = useBreakpoints();
|
|
27066
27157
|
const isCountDown = ref(false);
|
|
27067
27158
|
const countDown = useCountDown({
|
|
27068
27159
|
time: 5e3,
|
|
@@ -27164,10 +27255,10 @@ const _sfc_main$l = defineComponent({
|
|
|
27164
27255
|
};
|
|
27165
27256
|
const style = useCssModule();
|
|
27166
27257
|
const headerFix = computed(() => {
|
|
27167
|
-
var _a;
|
|
27168
|
-
const
|
|
27258
|
+
var _a, _b, _c;
|
|
27259
|
+
const offsetTop = (_b = (_a = cashback2 == null ? void 0 : cashback2.value) == null ? void 0 : _a.offsetTop) != null ? _b : 0;
|
|
27169
27260
|
return {
|
|
27170
|
-
top: `${16 + (((
|
|
27261
|
+
top: `${16 + (((_c = type.value) == null ? void 0 : _c.tierCampaignBottom) ? 0 : Math.abs(offsetTop))}px`
|
|
27171
27262
|
};
|
|
27172
27263
|
});
|
|
27173
27264
|
return {
|
|
@@ -27198,8 +27289,10 @@ const _sfc_main$l = defineComponent({
|
|
|
27198
27289
|
close: close2,
|
|
27199
27290
|
loaded: computed(() => uiState.animationLoaded),
|
|
27200
27291
|
headerFix,
|
|
27292
|
+
isMobile: isMobile.value,
|
|
27201
27293
|
images: images2,
|
|
27202
|
-
lg: lg2
|
|
27294
|
+
lg: lg2,
|
|
27295
|
+
cashback: cashback2
|
|
27203
27296
|
};
|
|
27204
27297
|
}
|
|
27205
27298
|
});
|
|
@@ -27210,7 +27303,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27210
27303
|
const _component_BirthdayConfirm = resolveComponent("BirthdayConfirm");
|
|
27211
27304
|
const _component_BirthdayConfirmError = resolveComponent("BirthdayConfirmError");
|
|
27212
27305
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
27213
|
-
|
|
27306
|
+
ref: "cashback",
|
|
27307
|
+
class: normalizeClass(["pp-cashback-lottie-container", {
|
|
27214
27308
|
[_ctx.style.cashBackAnimationLottie]: _ctx.type.lottie,
|
|
27215
27309
|
[_ctx.style.cashBackAnimationBottom]: _ctx.type.tierCampaignBottom,
|
|
27216
27310
|
[_ctx.style.cashBackAnimationFull]: _ctx.type.tierCampaignFull,
|
|
@@ -27229,8 +27323,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27229
27323
|
_ctx.showContent && !_ctx.showAgeConfirm ? (openBlock(), createElementBlock("img", {
|
|
27230
27324
|
key: 0,
|
|
27231
27325
|
class: normalizeClass(_ctx.style.closeImage),
|
|
27232
|
-
src: _ctx.images.
|
|
27233
|
-
style: normalizeStyle(_ctx.headerFix),
|
|
27326
|
+
src: _ctx.images.whiteIconClose,
|
|
27327
|
+
style: normalizeStyle([_ctx.isMobile ? _ctx.headerFix : {}]),
|
|
27234
27328
|
"data-test": "cash-back-detail-close-button",
|
|
27235
27329
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.close && _ctx.close(...args))
|
|
27236
27330
|
}, null, 14, _hoisted_1$f)) : createCommentVNode("", true),
|
|
@@ -30035,11 +30129,11 @@ function showAlert(params) {
|
|
|
30035
30129
|
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.unknown });
|
|
30036
30130
|
}
|
|
30037
30131
|
}
|
|
30038
|
-
const bannerInfoContainer = "
|
|
30039
|
-
const bannerInfoIcon = "
|
|
30040
|
-
const bannerDesc = "
|
|
30041
|
-
const updateIcon = "
|
|
30042
|
-
const bannerTitle = "
|
|
30132
|
+
const bannerInfoContainer = "_bannerInfoContainer_17644_1";
|
|
30133
|
+
const bannerInfoIcon = "_bannerInfoIcon_17644_9";
|
|
30134
|
+
const bannerDesc = "_bannerDesc_17644_14";
|
|
30135
|
+
const updateIcon = "_updateIcon_17644_20";
|
|
30136
|
+
const bannerTitle = "_bannerTitle_17644_23";
|
|
30043
30137
|
var style0$6 = {
|
|
30044
30138
|
bannerInfoContainer,
|
|
30045
30139
|
bannerInfoIcon,
|
|
@@ -30601,6 +30695,8 @@ const _sfc_main$a = defineComponent({
|
|
|
30601
30695
|
}
|
|
30602
30696
|
this.cashbackData = (_a = cashbackInfo == null ? void 0 : cashbackInfo.data) == null ? void 0 : _a.payload;
|
|
30603
30697
|
this.inputMoney = 0;
|
|
30698
|
+
this.minAmountUnmet = false;
|
|
30699
|
+
this.maxAmountExceeded = false;
|
|
30604
30700
|
this.fixBalMoney = (_f = (_e = (_d = (_c = (_b = cashbackInfo == null ? void 0 : cashbackInfo.data) == null ? void 0 : _b.payload) == null ? void 0 : _c.walletSummary) == null ? void 0 : _d.totalBalanceInfo) == null ? void 0 : _e.balance) != null ? _f : 0;
|
|
30605
30701
|
this.balMoney = formatCurrency(this.inputMoney + this.fixBalMoney, 0);
|
|
30606
30702
|
this.fixCashbackBalance = (_k = (_j = (_i = (_h = (_g = cashbackInfo == null ? void 0 : cashbackInfo.data) == null ? void 0 : _g.payload) == null ? void 0 : _h.walletSummary) == null ? void 0 : _i.allTotalBalanceInfo) == null ? void 0 : _j.balance) != null ? _k : 0;
|
|
@@ -30672,6 +30768,7 @@ const _sfc_main$a = defineComponent({
|
|
|
30672
30768
|
setCurrentMoney(price2) {
|
|
30673
30769
|
this.inputMoney = price2;
|
|
30674
30770
|
this.isSelectMoreMoney = false;
|
|
30771
|
+
this.checkValidAmount();
|
|
30675
30772
|
},
|
|
30676
30773
|
selectPaymentMethod(index2) {
|
|
30677
30774
|
this.selectPaymentIndex = index2;
|
|
@@ -30896,6 +30993,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30896
30993
|
isfullheight: !_ctx.isInput,
|
|
30897
30994
|
small: true,
|
|
30898
30995
|
class: normalizeClass(_ctx.$style.amountList),
|
|
30996
|
+
"is-topup": true,
|
|
30899
30997
|
onSetmoney: _ctx.setMoney,
|
|
30900
30998
|
onSelectmoremoney: _ctx.selectMoreMoney,
|
|
30901
30999
|
onSwitchinput: _ctx.switchInput
|
|
@@ -30961,7 +31059,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30961
31059
|
createVNode(_component_Button, {
|
|
30962
31060
|
type: "primary",
|
|
30963
31061
|
block: "",
|
|
30964
|
-
disabled: _ctx.disablePaymentBtn || _ctx.loading,
|
|
31062
|
+
disabled: _ctx.disablePaymentBtn || _ctx.loading || _ctx.inputMoney == 0,
|
|
30965
31063
|
loading: _ctx.loading,
|
|
30966
31064
|
"data-test": "click-topup",
|
|
30967
31065
|
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.clickTopup(false))
|
|
@@ -31138,23 +31236,6 @@ function topup$1(params) {
|
|
|
31138
31236
|
reconstructParams(params);
|
|
31139
31237
|
initTopup(params);
|
|
31140
31238
|
}
|
|
31141
|
-
function closeApp(params) {
|
|
31142
|
-
var _a;
|
|
31143
|
-
if (params) {
|
|
31144
|
-
reconstructParams(params);
|
|
31145
|
-
}
|
|
31146
|
-
if (isPayPayMiniApp()) {
|
|
31147
|
-
if ((_a = params == null ? void 0 : params.options) == null ? void 0 : _a.deeplink) {
|
|
31148
|
-
window.location.href = params.options.deeplink;
|
|
31149
|
-
} else {
|
|
31150
|
-
window.location.href = "paypay://closeMiniApp";
|
|
31151
|
-
}
|
|
31152
|
-
}
|
|
31153
|
-
setTimeout(function() {
|
|
31154
|
-
var _a2;
|
|
31155
|
-
(_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.deeplinkUnavailable });
|
|
31156
|
-
}, 300);
|
|
31157
|
-
}
|
|
31158
31239
|
var App_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
31159
31240
|
const _sfc_main$9 = defineComponent({
|
|
31160
31241
|
components: {
|
|
@@ -32230,7 +32311,7 @@ function debug(params) {
|
|
|
32230
32311
|
function execute$5(params) {
|
|
32231
32312
|
var _a;
|
|
32232
32313
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
|
|
32233
|
-
v: "1.
|
|
32314
|
+
v: "1.32.0"
|
|
32234
32315
|
});
|
|
32235
32316
|
}
|
|
32236
32317
|
function useCallBack(props, ctx) {
|
|
@@ -33693,8 +33774,9 @@ const wallet = {
|
|
|
33693
33774
|
eMoney: "PayPay Money",
|
|
33694
33775
|
nonUsable: "PayPay Money Lite",
|
|
33695
33776
|
cashBackUsable: "PayPay Point",
|
|
33696
|
-
cashBackExpirable: "PayPay
|
|
33697
|
-
balance: "Available amount:"
|
|
33777
|
+
cashBackExpirable: "PayPay Bonus Light",
|
|
33778
|
+
balance: "Available amount:",
|
|
33779
|
+
autoCharge: "Auto charge"
|
|
33698
33780
|
};
|
|
33699
33781
|
const payLater = {
|
|
33700
33782
|
title: "PayPay deferred payment",
|