@paypay/mini-app-js-sdk 1.22.0 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composition-api/useInpuAddress.d.ts +1 -1
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +438 -314
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/checkAccessToken.d.ts +1 -1
- package/dist/model/bridge/closeApp.d.ts +1 -1
- package/dist/model/bridge/copyToClipboard.d.ts +1 -1
- package/dist/model/bridge/debug.d.ts +1 -1
- package/dist/model/bridge/getDeviceInformation.d.ts +1 -1
- package/dist/model/bridge/getSessionData.d.ts +1 -1
- package/dist/model/bridge/getStorageData.d.ts +1 -1
- package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
- package/dist/model/bridge/getUAID.d.ts +1 -1
- package/dist/model/bridge/getUserAddress.d.ts +1 -1
- package/dist/model/bridge/inputAddress.d.ts +1 -1
- package/dist/model/bridge/logout.d.ts +1 -1
- package/dist/model/bridge/openApp.d.ts +1 -1
- package/dist/model/bridge/openMap.d.ts +1 -1
- package/dist/model/bridge/openWebview.d.ts +1 -1
- package/dist/model/bridge/registerEmail.d.ts +1 -1
- package/dist/package/charge-amount-list/index.vue.d.ts +27 -2
- package/dist/package/select-list/Components.d.ts +28 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +0 -2
- package/dist/views/input-address/hook/error-handle.d.ts +1 -2
- package/dist/views/make-payment/Main.vue.d.ts +4 -2
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +1 -1
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +8 -0
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +12 -4
- package/dist/views/make-payment/hooks/app-hooks.d.ts +3 -3
- package/dist/views/make-payment/hooks/ui-hooks.d.ts +2 -3
- package/dist/views/topup/App.vue.d.ts +3 -3
- package/package.json +2 -2
|
@@ -65,7 +65,7 @@ function normalizeNativeResponseData(data2) {
|
|
|
65
65
|
}
|
|
66
66
|
class JsBridge {
|
|
67
67
|
constructor(global2) {
|
|
68
|
-
this.version = "1.
|
|
68
|
+
this.version = "1.23.0";
|
|
69
69
|
this.messageHandlers = new Map();
|
|
70
70
|
this.responseCallbacks = new Map();
|
|
71
71
|
this.global = global2;
|
|
@@ -932,7 +932,7 @@ function checkDuplicateTopup(amount2) {
|
|
|
932
932
|
try {
|
|
933
933
|
if (getLastTopup()) {
|
|
934
934
|
let lastTopUpVal = JSON.parse(getLastTopup());
|
|
935
|
-
return lastTopUpVal.amount
|
|
935
|
+
return lastTopUpVal.amount === amount2 && Date.now() - lastTopUpVal.topupAt <= 15 * 60 * 1e3;
|
|
936
936
|
} else {
|
|
937
937
|
return false;
|
|
938
938
|
}
|
|
@@ -1089,7 +1089,7 @@ const opaUrl = () => {
|
|
|
1089
1089
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
1090
1090
|
let headers = new Headers(__spreadValues({
|
|
1091
1091
|
"Content-Type": "application/json",
|
|
1092
|
-
"Client-Version": "1.
|
|
1092
|
+
"Client-Version": "1.23.0",
|
|
1093
1093
|
"Client-OS-Type": getRuntime()
|
|
1094
1094
|
}, customHeaders));
|
|
1095
1095
|
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") {
|
|
@@ -1254,9 +1254,10 @@ function reconstructParams(params) {
|
|
|
1254
1254
|
}, 0);
|
|
1255
1255
|
};
|
|
1256
1256
|
}
|
|
1257
|
-
|
|
1257
|
+
function getUAID(params) {
|
|
1258
1258
|
reconstructParams(params);
|
|
1259
|
-
|
|
1259
|
+
execute$e(params).catch(() => {
|
|
1260
|
+
});
|
|
1260
1261
|
}
|
|
1261
1262
|
async function execute$e(params) {
|
|
1262
1263
|
var _a, _b, _c, _d;
|
|
@@ -1280,11 +1281,11 @@ var MiniAppStatusType;
|
|
|
1280
1281
|
MiniAppStatusType2["loggedOut"] = "LOGGED_OUT";
|
|
1281
1282
|
MiniAppStatusType2["connected"] = "CONNECTED";
|
|
1282
1283
|
})(MiniAppStatusType || (MiniAppStatusType = {}));
|
|
1283
|
-
|
|
1284
|
+
function checkAccessToken(params) {
|
|
1284
1285
|
reconstructParams(params);
|
|
1285
|
-
|
|
1286
|
+
execute$d(params);
|
|
1286
1287
|
}
|
|
1287
|
-
|
|
1288
|
+
function execute$d(params) {
|
|
1288
1289
|
var _a, _b;
|
|
1289
1290
|
const clientId = getClientId();
|
|
1290
1291
|
const token = getAccessToken();
|
|
@@ -1367,7 +1368,7 @@ async function execute$b(params) {
|
|
|
1367
1368
|
}
|
|
1368
1369
|
urlParams.delete("token");
|
|
1369
1370
|
urlParams.delete("one_time_token");
|
|
1370
|
-
const newUrlParams = urlParams.toString().length ? "?" + urlParams : "";
|
|
1371
|
+
const newUrlParams = urlParams.toString().length ? "?" + urlParams.toString() : "";
|
|
1371
1372
|
const newUrl = location.pathname + newUrlParams + location.hash;
|
|
1372
1373
|
history.replaceState(null, "", newUrl);
|
|
1373
1374
|
const res = await ppFetch({
|
|
@@ -1420,9 +1421,10 @@ function saveUserData() {
|
|
|
1420
1421
|
nickName: res == null ? void 0 : res.nickName
|
|
1421
1422
|
}));
|
|
1422
1423
|
}
|
|
1424
|
+
}).catch(() => {
|
|
1423
1425
|
});
|
|
1424
1426
|
}
|
|
1425
|
-
|
|
1427
|
+
function copyToClipboard(params) {
|
|
1426
1428
|
var _a, _b;
|
|
1427
1429
|
reconstructParams(params);
|
|
1428
1430
|
let textarea = document.createElement("textarea");
|
|
@@ -1624,7 +1626,7 @@ function useGetHeightProperties() {
|
|
|
1624
1626
|
isNative
|
|
1625
1627
|
};
|
|
1626
1628
|
}
|
|
1627
|
-
|
|
1629
|
+
function getTopBarHeight(params) {
|
|
1628
1630
|
var _a;
|
|
1629
1631
|
reconstructParams(params);
|
|
1630
1632
|
const { headerHeight } = useGetHeightProperties();
|
|
@@ -1952,11 +1954,11 @@ async function execute$7(params) {
|
|
|
1952
1954
|
preferredLanguage
|
|
1953
1955
|
});
|
|
1954
1956
|
}
|
|
1955
|
-
|
|
1957
|
+
function getDeviceInformation(params) {
|
|
1956
1958
|
reconstructParams(params);
|
|
1957
|
-
|
|
1959
|
+
execute$6(params);
|
|
1958
1960
|
}
|
|
1959
|
-
|
|
1961
|
+
function execute$6(params) {
|
|
1960
1962
|
var _a;
|
|
1961
1963
|
const runtime = getRuntime();
|
|
1962
1964
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
|
|
@@ -7798,7 +7800,7 @@ const Input = defineComponent({
|
|
|
7798
7800
|
emit("input", event);
|
|
7799
7801
|
}
|
|
7800
7802
|
if (props.type === "zipCode") {
|
|
7801
|
-
if (event.target.value.length >= 5 && cursorPosition
|
|
7803
|
+
if (event.target.value.length >= 5 && cursorPosition === 4 && event.inputType === "insertText") {
|
|
7802
7804
|
event.target.selectionStart = event.target.selectionEnd = cursorPosition + 1;
|
|
7803
7805
|
} else {
|
|
7804
7806
|
event.target.selectionEnd = cursorPosition;
|
|
@@ -20360,7 +20362,7 @@ const _sfc_main$Z = defineComponent({
|
|
|
20360
20362
|
var _a, _b, _c, _d;
|
|
20361
20363
|
return (_d = (_c = (_b = (_a = props.credit) == null ? void 0 : _a.paymentMethodDescriptionInfo) == null ? void 0 : _b.statusDescription) == null ? void 0 : _c.text) != null ? _d : "";
|
|
20362
20364
|
}),
|
|
20363
|
-
getClass: isExpired.value || paymentMethodStatus.value
|
|
20365
|
+
getClass: isExpired.value || paymentMethodStatus.value !== "ACTIVATED" ? "payment-method--disabled" : "",
|
|
20364
20366
|
isActivated,
|
|
20365
20367
|
style,
|
|
20366
20368
|
cardInfo,
|
|
@@ -20433,7 +20435,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20433
20435
|
}
|
|
20434
20436
|
const cssModules$K = {};
|
|
20435
20437
|
cssModules$K["$style"] = style0$J;
|
|
20436
|
-
var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__cssModules", cssModules$K], ["__scopeId", "data-v-
|
|
20438
|
+
var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__cssModules", cssModules$K], ["__scopeId", "data-v-2ababe7a"]]);
|
|
20437
20439
|
const img$7 = "_img_11k9z_1";
|
|
20438
20440
|
const round$1 = "_round_11k9z_5";
|
|
20439
20441
|
const branchNumber = "_branchNumber_11k9z_8";
|
|
@@ -20456,9 +20458,9 @@ const getStatus = (val2, isExpired) => {
|
|
|
20456
20458
|
return (_a = status[val2]) != null ? _a : "";
|
|
20457
20459
|
};
|
|
20458
20460
|
const getTypeText$1 = (val2) => {
|
|
20459
|
-
if (val2
|
|
20461
|
+
if (val2 === "ORDINARY") {
|
|
20460
20462
|
return getLanguage().paymentMethod.ordinary;
|
|
20461
|
-
} else if (val2
|
|
20463
|
+
} else if (val2 === "CURRENT") {
|
|
20462
20464
|
return getLanguage().paymentMethod.current;
|
|
20463
20465
|
} else {
|
|
20464
20466
|
return "";
|
|
@@ -20505,7 +20507,7 @@ const _sfc_main$Y = defineComponent({
|
|
|
20505
20507
|
bankInfo,
|
|
20506
20508
|
isDisable: computed(() => {
|
|
20507
20509
|
var _a2, _b2;
|
|
20508
|
-
return ((_b2 = (_a2 = props.bank) == null ? void 0 : _a2.bankInfo) == null ? void 0 : _b2.paymentMethodStatus)
|
|
20510
|
+
return ((_b2 = (_a2 = props.bank) == null ? void 0 : _a2.bankInfo) == null ? void 0 : _b2.paymentMethodStatus) !== "ACTIVATED";
|
|
20509
20511
|
}),
|
|
20510
20512
|
paymentMethodStatus: computed(() => {
|
|
20511
20513
|
var _a2, _b2, _c;
|
|
@@ -20515,7 +20517,7 @@ const _sfc_main$Y = defineComponent({
|
|
|
20515
20517
|
var _a2, _b2, _c, _d;
|
|
20516
20518
|
return (_d = (_c = (_b2 = (_a2 = props.bank) == null ? void 0 : _a2.paymentMethodDescriptionInfo) == null ? void 0 : _b2.statusDescription) == null ? void 0 : _c.text) != null ? _d : "";
|
|
20517
20519
|
}),
|
|
20518
|
-
getClass: ((_b = (_a = props.bank) == null ? void 0 : _a.bankInfo) == null ? void 0 : _b.paymentMethodStatus)
|
|
20520
|
+
getClass: ((_b = (_a = props.bank) == null ? void 0 : _a.bankInfo) == null ? void 0 : _b.paymentMethodStatus) !== "ACTIVATED" ? "payment-method--disabled" : "",
|
|
20519
20521
|
style
|
|
20520
20522
|
};
|
|
20521
20523
|
}
|
|
@@ -20631,7 +20633,7 @@ const _sfc_main$X = defineComponent({
|
|
|
20631
20633
|
return {
|
|
20632
20634
|
isDisable: computed(() => {
|
|
20633
20635
|
var _a2, _b2;
|
|
20634
|
-
return ((_b2 = (_a2 = props.sbid) == null ? void 0 : _a2.sbidCarrierBillingInfo) == null ? void 0 : _b2.paymentMethodStatus)
|
|
20636
|
+
return ((_b2 = (_a2 = props.sbid) == null ? void 0 : _a2.sbidCarrierBillingInfo) == null ? void 0 : _b2.paymentMethodStatus) !== "ACTIVATED";
|
|
20635
20637
|
}),
|
|
20636
20638
|
images: getImages(),
|
|
20637
20639
|
paymentMethodStatus: computed(() => {
|
|
@@ -20642,7 +20644,7 @@ const _sfc_main$X = defineComponent({
|
|
|
20642
20644
|
var _a2, _b2, _c, _d;
|
|
20643
20645
|
return (_d = (_c = (_b2 = (_a2 = props.sbid) == null ? void 0 : _a2.paymentMethodDescriptionInfo) == null ? void 0 : _b2.statusDescription) == null ? void 0 : _c.text) != null ? _d : "";
|
|
20644
20646
|
}),
|
|
20645
|
-
getClass: ((_b = (_a = props.sbid) == null ? void 0 : _a.sbidCarrierBillingInfo) == null ? void 0 : _b.paymentMethodStatus)
|
|
20647
|
+
getClass: ((_b = (_a = props.sbid) == null ? void 0 : _a.sbidCarrierBillingInfo) == null ? void 0 : _b.paymentMethodStatus) !== "ACTIVATED" ? "payment-method--disabled" : "",
|
|
20646
20648
|
lg: getLanguage(),
|
|
20647
20649
|
style
|
|
20648
20650
|
};
|
|
@@ -20748,6 +20750,7 @@ function onMountedOrActivated(hook) {
|
|
|
20748
20750
|
hook();
|
|
20749
20751
|
nextTick(() => {
|
|
20750
20752
|
mounted = true;
|
|
20753
|
+
}).catch(() => {
|
|
20751
20754
|
});
|
|
20752
20755
|
});
|
|
20753
20756
|
onActivated(() => {
|
|
@@ -21017,9 +21020,9 @@ var style0$F = {
|
|
|
21017
21020
|
};
|
|
21018
21021
|
var Bank_vue_vue_type_style_index_1_scoped_true_lang = "";
|
|
21019
21022
|
const getTypeText = (val2) => {
|
|
21020
|
-
if (val2
|
|
21023
|
+
if (val2 === "ORDINARY") {
|
|
21021
21024
|
return getLanguage().paymentMethod.ordinary;
|
|
21022
|
-
} else if (val2
|
|
21025
|
+
} else if (val2 === "CURRENT") {
|
|
21023
21026
|
return getLanguage().paymentMethod.current;
|
|
21024
21027
|
} else {
|
|
21025
21028
|
return "";
|
|
@@ -21064,7 +21067,7 @@ const _sfc_main$U = defineComponent({
|
|
|
21064
21067
|
};
|
|
21065
21068
|
}
|
|
21066
21069
|
});
|
|
21067
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
21070
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-5068d8d6"), n = n(), popScopeId(), n);
|
|
21068
21071
|
const _hoisted_1$y = { class: "ppmna-payment-type--container" };
|
|
21069
21072
|
const _hoisted_2$l = ["src"];
|
|
21070
21073
|
const _hoisted_3$f = { class: "ppmna-payment-type--container--sub" };
|
|
@@ -21100,7 +21103,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21100
21103
|
}
|
|
21101
21104
|
const cssModules$G = {};
|
|
21102
21105
|
cssModules$G["$style"] = style0$F;
|
|
21103
|
-
var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U], ["__cssModules", cssModules$G], ["__scopeId", "data-v-
|
|
21106
|
+
var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U], ["__cssModules", cssModules$G], ["__scopeId", "data-v-5068d8d6"]]);
|
|
21104
21107
|
const container$h = "_container_18bci_1";
|
|
21105
21108
|
const imageContainer = "_imageContainer_18bci_14";
|
|
21106
21109
|
const img$2 = "_img_18bci_18";
|
|
@@ -21207,25 +21210,25 @@ const PaymentType = defineComponent({
|
|
|
21207
21210
|
return null;
|
|
21208
21211
|
}
|
|
21209
21212
|
});
|
|
21210
|
-
const container$g = "
|
|
21211
|
-
const root$b = "
|
|
21212
|
-
const select$1 = "
|
|
21213
|
-
const placeHolder = "
|
|
21214
|
-
const grayLine = "
|
|
21215
|
-
const iconContainer$2 = "
|
|
21216
|
-
const subText$1 = "
|
|
21217
|
-
const required = "
|
|
21218
|
-
const selectContainer = "
|
|
21219
|
-
const defaultOption = "
|
|
21220
|
-
const selectDropdown = "
|
|
21221
|
-
const optionContainer = "
|
|
21222
|
-
const icon$2 = "
|
|
21223
|
-
const activeOption = "
|
|
21224
|
-
const option = "
|
|
21225
|
-
const ul = "
|
|
21226
|
-
const show = "
|
|
21227
|
-
const hide = "
|
|
21228
|
-
const disabled$1 = "
|
|
21213
|
+
const container$g = "_container_aragh_1";
|
|
21214
|
+
const root$b = "_root_aragh_4";
|
|
21215
|
+
const select$1 = "_select_aragh_7";
|
|
21216
|
+
const placeHolder = "_placeHolder_aragh_29";
|
|
21217
|
+
const grayLine = "_grayLine_aragh_32";
|
|
21218
|
+
const iconContainer$2 = "_iconContainer_aragh_36";
|
|
21219
|
+
const subText$1 = "_subText_aragh_44";
|
|
21220
|
+
const required = "_required_aragh_48";
|
|
21221
|
+
const selectContainer = "_selectContainer_aragh_53";
|
|
21222
|
+
const defaultOption = "_defaultOption_aragh_58";
|
|
21223
|
+
const selectDropdown = "_selectDropdown_aragh_64";
|
|
21224
|
+
const optionContainer = "_optionContainer_aragh_79";
|
|
21225
|
+
const icon$2 = "_icon_aragh_36";
|
|
21226
|
+
const activeOption = "_activeOption_aragh_95";
|
|
21227
|
+
const option = "_option_aragh_79";
|
|
21228
|
+
const ul = "_ul_aragh_134";
|
|
21229
|
+
const show = "_show_aragh_141";
|
|
21230
|
+
const hide = "_hide_aragh_144";
|
|
21231
|
+
const disabled$1 = "_disabled_aragh_147";
|
|
21229
21232
|
var styles = {
|
|
21230
21233
|
container: container$g,
|
|
21231
21234
|
root: root$b,
|
|
@@ -21247,6 +21250,11 @@ var styles = {
|
|
|
21247
21250
|
hide,
|
|
21248
21251
|
disabled: disabled$1
|
|
21249
21252
|
};
|
|
21253
|
+
let SelectType;
|
|
21254
|
+
(function(SelectType2) {
|
|
21255
|
+
SelectType2["SELECT"] = "SELECT";
|
|
21256
|
+
SelectType2["DROPDOWN"] = "DROPDOWN";
|
|
21257
|
+
})(SelectType || (SelectType = {}));
|
|
21250
21258
|
const Icon = defineComponent({
|
|
21251
21259
|
props: {
|
|
21252
21260
|
class: {
|
|
@@ -21299,6 +21307,21 @@ const Select = defineComponent({
|
|
|
21299
21307
|
type: Boolean,
|
|
21300
21308
|
required: false,
|
|
21301
21309
|
default: false
|
|
21310
|
+
},
|
|
21311
|
+
type: {
|
|
21312
|
+
type: String,
|
|
21313
|
+
required: false,
|
|
21314
|
+
default: SelectType.SELECT
|
|
21315
|
+
},
|
|
21316
|
+
toggleDropdown: {
|
|
21317
|
+
type: Boolean,
|
|
21318
|
+
required: false,
|
|
21319
|
+
default: false
|
|
21320
|
+
},
|
|
21321
|
+
dropDownClass: {
|
|
21322
|
+
type: String,
|
|
21323
|
+
required: false,
|
|
21324
|
+
default: ""
|
|
21302
21325
|
}
|
|
21303
21326
|
},
|
|
21304
21327
|
data() {
|
|
@@ -21325,7 +21348,7 @@ const Select = defineComponent({
|
|
|
21325
21348
|
e == null ? void 0 : e.stopPropagation();
|
|
21326
21349
|
this.isActive = !this.isActive;
|
|
21327
21350
|
if (this.isActive) {
|
|
21328
|
-
window.addEventListener("click", this.dropdownHandler);
|
|
21351
|
+
window.addEventListener("click", (e2) => this.dropdownHandler(e2));
|
|
21329
21352
|
} else {
|
|
21330
21353
|
this.removeEventListener();
|
|
21331
21354
|
}
|
|
@@ -21348,7 +21371,14 @@ const Select = defineComponent({
|
|
|
21348
21371
|
this.removeEventListener();
|
|
21349
21372
|
},
|
|
21350
21373
|
removeEventListener() {
|
|
21351
|
-
window.removeEventListener("click", this.dropdownHandler);
|
|
21374
|
+
window.removeEventListener("click", (e) => this.dropdownHandler(e));
|
|
21375
|
+
}
|
|
21376
|
+
},
|
|
21377
|
+
watch: {
|
|
21378
|
+
toggleDropdown(val2) {
|
|
21379
|
+
if (val2) {
|
|
21380
|
+
this.handleSelect(null);
|
|
21381
|
+
}
|
|
21352
21382
|
}
|
|
21353
21383
|
},
|
|
21354
21384
|
render() {
|
|
@@ -21367,15 +21397,15 @@ const Select = defineComponent({
|
|
|
21367
21397
|
"value": el.value
|
|
21368
21398
|
}, [el.label]))]), createVNode("div", {
|
|
21369
21399
|
"class": styles.selectContainer
|
|
21370
|
-
}, [createVNode("ul", {
|
|
21400
|
+
}, [this.type === SelectType.SELECT && createVNode("ul", {
|
|
21371
21401
|
"class": `${styles.defaultOption} ${styles.ul}`
|
|
21372
21402
|
}, [createVNode("li", {
|
|
21373
21403
|
"class": `${styles.select} ${this.isEmpty} ${this.isDisabled}`,
|
|
21374
|
-
"onClick": this.handleSelect
|
|
21404
|
+
"onClick": (e) => this.handleSelect(e)
|
|
21375
21405
|
}, [createVNode("p", {
|
|
21376
21406
|
"class": `${styles.option}`
|
|
21377
21407
|
}, [this.value || this.placeholder])])]), createVNode("ul", {
|
|
21378
|
-
"class": `${styles.selectDropdown} ${styles.ul} ${this.dropdownStyles}`
|
|
21408
|
+
"class": `${styles.selectDropdown} ${styles.ul} ${this.dropdownStyles} ${this.dropDownClass}`
|
|
21379
21409
|
}, [this.list.map((el, index2) => createVNode("li", {
|
|
21380
21410
|
"key": `select-${index2}-${el.value}`,
|
|
21381
21411
|
"class": this.activeOption(el),
|
|
@@ -21639,15 +21669,17 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21639
21669
|
const cssModules$D = {};
|
|
21640
21670
|
cssModules$D["$style"] = style0$C;
|
|
21641
21671
|
var BannerHeader = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$R], ["__cssModules", cssModules$D]]);
|
|
21642
|
-
const margin = "
|
|
21643
|
-
const marginLeft = "
|
|
21644
|
-
const marginRight = "
|
|
21645
|
-
const chargeArea$1 = "
|
|
21646
|
-
const moneyNumber = "
|
|
21647
|
-
const small = "
|
|
21648
|
-
const smallVMore = "
|
|
21649
|
-
const dot = "
|
|
21650
|
-
const input$1 = "
|
|
21672
|
+
const margin = "_margin_zrviu_1";
|
|
21673
|
+
const marginLeft = "_marginLeft_zrviu_5";
|
|
21674
|
+
const marginRight = "_marginRight_zrviu_8";
|
|
21675
|
+
const chargeArea$1 = "_chargeArea_zrviu_11";
|
|
21676
|
+
const moneyNumber = "_moneyNumber_zrviu_35";
|
|
21677
|
+
const small = "_small_zrviu_64";
|
|
21678
|
+
const smallVMore = "_smallVMore_zrviu_69";
|
|
21679
|
+
const dot = "_dot_zrviu_72";
|
|
21680
|
+
const input$1 = "_input_zrviu_77";
|
|
21681
|
+
const dropDownClass = "_dropDownClass_zrviu_83";
|
|
21682
|
+
const selectMore = "_selectMore_zrviu_89";
|
|
21651
21683
|
var style0$B = {
|
|
21652
21684
|
margin,
|
|
21653
21685
|
marginLeft,
|
|
@@ -21657,9 +21689,14 @@ var style0$B = {
|
|
|
21657
21689
|
small,
|
|
21658
21690
|
smallVMore,
|
|
21659
21691
|
dot,
|
|
21660
|
-
input: input$1
|
|
21692
|
+
input: input$1,
|
|
21693
|
+
dropDownClass,
|
|
21694
|
+
selectMore
|
|
21661
21695
|
};
|
|
21662
21696
|
const _sfc_main$Q = defineComponent({
|
|
21697
|
+
components: {
|
|
21698
|
+
Select
|
|
21699
|
+
},
|
|
21663
21700
|
props: {
|
|
21664
21701
|
isfullheight: {
|
|
21665
21702
|
type: Boolean,
|
|
@@ -21681,30 +21718,89 @@ const _sfc_main$Q = defineComponent({
|
|
|
21681
21718
|
itemClassName: {
|
|
21682
21719
|
type: String,
|
|
21683
21720
|
default: ""
|
|
21721
|
+
},
|
|
21722
|
+
topupAmountText: {
|
|
21723
|
+
type: String,
|
|
21724
|
+
required: false,
|
|
21725
|
+
default: "0"
|
|
21726
|
+
},
|
|
21727
|
+
halfsheetAmount: {
|
|
21728
|
+
type: Array,
|
|
21729
|
+
default: () => [2e3, 3e3, 5e3, 1e4, 3e4, 5e4, 1e5],
|
|
21730
|
+
required: false
|
|
21684
21731
|
}
|
|
21685
21732
|
},
|
|
21686
21733
|
emits: ["setmoney", "switchinput", "selectmoremoney"],
|
|
21687
21734
|
setup(props, { emit }) {
|
|
21688
21735
|
const style = useCssModule();
|
|
21736
|
+
const { isMobile, isDesktop } = useBreakpoints();
|
|
21737
|
+
const state = reactive({
|
|
21738
|
+
toggleDropdown: false,
|
|
21739
|
+
isSelectMoreVisible: props.halfsheetAmount.length > 0
|
|
21740
|
+
});
|
|
21741
|
+
const chargeAmountList = computed(() => {
|
|
21742
|
+
if (isDesktop.value) {
|
|
21743
|
+
let totalLength = 0, chargeAmounts = [];
|
|
21744
|
+
props.amountList.forEach((amount2) => {
|
|
21745
|
+
const length = amount2.toString().length + totalLength;
|
|
21746
|
+
const lengthLimit = state.isSelectMoreVisible ? 19 : 24;
|
|
21747
|
+
if (length <= lengthLimit) {
|
|
21748
|
+
totalLength = length;
|
|
21749
|
+
chargeAmounts.push(amount2);
|
|
21750
|
+
}
|
|
21751
|
+
});
|
|
21752
|
+
return chargeAmounts;
|
|
21753
|
+
} else {
|
|
21754
|
+
return props.amountList;
|
|
21755
|
+
}
|
|
21756
|
+
});
|
|
21689
21757
|
const select2 = (money) => {
|
|
21690
21758
|
emit("setmoney", money);
|
|
21691
21759
|
};
|
|
21692
|
-
const
|
|
21693
|
-
|
|
21760
|
+
const handleSelectMoreClick = (e) => {
|
|
21761
|
+
e == null ? void 0 : e.stopPropagation();
|
|
21762
|
+
if (isMobile.value) {
|
|
21763
|
+
emit("selectmoremoney");
|
|
21764
|
+
} else {
|
|
21765
|
+
state.toggleDropdown = true;
|
|
21766
|
+
setTimeout(() => {
|
|
21767
|
+
state.toggleDropdown = false;
|
|
21768
|
+
}, 100);
|
|
21769
|
+
}
|
|
21770
|
+
};
|
|
21771
|
+
const handleChange = (e) => {
|
|
21772
|
+
select2(Number(e.target.value));
|
|
21773
|
+
};
|
|
21774
|
+
const chargeHalfsheetAmount = computed(() => {
|
|
21775
|
+
return props.halfsheetAmount.map((amount2) => ({
|
|
21776
|
+
value: amount2.toString(),
|
|
21777
|
+
label: numberWithCommas(amount2) + "\u5186"
|
|
21778
|
+
}));
|
|
21779
|
+
});
|
|
21780
|
+
const topupAmount2 = computed(() => props.topupAmountText.replace(",", ""));
|
|
21694
21781
|
return {
|
|
21695
21782
|
style,
|
|
21696
21783
|
select: select2,
|
|
21697
21784
|
numberWithCommas,
|
|
21698
|
-
isSelectMoreVisible
|
|
21785
|
+
isSelectMoreVisible: computed(() => state.isSelectMoreVisible),
|
|
21786
|
+
isDesktop,
|
|
21787
|
+
handleSelectMoreClick,
|
|
21788
|
+
SelectType,
|
|
21789
|
+
handleChange,
|
|
21790
|
+
toggleDropdown: computed(() => state.toggleDropdown),
|
|
21791
|
+
chargeHalfsheetAmount,
|
|
21792
|
+
chargeAmountList,
|
|
21793
|
+
topupAmount: topupAmount2
|
|
21699
21794
|
};
|
|
21700
21795
|
}
|
|
21701
21796
|
});
|
|
21702
21797
|
const _hoisted_1$u = ["onClick"];
|
|
21703
21798
|
function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21799
|
+
const _component_Select = resolveComponent("Select");
|
|
21704
21800
|
return openBlock(), createElementBlock("div", {
|
|
21705
21801
|
class: normalizeClass(_ctx.style.chargeArea)
|
|
21706
21802
|
}, [
|
|
21707
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.
|
|
21803
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.chargeAmountList, (amount2, index2) => {
|
|
21708
21804
|
return openBlock(), createElementBlock("div", {
|
|
21709
21805
|
key: index2,
|
|
21710
21806
|
tabindex: 0,
|
|
@@ -21723,9 +21819,14 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21723
21819
|
key: 0,
|
|
21724
21820
|
role: "button",
|
|
21725
21821
|
tabindex: 0,
|
|
21726
|
-
class: normalizeClass([
|
|
21822
|
+
class: normalizeClass([
|
|
21823
|
+
_ctx.style.moneyNumber,
|
|
21824
|
+
_ctx.style.margin,
|
|
21825
|
+
_ctx.itemClassName,
|
|
21826
|
+
_ctx.style.selectMore
|
|
21827
|
+
]),
|
|
21727
21828
|
"data-test": "select-more",
|
|
21728
|
-
onClick: _cache[0] || (_cache[0] = (
|
|
21829
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleSelectMoreClick && _ctx.handleSelectMoreClick(...args))
|
|
21729
21830
|
}, [
|
|
21730
21831
|
createBaseVNode("span", {
|
|
21731
21832
|
class: normalizeClass(_ctx.style.dot)
|
|
@@ -21738,7 +21839,17 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21738
21839
|
tabindex: 0,
|
|
21739
21840
|
"data-test": "switch-input",
|
|
21740
21841
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("switchinput"))
|
|
21741
|
-
}, " \u5165\u529B ", 2)) : createCommentVNode("", true)
|
|
21842
|
+
}, " \u5165\u529B ", 2)) : createCommentVNode("", true),
|
|
21843
|
+
_ctx.isDesktop && _ctx.isSelectMoreVisible ? (openBlock(), createBlock(_component_Select, {
|
|
21844
|
+
key: 2,
|
|
21845
|
+
type: _ctx.SelectType.DROPDOWN,
|
|
21846
|
+
list: _ctx.chargeHalfsheetAmount,
|
|
21847
|
+
value: _ctx.topupAmount,
|
|
21848
|
+
placeholder: "",
|
|
21849
|
+
"toggle-dropdown": _ctx.toggleDropdown,
|
|
21850
|
+
"drop-down-class": _ctx.style.dropDownClass,
|
|
21851
|
+
"on-change": _ctx.handleChange
|
|
21852
|
+
}, null, 8, ["type", "list", "value", "toggle-dropdown", "drop-down-class", "on-change"])) : createCommentVNode("", true)
|
|
21742
21853
|
], 2);
|
|
21743
21854
|
}
|
|
21744
21855
|
const cssModules$C = {};
|
|
@@ -22883,19 +22994,19 @@ function getUserLocationRequest(params) {
|
|
|
22883
22994
|
function isValidUrl(urlChallenge) {
|
|
22884
22995
|
return /^https?:\/\//.test(urlChallenge);
|
|
22885
22996
|
}
|
|
22886
|
-
const root$6 = "
|
|
22887
|
-
const title$5 = "
|
|
22888
|
-
const container$a = "
|
|
22889
|
-
const desktopTitle$1 = "
|
|
22890
|
-
const contentContainerMp = "
|
|
22891
|
-
const contentContainer$2 = "
|
|
22892
|
-
const icon = "
|
|
22893
|
-
const iconContainer = "
|
|
22894
|
-
const payAddressRoot = "
|
|
22895
|
-
const footerBtnContainer = "
|
|
22896
|
-
const confirmBtn = "
|
|
22897
|
-
const closeBtn = "
|
|
22898
|
-
const noAddressMessage = "
|
|
22997
|
+
const root$6 = "_root_8om2u_2";
|
|
22998
|
+
const title$5 = "_title_8om2u_6";
|
|
22999
|
+
const container$a = "_container_8om2u_13";
|
|
23000
|
+
const desktopTitle$1 = "_desktopTitle_8om2u_22";
|
|
23001
|
+
const contentContainerMp = "_contentContainerMp_8om2u_32";
|
|
23002
|
+
const contentContainer$2 = "_contentContainer_8om2u_32";
|
|
23003
|
+
const icon = "_icon_8om2u_45";
|
|
23004
|
+
const iconContainer = "_iconContainer_8om2u_55";
|
|
23005
|
+
const payAddressRoot = "_payAddressRoot_8om2u_75";
|
|
23006
|
+
const footerBtnContainer = "_footerBtnContainer_8om2u_79";
|
|
23007
|
+
const confirmBtn = "_confirmBtn_8om2u_86";
|
|
23008
|
+
const closeBtn = "_closeBtn_8om2u_93";
|
|
23009
|
+
const noAddressMessage = "_noAddressMessage_8om2u_99";
|
|
22899
23010
|
var style0$q = {
|
|
22900
23011
|
root: root$6,
|
|
22901
23012
|
title: title$5,
|
|
@@ -22905,7 +23016,7 @@ var style0$q = {
|
|
|
22905
23016
|
contentContainer: contentContainer$2,
|
|
22906
23017
|
icon,
|
|
22907
23018
|
iconContainer,
|
|
22908
|
-
"return": "
|
|
23019
|
+
"return": "_return_8om2u_60",
|
|
22909
23020
|
payAddressRoot,
|
|
22910
23021
|
footerBtnContainer,
|
|
22911
23022
|
confirmBtn,
|
|
@@ -23006,7 +23117,7 @@ const _sfc_main$F = defineComponent({
|
|
|
23006
23117
|
state.showAddressList = !(isDesktop == null ? void 0 : isDesktop.value);
|
|
23007
23118
|
});
|
|
23008
23119
|
watch(() => props.addresses, (newVal, oldval) => {
|
|
23009
|
-
if (oldval.length
|
|
23120
|
+
if (oldval.length === 0 && newVal.length === 1 && !props.isMakepayment) {
|
|
23010
23121
|
state.showAddressList = true;
|
|
23011
23122
|
}
|
|
23012
23123
|
state.addressList = newVal.slice();
|
|
@@ -23522,13 +23633,13 @@ const states = [
|
|
|
23522
23633
|
{ label: "\u9E7F\u5150\u5CF6\u770C", value: "\u9E7F\u5150\u5CF6\u770C" },
|
|
23523
23634
|
{ label: "\u6C96\u7E04\u770C", value: "\u6C96\u7E04\u770C" }
|
|
23524
23635
|
];
|
|
23525
|
-
const root$4 = "
|
|
23526
|
-
const prepend = "
|
|
23527
|
-
const append = "
|
|
23528
|
-
const input = "
|
|
23529
|
-
const select = "
|
|
23530
|
-
const borderDel = "
|
|
23531
|
-
const spacer = "
|
|
23636
|
+
const root$4 = "_root_115xn_1";
|
|
23637
|
+
const prepend = "_prepend_115xn_15";
|
|
23638
|
+
const append = "_append_115xn_22";
|
|
23639
|
+
const input = "_input_115xn_38";
|
|
23640
|
+
const select = "_select_115xn_51";
|
|
23641
|
+
const borderDel = "_borderDel_115xn_54";
|
|
23642
|
+
const spacer = "_spacer_115xn_57";
|
|
23532
23643
|
var style0$n = {
|
|
23533
23644
|
root: root$4,
|
|
23534
23645
|
prepend,
|
|
@@ -23613,13 +23724,11 @@ const _sfc_main$C = defineComponent({
|
|
|
23613
23724
|
},
|
|
23614
23725
|
show: {
|
|
23615
23726
|
type: Boolean,
|
|
23616
|
-
required: true
|
|
23617
|
-
default: false
|
|
23727
|
+
required: true
|
|
23618
23728
|
},
|
|
23619
23729
|
enableDelete: {
|
|
23620
23730
|
type: Boolean,
|
|
23621
|
-
required: true
|
|
23622
|
-
default: false
|
|
23731
|
+
required: true
|
|
23623
23732
|
}
|
|
23624
23733
|
},
|
|
23625
23734
|
emits: ["submit", "close", "openDeleteSheet"],
|
|
@@ -24303,12 +24412,12 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24303
24412
|
const cssModules$l = {};
|
|
24304
24413
|
cssModules$l["$style"] = style0$k;
|
|
24305
24414
|
var App = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z], ["__cssModules", cssModules$l]]);
|
|
24306
|
-
|
|
24415
|
+
function openWebview(params) {
|
|
24307
24416
|
var _a, _b, _c, _d;
|
|
24308
24417
|
reconstructParams(params);
|
|
24309
24418
|
let url;
|
|
24310
24419
|
let openUrl = null;
|
|
24311
|
-
const appDetail =
|
|
24420
|
+
const appDetail = getAppDetail();
|
|
24312
24421
|
try {
|
|
24313
24422
|
url = new URL(params == null ? void 0 : params.url);
|
|
24314
24423
|
} catch (error) {
|
|
@@ -24354,6 +24463,7 @@ function openWebviewInternal(params) {
|
|
|
24354
24463
|
}
|
|
24355
24464
|
}
|
|
24356
24465
|
function getAuthUrl(redirectUrl) {
|
|
24466
|
+
var _a;
|
|
24357
24467
|
let authUrl = "";
|
|
24358
24468
|
switch (getEnv()) {
|
|
24359
24469
|
case "staging":
|
|
@@ -24366,7 +24476,8 @@ function getAuthUrl(redirectUrl) {
|
|
|
24366
24476
|
default:
|
|
24367
24477
|
authUrl = "https://www.paypay.ne.jp";
|
|
24368
24478
|
}
|
|
24369
|
-
|
|
24479
|
+
const clientId = (_a = getClientId()) != null ? _a : "";
|
|
24480
|
+
return `${authUrl}/portal/auth/mini-app/permission?clientId=${clientId}&redirectUrl=${encodeURIComponent(redirectUrl)}`;
|
|
24370
24481
|
}
|
|
24371
24482
|
var UIComponentsButtonActionType;
|
|
24372
24483
|
(function(UIComponentsButtonActionType2) {
|
|
@@ -24584,42 +24695,42 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24584
24695
|
], 64);
|
|
24585
24696
|
}
|
|
24586
24697
|
var AppVue$9 = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$x]]);
|
|
24587
|
-
const container$6 = "
|
|
24588
|
-
const addContainer = "
|
|
24589
|
-
const addContainerInsufficient = "
|
|
24590
|
-
const noAddContainer = "
|
|
24591
|
-
const addContainerTopup = "
|
|
24592
|
-
const addAddress = "
|
|
24593
|
-
const label$1 = "
|
|
24594
|
-
const change$1 = "
|
|
24595
|
-
const noaddmsgContainer = "
|
|
24596
|
-
const addressInfoContainer = "
|
|
24597
|
-
const priceContainer$1 = "
|
|
24598
|
-
const priceNumber = "
|
|
24599
|
-
const priceUnit = "
|
|
24600
|
-
const successContainer$1 = "
|
|
24601
|
-
const payButton = "
|
|
24602
|
-
const loadingText$2 = "
|
|
24603
|
-
const payBtn = "
|
|
24604
|
-
const payBtnSticky = "
|
|
24605
|
-
const payWrapper = "
|
|
24606
|
-
const bannerInfo$1 = "
|
|
24607
|
-
const bannerIcon = "
|
|
24608
|
-
const bannerTitle$1 = "
|
|
24609
|
-
const price$1 = "
|
|
24610
|
-
const paymentContainer = "
|
|
24611
|
-
const addressContainer = "
|
|
24612
|
-
const noAddressContainer = "
|
|
24613
|
-
const payment$2 = "
|
|
24614
|
-
const insufficientAmount = "
|
|
24615
|
-
const cancelBtn$1 = "
|
|
24616
|
-
const chargeCancel = "
|
|
24617
|
-
const cancel = "
|
|
24618
|
-
const arrow = "
|
|
24619
|
-
const defaultContainer = "
|
|
24620
|
-
const payContainer = "
|
|
24698
|
+
const container$6 = "_container_1fq5d_7";
|
|
24699
|
+
const addContainer = "_addContainer_1fq5d_16";
|
|
24700
|
+
const addContainerInsufficient = "_addContainerInsufficient_1fq5d_25";
|
|
24701
|
+
const noAddContainer = "_noAddContainer_1fq5d_29";
|
|
24702
|
+
const addContainerTopup = "_addContainerTopup_1fq5d_34";
|
|
24703
|
+
const addAddress = "_addAddress_1fq5d_44";
|
|
24704
|
+
const label$1 = "_label_1fq5d_54";
|
|
24705
|
+
const change$1 = "_change_1fq5d_72";
|
|
24706
|
+
const noaddmsgContainer = "_noaddmsgContainer_1fq5d_87";
|
|
24707
|
+
const addressInfoContainer = "_addressInfoContainer_1fq5d_96";
|
|
24708
|
+
const priceContainer$1 = "_priceContainer_1fq5d_100";
|
|
24709
|
+
const priceNumber = "_priceNumber_1fq5d_111";
|
|
24710
|
+
const priceUnit = "_priceUnit_1fq5d_130";
|
|
24711
|
+
const successContainer$1 = "_successContainer_1fq5d_141";
|
|
24712
|
+
const payButton = "_payButton_1fq5d_148";
|
|
24713
|
+
const loadingText$2 = "_loadingText_1fq5d_151";
|
|
24714
|
+
const payBtn = "_payBtn_1fq5d_169";
|
|
24715
|
+
const payBtnSticky = "_payBtnSticky_1fq5d_189";
|
|
24716
|
+
const payWrapper = "_payWrapper_1fq5d_202";
|
|
24717
|
+
const bannerInfo$1 = "_bannerInfo_1fq5d_207";
|
|
24718
|
+
const bannerIcon = "_bannerIcon_1fq5d_221";
|
|
24719
|
+
const bannerTitle$1 = "_bannerTitle_1fq5d_225";
|
|
24720
|
+
const price$1 = "_price_1fq5d_100";
|
|
24721
|
+
const paymentContainer = "_paymentContainer_1fq5d_234";
|
|
24722
|
+
const addressContainer = "_addressContainer_1fq5d_257";
|
|
24723
|
+
const noAddressContainer = "_noAddressContainer_1fq5d_280";
|
|
24724
|
+
const payment$2 = "_payment_1fq5d_234";
|
|
24725
|
+
const insufficientAmount = "_insufficientAmount_1fq5d_307";
|
|
24726
|
+
const cancelBtn$1 = "_cancelBtn_1fq5d_325";
|
|
24727
|
+
const chargeCancel = "_chargeCancel_1fq5d_333";
|
|
24728
|
+
const cancel = "_cancel_1fq5d_325";
|
|
24729
|
+
const arrow = "_arrow_1fq5d_346";
|
|
24730
|
+
const defaultContainer = "_defaultContainer_1fq5d_360";
|
|
24731
|
+
const payContainer = "_payContainer_1fq5d_379";
|
|
24621
24732
|
var style0$i = {
|
|
24622
|
-
"ppmna-default-font": "_ppmna-default-
|
|
24733
|
+
"ppmna-default-font": "_ppmna-default-font_1fq5d_1",
|
|
24623
24734
|
container: container$6,
|
|
24624
24735
|
addContainer,
|
|
24625
24736
|
addContainerInsufficient,
|
|
@@ -25144,8 +25255,8 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25144
25255
|
const cssModules$j = {};
|
|
25145
25256
|
cssModules$j["$style"] = style0$i;
|
|
25146
25257
|
var Payment = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$w], ["__cssModules", cssModules$j]]);
|
|
25147
|
-
const container$5 = "
|
|
25148
|
-
const contentContainer$1 = "
|
|
25258
|
+
const container$5 = "_container_i2sms_1";
|
|
25259
|
+
const contentContainer$1 = "_contentContainer_i2sms_17";
|
|
25149
25260
|
var style0$h = {
|
|
25150
25261
|
container: container$5,
|
|
25151
25262
|
contentContainer: contentContainer$1
|
|
@@ -26734,11 +26845,11 @@ const _sfc_main$l = defineComponent({
|
|
|
26734
26845
|
};
|
|
26735
26846
|
const showShare = computed(() => {
|
|
26736
26847
|
var _a, _b;
|
|
26737
|
-
if (
|
|
26848
|
+
if ((_a = animation == null ? void 0 : animation.value) == null ? void 0 : _a.shareDetail) {
|
|
26738
26849
|
if (getRuntime() === MiniAppRuntime.android) {
|
|
26739
26850
|
return true;
|
|
26740
26851
|
} else {
|
|
26741
|
-
return (_b = window == null ? void 0 : window.navigator) == null ? void 0 : _b.share;
|
|
26852
|
+
return ((_b = window == null ? void 0 : window.navigator) == null ? void 0 : _b.share) != null;
|
|
26742
26853
|
}
|
|
26743
26854
|
} else {
|
|
26744
26855
|
return false;
|
|
@@ -27048,29 +27159,30 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27048
27159
|
const cssModules$c = {};
|
|
27049
27160
|
cssModules$c["$style"] = style0$b;
|
|
27050
27161
|
var TopInfo = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__cssModules", cssModules$c]]);
|
|
27051
|
-
const chargeMainTitle = "
|
|
27052
|
-
const chargeTitle = "
|
|
27053
|
-
const bannerInfo = "
|
|
27054
|
-
const topupAmount = "
|
|
27055
|
-
const chargeArea = "
|
|
27056
|
-
const paymentMethodContainer = "
|
|
27057
|
-
const desktopUi = "
|
|
27058
|
-
const itemContainer = "
|
|
27059
|
-
const chargeLabel = "
|
|
27060
|
-
const paymentMethod$1 = "
|
|
27061
|
-
const buttonContainer = "
|
|
27062
|
-
const successContainer = "
|
|
27063
|
-
const hidden = "
|
|
27064
|
-
const nonVisible = "
|
|
27065
|
-
const loadingText$1 = "
|
|
27066
|
-
const unAvailable = "
|
|
27067
|
-
const cancelBtn = "
|
|
27068
|
-
const change = "
|
|
27069
|
-
const chargeBtnSticky = "
|
|
27070
|
-
const chargeWrapper = "
|
|
27071
|
-
const chargeTitleContainer = "
|
|
27162
|
+
const chargeMainTitle = "_chargeMainTitle_1cboc_7";
|
|
27163
|
+
const chargeTitle = "_chargeTitle_1cboc_14";
|
|
27164
|
+
const bannerInfo = "_bannerInfo_1cboc_19";
|
|
27165
|
+
const topupAmount = "_topupAmount_1cboc_27";
|
|
27166
|
+
const chargeArea = "_chargeArea_1cboc_41";
|
|
27167
|
+
const paymentMethodContainer = "_paymentMethodContainer_1cboc_61";
|
|
27168
|
+
const desktopUi = "_desktopUi_1cboc_78";
|
|
27169
|
+
const itemContainer = "_itemContainer_1cboc_84";
|
|
27170
|
+
const chargeLabel = "_chargeLabel_1cboc_92";
|
|
27171
|
+
const paymentMethod$1 = "_paymentMethod_1cboc_61";
|
|
27172
|
+
const buttonContainer = "_buttonContainer_1cboc_108";
|
|
27173
|
+
const successContainer = "_successContainer_1cboc_114";
|
|
27174
|
+
const hidden = "_hidden_1cboc_125";
|
|
27175
|
+
const nonVisible = "_nonVisible_1cboc_134";
|
|
27176
|
+
const loadingText$1 = "_loadingText_1cboc_137";
|
|
27177
|
+
const unAvailable = "_unAvailable_1cboc_149";
|
|
27178
|
+
const cancelBtn = "_cancelBtn_1cboc_157";
|
|
27179
|
+
const change = "_change_1cboc_162";
|
|
27180
|
+
const chargeBtnSticky = "_chargeBtnSticky_1cboc_178";
|
|
27181
|
+
const chargeWrapper = "_chargeWrapper_1cboc_191";
|
|
27182
|
+
const chargeTitleContainer = "_chargeTitleContainer_1cboc_197";
|
|
27183
|
+
const chargeListWrapper = "_chargeListWrapper_1cboc_203";
|
|
27072
27184
|
var style0$a = {
|
|
27073
|
-
"ppmna-default-font": "_ppmna-default-
|
|
27185
|
+
"ppmna-default-font": "_ppmna-default-font_1cboc_1",
|
|
27074
27186
|
chargeMainTitle,
|
|
27075
27187
|
chargeTitle,
|
|
27076
27188
|
bannerInfo,
|
|
@@ -27091,7 +27203,8 @@ var style0$a = {
|
|
|
27091
27203
|
change,
|
|
27092
27204
|
chargeBtnSticky,
|
|
27093
27205
|
chargeWrapper,
|
|
27094
|
-
chargeTitleContainer
|
|
27206
|
+
chargeTitleContainer,
|
|
27207
|
+
chargeListWrapper
|
|
27095
27208
|
};
|
|
27096
27209
|
const _sfc_main$j = defineComponent({
|
|
27097
27210
|
components: {
|
|
@@ -27173,6 +27286,11 @@ const _sfc_main$j = defineComponent({
|
|
|
27173
27286
|
required: false,
|
|
27174
27287
|
default: () => {
|
|
27175
27288
|
}
|
|
27289
|
+
},
|
|
27290
|
+
halfsheetAmount: {
|
|
27291
|
+
type: Array,
|
|
27292
|
+
default: () => [2e3, 3e3, 5e3, 1e4, 3e4, 5e4, 1e5],
|
|
27293
|
+
required: false
|
|
27176
27294
|
}
|
|
27177
27295
|
},
|
|
27178
27296
|
emits: {
|
|
@@ -27310,7 +27428,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27310
27428
|
], 2)
|
|
27311
27429
|
], 2),
|
|
27312
27430
|
createBaseVNode("div", {
|
|
27313
|
-
class: normalizeClass([_ctx.nonVisibility])
|
|
27431
|
+
class: normalizeClass([_ctx.nonVisibility, _ctx.style.chargeListWrapper])
|
|
27314
27432
|
}, [
|
|
27315
27433
|
withDirectives(createVNode(_component_ChargeAmountList, {
|
|
27316
27434
|
"item-class-name": _ctx.style.itemContainer,
|
|
@@ -27318,9 +27436,11 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27318
27436
|
operator: "",
|
|
27319
27437
|
small: true,
|
|
27320
27438
|
class: normalizeClass(_ctx.style.chargeArea),
|
|
27439
|
+
"topup-amount-text": _ctx.topupAmountText,
|
|
27440
|
+
"halfsheet-amount": _ctx.halfsheetAmount,
|
|
27321
27441
|
onSetmoney: _ctx.setMoney,
|
|
27322
27442
|
onSelectmoremoney: _ctx.selectmoremoney
|
|
27323
|
-
}, null, 8, ["item-class-name", "amount-list", "class", "onSetmoney", "onSelectmoremoney"]), [
|
|
27443
|
+
}, null, 8, ["item-class-name", "amount-list", "class", "topup-amount-text", "halfsheet-amount", "onSetmoney", "onSelectmoremoney"]), [
|
|
27324
27444
|
[_directive_horizontal_scroll]
|
|
27325
27445
|
]),
|
|
27326
27446
|
createVNode(_component_Divider)
|
|
@@ -27597,18 +27717,18 @@ function isValidPaymentMethod(savedMethod, paymentMethods, type) {
|
|
|
27597
27717
|
}
|
|
27598
27718
|
return false;
|
|
27599
27719
|
}
|
|
27600
|
-
const paddingVertical = "
|
|
27601
|
-
const container$1 = "
|
|
27602
|
-
const mount = "
|
|
27603
|
-
const header = "
|
|
27604
|
-
const topDivider = "
|
|
27605
|
-
const blockSpacer = "
|
|
27606
|
-
const content$1 = "
|
|
27607
|
-
const gridRoot = "
|
|
27608
|
-
const listContainer = "
|
|
27609
|
-
const topupContainer = "
|
|
27720
|
+
const paddingVertical = "_paddingVertical_146je_7";
|
|
27721
|
+
const container$1 = "_container_146je_11";
|
|
27722
|
+
const mount = "_mount_146je_35";
|
|
27723
|
+
const header = "_header_146je_41";
|
|
27724
|
+
const topDivider = "_topDivider_146je_47";
|
|
27725
|
+
const blockSpacer = "_blockSpacer_146je_51";
|
|
27726
|
+
const content$1 = "_content_146je_57";
|
|
27727
|
+
const gridRoot = "_gridRoot_146je_73";
|
|
27728
|
+
const listContainer = "_listContainer_146je_79";
|
|
27729
|
+
const topupContainer = "_topupContainer_146je_90";
|
|
27610
27730
|
var style0$8 = {
|
|
27611
|
-
"ppmna-default-font": "_ppmna-default-
|
|
27731
|
+
"ppmna-default-font": "_ppmna-default-font_146je_1",
|
|
27612
27732
|
paddingVertical,
|
|
27613
27733
|
container: container$1,
|
|
27614
27734
|
mount,
|
|
@@ -27957,6 +28077,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27957
28077
|
done: _ctx.done,
|
|
27958
28078
|
paying: _ctx.paying,
|
|
27959
28079
|
"amount-buttons": _ctx.amountLists.buttons,
|
|
28080
|
+
"halfsheet-amount": _ctx.amountLists.halfSheet,
|
|
27960
28081
|
available: _ctx.available,
|
|
27961
28082
|
"payment-methods": _ctx.paymentMethods,
|
|
27962
28083
|
"select-index": _ctx.selectIndex,
|
|
@@ -27976,7 +28097,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27976
28097
|
onChooseAddress: _ctx.addressSelect,
|
|
27977
28098
|
onLayoutUpdate: _ctx.handleUpdate,
|
|
27978
28099
|
onUpdateAddress: _ctx.updateAddress
|
|
27979
|
-
}, null, 8, ["container-class", "payment-method", "topup-amount-text", "banner-info", "done", "paying", "amount-buttons", "available", "payment-methods", "select-index", "is-scrollable", "show-user-address", "addresses", "selected-address", "onSelect", "onAnimationEnd", "onSetMoney", "onSelectmoremoney", "onShowConsult", "onOpenPaymentMethod", "onCharge", "onClose", "onShowPaymentList", "onChooseAddress", "onLayoutUpdate", "onUpdateAddress"])
|
|
28100
|
+
}, null, 8, ["container-class", "payment-method", "topup-amount-text", "banner-info", "done", "paying", "amount-buttons", "halfsheet-amount", "available", "payment-methods", "select-index", "is-scrollable", "show-user-address", "addresses", "selected-address", "onSelect", "onAnimationEnd", "onSetMoney", "onSelectmoremoney", "onShowConsult", "onOpenPaymentMethod", "onCharge", "onClose", "onShowPaymentList", "onChooseAddress", "onLayoutUpdate", "onUpdateAddress"])
|
|
27980
28101
|
], 2),
|
|
27981
28102
|
createVNode(Transition, { name: "pp-slide-secondary" }, {
|
|
27982
28103
|
default: withCtx(() => [
|
|
@@ -28023,72 +28144,11 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28023
28144
|
const cssModules$9 = {};
|
|
28024
28145
|
cssModules$9["$style"] = style0$8;
|
|
28025
28146
|
var Charge = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__cssModules", cssModules$9]]);
|
|
28026
|
-
|
|
28027
|
-
|
|
28028
|
-
|
|
28029
|
-
|
|
28030
|
-
|
|
28031
|
-
const endApplication = () => {
|
|
28032
|
-
var _a, _b;
|
|
28033
|
-
(_b = (_a = props.paymentParams) == null ? void 0 : _a.complete) == null ? void 0 : _b.call(_a);
|
|
28034
|
-
emit("click");
|
|
28035
|
-
};
|
|
28036
|
-
const cancel2 = () => {
|
|
28037
|
-
var _a, _b, _c, _d;
|
|
28038
|
-
(_b = (_a = props.paymentParams) == null ? void 0 : _a.fail) == null ? void 0 : _b.call(_a, createErrorCode(MiniAppErrorType.userCanceled));
|
|
28039
|
-
(_d = (_c = props.paymentParams) == null ? void 0 : _c.complete) == null ? void 0 : _d.call(_c);
|
|
28040
|
-
emit("click");
|
|
28041
|
-
};
|
|
28042
|
-
const cancelSimilarTxn = () => {
|
|
28043
|
-
var _a, _b, _c, _d;
|
|
28044
|
-
(_b = (_a = props.paymentParams) == null ? void 0 : _a.fail) == null ? void 0 : _b.call(_a, createErrorCode(MiniAppErrorType.userCanceledSimilarTxn));
|
|
28045
|
-
(_d = (_c = props.paymentParams) == null ? void 0 : _c.complete) == null ? void 0 : _d.call(_c);
|
|
28046
|
-
emit("click");
|
|
28047
|
-
};
|
|
28048
|
-
const setJws = (successParams, address2) => {
|
|
28049
|
-
var _a, _b;
|
|
28050
|
-
const jws = successParams.jws;
|
|
28051
|
-
state.jws = jws;
|
|
28052
|
-
(_b = (_a = props.paymentParams) == null ? void 0 : _a.success) == null ? void 0 : _b.call(_a, {
|
|
28053
|
-
jws,
|
|
28054
|
-
address: address2
|
|
28055
|
-
});
|
|
28056
|
-
};
|
|
28057
|
-
const preFail = (status2, jws) => {
|
|
28058
|
-
var _a, _b;
|
|
28059
|
-
(_b = (_a = props.paymentParams) == null ? void 0 : _a.fail) == null ? void 0 : _b.call(_a, createErrorCode(status2 != null ? status2 : MiniAppErrorType.serverError, jws));
|
|
28060
|
-
};
|
|
28061
|
-
const success2 = () => {
|
|
28062
|
-
var _a, _b;
|
|
28063
|
-
(_b = (_a = props.paymentParams) == null ? void 0 : _a.complete) == null ? void 0 : _b.call(_a);
|
|
28064
|
-
emit("click");
|
|
28065
|
-
};
|
|
28066
|
-
const paymentFail = (jws) => {
|
|
28067
|
-
var _a, _b;
|
|
28068
|
-
preFail(MiniAppErrorType.paymentFail, jws);
|
|
28069
|
-
(_b = (_a = props.paymentParams) == null ? void 0 : _a.complete) == null ? void 0 : _b.call(_a);
|
|
28070
|
-
emit("click");
|
|
28071
|
-
};
|
|
28072
|
-
const unHandleError = () => {
|
|
28073
|
-
var _a, _b;
|
|
28074
|
-
(_b = (_a = props.paymentParams) == null ? void 0 : _a.complete) == null ? void 0 : _b.call(_a);
|
|
28075
|
-
emit("click");
|
|
28076
|
-
};
|
|
28077
|
-
const store = {
|
|
28078
|
-
endApplication,
|
|
28079
|
-
cancel: cancel2,
|
|
28080
|
-
cancelSimilarTxn,
|
|
28081
|
-
success: success2,
|
|
28082
|
-
paymentFail,
|
|
28083
|
-
unHandleError,
|
|
28084
|
-
setJws,
|
|
28085
|
-
preFail
|
|
28086
|
-
};
|
|
28087
|
-
provide(KEY$1, store);
|
|
28088
|
-
return store;
|
|
28089
|
-
}
|
|
28090
|
-
function getRoot() {
|
|
28091
|
-
return inject(KEY$1);
|
|
28147
|
+
function filterUnsupportedPaymentMethod(paymentMethods) {
|
|
28148
|
+
const methods = paymentMethods ? paymentMethods.filter(function(method) {
|
|
28149
|
+
return method.paymentMethodType !== (PaymentMethodType.PAY_LATER || PaymentMethodType.PAY_LATER_CC);
|
|
28150
|
+
}) : paymentMethods;
|
|
28151
|
+
return methods;
|
|
28092
28152
|
}
|
|
28093
28153
|
const img$1 = getImages();
|
|
28094
28154
|
function createErrorFromType(type) {
|
|
@@ -28147,7 +28207,7 @@ function createErrorCodeForFailCallBack(res, api2) {
|
|
|
28147
28207
|
return MiniAppErrorType.serverError;
|
|
28148
28208
|
}
|
|
28149
28209
|
}
|
|
28150
|
-
const KEY = "makepayment_error_handling";
|
|
28210
|
+
const KEY$1 = "makepayment_error_handling";
|
|
28151
28211
|
const img = getImages();
|
|
28152
28212
|
function initErrorHandling(props) {
|
|
28153
28213
|
const { unHandleError, preFail } = props;
|
|
@@ -28245,17 +28305,78 @@ function initErrorHandling(props) {
|
|
|
28245
28305
|
showConsultError: computed(() => errorState.showConsultError),
|
|
28246
28306
|
openLogicError
|
|
28247
28307
|
};
|
|
28248
|
-
provide(KEY, store);
|
|
28308
|
+
provide(KEY$1, store);
|
|
28249
28309
|
return store;
|
|
28250
28310
|
}
|
|
28251
28311
|
function getErrorHandling() {
|
|
28252
|
-
return inject(KEY);
|
|
28312
|
+
return inject(KEY$1);
|
|
28253
28313
|
}
|
|
28254
|
-
|
|
28255
|
-
|
|
28256
|
-
|
|
28257
|
-
|
|
28258
|
-
|
|
28314
|
+
const KEY = "makepayment_root";
|
|
28315
|
+
function initRoot(props, { emit }) {
|
|
28316
|
+
const state = reactive({
|
|
28317
|
+
jws: ""
|
|
28318
|
+
});
|
|
28319
|
+
const endApplication = () => {
|
|
28320
|
+
var _a, _b;
|
|
28321
|
+
(_b = (_a = props.paymentParams) == null ? void 0 : _a.complete) == null ? void 0 : _b.call(_a);
|
|
28322
|
+
emit("click");
|
|
28323
|
+
};
|
|
28324
|
+
const cancel2 = () => {
|
|
28325
|
+
var _a, _b, _c, _d;
|
|
28326
|
+
(_b = (_a = props.paymentParams) == null ? void 0 : _a.fail) == null ? void 0 : _b.call(_a, createErrorCode(MiniAppErrorType.userCanceled));
|
|
28327
|
+
(_d = (_c = props.paymentParams) == null ? void 0 : _c.complete) == null ? void 0 : _d.call(_c);
|
|
28328
|
+
emit("click");
|
|
28329
|
+
};
|
|
28330
|
+
const cancelSimilarTxn = () => {
|
|
28331
|
+
var _a, _b, _c, _d;
|
|
28332
|
+
(_b = (_a = props.paymentParams) == null ? void 0 : _a.fail) == null ? void 0 : _b.call(_a, createErrorCode(MiniAppErrorType.userCanceledSimilarTxn));
|
|
28333
|
+
(_d = (_c = props.paymentParams) == null ? void 0 : _c.complete) == null ? void 0 : _d.call(_c);
|
|
28334
|
+
emit("click");
|
|
28335
|
+
};
|
|
28336
|
+
const setJws = (successParams, address2) => {
|
|
28337
|
+
var _a, _b;
|
|
28338
|
+
const jws = successParams.jws;
|
|
28339
|
+
state.jws = jws;
|
|
28340
|
+
(_b = (_a = props.paymentParams) == null ? void 0 : _a.success) == null ? void 0 : _b.call(_a, {
|
|
28341
|
+
jws,
|
|
28342
|
+
address: address2
|
|
28343
|
+
});
|
|
28344
|
+
};
|
|
28345
|
+
const preFail = (status2, jws) => {
|
|
28346
|
+
var _a, _b;
|
|
28347
|
+
(_b = (_a = props.paymentParams) == null ? void 0 : _a.fail) == null ? void 0 : _b.call(_a, createErrorCode(status2 != null ? status2 : MiniAppErrorType.serverError, jws));
|
|
28348
|
+
};
|
|
28349
|
+
const success2 = () => {
|
|
28350
|
+
var _a, _b;
|
|
28351
|
+
(_b = (_a = props.paymentParams) == null ? void 0 : _a.complete) == null ? void 0 : _b.call(_a);
|
|
28352
|
+
emit("click");
|
|
28353
|
+
};
|
|
28354
|
+
const paymentFail = (jws) => {
|
|
28355
|
+
var _a, _b;
|
|
28356
|
+
preFail(MiniAppErrorType.paymentFail, jws);
|
|
28357
|
+
(_b = (_a = props.paymentParams) == null ? void 0 : _a.complete) == null ? void 0 : _b.call(_a);
|
|
28358
|
+
emit("click");
|
|
28359
|
+
};
|
|
28360
|
+
const unHandleError = () => {
|
|
28361
|
+
var _a, _b;
|
|
28362
|
+
(_b = (_a = props.paymentParams) == null ? void 0 : _a.complete) == null ? void 0 : _b.call(_a);
|
|
28363
|
+
emit("click");
|
|
28364
|
+
};
|
|
28365
|
+
const store = {
|
|
28366
|
+
endApplication,
|
|
28367
|
+
cancel: cancel2,
|
|
28368
|
+
cancelSimilarTxn,
|
|
28369
|
+
success: success2,
|
|
28370
|
+
paymentFail,
|
|
28371
|
+
unHandleError,
|
|
28372
|
+
setJws,
|
|
28373
|
+
preFail
|
|
28374
|
+
};
|
|
28375
|
+
provide(KEY, store);
|
|
28376
|
+
return store;
|
|
28377
|
+
}
|
|
28378
|
+
function getRoot() {
|
|
28379
|
+
return inject(KEY);
|
|
28259
28380
|
}
|
|
28260
28381
|
function usePaymentMethod(props) {
|
|
28261
28382
|
const { handleError: handleError2 } = getErrorHandling();
|
|
@@ -28312,7 +28433,7 @@ function usePaymentMethod(props) {
|
|
|
28312
28433
|
showPaymentMethodList: computed(() => paymentState.showPaymentMethodList)
|
|
28313
28434
|
};
|
|
28314
28435
|
}
|
|
28315
|
-
function useConsult(props
|
|
28436
|
+
function useConsult(props) {
|
|
28316
28437
|
const { paymentFail } = getRoot();
|
|
28317
28438
|
const { handleError: handleError2, openLogicError } = getErrorHandling();
|
|
28318
28439
|
const consultState = reactive({
|
|
@@ -28619,7 +28740,7 @@ function useAddressControl() {
|
|
|
28619
28740
|
addressList: computed(() => addState.addressList)
|
|
28620
28741
|
};
|
|
28621
28742
|
}
|
|
28622
|
-
function useUIControl(props
|
|
28743
|
+
function useUIControl(props) {
|
|
28623
28744
|
var _a;
|
|
28624
28745
|
const price2 = (_a = props.paymentParams) == null ? void 0 : _a.amount.amount;
|
|
28625
28746
|
const { setJws } = getRoot();
|
|
@@ -28744,7 +28865,7 @@ const _sfc_main$g = defineComponent({
|
|
|
28744
28865
|
}
|
|
28745
28866
|
},
|
|
28746
28867
|
emits: ["click"],
|
|
28747
|
-
setup(props
|
|
28868
|
+
setup(props) {
|
|
28748
28869
|
const {
|
|
28749
28870
|
cancel: cancelRoot,
|
|
28750
28871
|
cancelSimilarTxn,
|
|
@@ -28779,7 +28900,7 @@ const _sfc_main$g = defineComponent({
|
|
|
28779
28900
|
duplicateTopup,
|
|
28780
28901
|
showDuplicateTopup,
|
|
28781
28902
|
closeDuplicateTopup
|
|
28782
|
-
} = useUIControl(props
|
|
28903
|
+
} = useUIControl(props);
|
|
28783
28904
|
const {
|
|
28784
28905
|
isVisibleUserAddress,
|
|
28785
28906
|
getUserAddress: getUserAddress2,
|
|
@@ -28813,7 +28934,7 @@ const _sfc_main$g = defineComponent({
|
|
|
28813
28934
|
setConsult,
|
|
28814
28935
|
insufficientBalanceInfo,
|
|
28815
28936
|
getConsultForTopup
|
|
28816
|
-
} = useConsult(props
|
|
28937
|
+
} = useConsult(props);
|
|
28817
28938
|
const {
|
|
28818
28939
|
handleCashBackDetails,
|
|
28819
28940
|
cashBackDetail,
|
|
@@ -29411,7 +29532,8 @@ const makePayment = async (params) => {
|
|
|
29411
29532
|
params.fail = createWrap(fail);
|
|
29412
29533
|
if (complete)
|
|
29413
29534
|
params.complete = createWrap(complete);
|
|
29414
|
-
initMakePayment(params)
|
|
29535
|
+
initMakePayment(params).catch(() => {
|
|
29536
|
+
});
|
|
29415
29537
|
};
|
|
29416
29538
|
const initErrorSheet = (initErrorSheet2) => {
|
|
29417
29539
|
var _a;
|
|
@@ -29907,7 +30029,7 @@ const _sfc_main$b = defineComponent({
|
|
|
29907
30029
|
availableBalText: computed(() => props.isCharging ? lg2.topup.availableBalanceAfter : lg2.topup.availableBalance),
|
|
29908
30030
|
isCashbackSave: computed(() => {
|
|
29909
30031
|
var _a;
|
|
29910
|
-
return ((_a = props == null ? void 0 : props.cashbackInfo) == null ? void 0 : _a.cashBackUseStatus)
|
|
30032
|
+
return ((_a = props == null ? void 0 : props.cashbackInfo) == null ? void 0 : _a.cashBackUseStatus) === "SAVE";
|
|
29911
30033
|
}),
|
|
29912
30034
|
style,
|
|
29913
30035
|
lg: lg2
|
|
@@ -30120,35 +30242,35 @@ const _sfc_main$a = defineComponent({
|
|
|
30120
30242
|
methods: {
|
|
30121
30243
|
numberWithCommas,
|
|
30122
30244
|
async init() {
|
|
30123
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
30245
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
30124
30246
|
this.loading = true;
|
|
30125
30247
|
this.isFirstLoad = true;
|
|
30126
|
-
const paymentIDParams = __spreadProps(__spreadValues({}, this.topupParams.merchant && {
|
|
30248
|
+
const paymentIDParams = __spreadProps(__spreadValues({}, ((_a = this.topupParams) == null ? void 0 : _a.merchant) && {
|
|
30127
30249
|
merchant: this.topupParams.merchant
|
|
30128
30250
|
}), {
|
|
30129
30251
|
type: "TOPUP",
|
|
30130
|
-
methodType: this.topupParams.methodType,
|
|
30131
|
-
bankCode: this.topupParams.bankCode,
|
|
30132
|
-
sourceInfoApp: (
|
|
30133
|
-
productType: (
|
|
30252
|
+
methodType: (_b = this.topupParams) == null ? void 0 : _b.methodType,
|
|
30253
|
+
bankCode: (_c = this.topupParams) == null ? void 0 : _c.bankCode,
|
|
30254
|
+
sourceInfoApp: (_d = this.topupParams) == null ? void 0 : _d.sourceInfoApp,
|
|
30255
|
+
productType: (_e = this.topupParams) == null ? void 0 : _e.productType
|
|
30134
30256
|
});
|
|
30135
30257
|
const paymentIdResponse = await getPaymentMethods(paymentIDParams);
|
|
30136
30258
|
if (!paymentIdResponse || "error" in paymentIdResponse) {
|
|
30137
30259
|
this.errorCode = paymentIdResponse.error.message === MiniAppErrorType.timeOut ? MiniAppErrorType.timeOut : MiniAppErrorType.serverError;
|
|
30138
30260
|
this.errorShow = true;
|
|
30139
30261
|
return;
|
|
30140
|
-
} else if (((
|
|
30262
|
+
} else if (((_g = (_f = paymentIdResponse == null ? void 0 : paymentIdResponse.unsigned) == null ? void 0 : _f.resultInfo) == null ? void 0 : _g.code) !== "SUCCESS") {
|
|
30141
30263
|
this.errorCode = MiniAppErrorType.serverError;
|
|
30142
30264
|
this.showError();
|
|
30143
30265
|
return;
|
|
30144
30266
|
}
|
|
30145
|
-
this.paymentMethodList = filterUnsupportedPaymentMethod((
|
|
30267
|
+
this.paymentMethodList = filterUnsupportedPaymentMethod((_j = (_i = (_h = paymentIdResponse == null ? void 0 : paymentIdResponse.unsigned) == null ? void 0 : _h.data) == null ? void 0 : _i.payload) == null ? void 0 : _j.paymentMethodList);
|
|
30146
30268
|
this.findFirstValidMethod(0);
|
|
30147
30269
|
const config = getAppConfig();
|
|
30148
30270
|
if (config) {
|
|
30149
|
-
this.inputMoney = (
|
|
30150
|
-
this.topupHalfSheetAmount = (
|
|
30151
|
-
this.topupButtonsAmount = (
|
|
30271
|
+
this.inputMoney = (_k = config == null ? void 0 : config.topupHalfSheetRecommendedAmount[0]) == null ? void 0 : _k.value;
|
|
30272
|
+
this.topupHalfSheetAmount = (_l = config == null ? void 0 : config.topupHalfSheetAmount[0]) == null ? void 0 : _l.value;
|
|
30273
|
+
this.topupButtonsAmount = (_m = config == null ? void 0 : config.topupButtonsAmount[0]) == null ? void 0 : _m.value;
|
|
30152
30274
|
}
|
|
30153
30275
|
this.loading = false;
|
|
30154
30276
|
this.isFirstLoad = false;
|
|
@@ -30163,21 +30285,21 @@ const _sfc_main$a = defineComponent({
|
|
|
30163
30285
|
switch (payMethod == null ? void 0 : payMethod.paymentMethodType) {
|
|
30164
30286
|
case PaymentMethodType.BANK:
|
|
30165
30287
|
case PaymentMethodType.YMONEY_BANK:
|
|
30166
|
-
if (((_b = payMethod.bankInfo) == null ? void 0 : _b.paymentMethodStatus)
|
|
30288
|
+
if (((_b = payMethod.bankInfo) == null ? void 0 : _b.paymentMethodStatus) === "ACTIVATED") {
|
|
30167
30289
|
this.selectedPaymentMethod = payMethod;
|
|
30168
30290
|
this.selectPaymentIndex = index2;
|
|
30169
30291
|
return;
|
|
30170
30292
|
}
|
|
30171
30293
|
break;
|
|
30172
30294
|
case PaymentMethodType.CREDIT_CARD:
|
|
30173
|
-
if (((_c = payMethod.creditCardInfo) == null ? void 0 : _c.paymentMethodStatus)
|
|
30295
|
+
if (((_c = payMethod.creditCardInfo) == null ? void 0 : _c.paymentMethodStatus) === "ACTIVATED" && !((_d = payMethod.creditCardInfo) == null ? void 0 : _d.isExpired)) {
|
|
30174
30296
|
this.selectedPaymentMethod = payMethod;
|
|
30175
30297
|
this.selectPaymentIndex = index2;
|
|
30176
30298
|
return;
|
|
30177
30299
|
}
|
|
30178
30300
|
break;
|
|
30179
30301
|
case PaymentMethodType.SBID_CARRIER_BILLING:
|
|
30180
|
-
if (((_e = payMethod.sbidCarrierBillingInfo) == null ? void 0 : _e.paymentMethodStatus)
|
|
30302
|
+
if (((_e = payMethod.sbidCarrierBillingInfo) == null ? void 0 : _e.paymentMethodStatus) === "ACTIVATED") {
|
|
30181
30303
|
this.selectedPaymentMethod = payMethod;
|
|
30182
30304
|
this.selectPaymentIndex = index2;
|
|
30183
30305
|
return;
|
|
@@ -30300,7 +30422,7 @@ const _sfc_main$a = defineComponent({
|
|
|
30300
30422
|
this.$emit("click");
|
|
30301
30423
|
},
|
|
30302
30424
|
async clickTopup(agreeSimilarTransaction) {
|
|
30303
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
30425
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
30304
30426
|
if (!this.selectedPaymentMethod) {
|
|
30305
30427
|
return null;
|
|
30306
30428
|
}
|
|
@@ -30312,36 +30434,36 @@ const _sfc_main$a = defineComponent({
|
|
|
30312
30434
|
}
|
|
30313
30435
|
this.loading = true;
|
|
30314
30436
|
this.isDuplicate = false;
|
|
30315
|
-
__spreadProps(__spreadValues({}, this.topupParams.merchant && {
|
|
30437
|
+
__spreadProps(__spreadValues({}, ((_a = this.topupParams) == null ? void 0 : _a.merchant) && {
|
|
30316
30438
|
merchant: this.topupParams.merchant
|
|
30317
30439
|
}), {
|
|
30318
30440
|
type: "TOPUP"
|
|
30319
30441
|
});
|
|
30320
|
-
this.topupParams.sourceInfoApp ? this.topupParams.sourceInfoApp : null;
|
|
30442
|
+
((_b = this.topupParams) == null ? void 0 : _b.sourceInfoApp) ? this.topupParams.sourceInfoApp : null;
|
|
30321
30443
|
try {
|
|
30322
|
-
const res = await topup$3(__spreadProps(__spreadValues({}, this.topupParams.merchant && {
|
|
30444
|
+
const res = await topup$3(__spreadProps(__spreadValues({}, ((_c = this.topupParams) == null ? void 0 : _c.merchant) && {
|
|
30323
30445
|
merchant: this.topupParams.merchant
|
|
30324
30446
|
}), {
|
|
30325
30447
|
agreeSimilarTransaction
|
|
30326
30448
|
}), {
|
|
30327
30449
|
paymentMethodType: this.selectedPaymentMethod.paymentMethodType,
|
|
30328
30450
|
paymentMethodId: this.selectedPaymentMethod.paymentMethodId,
|
|
30329
|
-
merchantTopUpId: this.topupParams.merchantTopUpId,
|
|
30451
|
+
merchantTopUpId: (_e = (_d = this.topupParams) == null ? void 0 : _d.merchantTopUpId) != null ? _e : "",
|
|
30330
30452
|
amount: {
|
|
30331
30453
|
amount: Number(String(this.inputMoney).replace(/,/g, "")),
|
|
30332
30454
|
currency: "JPY"
|
|
30333
30455
|
},
|
|
30334
|
-
requestedAt: this.topupParams.requestedAt
|
|
30456
|
+
requestedAt: (_g = (_f = this.topupParams) == null ? void 0 : _f.requestedAt) != null ? _g : 0
|
|
30335
30457
|
});
|
|
30336
30458
|
if (!res || "error" in res) {
|
|
30337
30459
|
this.errorCode = MiniAppErrorType.serverError;
|
|
30338
30460
|
this.errorShow = true;
|
|
30339
30461
|
return;
|
|
30340
30462
|
}
|
|
30341
|
-
if (((
|
|
30463
|
+
if (((_i = (_h = res == null ? void 0 : res.unsigned) == null ? void 0 : _h.resultInfo) == null ? void 0 : _i.code) === "SUCCESS" && ((_k = (_j = res == null ? void 0 : res.unsigned) == null ? void 0 : _j.data) == null ? void 0 : _k.status) === "COMPLETED") {
|
|
30342
30464
|
this.loading = false;
|
|
30343
|
-
this.completionData.unsignedData = (
|
|
30344
|
-
this.completionData.jws = ((
|
|
30465
|
+
this.completionData.unsignedData = (_l = res == null ? void 0 : res.unsigned) == null ? void 0 : _l.data;
|
|
30466
|
+
this.completionData.jws = ((_m = res == null ? void 0 : res.signed) == null ? void 0 : _m.jws) || "";
|
|
30345
30467
|
this.done = true;
|
|
30346
30468
|
setTimeout(() => {
|
|
30347
30469
|
this.isInput = false;
|
|
@@ -30349,22 +30471,22 @@ const _sfc_main$a = defineComponent({
|
|
|
30349
30471
|
this.complete = true;
|
|
30350
30472
|
}, 1500);
|
|
30351
30473
|
} else if (res.uiComponents) {
|
|
30352
|
-
if ((
|
|
30353
|
-
this.errorInfo.iconUrl = (
|
|
30354
|
-
this.errorInfo.title = (
|
|
30355
|
-
this.errorInfo.desc = (
|
|
30356
|
-
this.errorInfo.buttonList = (
|
|
30474
|
+
if ((_n = res.uiComponents) == null ? void 0 : _n.displayErrorResponse) {
|
|
30475
|
+
this.errorInfo.iconUrl = (_q = (_p = (_o = res.uiComponents) == null ? void 0 : _o.displayErrorResponse) == null ? void 0 : _p.iconUrl) != null ? _q : "";
|
|
30476
|
+
this.errorInfo.title = (_s = (_r = res.uiComponents) == null ? void 0 : _r.displayErrorResponse) == null ? void 0 : _s.title;
|
|
30477
|
+
this.errorInfo.desc = (_u = (_t = res.uiComponents) == null ? void 0 : _t.displayErrorResponse) == null ? void 0 : _u.description;
|
|
30478
|
+
this.errorInfo.buttonList = (_w = (_v = res.uiComponents) == null ? void 0 : _v.displayErrorResponse) == null ? void 0 : _w.buttonList;
|
|
30357
30479
|
}
|
|
30358
30480
|
this.errorCode = MiniAppErrorType.topupFail;
|
|
30359
|
-
this.jws = ((
|
|
30481
|
+
this.jws = ((_x = res == null ? void 0 : res.signed) == null ? void 0 : _x.jws) || "";
|
|
30360
30482
|
this.showError();
|
|
30361
30483
|
} else if (res.status === 401 || res.status === 400) {
|
|
30362
30484
|
this.errorCode = MiniAppErrorType.invalidHeader;
|
|
30363
|
-
this.jws = ((
|
|
30485
|
+
this.jws = ((_y = res == null ? void 0 : res.signed) == null ? void 0 : _y.jws) || "";
|
|
30364
30486
|
this.showError();
|
|
30365
30487
|
} else {
|
|
30366
30488
|
this.errorCode = MiniAppErrorType.topupFail;
|
|
30367
|
-
this.jws = ((
|
|
30489
|
+
this.jws = ((_z = res == null ? void 0 : res.signed) == null ? void 0 : _z.jws) || "";
|
|
30368
30490
|
this.showError();
|
|
30369
30491
|
}
|
|
30370
30492
|
} catch (error) {
|
|
@@ -30495,14 +30617,14 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30495
30617
|
!_ctx.done && !_ctx.loading && !_ctx.isSelectPaymentMethod && !_ctx.isSelectMoreMoney ? withDirectives((openBlock(), createBlock(_component_ChargeAmountList, {
|
|
30496
30618
|
key: 1,
|
|
30497
30619
|
"amount-list": _ctx.topupButtonsAmount,
|
|
30498
|
-
"
|
|
30620
|
+
"halfsheet-amount": _ctx.topupHalfSheetAmount,
|
|
30499
30621
|
isfullheight: !_ctx.isInput,
|
|
30500
30622
|
small: true,
|
|
30501
30623
|
class: normalizeClass(_ctx.$style.amountList),
|
|
30502
30624
|
onSetmoney: _ctx.setMoney,
|
|
30503
30625
|
onSelectmoremoney: _ctx.selectMoreMoney,
|
|
30504
30626
|
onSwitchinput: _ctx.switchInput
|
|
30505
|
-
}, null, 8, ["amount-list", "
|
|
30627
|
+
}, null, 8, ["amount-list", "halfsheet-amount", "isfullheight", "class", "onSetmoney", "onSelectmoremoney", "onSwitchinput"])), [
|
|
30506
30628
|
[_directive_horizontal_scroll]
|
|
30507
30629
|
]) : createCommentVNode("", true),
|
|
30508
30630
|
!_ctx.done && !_ctx.loading && !_ctx.isInput ? (openBlock(), createBlock(_component_Divider, { key: 2 })) : createCommentVNode("", true),
|
|
@@ -30723,7 +30845,7 @@ const initTopup = (topupParams) => {
|
|
|
30723
30845
|
setup() {
|
|
30724
30846
|
return () => h(AppVue$6, {
|
|
30725
30847
|
show: show2.value,
|
|
30726
|
-
topupParams: topupProp,
|
|
30848
|
+
topupParams: topupProp != null ? topupProp : null,
|
|
30727
30849
|
onClick: () => {
|
|
30728
30850
|
closeSheet();
|
|
30729
30851
|
}
|
|
@@ -30740,7 +30862,7 @@ function topup$1(params) {
|
|
|
30740
30862
|
reconstructParams(params);
|
|
30741
30863
|
initTopup(params);
|
|
30742
30864
|
}
|
|
30743
|
-
|
|
30865
|
+
function closeApp(params) {
|
|
30744
30866
|
var _a;
|
|
30745
30867
|
if (params) {
|
|
30746
30868
|
reconstructParams(params);
|
|
@@ -31218,9 +31340,10 @@ const initGetUserAddress = async (params) => {
|
|
|
31218
31340
|
app.mount(container2);
|
|
31219
31341
|
document.body.appendChild(container2);
|
|
31220
31342
|
};
|
|
31221
|
-
|
|
31343
|
+
function getUserAddress(params) {
|
|
31222
31344
|
reconstructParams(params);
|
|
31223
|
-
initGetUserAddress(params)
|
|
31345
|
+
initGetUserAddress(params).catch(() => {
|
|
31346
|
+
});
|
|
31224
31347
|
}
|
|
31225
31348
|
function useRoot(props, { emit }) {
|
|
31226
31349
|
const cancel2 = () => {
|
|
@@ -31238,7 +31361,7 @@ function useRoot(props, { emit }) {
|
|
|
31238
31361
|
success: success2
|
|
31239
31362
|
};
|
|
31240
31363
|
}
|
|
31241
|
-
function useErrorHandling(
|
|
31364
|
+
function useErrorHandling() {
|
|
31242
31365
|
const state = reactive({
|
|
31243
31366
|
errorShow: false,
|
|
31244
31367
|
errorTitle: "",
|
|
@@ -31344,7 +31467,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
31344
31467
|
errorShow,
|
|
31345
31468
|
handleError: handleError2,
|
|
31346
31469
|
closeError
|
|
31347
|
-
} = useErrorHandling(
|
|
31470
|
+
} = useErrorHandling();
|
|
31348
31471
|
const address2 = computed(() => {
|
|
31349
31472
|
var _a;
|
|
31350
31473
|
return (_a = props.inputAddressParams) == null ? void 0 : _a.address;
|
|
@@ -31391,7 +31514,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31391
31514
|
], 64);
|
|
31392
31515
|
}
|
|
31393
31516
|
var AppView = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
|
|
31394
|
-
const initInputAddress =
|
|
31517
|
+
const initInputAddress = (params) => {
|
|
31395
31518
|
const container2 = document.createElement("div");
|
|
31396
31519
|
const show2 = ref(true);
|
|
31397
31520
|
const closeSheet = () => {
|
|
@@ -31425,7 +31548,7 @@ const initInputAddress = async (params) => {
|
|
|
31425
31548
|
app.mount(container2);
|
|
31426
31549
|
document.body.appendChild(container2);
|
|
31427
31550
|
};
|
|
31428
|
-
|
|
31551
|
+
function inputAddress(params) {
|
|
31429
31552
|
reconstructParams(params);
|
|
31430
31553
|
initInputAddress(params);
|
|
31431
31554
|
}
|
|
@@ -31566,7 +31689,7 @@ const initOpenMap = (initOpenMap2) => {
|
|
|
31566
31689
|
app.mount(container2);
|
|
31567
31690
|
document.body.appendChild(container2);
|
|
31568
31691
|
};
|
|
31569
|
-
|
|
31692
|
+
function openMap$1(params) {
|
|
31570
31693
|
reconstructParams(params);
|
|
31571
31694
|
initOpenMap(params);
|
|
31572
31695
|
}
|
|
@@ -31730,7 +31853,7 @@ const initOpenApp = (initOpenApp2) => {
|
|
|
31730
31853
|
app.mount(container2);
|
|
31731
31854
|
document.body.appendChild(container2);
|
|
31732
31855
|
};
|
|
31733
|
-
|
|
31856
|
+
function openApp$1(params) {
|
|
31734
31857
|
var _a, _b, _c, _d;
|
|
31735
31858
|
reconstructParams(params);
|
|
31736
31859
|
let url;
|
|
@@ -31809,14 +31932,14 @@ async function requestInternal(params) {
|
|
|
31809
31932
|
(_d = params == null ? void 0 : params.fail) == null ? void 0 : _d.call(params, { errorCode: MiniAppErrorType.statusCodeError });
|
|
31810
31933
|
}
|
|
31811
31934
|
}
|
|
31812
|
-
|
|
31935
|
+
function debug(params) {
|
|
31813
31936
|
reconstructParams(params);
|
|
31814
|
-
|
|
31937
|
+
execute$5(params);
|
|
31815
31938
|
}
|
|
31816
|
-
|
|
31939
|
+
function execute$5(params) {
|
|
31817
31940
|
var _a;
|
|
31818
31941
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
|
|
31819
|
-
v: "1.
|
|
31942
|
+
v: "1.23.0"
|
|
31820
31943
|
});
|
|
31821
31944
|
}
|
|
31822
31945
|
function useCallBack(props, ctx) {
|
|
@@ -31955,21 +32078,21 @@ const _sfc_main$4 = defineComponent({
|
|
|
31955
32078
|
emit("email-register");
|
|
31956
32079
|
};
|
|
31957
32080
|
const endCount = () => {
|
|
31958
|
-
state.timerId && clearInterval(state.timerId);
|
|
32081
|
+
state.timerId && window.clearInterval(state.timerId);
|
|
31959
32082
|
state.disableResendButton = false;
|
|
31960
32083
|
state.timerCount = 0;
|
|
31961
32084
|
state.timerId = null;
|
|
31962
32085
|
};
|
|
31963
32086
|
onUnmounted(() => {
|
|
31964
32087
|
if (state.timerId) {
|
|
31965
|
-
clearInterval(state.timerId);
|
|
32088
|
+
window.clearInterval(state.timerId);
|
|
31966
32089
|
}
|
|
31967
32090
|
});
|
|
31968
32091
|
const startCount = () => {
|
|
31969
32092
|
state.firstTime = false;
|
|
31970
32093
|
state.timerCount = 30;
|
|
31971
32094
|
state.disableResendButton = true;
|
|
31972
|
-
const timerId = setInterval(() => {
|
|
32095
|
+
const timerId = window.setInterval(() => {
|
|
31973
32096
|
--state.timerCount;
|
|
31974
32097
|
if (state.timerCount === 0) {
|
|
31975
32098
|
endCount();
|
|
@@ -32719,9 +32842,10 @@ async function initRegisterEmail(initRegisterEmail2) {
|
|
|
32719
32842
|
app.mount(container2);
|
|
32720
32843
|
document.body.appendChild(container2);
|
|
32721
32844
|
}
|
|
32722
|
-
|
|
32845
|
+
function registerEmail(params) {
|
|
32723
32846
|
reconstructParams(params);
|
|
32724
|
-
initRegisterEmail(params)
|
|
32847
|
+
initRegisterEmail(params).catch(() => {
|
|
32848
|
+
});
|
|
32725
32849
|
}
|
|
32726
32850
|
async function registerKyc(params) {
|
|
32727
32851
|
reconstructParams(params);
|
|
@@ -32731,7 +32855,7 @@ async function execute$4(params) {
|
|
|
32731
32855
|
params = __spreadProps(__spreadValues({}, params), {
|
|
32732
32856
|
type: (params == null ? void 0 : params.type) || "EKYC"
|
|
32733
32857
|
});
|
|
32734
|
-
const appDetail =
|
|
32858
|
+
const appDetail = getAppDetail();
|
|
32735
32859
|
const clientId = getClientId();
|
|
32736
32860
|
let deeplink = `paypay://kyc/top?appId=${clientId}&appName=${encodeURIComponent((appDetail == null ? void 0 : appDetail.appName) || "")}`;
|
|
32737
32861
|
Object.entries(params).map(([key, value2]) => {
|
|
@@ -32794,11 +32918,11 @@ async function execute$3(params) {
|
|
|
32794
32918
|
return (_e = params == null ? void 0 : params.fail) == null ? void 0 : _e.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
32795
32919
|
}
|
|
32796
32920
|
}
|
|
32797
|
-
|
|
32921
|
+
function logout(params) {
|
|
32798
32922
|
reconstructParams(params);
|
|
32799
|
-
|
|
32923
|
+
execute$2(params);
|
|
32800
32924
|
}
|
|
32801
|
-
|
|
32925
|
+
function execute$2(params) {
|
|
32802
32926
|
var _a, _b;
|
|
32803
32927
|
try {
|
|
32804
32928
|
Object.entries(PpLocalStorageKey).forEach(([_, value2]) => {
|
|
@@ -33423,10 +33547,10 @@ async function setSessionData(params) {
|
|
|
33423
33547
|
await sessionStorage.setItem(params == null ? void 0 : params.key, (_a = params == null ? void 0 : params.value) != null ? _a : "");
|
|
33424
33548
|
(_b = params == null ? void 0 : params.success) == null ? void 0 : _b.call(params);
|
|
33425
33549
|
}
|
|
33426
|
-
|
|
33550
|
+
function getSessionData(params) {
|
|
33427
33551
|
var _a;
|
|
33428
33552
|
reconstructParams(params);
|
|
33429
|
-
const value2 =
|
|
33553
|
+
const value2 = sessionStorage.getItem(params == null ? void 0 : params.key);
|
|
33430
33554
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, { [params == null ? void 0 : params.key]: value2 != null ? value2 : "" });
|
|
33431
33555
|
}
|
|
33432
33556
|
async function setStorageData(params) {
|
|
@@ -33435,10 +33559,10 @@ async function setStorageData(params) {
|
|
|
33435
33559
|
await localStorage.setItem(params == null ? void 0 : params.key, (_a = params == null ? void 0 : params.value) != null ? _a : "");
|
|
33436
33560
|
(_b = params == null ? void 0 : params.success) == null ? void 0 : _b.call(params);
|
|
33437
33561
|
}
|
|
33438
|
-
|
|
33562
|
+
function getStorageData(params) {
|
|
33439
33563
|
var _a;
|
|
33440
33564
|
reconstructParams(params);
|
|
33441
|
-
const value2 =
|
|
33565
|
+
const value2 = localStorage.getItem(params == null ? void 0 : params.key);
|
|
33442
33566
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, { [params == null ? void 0 : params.key]: value2 != null ? value2 : "" });
|
|
33443
33567
|
}
|
|
33444
33568
|
async function removeStorageData(params) {
|