@paypay/mini-app-js-sdk 1.35.0 → 1.36.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 +184 -142
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/makePayment.d.ts +1 -1
- package/dist/utils/api.d.ts +6 -6
- package/dist/views/get-user-address/App.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +3 -3
- package/dist/views/get-user-address/Sheet/App.vue.d.ts +2 -2
- package/dist/views/get-user-address/store/error-handle.d.ts +2 -3
- package/dist/views/input-address/App.vue.d.ts +2 -2
- package/dist/views/input-address/hook/app.d.ts +4 -4
- package/dist/views/input-address/hook/error-handle.d.ts +1 -10
- 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.36.0";
|
|
69
|
+
this.revision = "48c1722";
|
|
70
70
|
this.messageHandlers = new Map();
|
|
71
71
|
this.responseCallbacks = new Map();
|
|
72
72
|
this.global = global2;
|
|
@@ -1412,14 +1412,14 @@ async function getCashBackInfo() {
|
|
|
1412
1412
|
});
|
|
1413
1413
|
}
|
|
1414
1414
|
async function getAddressByZip(params) {
|
|
1415
|
-
return await
|
|
1415
|
+
return await ppFetch2({
|
|
1416
1416
|
method: "GET",
|
|
1417
1417
|
url: "web-api/app/v1/addressbyzip",
|
|
1418
1418
|
params
|
|
1419
1419
|
});
|
|
1420
1420
|
}
|
|
1421
1421
|
async function getAddressList() {
|
|
1422
|
-
return
|
|
1422
|
+
return ppFetch2({
|
|
1423
1423
|
method: "GET",
|
|
1424
1424
|
url: "web-api/app/v1/users/addresslist",
|
|
1425
1425
|
params: {
|
|
@@ -1428,27 +1428,27 @@ async function getAddressList() {
|
|
|
1428
1428
|
});
|
|
1429
1429
|
}
|
|
1430
1430
|
async function postAddress(body) {
|
|
1431
|
-
return await
|
|
1431
|
+
return await ppFetch2({
|
|
1432
1432
|
method: "POST",
|
|
1433
1433
|
url: "web-api/app/v1/users/address",
|
|
1434
1434
|
data: body
|
|
1435
1435
|
});
|
|
1436
1436
|
}
|
|
1437
1437
|
async function editAddress(body, id) {
|
|
1438
|
-
return await
|
|
1438
|
+
return await ppFetch2({
|
|
1439
1439
|
method: "PUT",
|
|
1440
1440
|
url: `web-api/app/v1/users/address/${id}`,
|
|
1441
1441
|
data: body
|
|
1442
1442
|
});
|
|
1443
1443
|
}
|
|
1444
1444
|
async function deleteAddress(id) {
|
|
1445
|
-
return await
|
|
1445
|
+
return await ppFetch2({
|
|
1446
1446
|
method: "DELETE",
|
|
1447
1447
|
url: `web-api/app/v1/users/address/${id}`
|
|
1448
1448
|
});
|
|
1449
1449
|
}
|
|
1450
1450
|
async function setSelectedAddress(addressId) {
|
|
1451
|
-
return
|
|
1451
|
+
return ppFetch2({
|
|
1452
1452
|
url: `web-api/app/v1/users/address/selected/${addressId}`,
|
|
1453
1453
|
method: "PUT"
|
|
1454
1454
|
});
|
|
@@ -1720,7 +1720,7 @@ const opaUrl = () => {
|
|
|
1720
1720
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
1721
1721
|
let headers = new Headers(__spreadValues({
|
|
1722
1722
|
"Content-Type": "application/json",
|
|
1723
|
-
"Client-Version": "1.
|
|
1723
|
+
"Client-Version": "1.36.0",
|
|
1724
1724
|
"Client-OS-Type": getRuntime()
|
|
1725
1725
|
}, customHeaders));
|
|
1726
1726
|
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") {
|
|
@@ -8273,7 +8273,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
8273
8273
|
}
|
|
8274
8274
|
return target;
|
|
8275
8275
|
};
|
|
8276
|
-
const _hoisted_1$
|
|
8276
|
+
const _hoisted_1$P = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
8277
8277
|
function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8278
8278
|
return openBlock(), createElementBlock("div", {
|
|
8279
8279
|
class: normalizeClass(_ctx.styles.loading)
|
|
@@ -8284,7 +8284,7 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8284
8284
|
createBaseVNode("div", {
|
|
8285
8285
|
class: normalizeClass(_ctx.styles.bounce2)
|
|
8286
8286
|
}, null, 2),
|
|
8287
|
-
_hoisted_1$
|
|
8287
|
+
_hoisted_1$P
|
|
8288
8288
|
], 2);
|
|
8289
8289
|
}
|
|
8290
8290
|
var LoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1m]]);
|
|
@@ -20933,15 +20933,18 @@ const _sfc_main$1k = defineComponent({
|
|
|
20933
20933
|
};
|
|
20934
20934
|
}
|
|
20935
20935
|
});
|
|
20936
|
-
const _hoisted_1$
|
|
20936
|
+
const _hoisted_1$O = { class: "payment-method--content-container" };
|
|
20937
20937
|
const _hoisted_2$t = { class: "payment-method--content-container--image-container" };
|
|
20938
20938
|
const _hoisted_3$n = ["src"];
|
|
20939
20939
|
const _hoisted_4$i = { class: "payment-method--content-container--label" };
|
|
20940
|
-
const _hoisted_5$e = {
|
|
20940
|
+
const _hoisted_5$e = {
|
|
20941
|
+
class: "payment-method--content-container--label--main",
|
|
20942
|
+
"data-testid": "pay-method-title"
|
|
20943
|
+
};
|
|
20941
20944
|
const _hoisted_6$9 = { class: "payment-method--content-container--label--sub" };
|
|
20942
20945
|
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20943
20946
|
const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
|
|
20944
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20947
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
20945
20948
|
createBaseVNode("div", _hoisted_2$t, [
|
|
20946
20949
|
createBaseVNode("img", {
|
|
20947
20950
|
class: normalizeClass(_ctx.style.img),
|
|
@@ -20957,7 +20960,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20957
20960
|
}
|
|
20958
20961
|
const cssModules$12 = {};
|
|
20959
20962
|
cssModules$12["$style"] = style0$10;
|
|
20960
|
-
var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1k], ["__cssModules", cssModules$12], ["__scopeId", "data-v-
|
|
20963
|
+
var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1k], ["__cssModules", cssModules$12], ["__scopeId", "data-v-73b82320"]]);
|
|
20961
20964
|
const img$b = "_img_p3zha_1";
|
|
20962
20965
|
const round$2 = "_round_p3zha_5";
|
|
20963
20966
|
const nonVisible$1 = "_nonVisible_p3zha_8";
|
|
@@ -21095,9 +21098,15 @@ const _sfc_main$1j = defineComponent({
|
|
|
21095
21098
|
};
|
|
21096
21099
|
}
|
|
21097
21100
|
});
|
|
21098
|
-
const _hoisted_1$
|
|
21099
|
-
const _hoisted_2$s = {
|
|
21100
|
-
|
|
21101
|
+
const _hoisted_1$N = ["src"];
|
|
21102
|
+
const _hoisted_2$s = {
|
|
21103
|
+
class: "payment-method--content-container--label--main",
|
|
21104
|
+
"data-testid": "pay-method-title"
|
|
21105
|
+
};
|
|
21106
|
+
const _hoisted_3$m = {
|
|
21107
|
+
class: "payment-method--content-container--label--sub",
|
|
21108
|
+
"data-testid": "credit-method-last-digits"
|
|
21109
|
+
};
|
|
21101
21110
|
const _hoisted_4$h = ["src"];
|
|
21102
21111
|
const _hoisted_5$d = { class: "right-align" };
|
|
21103
21112
|
function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -21112,7 +21121,7 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21112
21121
|
createBaseVNode("img", {
|
|
21113
21122
|
src: _ctx.cardInfo.logo,
|
|
21114
21123
|
class: normalizeClass([_ctx.style.img, _ctx.cardInfo.style])
|
|
21115
|
-
}, null, 10, _hoisted_1$
|
|
21124
|
+
}, null, 10, _hoisted_1$N)
|
|
21116
21125
|
], 2)
|
|
21117
21126
|
]),
|
|
21118
21127
|
createBaseVNode("div", {
|
|
@@ -21160,7 +21169,7 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21160
21169
|
}
|
|
21161
21170
|
const cssModules$11 = {};
|
|
21162
21171
|
cssModules$11["$style"] = style0$$;
|
|
21163
|
-
var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1j], ["__cssModules", cssModules$11], ["__scopeId", "data-v-
|
|
21172
|
+
var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1j], ["__cssModules", cssModules$11], ["__scopeId", "data-v-4ee05137"]]);
|
|
21164
21173
|
const img$9 = "_img_11k9z_1";
|
|
21165
21174
|
const round$1 = "_round_11k9z_5";
|
|
21166
21175
|
const branchNumber$1 = "_branchNumber_11k9z_8";
|
|
@@ -21241,9 +21250,12 @@ const _sfc_main$1i = defineComponent({
|
|
|
21241
21250
|
};
|
|
21242
21251
|
}
|
|
21243
21252
|
});
|
|
21244
|
-
const _hoisted_1$
|
|
21253
|
+
const _hoisted_1$M = ["src"];
|
|
21245
21254
|
const _hoisted_2$r = { class: "payment-method--content-container--label" };
|
|
21246
|
-
const _hoisted_3$l = {
|
|
21255
|
+
const _hoisted_3$l = {
|
|
21256
|
+
class: "payment-method--content-container--label--main",
|
|
21257
|
+
"data-testid": "pay-method-title"
|
|
21258
|
+
};
|
|
21247
21259
|
const _hoisted_4$g = {
|
|
21248
21260
|
key: 0,
|
|
21249
21261
|
class: "payment-method--content-container--label--sub"
|
|
@@ -21261,7 +21273,7 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21261
21273
|
createBaseVNode("img", {
|
|
21262
21274
|
class: normalizeClass([_ctx.style.img, { [_ctx.style.round]: _ctx.round }]),
|
|
21263
21275
|
src: _ctx.bankInfo.logo
|
|
21264
|
-
}, null, 10, _hoisted_1$
|
|
21276
|
+
}, null, 10, _hoisted_1$M)
|
|
21265
21277
|
], 2)
|
|
21266
21278
|
]),
|
|
21267
21279
|
createBaseVNode("div", {
|
|
@@ -21363,7 +21375,7 @@ const _sfc_main$1h = defineComponent({
|
|
|
21363
21375
|
};
|
|
21364
21376
|
}
|
|
21365
21377
|
});
|
|
21366
|
-
const _hoisted_1$
|
|
21378
|
+
const _hoisted_1$L = ["src"];
|
|
21367
21379
|
function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21368
21380
|
const _component_Button = resolveComponent("Button");
|
|
21369
21381
|
return openBlock(), createElementBlock("div", {
|
|
@@ -21375,7 +21387,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21375
21387
|
createBaseVNode("img", {
|
|
21376
21388
|
class: normalizeClass(_ctx.style.img),
|
|
21377
21389
|
src: _ctx.images.softbank
|
|
21378
|
-
}, null, 10, _hoisted_1$
|
|
21390
|
+
}, null, 10, _hoisted_1$L)
|
|
21379
21391
|
], 2),
|
|
21380
21392
|
createBaseVNode("div", {
|
|
21381
21393
|
class: normalizeClass(_ctx.style.content)
|
|
@@ -21387,7 +21399,8 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21387
21399
|
class: normalizeClass(_ctx.style.paymentDesc)
|
|
21388
21400
|
}, [
|
|
21389
21401
|
createBaseVNode("span", {
|
|
21390
|
-
class: normalizeClass(_ctx.style.mainDesc)
|
|
21402
|
+
class: normalizeClass(_ctx.style.mainDesc),
|
|
21403
|
+
"data-testid": "pay-method-title"
|
|
21391
21404
|
}, toDisplayString(_ctx.lg.softbank.desc), 3),
|
|
21392
21405
|
createBaseVNode("span", {
|
|
21393
21406
|
class: normalizeClass(_ctx.style.subDesc)
|
|
@@ -21469,7 +21482,7 @@ const _sfc_main$1g = defineComponent({
|
|
|
21469
21482
|
};
|
|
21470
21483
|
}
|
|
21471
21484
|
});
|
|
21472
|
-
const _hoisted_1$
|
|
21485
|
+
const _hoisted_1$K = ["src"];
|
|
21473
21486
|
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21474
21487
|
const _component_Button = resolveComponent("Button");
|
|
21475
21488
|
return openBlock(), createElementBlock("div", {
|
|
@@ -21484,13 +21497,14 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21484
21497
|
createBaseVNode("img", {
|
|
21485
21498
|
class: normalizeClass(_ctx.$style.img),
|
|
21486
21499
|
src: _ctx.images.payLater
|
|
21487
|
-
}, null, 10, _hoisted_1$
|
|
21500
|
+
}, null, 10, _hoisted_1$K)
|
|
21488
21501
|
], 2),
|
|
21489
21502
|
createBaseVNode("div", {
|
|
21490
21503
|
class: normalizeClass(_ctx.$style.labelContainer)
|
|
21491
21504
|
}, [
|
|
21492
21505
|
createBaseVNode("span", {
|
|
21493
|
-
class: normalizeClass(_ctx.$style.mainLabel)
|
|
21506
|
+
class: normalizeClass(_ctx.$style.mainLabel),
|
|
21507
|
+
"data-testid": "pay-method-title"
|
|
21494
21508
|
}, toDisplayString(_ctx.lg.payLater.title), 3),
|
|
21495
21509
|
createBaseVNode("span", {
|
|
21496
21510
|
class: normalizeClass(_ctx.$style.subLabel)
|
|
@@ -21618,13 +21632,16 @@ const _sfc_main$1f = defineComponent({
|
|
|
21618
21632
|
};
|
|
21619
21633
|
}
|
|
21620
21634
|
});
|
|
21621
|
-
const _withScopeId$3 = (n) => (pushScopeId("data-v-
|
|
21622
|
-
const _hoisted_1$
|
|
21635
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-ccb3db7e"), n = n(), popScopeId(), n);
|
|
21636
|
+
const _hoisted_1$J = {
|
|
21623
21637
|
class: "ppmna-payment-type--container bank-method--right-align",
|
|
21624
21638
|
"data-testid": "wallet-method"
|
|
21625
21639
|
};
|
|
21626
21640
|
const _hoisted_2$q = ["src"];
|
|
21627
|
-
const _hoisted_3$k = {
|
|
21641
|
+
const _hoisted_3$k = {
|
|
21642
|
+
class: "ppmna-payment-type--container--main",
|
|
21643
|
+
"data-testid": "wallet-type-title"
|
|
21644
|
+
};
|
|
21628
21645
|
const _hoisted_4$f = { class: "ppmna-payment-type--container--sub" };
|
|
21629
21646
|
const _hoisted_5$b = ["src"];
|
|
21630
21647
|
const _hoisted_6$8 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createBaseVNode("div", { class: "payment-type--arrow-right-container" }, [
|
|
@@ -21632,7 +21649,7 @@ const _hoisted_6$8 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ create
|
|
|
21632
21649
|
], -1));
|
|
21633
21650
|
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21634
21651
|
const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
|
|
21635
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21652
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
21636
21653
|
createBaseVNode("div", null, [
|
|
21637
21654
|
createBaseVNode("img", {
|
|
21638
21655
|
src: _ctx.images.iconBalanceIcon,
|
|
@@ -21665,7 +21682,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21665
21682
|
}
|
|
21666
21683
|
const cssModules$Z = {};
|
|
21667
21684
|
cssModules$Z["$style"] = style1$1;
|
|
21668
|
-
var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$1f], ["__cssModules", cssModules$Z], ["__scopeId", "data-v-
|
|
21685
|
+
var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$1f], ["__cssModules", cssModules$Z], ["__scopeId", "data-v-ccb3db7e"]]);
|
|
21669
21686
|
const main = "_main_1rgsx_1";
|
|
21670
21687
|
const auth = "_auth_1rgsx_6";
|
|
21671
21688
|
const authImage = "_authImage_1rgsx_11";
|
|
@@ -21766,19 +21783,22 @@ const _sfc_main$1e = defineComponent({
|
|
|
21766
21783
|
};
|
|
21767
21784
|
}
|
|
21768
21785
|
});
|
|
21769
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-
|
|
21770
|
-
const _hoisted_1$
|
|
21786
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-7909c5f9"), n = n(), popScopeId(), n);
|
|
21787
|
+
const _hoisted_1$I = {
|
|
21771
21788
|
class: "ppmna-payment-type--container",
|
|
21772
21789
|
"data-testid": "credit-card-method"
|
|
21773
21790
|
};
|
|
21774
21791
|
const _hoisted_2$p = ["src"];
|
|
21775
|
-
const _hoisted_3$j = {
|
|
21792
|
+
const _hoisted_3$j = {
|
|
21793
|
+
class: "ppmna-payment-type--container--sub",
|
|
21794
|
+
"data-testid": "credit-type-last-digits"
|
|
21795
|
+
};
|
|
21776
21796
|
const _hoisted_4$e = ["src"];
|
|
21777
21797
|
const _hoisted_5$a = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createBaseVNode("div", { class: "payment-type--arrow-right-container" }, [
|
|
21778
21798
|
/* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
|
|
21779
21799
|
], -1));
|
|
21780
21800
|
function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21781
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21801
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
21782
21802
|
createBaseVNode("div", {
|
|
21783
21803
|
class: normalizeClass(["ppmna-payment-type--container--img-container", _ctx.style.imgContainer])
|
|
21784
21804
|
}, [
|
|
@@ -21813,7 +21833,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21813
21833
|
}
|
|
21814
21834
|
const cssModules$Y = {};
|
|
21815
21835
|
cssModules$Y["$style"] = style0$X;
|
|
21816
|
-
var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$1e], ["__cssModules", cssModules$Y], ["__scopeId", "data-v-
|
|
21836
|
+
var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$1e], ["__cssModules", cssModules$Y], ["__scopeId", "data-v-7909c5f9"]]);
|
|
21817
21837
|
const img$4 = "_img_1c6xt_1";
|
|
21818
21838
|
const branchCode = "_branchCode_1c6xt_5";
|
|
21819
21839
|
const content$a = "_content_1c6xt_8";
|
|
@@ -21877,15 +21897,18 @@ const _sfc_main$1d = defineComponent({
|
|
|
21877
21897
|
};
|
|
21878
21898
|
}
|
|
21879
21899
|
});
|
|
21880
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
21881
|
-
const _hoisted_1$
|
|
21900
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-160479ef"), n = n(), popScopeId(), n);
|
|
21901
|
+
const _hoisted_1$H = { class: "ppmna-payment-type--container" };
|
|
21882
21902
|
const _hoisted_2$o = ["src"];
|
|
21883
|
-
const _hoisted_3$i = {
|
|
21903
|
+
const _hoisted_3$i = {
|
|
21904
|
+
class: "ppmna-payment-type--container--sub",
|
|
21905
|
+
"data-testid": "bank-branch-name"
|
|
21906
|
+
};
|
|
21884
21907
|
const _hoisted_4$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createBaseVNode("span", { class: "payment-type--arrow-right-container" }, [
|
|
21885
21908
|
/* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
|
|
21886
21909
|
], -1));
|
|
21887
21910
|
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21888
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21911
|
+
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
21889
21912
|
createBaseVNode("div", {
|
|
21890
21913
|
class: normalizeClass(["ppmna-payment-type--container--img-container", {
|
|
21891
21914
|
"round-style-payment-type": _ctx.round,
|
|
@@ -21906,7 +21929,8 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21906
21929
|
}, toDisplayString(_ctx.bankInfo.name), 3),
|
|
21907
21930
|
createBaseVNode("div", _hoisted_3$i, toDisplayString(_ctx.bankInfo.branchName), 1),
|
|
21908
21931
|
createBaseVNode("div", {
|
|
21909
|
-
class: normalizeClass(_ctx.style.branchCode)
|
|
21932
|
+
class: normalizeClass(_ctx.style.branchCode),
|
|
21933
|
+
"data-testid": "bank-branch-code"
|
|
21910
21934
|
}, toDisplayString(`${_ctx.bankInfo.branchCode} *****${_ctx.bankInfo.digits}`), 3)
|
|
21911
21935
|
], 2),
|
|
21912
21936
|
_hoisted_4$d
|
|
@@ -21914,7 +21938,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21914
21938
|
}
|
|
21915
21939
|
const cssModules$X = {};
|
|
21916
21940
|
cssModules$X["$style"] = style0$W;
|
|
21917
|
-
var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$1d], ["__cssModules", cssModules$X], ["__scopeId", "data-v-
|
|
21941
|
+
var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["render", _sfc_render$1d], ["__cssModules", cssModules$X], ["__scopeId", "data-v-160479ef"]]);
|
|
21918
21942
|
const container$t = "_container_18bci_1";
|
|
21919
21943
|
const imageContainer = "_imageContainer_18bci_14";
|
|
21920
21944
|
const img$3 = "_img_18bci_18";
|
|
@@ -21953,7 +21977,7 @@ const _sfc_main$1c = defineComponent({
|
|
|
21953
21977
|
}
|
|
21954
21978
|
});
|
|
21955
21979
|
const _withScopeId = (n) => (pushScopeId("data-v-19a611be"), n = n(), popScopeId(), n);
|
|
21956
|
-
const _hoisted_1$
|
|
21980
|
+
const _hoisted_1$G = ["src"];
|
|
21957
21981
|
const _hoisted_2$n = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("span", { class: "payment-type--arrow-right-container" }, [
|
|
21958
21982
|
/* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
|
|
21959
21983
|
], -1));
|
|
@@ -21967,7 +21991,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21967
21991
|
createBaseVNode("img", {
|
|
21968
21992
|
class: normalizeClass(_ctx.$style.img),
|
|
21969
21993
|
src: _ctx.images.softbank
|
|
21970
|
-
}, null, 10, _hoisted_1$
|
|
21994
|
+
}, null, 10, _hoisted_1$G)
|
|
21971
21995
|
], 2),
|
|
21972
21996
|
createBaseVNode("span", {
|
|
21973
21997
|
class: normalizeClass(_ctx.$style.content)
|
|
@@ -22017,7 +22041,7 @@ const _sfc_main$1b = defineComponent({
|
|
|
22017
22041
|
};
|
|
22018
22042
|
}
|
|
22019
22043
|
});
|
|
22020
|
-
const _hoisted_1$
|
|
22044
|
+
const _hoisted_1$F = ["src"];
|
|
22021
22045
|
function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22022
22046
|
return openBlock(), createElementBlock("div", {
|
|
22023
22047
|
class: normalizeClass(_ctx.$style.container)
|
|
@@ -22026,7 +22050,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22026
22050
|
createBaseVNode("img", {
|
|
22027
22051
|
src: _ctx.images.payLater,
|
|
22028
22052
|
class: normalizeClass(_ctx.$style.imgContainer)
|
|
22029
|
-
}, null, 10, _hoisted_1$
|
|
22053
|
+
}, null, 10, _hoisted_1$F)
|
|
22030
22054
|
]),
|
|
22031
22055
|
createBaseVNode("div", null, [
|
|
22032
22056
|
createBaseVNode("div", {
|
|
@@ -22287,6 +22311,7 @@ const Select = defineComponent({
|
|
|
22287
22311
|
}, [this.value || this.placeholder])])]), createVNode("ul", {
|
|
22288
22312
|
"class": `${styles.selectDropdown} ${styles.ul} ${this.dropdownStyles} ${this.dropDownClass}`
|
|
22289
22313
|
}, [this.list.map((el, index2) => createVNode("li", {
|
|
22314
|
+
"data-testid": "dropdown-list-item",
|
|
22290
22315
|
"key": `select-${index2}-${el.value}`,
|
|
22291
22316
|
"class": this.activeOption(el),
|
|
22292
22317
|
"onClick": (e) => {
|
|
@@ -22425,7 +22450,7 @@ const _sfc_main$1a = defineComponent({
|
|
|
22425
22450
|
};
|
|
22426
22451
|
}
|
|
22427
22452
|
});
|
|
22428
|
-
const _hoisted_1$
|
|
22453
|
+
const _hoisted_1$E = ["for"];
|
|
22429
22454
|
const _hoisted_2$m = ["id"];
|
|
22430
22455
|
function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22431
22456
|
return openBlock(), createElementBlock("div", {
|
|
@@ -22446,7 +22471,7 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22446
22471
|
}, null, 42, _hoisted_2$m), [
|
|
22447
22472
|
[vModelText, _ctx.value]
|
|
22448
22473
|
])
|
|
22449
|
-
], 10, _hoisted_1$
|
|
22474
|
+
], 10, _hoisted_1$E)
|
|
22450
22475
|
], 2);
|
|
22451
22476
|
}
|
|
22452
22477
|
const cssModules$U = {};
|
|
@@ -22514,7 +22539,7 @@ const _sfc_main$19 = defineComponent({
|
|
|
22514
22539
|
};
|
|
22515
22540
|
}
|
|
22516
22541
|
});
|
|
22517
|
-
const _hoisted_1$
|
|
22542
|
+
const _hoisted_1$D = ["src"];
|
|
22518
22543
|
const _hoisted_2$l = ["src"];
|
|
22519
22544
|
function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22520
22545
|
return openBlock(), createElementBlock("div", {
|
|
@@ -22534,7 +22559,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22534
22559
|
key: 0,
|
|
22535
22560
|
src: _ctx.iconImageUrl,
|
|
22536
22561
|
class: normalizeClass(_ctx.style.icon)
|
|
22537
|
-
}, null, 10, _hoisted_1$
|
|
22562
|
+
}, null, 10, _hoisted_1$D)) : createCommentVNode("", true),
|
|
22538
22563
|
createBaseVNode("span", {
|
|
22539
22564
|
class: normalizeClass([_ctx.style.title, _ctx.textStyle])
|
|
22540
22565
|
}, toDisplayString(_ctx.title), 3),
|
|
@@ -22679,7 +22704,7 @@ const _sfc_main$18 = defineComponent({
|
|
|
22679
22704
|
};
|
|
22680
22705
|
}
|
|
22681
22706
|
});
|
|
22682
|
-
const _hoisted_1$
|
|
22707
|
+
const _hoisted_1$C = ["onClick"];
|
|
22683
22708
|
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22684
22709
|
const _component_Select = resolveComponent("Select");
|
|
22685
22710
|
return openBlock(), createElementBlock("div", {
|
|
@@ -22698,7 +22723,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22698
22723
|
role: "button",
|
|
22699
22724
|
"data-test": "select-amount",
|
|
22700
22725
|
onClick: ($event) => _ctx.select(amount2)
|
|
22701
|
-
}, toDisplayString(_ctx.operator) + toDisplayString(_ctx.numberWithCommas(amount2)), 11, _hoisted_1$
|
|
22726
|
+
}, toDisplayString(_ctx.operator) + toDisplayString(_ctx.numberWithCommas(amount2)), 11, _hoisted_1$C);
|
|
22702
22727
|
}), 128)),
|
|
22703
22728
|
_ctx.isSelectMoreVisible ? (openBlock(), createElementBlock("div", {
|
|
22704
22729
|
key: 0,
|
|
@@ -22773,7 +22798,7 @@ const _sfc_main$17 = defineComponent({
|
|
|
22773
22798
|
};
|
|
22774
22799
|
}
|
|
22775
22800
|
});
|
|
22776
|
-
const _hoisted_1$
|
|
22801
|
+
const _hoisted_1$B = ["onClick"];
|
|
22777
22802
|
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22778
22803
|
return openBlock(), createElementBlock("ul", {
|
|
22779
22804
|
class: normalizeClass(_ctx.style.container)
|
|
@@ -22790,7 +22815,7 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22790
22815
|
createBaseVNode("span", {
|
|
22791
22816
|
class: normalizeClass(_ctx.style.unit)
|
|
22792
22817
|
}, "\u5186", 2)
|
|
22793
|
-
], 10, _hoisted_1$
|
|
22818
|
+
], 10, _hoisted_1$B);
|
|
22794
22819
|
}), 128))
|
|
22795
22820
|
], 2);
|
|
22796
22821
|
}
|
|
@@ -23107,13 +23132,14 @@ const _sfc_main$13 = defineComponent({
|
|
|
23107
23132
|
};
|
|
23108
23133
|
}
|
|
23109
23134
|
});
|
|
23110
|
-
const _hoisted_1$
|
|
23135
|
+
const _hoisted_1$A = ["src"];
|
|
23111
23136
|
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23112
23137
|
const _component_PaymentType = resolveComponent("PaymentType");
|
|
23113
23138
|
const _component_PaymentMethodList = resolveComponent("PaymentMethodList");
|
|
23114
23139
|
const _directive_vertical_scroll = resolveDirective("vertical-scroll");
|
|
23115
23140
|
return openBlock(), createElementBlock("div", {
|
|
23116
|
-
class: normalizeClass([_ctx.style.paymentContainer, _ctx.isTopupPay ? _ctx.style.topupPay : ""])
|
|
23141
|
+
class: normalizeClass([_ctx.style.paymentContainer, _ctx.isTopupPay ? _ctx.style.topupPay : ""]),
|
|
23142
|
+
"data-testid": "desktop-topup-pay-method"
|
|
23117
23143
|
}, [
|
|
23118
23144
|
createBaseVNode("div", {
|
|
23119
23145
|
class: normalizeClass(_ctx.style.label)
|
|
@@ -23133,7 +23159,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23133
23159
|
createBaseVNode("img", {
|
|
23134
23160
|
src: _ctx.images.bankIcon,
|
|
23135
23161
|
class: normalizeClass(_ctx.style.bankIcon)
|
|
23136
|
-
}, null, 10, _hoisted_1$
|
|
23162
|
+
}, null, 10, _hoisted_1$A),
|
|
23137
23163
|
createBaseVNode("div", {
|
|
23138
23164
|
class: normalizeClass(_ctx.style.addMethodMsg)
|
|
23139
23165
|
}, toDisplayString(_ctx.lg.choosePayment.addMethod), 3),
|
|
@@ -23267,7 +23293,7 @@ const _sfc_main$12 = defineComponent({
|
|
|
23267
23293
|
};
|
|
23268
23294
|
}
|
|
23269
23295
|
});
|
|
23270
|
-
const _hoisted_1$
|
|
23296
|
+
const _hoisted_1$z = { "data-testid": "address-title" };
|
|
23271
23297
|
const _hoisted_2$k = /* @__PURE__ */ createTextVNode("\u7DE8\u96C6");
|
|
23272
23298
|
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23273
23299
|
const _component_Button = resolveComponent("Button");
|
|
@@ -23282,7 +23308,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23282
23308
|
createBaseVNode("div", {
|
|
23283
23309
|
class: normalizeClass(_ctx.style.header)
|
|
23284
23310
|
}, [
|
|
23285
|
-
createBaseVNode("span", _hoisted_1$
|
|
23311
|
+
createBaseVNode("span", _hoisted_1$z, toDisplayString(_ctx.address.kyc ? _ctx.lg.userAddress.title : _ctx.address.title), 1)
|
|
23286
23312
|
], 2),
|
|
23287
23313
|
createBaseVNode("div", {
|
|
23288
23314
|
class: normalizeClass([_ctx.style.text]),
|
|
@@ -23400,12 +23426,12 @@ const _sfc_main$11 = defineComponent({
|
|
|
23400
23426
|
};
|
|
23401
23427
|
}
|
|
23402
23428
|
});
|
|
23403
|
-
const _hoisted_1$
|
|
23429
|
+
const _hoisted_1$y = { key: 0 };
|
|
23404
23430
|
function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23405
23431
|
const _component_Button = resolveComponent("Button");
|
|
23406
23432
|
const _component_Divider = resolveComponent("Divider");
|
|
23407
23433
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
23408
|
-
!_ctx.isMakepayment && !_ctx.isDesktop ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
23434
|
+
!_ctx.isMakepayment && !_ctx.isDesktop ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
23409
23435
|
createBaseVNode("div", {
|
|
23410
23436
|
class: normalizeClass(_ctx.style.footer),
|
|
23411
23437
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.add && _ctx.add(...args))
|
|
@@ -23598,10 +23624,12 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23598
23624
|
createBaseVNode("span", null, toDisplayString(_ctx.kyc ? _ctx.lg.userAddress.title : _ctx.title), 1)
|
|
23599
23625
|
], 2),
|
|
23600
23626
|
createBaseVNode("div", {
|
|
23601
|
-
class: normalizeClass([_ctx.$style.text])
|
|
23627
|
+
class: normalizeClass([_ctx.$style.text]),
|
|
23628
|
+
"data-testid": "postal-code"
|
|
23602
23629
|
}, toDisplayString(_ctx.postalCode), 3),
|
|
23603
23630
|
createBaseVNode("div", {
|
|
23604
|
-
class: normalizeClass([_ctx.$style.text])
|
|
23631
|
+
class: normalizeClass([_ctx.$style.text]),
|
|
23632
|
+
"data-testid": "address-text"
|
|
23605
23633
|
}, toDisplayString(_ctx.addressText), 3),
|
|
23606
23634
|
_ctx.street2 ? (openBlock(), createElementBlock("div", {
|
|
23607
23635
|
key: 0,
|
|
@@ -23645,13 +23673,16 @@ const _sfc_main$_ = defineComponent({
|
|
|
23645
23673
|
});
|
|
23646
23674
|
function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23647
23675
|
return openBlock(), createElementBlock("div", {
|
|
23648
|
-
class: normalizeClass(_ctx.$style.noAddress)
|
|
23676
|
+
class: normalizeClass(_ctx.$style.noAddress),
|
|
23677
|
+
"data-testid": "no-address-message"
|
|
23649
23678
|
}, [
|
|
23650
23679
|
createBaseVNode("span", {
|
|
23651
|
-
class: normalizeClass(_ctx.$style.noAddressTitle)
|
|
23680
|
+
class: normalizeClass(_ctx.$style.noAddressTitle),
|
|
23681
|
+
"data-testid": "no-address-title"
|
|
23652
23682
|
}, toDisplayString(_ctx.lg.userAddress.noAddress), 3),
|
|
23653
23683
|
createBaseVNode("span", {
|
|
23654
|
-
class: normalizeClass(_ctx.$style.noAddressDesc)
|
|
23684
|
+
class: normalizeClass(_ctx.$style.noAddressDesc),
|
|
23685
|
+
"data-testid": "no-address-desc"
|
|
23655
23686
|
}, toDisplayString(_ctx.lg.userAddress.registerAddress), 3),
|
|
23656
23687
|
_ctx.showsAddAddressButton ? (openBlock(), createElementBlock("div", {
|
|
23657
23688
|
key: 0,
|
|
@@ -23725,11 +23756,12 @@ const _sfc_main$Z = defineComponent({
|
|
|
23725
23756
|
};
|
|
23726
23757
|
}
|
|
23727
23758
|
});
|
|
23759
|
+
const _hoisted_1$x = { "data-testid": "selected-address" };
|
|
23728
23760
|
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23729
23761
|
const _component_NoRegisteredAddressMessage = resolveComponent("NoRegisteredAddressMessage");
|
|
23730
23762
|
const _component_AddressInfo = resolveComponent("AddressInfo");
|
|
23731
23763
|
const _component_Footer = resolveComponent("Footer");
|
|
23732
|
-
return openBlock(), createElementBlock("div",
|
|
23764
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
23733
23765
|
createBaseVNode("div", {
|
|
23734
23766
|
class: normalizeClass(_ctx.$style.container)
|
|
23735
23767
|
}, [
|
|
@@ -24596,13 +24628,13 @@ const _sfc_main$V = defineComponent({
|
|
|
24596
24628
|
const zipAddress = ref(state.zip);
|
|
24597
24629
|
const buttonDisabled = ref(!isEditOk(state));
|
|
24598
24630
|
watch(state, async () => {
|
|
24599
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
24631
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
24600
24632
|
if (((_a = state == null ? void 0 : state.zip) == null ? void 0 : _a.length) === 8 && (zipAddress == null ? void 0 : zipAddress.value) !== (state == null ? void 0 : state.zip)) {
|
|
24601
24633
|
const res = await getAddressByZip({
|
|
24602
24634
|
zipcode: (_b = state.zip) == null ? void 0 : _b.replace(/-/g, "")
|
|
24603
24635
|
});
|
|
24604
|
-
if (
|
|
24605
|
-
const zipAddress2 = (
|
|
24636
|
+
if (res.ppFetchResult === "success" && ((_f = (_e = (_d = (_c = res == null ? void 0 : res.body) == null ? void 0 : _c.unsigned) == null ? void 0 : _d.data) == null ? void 0 : _e.payload) == null ? void 0 : _f.addressList)) {
|
|
24637
|
+
const zipAddress2 = (_k = (_j = (_i = (_h = (_g = res == null ? void 0 : res.body) == null ? void 0 : _g.unsigned) == null ? void 0 : _h.data) == null ? void 0 : _i.payload) == null ? void 0 : _j.addressList) == null ? void 0 : _k[0];
|
|
24606
24638
|
const { cityAndOaza, prefecture } = zipAddress2 || {};
|
|
24607
24639
|
if (cityAndOaza)
|
|
24608
24640
|
state.city = cityAndOaza;
|
|
@@ -25098,26 +25130,30 @@ function initErrorHandling$1() {
|
|
|
25098
25130
|
errorIcon: "",
|
|
25099
25131
|
errorDescription: ""
|
|
25100
25132
|
});
|
|
25101
|
-
const handleError2 = (
|
|
25133
|
+
const handleError2 = () => {
|
|
25102
25134
|
const lg2 = getLanguage();
|
|
25103
25135
|
let errorTitle2 = lg2.errorSheet.title1;
|
|
25104
25136
|
let errorDescription = lg2.errorSheet.desc;
|
|
25105
25137
|
let errorIcon2 = String(images.iconError);
|
|
25106
|
-
|
|
25107
|
-
|
|
25108
|
-
|
|
25109
|
-
|
|
25110
|
-
|
|
25111
|
-
|
|
25112
|
-
|
|
25113
|
-
|
|
25138
|
+
state.errorShow = true;
|
|
25139
|
+
state.errorTitle = errorTitle2;
|
|
25140
|
+
state.errorDescription = errorDescription;
|
|
25141
|
+
state.errorIcon = errorIcon2;
|
|
25142
|
+
return true;
|
|
25143
|
+
};
|
|
25144
|
+
const closeError = () => {
|
|
25145
|
+
state.errorShow = false;
|
|
25146
|
+
state.errorTitle = "";
|
|
25147
|
+
state.errorDescription = "";
|
|
25148
|
+
state.errorIcon = "";
|
|
25114
25149
|
};
|
|
25115
25150
|
const store = {
|
|
25116
25151
|
errorShow: computed(() => state.errorShow),
|
|
25117
25152
|
errorTitle: computed(() => state.errorTitle),
|
|
25118
25153
|
errorIcon: computed(() => state.errorIcon),
|
|
25119
25154
|
errorDescription: computed(() => state.errorDescription),
|
|
25120
|
-
handleError: handleError2
|
|
25155
|
+
handleError: handleError2,
|
|
25156
|
+
closeError
|
|
25121
25157
|
};
|
|
25122
25158
|
provide(KEY$3, store);
|
|
25123
25159
|
return store;
|
|
@@ -25169,7 +25205,7 @@ const _sfc_main$S = defineComponent({
|
|
|
25169
25205
|
});
|
|
25170
25206
|
const root2 = getRoot$1();
|
|
25171
25207
|
const addAddress2 = async (formValue) => {
|
|
25172
|
-
var _a, _b;
|
|
25208
|
+
var _a, _b, _c;
|
|
25173
25209
|
state.addSheetLoading = true;
|
|
25174
25210
|
let res;
|
|
25175
25211
|
if (formValue == null ? void 0 : formValue.id) {
|
|
@@ -25180,21 +25216,20 @@ const _sfc_main$S = defineComponent({
|
|
|
25180
25216
|
const addressListResponse = await getAddressList();
|
|
25181
25217
|
close2();
|
|
25182
25218
|
state.addSheetLoading = false;
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
|
|
25186
|
-
|
|
25187
|
-
|
|
25188
|
-
return;
|
|
25189
|
-
state.addressList = (_b = (_a = addressListResponse == null ? void 0 : addressListResponse.unsigned) == null ? void 0 : _a.data) == null ? void 0 : _b.addresses;
|
|
25219
|
+
if ((addressListResponse == null ? void 0 : addressListResponse.ppFetchResult) === "success" && res.ppFetchResult === "success") {
|
|
25220
|
+
state.addressList = (_c = (_b = (_a = addressListResponse == null ? void 0 : addressListResponse.body) == null ? void 0 : _a.unsigned) == null ? void 0 : _b.data) == null ? void 0 : _c.addresses;
|
|
25221
|
+
} else {
|
|
25222
|
+
return handleError2();
|
|
25223
|
+
}
|
|
25190
25224
|
};
|
|
25191
25225
|
const del = async () => {
|
|
25192
|
-
var _a, _b;
|
|
25226
|
+
var _a, _b, _c;
|
|
25193
25227
|
const addressListResponse = await getAddressList();
|
|
25194
|
-
|
|
25195
|
-
|
|
25196
|
-
|
|
25197
|
-
|
|
25228
|
+
if ((addressListResponse == null ? void 0 : addressListResponse.ppFetchResult) === "success") {
|
|
25229
|
+
state.addressList = (_c = (_b = (_a = addressListResponse == null ? void 0 : addressListResponse.body) == null ? void 0 : _a.unsigned) == null ? void 0 : _b.data) == null ? void 0 : _c.addresses;
|
|
25230
|
+
} else {
|
|
25231
|
+
return handleError2();
|
|
25232
|
+
}
|
|
25198
25233
|
close2();
|
|
25199
25234
|
};
|
|
25200
25235
|
const isDesktopPay = computed(() => props.isMakepayment && isDesktop.value);
|
|
@@ -25606,12 +25641,13 @@ const _sfc_main$Q = defineComponent({
|
|
|
25606
25641
|
emits: ["click", "back", "chooseAddress", "layoutupdate", "updateAddress"],
|
|
25607
25642
|
setup(props, context) {
|
|
25608
25643
|
initRoot$1(props, context);
|
|
25609
|
-
const { errorShow, errorDescription, errorIcon: errorIcon2, errorTitle: errorTitle2 } = initErrorHandling$1();
|
|
25644
|
+
const { errorShow, errorDescription, errorIcon: errorIcon2, errorTitle: errorTitle2, closeError } = initErrorHandling$1();
|
|
25610
25645
|
return {
|
|
25611
25646
|
errorShow,
|
|
25612
25647
|
errorIcon: errorIcon2,
|
|
25613
25648
|
errorTitle: errorTitle2,
|
|
25614
|
-
errorDescription
|
|
25649
|
+
errorDescription,
|
|
25650
|
+
closeError
|
|
25615
25651
|
};
|
|
25616
25652
|
}
|
|
25617
25653
|
});
|
|
@@ -25628,8 +25664,9 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25628
25664
|
show: _ctx.errorShow,
|
|
25629
25665
|
"error-title": _ctx.errorTitle,
|
|
25630
25666
|
"error-text": _ctx.errorDescription,
|
|
25631
|
-
"icon-url": _ctx.errorIcon
|
|
25632
|
-
|
|
25667
|
+
"icon-url": _ctx.errorIcon,
|
|
25668
|
+
onCloseClick: _ctx.closeError
|
|
25669
|
+
}, null, 8, ["show", "error-title", "error-text", "icon-url", "onCloseClick"])
|
|
25633
25670
|
], 64);
|
|
25634
25671
|
}
|
|
25635
25672
|
var AppVue$9 = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$Q]]);
|
|
@@ -26108,6 +26145,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26108
26145
|
class: normalizeClass(_ctx.style.cancel),
|
|
26109
26146
|
type: "link",
|
|
26110
26147
|
block: "",
|
|
26148
|
+
"data-testid": "payment-close",
|
|
26111
26149
|
onClick: _ctx.clickClose
|
|
26112
26150
|
}, {
|
|
26113
26151
|
default: withCtx(() => [
|
|
@@ -26467,6 +26505,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26467
26505
|
]),
|
|
26468
26506
|
createBaseVNode("div", _hoisted_13, [
|
|
26469
26507
|
createVNode(_component_Button, {
|
|
26508
|
+
"data-testid": "cashback-detail-close",
|
|
26470
26509
|
type: "primary",
|
|
26471
26510
|
block: "",
|
|
26472
26511
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
@@ -26569,7 +26608,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26569
26608
|
}, [
|
|
26570
26609
|
createBaseVNode("div", {
|
|
26571
26610
|
class: normalizeClass(_ctx.style.cashBackDescription),
|
|
26572
|
-
"data-
|
|
26611
|
+
"data-testid": "cash-back-detail-row-description"
|
|
26573
26612
|
}, toDisplayString(_ctx.cashBackInfo.cashBackDescription), 3),
|
|
26574
26613
|
_ctx.cashBackInfo.cashBackAmount && !_ctx.calculating ? (openBlock(), createElementBlock("div", {
|
|
26575
26614
|
key: 0,
|
|
@@ -27035,6 +27074,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27035
27074
|
createVNode(_component_Button, {
|
|
27036
27075
|
block: "",
|
|
27037
27076
|
type: "primary",
|
|
27077
|
+
"data-testid": "payment-close-confirm",
|
|
27038
27078
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.confirmAlert())
|
|
27039
27079
|
}, {
|
|
27040
27080
|
default: withCtx(() => [
|
|
@@ -27045,6 +27085,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27045
27085
|
createVNode(_component_Button, {
|
|
27046
27086
|
block: "",
|
|
27047
27087
|
type: "link",
|
|
27088
|
+
"data-testid": "payment-close-cancel",
|
|
27048
27089
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.cancelAlert())
|
|
27049
27090
|
}, {
|
|
27050
27091
|
default: withCtx(() => [
|
|
@@ -28250,7 +28291,8 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28250
28291
|
], 2)) : createCommentVNode("", true),
|
|
28251
28292
|
!_ctx.available && _ctx.isDesktop ? (openBlock(), createElementBlock("div", {
|
|
28252
28293
|
key: 1,
|
|
28253
|
-
class: normalizeClass(_ctx.style.unAvailable)
|
|
28294
|
+
class: normalizeClass(_ctx.style.unAvailable),
|
|
28295
|
+
"data-testid": "no-topup-pay-method"
|
|
28254
28296
|
}, [
|
|
28255
28297
|
createTextVNode(toDisplayString(_ctx.lg.topContent.unavailable1), 1),
|
|
28256
28298
|
_hoisted_2$b,
|
|
@@ -30102,6 +30144,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30102
30144
|
}, {
|
|
30103
30145
|
default: withCtx(() => [
|
|
30104
30146
|
createVNode(_component_CloseConfirmation, {
|
|
30147
|
+
"data-testid": "payment-close-confirmation",
|
|
30105
30148
|
onConfirm: _ctx.confirmCloseConfirmation,
|
|
30106
30149
|
onCancel: _ctx.cancelCloseConfirmation
|
|
30107
30150
|
}, null, 8, ["onConfirm", "onCancel"])
|
|
@@ -30249,7 +30292,7 @@ function assertion(initMakePayment2) {
|
|
|
30249
30292
|
return true;
|
|
30250
30293
|
}
|
|
30251
30294
|
const initMakePayment = async (initMakePayment2) => {
|
|
30252
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
30295
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
30253
30296
|
const show2 = ref(true);
|
|
30254
30297
|
let transactionWarning;
|
|
30255
30298
|
if (!("alwaysDisplayCompletionScreen" in initMakePayment2)) {
|
|
@@ -30278,14 +30321,14 @@ const initMakePayment = async (initMakePayment2) => {
|
|
|
30278
30321
|
let showUserAddress;
|
|
30279
30322
|
if ((_d = (_c = initMakePayment2 == null ? void 0 : initMakePayment2.additionalUserInfo) == null ? void 0 : _c.userAddress) == null ? void 0 : _d.visible) {
|
|
30280
30323
|
const res = await getAddressList();
|
|
30281
|
-
if ("
|
|
30324
|
+
if (res.ppFetchResult !== "success") {
|
|
30282
30325
|
(_e = initMakePayment2 == null ? void 0 : initMakePayment2.fail) == null ? void 0 : _e.call(initMakePayment2, {
|
|
30283
30326
|
errorCode: MiniAppErrorType.serverError
|
|
30284
30327
|
});
|
|
30285
30328
|
(_f = initMakePayment2 == null ? void 0 : initMakePayment2.complete) == null ? void 0 : _f.call(initMakePayment2);
|
|
30286
30329
|
return;
|
|
30287
30330
|
}
|
|
30288
|
-
addresses = (_h = (_g = res == null ? void 0 : res.
|
|
30331
|
+
addresses = (_i = (_h = (_g = res == null ? void 0 : res.body) == null ? void 0 : _g.unsigned) == null ? void 0 : _h.data) == null ? void 0 : _i.addresses;
|
|
30289
30332
|
showUserAddress = true;
|
|
30290
30333
|
} else {
|
|
30291
30334
|
showUserAddress = false;
|
|
@@ -31786,7 +31829,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31786
31829
|
}, null, 8, ["show", "error-text"])
|
|
31787
31830
|
], 64);
|
|
31788
31831
|
}
|
|
31789
|
-
var AppVue$5 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__scopeId", "data-v-
|
|
31832
|
+
var AppVue$5 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__scopeId", "data-v-cf40b3be"]]);
|
|
31790
31833
|
const initShowUpdateWarning = (params) => {
|
|
31791
31834
|
const show2 = ref(true);
|
|
31792
31835
|
const warningParams = reactive(params);
|
|
@@ -32102,7 +32145,7 @@ const initGetUserAddress = async (params) => {
|
|
|
32102
32145
|
const container2 = document.createElement("div");
|
|
32103
32146
|
container2.className = "ppmna-reset-css";
|
|
32104
32147
|
const res = await getAddressList();
|
|
32105
|
-
if ("
|
|
32148
|
+
if (res.ppFetchResult !== "success") {
|
|
32106
32149
|
(_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, {
|
|
32107
32150
|
errorCode: MiniAppErrorType.serverError
|
|
32108
32151
|
});
|
|
@@ -32128,12 +32171,12 @@ const initGetUserAddress = async (params) => {
|
|
|
32128
32171
|
}
|
|
32129
32172
|
}, popStateHandler(closeSheet, params)), {
|
|
32130
32173
|
render() {
|
|
32131
|
-
var _a2, _b2;
|
|
32174
|
+
var _a2, _b2, _c;
|
|
32132
32175
|
return h(AppVue$9, {
|
|
32133
32176
|
show: this.show,
|
|
32134
32177
|
onClick: this.close,
|
|
32135
32178
|
getUserAddressParams: params,
|
|
32136
|
-
addresses: (_b2 = (_a2 = res == null ? void 0 : res.
|
|
32179
|
+
addresses: (_c = (_b2 = (_a2 = res == null ? void 0 : res.body) == null ? void 0 : _a2.unsigned) == null ? void 0 : _b2.data) == null ? void 0 : _c.addresses
|
|
32137
32180
|
});
|
|
32138
32181
|
}
|
|
32139
32182
|
}));
|
|
@@ -32170,20 +32213,16 @@ function useErrorHandling() {
|
|
|
32170
32213
|
errorIcon: "",
|
|
32171
32214
|
errorDescription: ""
|
|
32172
32215
|
});
|
|
32173
|
-
const handleError2 = (
|
|
32174
|
-
var _a, _b;
|
|
32216
|
+
const handleError2 = () => {
|
|
32175
32217
|
const lg2 = getLanguage();
|
|
32176
32218
|
let errorTitle2 = lg2.errorSheet.title1;
|
|
32177
32219
|
let errorDescription = lg2.errorSheet.desc;
|
|
32178
32220
|
let errorIcon2 = String(images.iconError);
|
|
32179
|
-
|
|
32180
|
-
|
|
32181
|
-
|
|
32182
|
-
|
|
32183
|
-
|
|
32184
|
-
return true;
|
|
32185
|
-
}
|
|
32186
|
-
return false;
|
|
32221
|
+
state.errorShow = true;
|
|
32222
|
+
state.errorTitle = errorTitle2;
|
|
32223
|
+
state.errorDescription = errorDescription;
|
|
32224
|
+
state.errorIcon = errorIcon2;
|
|
32225
|
+
return true;
|
|
32187
32226
|
};
|
|
32188
32227
|
const closeError = () => {
|
|
32189
32228
|
state.errorShow = false;
|
|
@@ -32213,17 +32252,17 @@ function useApp(params) {
|
|
|
32213
32252
|
res = await postAddress(_address);
|
|
32214
32253
|
}
|
|
32215
32254
|
state.loading = false;
|
|
32216
|
-
|
|
32217
|
-
|
|
32218
|
-
|
|
32255
|
+
if ((res == null ? void 0 : res.ppFetchResult) !== "success") {
|
|
32256
|
+
return params.handleError();
|
|
32257
|
+
}
|
|
32219
32258
|
params.success();
|
|
32220
32259
|
};
|
|
32221
32260
|
const delAddress = (res) => {
|
|
32222
32261
|
state.loading = true;
|
|
32223
32262
|
state.loading = false;
|
|
32224
|
-
|
|
32225
|
-
|
|
32226
|
-
|
|
32263
|
+
if ((res == null ? void 0 : res.ppFetchResult) !== "success") {
|
|
32264
|
+
return params.handleError();
|
|
32265
|
+
}
|
|
32227
32266
|
params.success();
|
|
32228
32267
|
};
|
|
32229
32268
|
const reset2 = () => {
|
|
@@ -32753,7 +32792,7 @@ function debug(params) {
|
|
|
32753
32792
|
function execute$6(params) {
|
|
32754
32793
|
var _a;
|
|
32755
32794
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
|
|
32756
|
-
v: "1.
|
|
32795
|
+
v: "1.36.0"
|
|
32757
32796
|
});
|
|
32758
32797
|
}
|
|
32759
32798
|
function useCallBack(props, ctx) {
|
|
@@ -33775,39 +33814,42 @@ async function getAuthStatus(params) {
|
|
|
33775
33814
|
await execute$1(params);
|
|
33776
33815
|
}
|
|
33777
33816
|
async function execute$1(params) {
|
|
33778
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
33817
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
33779
33818
|
try {
|
|
33780
|
-
const
|
|
33819
|
+
const clientId = getClientId();
|
|
33820
|
+
if (!clientId) {
|
|
33821
|
+
return (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.sdkNotInitialized });
|
|
33822
|
+
}
|
|
33823
|
+
const res = await ppFetch2({
|
|
33781
33824
|
method: "GET",
|
|
33782
33825
|
url: "/web-api/app/v1/smartpayment/auth/status",
|
|
33783
33826
|
params: {}
|
|
33784
33827
|
});
|
|
33785
|
-
if (
|
|
33786
|
-
return (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
33787
|
-
}
|
|
33788
|
-
const clientId = getClientId();
|
|
33789
|
-
if (!clientId) {
|
|
33828
|
+
if (res.ppFetchResult === "notInitialized") {
|
|
33790
33829
|
return (_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, { errorCode: MiniAppErrorType.sdkNotInitialized });
|
|
33791
33830
|
}
|
|
33792
|
-
|
|
33831
|
+
if (res.ppFetchResult !== "success") {
|
|
33832
|
+
return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
33833
|
+
}
|
|
33834
|
+
const isSuccess = ((_f = (_e = (_d = res == null ? void 0 : res.body) == null ? void 0 : _d.unsigned) == null ? void 0 : _e.resultInfo) == null ? void 0 : _f.code) === MiniAppStatusType.success;
|
|
33793
33835
|
if (isSuccess) {
|
|
33794
|
-
const data2 = (
|
|
33836
|
+
const data2 = (_h = (_g = res == null ? void 0 : res.body) == null ? void 0 : _g.unsigned) == null ? void 0 : _h.data;
|
|
33795
33837
|
if (!(data2 == null ? void 0 : data2.isActive)) {
|
|
33796
|
-
return (
|
|
33838
|
+
return (_i = params == null ? void 0 : params.fail) == null ? void 0 : _i.call(params, { errorCode: MiniAppErrorType.notAuthorized });
|
|
33797
33839
|
} else if (data2 == null ? void 0 : data2.showPermission) {
|
|
33798
|
-
return (
|
|
33840
|
+
return (_j = params == null ? void 0 : params.fail) == null ? void 0 : _j.call(params, {
|
|
33799
33841
|
errorCode: MiniAppErrorType.permissionRequired
|
|
33800
33842
|
});
|
|
33801
33843
|
} else if ((data2 == null ? void 0 : data2.isActive) && !(data2 == null ? void 0 : data2.showPermission)) {
|
|
33802
|
-
return (
|
|
33844
|
+
return (_k = params == null ? void 0 : params.success) == null ? void 0 : _k.call(params, { statusCode: MiniAppStatusType.connected });
|
|
33803
33845
|
}
|
|
33804
|
-
} else if (((
|
|
33805
|
-
return (
|
|
33846
|
+
} else if (((_l = getRefreshToken()) == null ? void 0 : _l.length) > 0) {
|
|
33847
|
+
return (_m = params == null ? void 0 : params.fail) == null ? void 0 : _m.call(params, { errorCode: MiniAppErrorType.tokenExpired });
|
|
33806
33848
|
} else {
|
|
33807
|
-
return (
|
|
33849
|
+
return (_n = params == null ? void 0 : params.fail) == null ? void 0 : _n.call(params, { errorCode: MiniAppErrorType.notAuthorized });
|
|
33808
33850
|
}
|
|
33809
33851
|
} catch (e) {
|
|
33810
|
-
return (
|
|
33852
|
+
return (_o = params == null ? void 0 : params.fail) == null ? void 0 : _o.call(params, {
|
|
33811
33853
|
errorCode: (e == null ? void 0 : e.message) || MiniAppErrorType.serverError
|
|
33812
33854
|
});
|
|
33813
33855
|
}
|