@paypay/mini-app-js-sdk 1.24.0 → 1.27.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/jsbridge-core/jsbridge.d.ts +2 -1
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +434 -353
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/getAppDetail.d.ts +1 -1
- package/dist/model/bridge/getConfigure.d.ts +2 -1
- package/dist/model/bridge/registerKyc.d.ts +1 -1
- package/dist/model/bridge/removeStorageData.d.ts +1 -1
- package/dist/model/bridge/render.d.ts +1 -1
- package/dist/model/bridge/renderLoginButton.d.ts +1 -1
- package/dist/model/bridge/renderPayButton.d.ts +1 -1
- package/dist/model/bridge/scanCode.d.ts +1 -1
- package/dist/model/bridge/setSessionData.d.ts +1 -1
- package/dist/model/bridge/setStorageData.d.ts +1 -1
- package/dist/model/bridge/setTitle.d.ts +1 -1
- package/dist/model/bridge/showAlert.d.ts +1 -1
- package/dist/model/bridge/showErrorSheet.d.ts +1 -1
- package/dist/model/bridge/showUpdateWarning.d.ts +1 -1
- package/dist/model/makePayment.d.ts +18 -6
- package/dist/package/desktop-header/index.d.ts +3 -3
- package/dist/package/input/index.d.ts +0 -16
- package/dist/package/input/utils.d.ts +0 -4
- package/dist/package/overlay/index.d.ts +4 -3
- package/dist/package/payment-method/Bank.vue.d.ts +1 -1
- package/dist/package/payment-method/CreditCard.vue.d.ts +1 -1
- package/dist/package/payment-method/SbidBank.vue.d.ts +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/utils/api.d.ts +2 -2
- package/dist/utils/create/bem.d.ts +1 -1
- package/dist/utils/create/index.d.ts +1 -1
- package/dist/utils/fetch.d.ts +44 -3
- package/dist/utils/helper.d.ts +6 -3
- package/dist/utils/miniAppRequest.d.ts +2 -1
- package/dist/utils/popstateHandler.d.ts +2 -1
- package/dist/views/make-payment/Main.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +2 -7
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +22 -11
- package/dist/views/make-payment/hooks/app-hooks.d.ts +12 -7
- package/dist/views/topup/App.vue.d.ts +4 -4
- package/package.json +3 -1
|
@@ -65,7 +65,8 @@ function normalizeNativeResponseData(data2) {
|
|
|
65
65
|
}
|
|
66
66
|
class JsBridge {
|
|
67
67
|
constructor(global2) {
|
|
68
|
-
this.version = "1.
|
|
68
|
+
this.version = "1.27.0";
|
|
69
|
+
this.revision = "bf7b138";
|
|
69
70
|
this.messageHandlers = new Map();
|
|
70
71
|
this.responseCallbacks = new Map();
|
|
71
72
|
this.global = global2;
|
|
@@ -1244,6 +1245,13 @@ const getPaymentMethods = (params) => {
|
|
|
1244
1245
|
params
|
|
1245
1246
|
});
|
|
1246
1247
|
};
|
|
1248
|
+
const getPaymentMethods2 = (params) => {
|
|
1249
|
+
return ppFetch2({
|
|
1250
|
+
method: "GET",
|
|
1251
|
+
url: "web-api/app/v2/payment/methods",
|
|
1252
|
+
params
|
|
1253
|
+
});
|
|
1254
|
+
};
|
|
1247
1255
|
const makePayment$1 = async (queryParams, body, isAuthorization) => {
|
|
1248
1256
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1249
1257
|
const url = isAuthorization ? "web-api/app/v1/payment/preauthorize" : "web-api/app/v1/payment";
|
|
@@ -1335,8 +1343,8 @@ function formatNumber$3(value2, options) {
|
|
|
1335
1343
|
const numberWithCommas = (x = 0) => {
|
|
1336
1344
|
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
1337
1345
|
};
|
|
1338
|
-
function formatCurrency(val2, n
|
|
1339
|
-
const re =
|
|
1346
|
+
function formatCurrency(val2, n) {
|
|
1347
|
+
const re = `\\d(?=(\\d{3})+${n > 0 ? "\\." : "$"})`;
|
|
1340
1348
|
return val2 == null ? void 0 : val2.toFixed(Math.max(0, ~~n)).replace(new RegExp(re, "g"), "$&,");
|
|
1341
1349
|
}
|
|
1342
1350
|
function trigger$2(target, type) {
|
|
@@ -1344,12 +1352,6 @@ function trigger$2(target, type) {
|
|
|
1344
1352
|
inputEvent.initEvent(type, true, true);
|
|
1345
1353
|
target.dispatchEvent(inputEvent);
|
|
1346
1354
|
}
|
|
1347
|
-
function isObject$1(val2) {
|
|
1348
|
-
return val2 !== null && typeof val2 === "object";
|
|
1349
|
-
}
|
|
1350
|
-
function isPromise$1(val2) {
|
|
1351
|
-
return isObject$1(val2) && isFunction$1(val2.then) && isFunction$1(val2.catch);
|
|
1352
|
-
}
|
|
1353
1355
|
function checkDuplicateTopup(amount2) {
|
|
1354
1356
|
try {
|
|
1355
1357
|
if (getLastTopup()) {
|
|
@@ -1517,7 +1519,7 @@ const opaUrl = () => {
|
|
|
1517
1519
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
1518
1520
|
let headers = new Headers(__spreadValues({
|
|
1519
1521
|
"Content-Type": "application/json",
|
|
1520
|
-
"Client-Version": "1.
|
|
1522
|
+
"Client-Version": "1.27.0",
|
|
1521
1523
|
"Client-OS-Type": getRuntime()
|
|
1522
1524
|
}, customHeaders));
|
|
1523
1525
|
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") {
|
|
@@ -1539,14 +1541,15 @@ const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
|
1539
1541
|
function addParams(params) {
|
|
1540
1542
|
let paramString = "";
|
|
1541
1543
|
for (const key in params) {
|
|
1542
|
-
|
|
1544
|
+
const data2 = params[key];
|
|
1545
|
+
if (data2) {
|
|
1543
1546
|
paramString += paramString !== "" ? "&" : "?";
|
|
1544
|
-
paramString += `${key}=${encodeURIComponent(
|
|
1547
|
+
paramString += `${key}=${encodeURIComponent(data2)}`;
|
|
1545
1548
|
}
|
|
1546
1549
|
}
|
|
1547
1550
|
return paramString;
|
|
1548
1551
|
}
|
|
1549
|
-
function
|
|
1552
|
+
function ppFetchPrepare(options) {
|
|
1550
1553
|
if (!options.params) {
|
|
1551
1554
|
options.params = {};
|
|
1552
1555
|
}
|
|
@@ -1554,20 +1557,10 @@ function ppFetch(options) {
|
|
|
1554
1557
|
const requestInfo = `${opaUrl()}${options.url}${addParams(options.params)}`;
|
|
1555
1558
|
const { timeout = 3e4 } = options;
|
|
1556
1559
|
let controller = new AbortController();
|
|
1557
|
-
|
|
1560
|
+
window.setTimeout(() => controller.abort(), timeout);
|
|
1558
1561
|
const headers = createHeaderMiniAppApi(options.url, options.headers);
|
|
1559
1562
|
if (!headers) {
|
|
1560
|
-
|
|
1561
|
-
console.warn(msg);
|
|
1562
|
-
return Promise.resolve({
|
|
1563
|
-
error: {
|
|
1564
|
-
message: msg
|
|
1565
|
-
}
|
|
1566
|
-
});
|
|
1567
|
-
}
|
|
1568
|
-
try {
|
|
1569
|
-
id = setTimeout(() => controller.abort(), timeout);
|
|
1570
|
-
} catch (_) {
|
|
1563
|
+
return null;
|
|
1571
1564
|
}
|
|
1572
1565
|
let requestInit = {
|
|
1573
1566
|
method: options.method,
|
|
@@ -1577,7 +1570,22 @@ function ppFetch(options) {
|
|
|
1577
1570
|
if (["POST", "PUT"].includes(options.method) && options.data) {
|
|
1578
1571
|
requestInit.body = JSON.stringify(options.data);
|
|
1579
1572
|
}
|
|
1580
|
-
return
|
|
1573
|
+
return { requestInfo, requestInit };
|
|
1574
|
+
}
|
|
1575
|
+
async function ppFetch(options) {
|
|
1576
|
+
const fetchParams = ppFetchPrepare(options);
|
|
1577
|
+
if (!fetchParams) {
|
|
1578
|
+
const msg = "PayPay Mini App JS SDK is not initialized";
|
|
1579
|
+
console.warn(msg);
|
|
1580
|
+
return Promise.resolve({
|
|
1581
|
+
error: {
|
|
1582
|
+
message: msg
|
|
1583
|
+
}
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
const { requestInfo, requestInit } = fetchParams;
|
|
1587
|
+
try {
|
|
1588
|
+
const response = await fetch(requestInfo, requestInit);
|
|
1581
1589
|
const res = await response.json();
|
|
1582
1590
|
if (res.error === "invalid_token" && !options.suppressRefresh) {
|
|
1583
1591
|
if (await refreshToken()) {
|
|
@@ -1585,20 +1593,79 @@ function ppFetch(options) {
|
|
|
1585
1593
|
}
|
|
1586
1594
|
}
|
|
1587
1595
|
return __spreadProps(__spreadValues({}, res), { statusCode: response == null ? void 0 : response.status });
|
|
1588
|
-
}
|
|
1589
|
-
if (error.name === "AbortError") {
|
|
1596
|
+
} catch (error) {
|
|
1597
|
+
if (error instanceof Error && error.name === "AbortError") {
|
|
1590
1598
|
return {
|
|
1591
1599
|
error: { message: MiniAppErrorType.timeOut }
|
|
1592
1600
|
};
|
|
1593
1601
|
}
|
|
1594
|
-
return { error: "Request failed." };
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
|
|
1602
|
+
return { error: { message: "Request failed." } };
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
async function ppFetch2(options) {
|
|
1606
|
+
var _a, _b, _c, _d, _e;
|
|
1607
|
+
const fetchParams = ppFetchPrepare(options);
|
|
1608
|
+
if (!fetchParams) {
|
|
1609
|
+
const msg = "PayPay Mini App JS SDK is not initialized";
|
|
1610
|
+
console.warn(msg);
|
|
1611
|
+
return Promise.resolve({
|
|
1612
|
+
ppFetchResult: "notInitialized",
|
|
1613
|
+
body: null
|
|
1614
|
+
});
|
|
1615
|
+
}
|
|
1616
|
+
const { requestInfo, requestInit } = fetchParams;
|
|
1617
|
+
try {
|
|
1618
|
+
const response = await fetch(requestInfo, requestInit);
|
|
1619
|
+
const res = await response.json();
|
|
1620
|
+
const tokenResponse = res;
|
|
1621
|
+
if (tokenResponse.error === "invalid_token" && !options.suppressRefresh) {
|
|
1622
|
+
if (await refreshToken()) {
|
|
1623
|
+
return ppFetch2(__spreadProps(__spreadValues({}, options), { suppressRefresh: true }));
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
const opaResponse = res;
|
|
1627
|
+
if (opaResponse.unsigned) {
|
|
1628
|
+
if (((_a = opaResponse.unsigned.resultInfo) == null ? void 0 : _a.code) !== "SUCCESS") {
|
|
1629
|
+
return {
|
|
1630
|
+
ppFetchResult: "apiError",
|
|
1631
|
+
statusCode: response.status,
|
|
1632
|
+
body: opaResponse
|
|
1633
|
+
};
|
|
1634
|
+
}
|
|
1635
|
+
} else if (((_b = opaResponse.resultInfo) == null ? void 0 : _b.code) !== "SUCCESS") {
|
|
1636
|
+
return {
|
|
1637
|
+
ppFetchResult: "apiError",
|
|
1638
|
+
statusCode: response.status,
|
|
1639
|
+
body: opaResponse
|
|
1640
|
+
};
|
|
1641
|
+
}
|
|
1642
|
+
if (((_e = (_d = (_c = opaResponse.unsigned) == null ? void 0 : _c.data) == null ? void 0 : _d.header) == null ? void 0 : _e.resultCode) && opaResponse.unsigned.data.header.resultCode !== "S0000") {
|
|
1643
|
+
return {
|
|
1644
|
+
ppFetchResult: "apiError",
|
|
1645
|
+
statusCode: response.status,
|
|
1646
|
+
body: opaResponse
|
|
1647
|
+
};
|
|
1648
|
+
}
|
|
1649
|
+
return {
|
|
1650
|
+
ppFetchResult: "success",
|
|
1651
|
+
statusCode: response.status,
|
|
1652
|
+
body: res
|
|
1653
|
+
};
|
|
1654
|
+
} catch (error) {
|
|
1655
|
+
if (error instanceof Error && error.name === "AbortError") {
|
|
1656
|
+
return {
|
|
1657
|
+
ppFetchResult: "timeout",
|
|
1658
|
+
body: null
|
|
1659
|
+
};
|
|
1660
|
+
}
|
|
1661
|
+
return {
|
|
1662
|
+
ppFetchResult: "fetchError",
|
|
1663
|
+
body: null
|
|
1664
|
+
};
|
|
1665
|
+
}
|
|
1598
1666
|
}
|
|
1599
1667
|
async function refreshToken() {
|
|
1600
|
-
|
|
1601
|
-
const res = await ppFetch({
|
|
1668
|
+
const res = await ppFetch2({
|
|
1602
1669
|
method: "POST",
|
|
1603
1670
|
url: "web-api/app/token/v1/refresh",
|
|
1604
1671
|
data: {
|
|
@@ -1606,13 +1673,13 @@ async function refreshToken() {
|
|
|
1606
1673
|
},
|
|
1607
1674
|
suppressRefresh: true
|
|
1608
1675
|
});
|
|
1609
|
-
if (
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1676
|
+
if (res.ppFetchResult === "success") {
|
|
1677
|
+
const data2 = res.body.data;
|
|
1678
|
+
if ((data2 == null ? void 0 : data2.accessToken) && data2.refreshToken) {
|
|
1679
|
+
saveAccessToken(data2.accessToken);
|
|
1680
|
+
saveRefreshToken(data2.refreshToken);
|
|
1681
|
+
return true;
|
|
1682
|
+
}
|
|
1616
1683
|
}
|
|
1617
1684
|
return false;
|
|
1618
1685
|
}
|
|
@@ -1639,8 +1706,11 @@ async function initAppDetail(accessToken) {
|
|
|
1639
1706
|
return true;
|
|
1640
1707
|
}
|
|
1641
1708
|
function getAppDetail() {
|
|
1642
|
-
const
|
|
1643
|
-
|
|
1709
|
+
const json = getAppDetail$1();
|
|
1710
|
+
if (json) {
|
|
1711
|
+
return JSON.parse(json);
|
|
1712
|
+
}
|
|
1713
|
+
return null;
|
|
1644
1714
|
}
|
|
1645
1715
|
async function initAppConfiguration() {
|
|
1646
1716
|
const res = await ppFetch({
|
|
@@ -1659,7 +1729,11 @@ async function initAppConfiguration() {
|
|
|
1659
1729
|
return true;
|
|
1660
1730
|
}
|
|
1661
1731
|
function getAppConfig() {
|
|
1662
|
-
|
|
1732
|
+
const config = getAppConfig$1();
|
|
1733
|
+
if (config) {
|
|
1734
|
+
return JSON.parse(config);
|
|
1735
|
+
}
|
|
1736
|
+
return null;
|
|
1663
1737
|
}
|
|
1664
1738
|
function reconstructParams(params) {
|
|
1665
1739
|
if (!params)
|
|
@@ -1888,7 +1962,7 @@ const PermissionName = {
|
|
|
1888
1962
|
};
|
|
1889
1963
|
const checkPermission = async (permissionNames) => {
|
|
1890
1964
|
var _a;
|
|
1891
|
-
if ((_a =
|
|
1965
|
+
if ((_a = getAppDetail()) == null ? void 0 : _a.isInternal) {
|
|
1892
1966
|
return PermissionStatus.granted;
|
|
1893
1967
|
}
|
|
1894
1968
|
const resPermission = await getUserGrantedPermission();
|
|
@@ -1944,13 +2018,13 @@ async function getKycInformation(params) {
|
|
|
1944
2018
|
await execute$9(params);
|
|
1945
2019
|
}
|
|
1946
2020
|
async function execute$9(params) {
|
|
1947
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
2021
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1948
2022
|
try {
|
|
1949
2023
|
const grantStatus = await checkPermission(PermissionName.mini_app_kyc);
|
|
1950
2024
|
if (grantStatus !== PermissionStatus.granted) {
|
|
1951
2025
|
return (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.insufficientScope });
|
|
1952
2026
|
}
|
|
1953
|
-
const res = await
|
|
2027
|
+
const res = await ppFetch2({
|
|
1954
2028
|
method: "GET",
|
|
1955
2029
|
url: "web-api/app/v2/users/kyc",
|
|
1956
2030
|
params: {
|
|
@@ -1958,18 +2032,18 @@ async function execute$9(params) {
|
|
|
1958
2032
|
eKycDocuments: (_b = params.eKycDocuments) == null ? void 0 : _b.toString()
|
|
1959
2033
|
}
|
|
1960
2034
|
});
|
|
1961
|
-
if (
|
|
2035
|
+
if (res.ppFetchResult !== "success") {
|
|
1962
2036
|
return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
1963
2037
|
}
|
|
1964
|
-
if ((_d = res
|
|
1965
|
-
let response =
|
|
1966
|
-
response.jws = (
|
|
1967
|
-
return (
|
|
2038
|
+
if ((_d = res.body.unsigned) == null ? void 0 : _d.data) {
|
|
2039
|
+
let response = res.body.unsigned.data;
|
|
2040
|
+
response.jws = (_e = res.body.signed) == null ? void 0 : _e.jws;
|
|
2041
|
+
return (_f = params == null ? void 0 : params.success) == null ? void 0 : _f.call(params, response);
|
|
1968
2042
|
} else {
|
|
1969
|
-
return (
|
|
2043
|
+
return (_g = params == null ? void 0 : params.fail) == null ? void 0 : _g.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
1970
2044
|
}
|
|
1971
2045
|
} catch {
|
|
1972
|
-
return (
|
|
2046
|
+
return (_h = params == null ? void 0 : params.fail) == null ? void 0 : _h.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
1973
2047
|
}
|
|
1974
2048
|
}
|
|
1975
2049
|
async function getPermissionStatus(params) {
|
|
@@ -7625,19 +7699,7 @@ const Divider = defineComponent({
|
|
|
7625
7699
|
}, null);
|
|
7626
7700
|
}
|
|
7627
7701
|
});
|
|
7628
|
-
function isEmptyValue(value2) {
|
|
7629
|
-
if (Array.isArray(value2)) {
|
|
7630
|
-
return !value2.length;
|
|
7631
|
-
}
|
|
7632
|
-
if (value2 === 0) {
|
|
7633
|
-
return false;
|
|
7634
|
-
}
|
|
7635
|
-
return !value2;
|
|
7636
|
-
}
|
|
7637
7702
|
function runSyncRule(value2, rule) {
|
|
7638
|
-
if (rule.required && isEmptyValue(value2)) {
|
|
7639
|
-
return false;
|
|
7640
|
-
}
|
|
7641
7703
|
if (rule.pattern && !rule.pattern.test(String(value2))) {
|
|
7642
7704
|
return false;
|
|
7643
7705
|
}
|
|
@@ -7667,11 +7729,6 @@ const Input = defineComponent({
|
|
|
7667
7729
|
required: false,
|
|
7668
7730
|
default: "sm"
|
|
7669
7731
|
},
|
|
7670
|
-
formatter: {
|
|
7671
|
-
type: Function,
|
|
7672
|
-
required: false,
|
|
7673
|
-
default: (v) => v
|
|
7674
|
-
},
|
|
7675
7732
|
autofocus: {
|
|
7676
7733
|
type: Boolean,
|
|
7677
7734
|
required: false,
|
|
@@ -7727,11 +7784,6 @@ const Input = defineComponent({
|
|
|
7727
7784
|
required: false,
|
|
7728
7785
|
default: () => [{}]
|
|
7729
7786
|
},
|
|
7730
|
-
formatTrigger: {
|
|
7731
|
-
type: String,
|
|
7732
|
-
required: false,
|
|
7733
|
-
default: "onChange"
|
|
7734
|
-
},
|
|
7735
7787
|
validateTrigger: {
|
|
7736
7788
|
type: String,
|
|
7737
7789
|
required: false,
|
|
@@ -7776,9 +7828,11 @@ const Input = defineComponent({
|
|
|
7776
7828
|
const state = reactive({
|
|
7777
7829
|
focused: false,
|
|
7778
7830
|
validateFailed: false,
|
|
7779
|
-
validateMessage: ""
|
|
7831
|
+
validateMessage: "",
|
|
7832
|
+
isComposing: false
|
|
7780
7833
|
});
|
|
7781
|
-
const updateValue = (_value
|
|
7834
|
+
const updateValue = (_value) => {
|
|
7835
|
+
var _a;
|
|
7782
7836
|
let value2 = isDef(_value) ? String(_value) : "";
|
|
7783
7837
|
const {
|
|
7784
7838
|
maxlength
|
|
@@ -7803,10 +7857,7 @@ const Input = defineComponent({
|
|
|
7803
7857
|
allowMinus: isNumber
|
|
7804
7858
|
});
|
|
7805
7859
|
}
|
|
7806
|
-
if (
|
|
7807
|
-
value2 = props.formatter(value2);
|
|
7808
|
-
}
|
|
7809
|
-
if (inputRef.value && value2 !== inputRef.value.value) {
|
|
7860
|
+
if ((inputRef == null ? void 0 : inputRef.value) && value2 !== ((_a = inputRef == null ? void 0 : inputRef.value) == null ? void 0 : _a.value)) {
|
|
7810
7861
|
inputRef.value.value = value2;
|
|
7811
7862
|
}
|
|
7812
7863
|
if (value2 !== props.modelValue) {
|
|
@@ -7814,16 +7865,17 @@ const Input = defineComponent({
|
|
|
7814
7865
|
}
|
|
7815
7866
|
};
|
|
7816
7867
|
const onInput = (event) => {
|
|
7817
|
-
const
|
|
7818
|
-
|
|
7819
|
-
|
|
7868
|
+
const target = event.target;
|
|
7869
|
+
const cursorPosition = target.selectionStart;
|
|
7870
|
+
if (!state.isComposing) {
|
|
7871
|
+
updateValue(target.value);
|
|
7820
7872
|
emit("input", event);
|
|
7821
7873
|
}
|
|
7822
7874
|
if (props.type === "zipCode") {
|
|
7823
|
-
if (
|
|
7824
|
-
|
|
7875
|
+
if (target.value.length >= 5 && cursorPosition === 4 && event.inputType === "insertText") {
|
|
7876
|
+
target.selectionStart = target.selectionEnd = cursorPosition + 1;
|
|
7825
7877
|
} else {
|
|
7826
|
-
|
|
7878
|
+
target.selectionEnd = cursorPosition;
|
|
7827
7879
|
}
|
|
7828
7880
|
}
|
|
7829
7881
|
};
|
|
@@ -7831,20 +7883,17 @@ const Input = defineComponent({
|
|
|
7831
7883
|
emit("focus", event);
|
|
7832
7884
|
};
|
|
7833
7885
|
const onBlur = (event) => {
|
|
7834
|
-
updateValue(props.modelValue
|
|
7886
|
+
updateValue(props.modelValue);
|
|
7835
7887
|
emit("blur", event);
|
|
7836
7888
|
validateWithTrigger("onBlur");
|
|
7837
7889
|
};
|
|
7838
|
-
const onCompositionStart2 = (
|
|
7839
|
-
|
|
7890
|
+
const onCompositionStart2 = () => {
|
|
7891
|
+
state.isComposing = true;
|
|
7840
7892
|
};
|
|
7841
7893
|
const onCompositionEnd2 = (event) => {
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
if (target.composing) {
|
|
7846
|
-
target.composing = false;
|
|
7847
|
-
trigger$2(target, "input");
|
|
7894
|
+
if (state.isComposing) {
|
|
7895
|
+
state.isComposing = false;
|
|
7896
|
+
trigger$2(event.target, "input");
|
|
7848
7897
|
}
|
|
7849
7898
|
};
|
|
7850
7899
|
const resetValidation = () => {
|
|
@@ -7853,20 +7902,12 @@ const Input = defineComponent({
|
|
|
7853
7902
|
state.validateMessage = "";
|
|
7854
7903
|
}
|
|
7855
7904
|
};
|
|
7856
|
-
const runValidator = (value2, rule) => new Promise((resolve2) => {
|
|
7857
|
-
var _a;
|
|
7858
|
-
const returnVal = (_a = rule == null ? void 0 : rule.validator) == null ? void 0 : _a.call(rule, value2, rule);
|
|
7859
|
-
if (isPromise$1(returnVal)) {
|
|
7860
|
-
return returnVal.then(resolve2);
|
|
7861
|
-
}
|
|
7862
|
-
resolve2(returnVal);
|
|
7863
|
-
});
|
|
7864
7905
|
const validate2 = (rules = props.rules) => new Promise((resolve2) => {
|
|
7865
7906
|
if (!rules) {
|
|
7866
7907
|
resolve2(null);
|
|
7867
7908
|
}
|
|
7868
7909
|
resetValidation();
|
|
7869
|
-
runRules(rules).then(() => {
|
|
7910
|
+
void runRules(rules).then(() => {
|
|
7870
7911
|
if (state.validateFailed) {
|
|
7871
7912
|
emit("validate", false);
|
|
7872
7913
|
resolve2({
|
|
@@ -7882,13 +7923,10 @@ const Input = defineComponent({
|
|
|
7882
7923
|
const validateWithTrigger = (trigger2) => {
|
|
7883
7924
|
if (props.rules) {
|
|
7884
7925
|
const defaultTrigger = props.validateTrigger === trigger2;
|
|
7885
|
-
const rules = props.rules.filter((
|
|
7886
|
-
if (rule.trigger) {
|
|
7887
|
-
return rule.trigger === trigger2;
|
|
7888
|
-
}
|
|
7926
|
+
const rules = props.rules.filter(() => {
|
|
7889
7927
|
return defaultTrigger;
|
|
7890
7928
|
});
|
|
7891
|
-
validate2(rules);
|
|
7929
|
+
void validate2(rules);
|
|
7892
7930
|
}
|
|
7893
7931
|
};
|
|
7894
7932
|
const runRules = (rules) => rules.reduce((promise, rule) => promise.then(() => {
|
|
@@ -7896,25 +7934,11 @@ const Input = defineComponent({
|
|
|
7896
7934
|
return;
|
|
7897
7935
|
}
|
|
7898
7936
|
let value2 = String(props.modelValue);
|
|
7899
|
-
if (rule.formatter) {
|
|
7900
|
-
value2 = rule.formatter(value2, rule);
|
|
7901
|
-
}
|
|
7902
7937
|
if (!runSyncRule(value2, rule)) {
|
|
7903
7938
|
state.validateFailed = true;
|
|
7904
7939
|
state.validateMessage = getRuleMessage(value2, rule);
|
|
7905
7940
|
return;
|
|
7906
7941
|
}
|
|
7907
|
-
if (rule.validator) {
|
|
7908
|
-
return runValidator(value2, rule).then((result2) => {
|
|
7909
|
-
if (result2 && typeof result2 === "string") {
|
|
7910
|
-
state.validateFailed = true;
|
|
7911
|
-
state.validateMessage = result2;
|
|
7912
|
-
} else if (result2 === false) {
|
|
7913
|
-
state.validateFailed = true;
|
|
7914
|
-
state.validateMessage = getRuleMessage(value2, rule);
|
|
7915
|
-
}
|
|
7916
|
-
});
|
|
7917
|
-
}
|
|
7918
7942
|
}), Promise.resolve());
|
|
7919
7943
|
const renderMessage = () => {
|
|
7920
7944
|
const message = props.errorMessage || state.validateMessage;
|
|
@@ -19901,7 +19925,7 @@ const Header = defineComponent({
|
|
|
19901
19925
|
})}`,
|
|
19902
19926
|
"style": headerStyle.value
|
|
19903
19927
|
}, [createVNode("div", {
|
|
19904
|
-
"data-
|
|
19928
|
+
"data-testid": "header-close",
|
|
19905
19929
|
"onClick": () => emit("click")
|
|
19906
19930
|
}, [createVNode("i", {
|
|
19907
19931
|
"class": `${styles$2.icon} ${styles$2[props.icon]}`
|
|
@@ -19909,6 +19933,7 @@ const Header = defineComponent({
|
|
|
19909
19933
|
"class": `${styles$2.text} ${props.titleClassName} ${props.rightIcon ? styles$2.iconRightText : ""}`
|
|
19910
19934
|
}, [props.title]), props.rightIcon && createVNode("div", null, [createVNode("i", {
|
|
19911
19935
|
"class": `${styles$2.iconRight} ${styles$2[props.rightIcon]}`,
|
|
19936
|
+
"data-testid": "header-right-button",
|
|
19912
19937
|
"onClick": () => emit("right-click")
|
|
19913
19938
|
}, null)])]);
|
|
19914
19939
|
}
|
|
@@ -20006,7 +20031,7 @@ const img$b = getImages();
|
|
|
20006
20031
|
const DesktopHeader = defineComponent({
|
|
20007
20032
|
props: {
|
|
20008
20033
|
class: {
|
|
20009
|
-
type:
|
|
20034
|
+
type: String,
|
|
20010
20035
|
required: false,
|
|
20011
20036
|
default: ""
|
|
20012
20037
|
},
|
|
@@ -20017,9 +20042,10 @@ const DesktopHeader = defineComponent({
|
|
|
20017
20042
|
}
|
|
20018
20043
|
},
|
|
20019
20044
|
setup(props) {
|
|
20020
|
-
const
|
|
20021
|
-
const
|
|
20022
|
-
const
|
|
20045
|
+
const appDtls = getAppDetail$1();
|
|
20046
|
+
const appDetail = appDtls ? JSON.parse(appDtls) : void 0;
|
|
20047
|
+
const storeImage2 = (appDetail == null ? void 0 : appDetail.appLogo) || img$b.merchant;
|
|
20048
|
+
const storeName2 = appDetail == null ? void 0 : appDetail.appName;
|
|
20023
20049
|
return () => createVNode("div", {
|
|
20024
20050
|
"class": `${styles$1.header} ${props.class}`
|
|
20025
20051
|
}, [createVNode("div", {
|
|
@@ -22339,7 +22365,7 @@ const _sfc_main$L = defineComponent({
|
|
|
22339
22365
|
};
|
|
22340
22366
|
}
|
|
22341
22367
|
});
|
|
22342
|
-
const _hoisted_1$s = { "data-
|
|
22368
|
+
const _hoisted_1$s = { "data-testid": "address-title" };
|
|
22343
22369
|
const _hoisted_2$h = /* @__PURE__ */ createTextVNode("\u7DE8\u96C6");
|
|
22344
22370
|
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22345
22371
|
const _component_Button = resolveComponent("Button");
|
|
@@ -22348,7 +22374,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22348
22374
|
}, [
|
|
22349
22375
|
createBaseVNode("div", {
|
|
22350
22376
|
class: normalizeClass(_ctx.style.addressContainer),
|
|
22351
|
-
"data-
|
|
22377
|
+
"data-testid": "address-container",
|
|
22352
22378
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("select"))
|
|
22353
22379
|
}, [
|
|
22354
22380
|
createBaseVNode("div", {
|
|
@@ -22358,11 +22384,11 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22358
22384
|
], 2),
|
|
22359
22385
|
createBaseVNode("div", {
|
|
22360
22386
|
class: normalizeClass([_ctx.style.text]),
|
|
22361
|
-
"data-
|
|
22387
|
+
"data-testid": "address-postal-code"
|
|
22362
22388
|
}, toDisplayString(_ctx.postalCode), 3),
|
|
22363
22389
|
createBaseVNode("div", {
|
|
22364
22390
|
class: normalizeClass([_ctx.style.text]),
|
|
22365
|
-
"data-
|
|
22391
|
+
"data-testid": "address-address-text"
|
|
22366
22392
|
}, toDisplayString(_ctx.addressText), 3),
|
|
22367
22393
|
_ctx.address.street2 ? (openBlock(), createElementBlock("div", {
|
|
22368
22394
|
key: 0,
|
|
@@ -22494,6 +22520,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22494
22520
|
], 2),
|
|
22495
22521
|
createBaseVNode("div", {
|
|
22496
22522
|
class: normalizeClass(_ctx.style.rootUa),
|
|
22523
|
+
"data-testid": "get-user-address-footer-buttons",
|
|
22497
22524
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.confirm && _ctx.confirm(...args))
|
|
22498
22525
|
}, [
|
|
22499
22526
|
createVNode(_component_Button, {
|
|
@@ -23706,7 +23733,7 @@ const createInitialState$1 = (address2) => {
|
|
|
23706
23733
|
const visibilities = {};
|
|
23707
23734
|
formKeys.forEach((keyName) => {
|
|
23708
23735
|
var _a;
|
|
23709
|
-
const formValue = keyName === "tags" ? (_a = address2
|
|
23736
|
+
const formValue = keyName === "tags" ? (_a = address2.tags) != null ? _a : [] : address2[keyName];
|
|
23710
23737
|
formValues[keyName] = formValue != null ? formValue : "";
|
|
23711
23738
|
visibilities[keyName] = kyc ? !!formValue : true;
|
|
23712
23739
|
});
|
|
@@ -23809,7 +23836,7 @@ const _sfc_main$C = defineComponent({
|
|
|
23809
23836
|
});
|
|
23810
23837
|
const submit = () => {
|
|
23811
23838
|
const plainState = __spreadValues({}, state);
|
|
23812
|
-
plainState.zip = plainState.zip.
|
|
23839
|
+
plainState.zip = plainState.zip.replace(/-/g, "");
|
|
23813
23840
|
delete plainState.visibilities;
|
|
23814
23841
|
emit("submit", plainState);
|
|
23815
23842
|
};
|
|
@@ -23848,7 +23875,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23848
23875
|
id: "content-title",
|
|
23849
23876
|
modelValue: _ctx.state.title,
|
|
23850
23877
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.state.title = $event),
|
|
23851
|
-
"data-
|
|
23878
|
+
"data-testid": "content-title",
|
|
23852
23879
|
disabled: _ctx.kyc,
|
|
23853
23880
|
prepend: _ctx.lg.userAddress.titlePre,
|
|
23854
23881
|
append: _ctx.lg.userAddress.titleApp,
|
|
@@ -23863,7 +23890,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23863
23890
|
id: "content-receiver",
|
|
23864
23891
|
modelValue: _ctx.state.receiver,
|
|
23865
23892
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.state.receiver = $event),
|
|
23866
|
-
"data-
|
|
23893
|
+
"data-testid": "content-receiver",
|
|
23867
23894
|
disabled: _ctx.kyc,
|
|
23868
23895
|
prepend: _ctx.lg.userAddress.receiverPre,
|
|
23869
23896
|
"prepend-class-name": _ctx.style.prepend,
|
|
@@ -23876,7 +23903,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23876
23903
|
id: "content-zip",
|
|
23877
23904
|
modelValue: _ctx.state.zip,
|
|
23878
23905
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.state.zip = $event),
|
|
23879
|
-
"data-
|
|
23906
|
+
"data-testid": "content-zip",
|
|
23880
23907
|
disabled: _ctx.kyc,
|
|
23881
23908
|
type: "zipCode",
|
|
23882
23909
|
prepend: _ctx.lg.userAddress.inputPre,
|
|
@@ -23889,7 +23916,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23889
23916
|
key: 3,
|
|
23890
23917
|
modelValue: _ctx.state.state,
|
|
23891
23918
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.state.state = $event),
|
|
23892
|
-
"data-
|
|
23919
|
+
"data-testid": "content-state",
|
|
23893
23920
|
disabled: _ctx.kyc,
|
|
23894
23921
|
list: _ctx.states,
|
|
23895
23922
|
class: normalizeClass([_ctx.style.input, _ctx.style.select]),
|
|
@@ -23901,7 +23928,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23901
23928
|
key: 4,
|
|
23902
23929
|
modelValue: _ctx.state.city,
|
|
23903
23930
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.state.city = $event),
|
|
23904
|
-
"data-
|
|
23931
|
+
"data-testid": "content-city",
|
|
23905
23932
|
disabled: _ctx.kyc,
|
|
23906
23933
|
prepend: _ctx.lg.userAddress.cityPre,
|
|
23907
23934
|
"prepend-class-name": _ctx.style.prepend,
|
|
@@ -23914,7 +23941,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23914
23941
|
id: "content-street1",
|
|
23915
23942
|
modelValue: _ctx.state.street1,
|
|
23916
23943
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.state.street1 = $event),
|
|
23917
|
-
"data-
|
|
23944
|
+
"data-testid": "content-street1",
|
|
23918
23945
|
disabled: _ctx.kyc,
|
|
23919
23946
|
prepend: _ctx.lg.userAddress.street1Pre,
|
|
23920
23947
|
"prepend-class-name": _ctx.style.prepend,
|
|
@@ -23927,7 +23954,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23927
23954
|
id: "content-street2",
|
|
23928
23955
|
modelValue: _ctx.state.street2,
|
|
23929
23956
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.state.street2 = $event),
|
|
23930
|
-
"data-
|
|
23957
|
+
"data-testid": "content-street2",
|
|
23931
23958
|
disabled: _ctx.kyc,
|
|
23932
23959
|
prepend: _ctx.lg.userAddress.street2Pre,
|
|
23933
23960
|
"prepend-class-name": _ctx.style.prepend,
|
|
@@ -23938,7 +23965,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23938
23965
|
key: 7,
|
|
23939
23966
|
modelValue: _ctx.state.tags,
|
|
23940
23967
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.state.tags = $event),
|
|
23941
|
-
"data-
|
|
23968
|
+
"data-testid": "content-tags",
|
|
23942
23969
|
class: normalizeClass(_ctx.style.tag),
|
|
23943
23970
|
disabled: _ctx.kyc
|
|
23944
23971
|
}, null, 8, ["modelValue", "class", "disabled"])) : createCommentVNode("", true),
|
|
@@ -23964,13 +23991,15 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23964
23991
|
const cssModules$o = {};
|
|
23965
23992
|
cssModules$o["$style"] = style0$n;
|
|
23966
23993
|
var Contents = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C], ["__cssModules", cssModules$o]]);
|
|
23967
|
-
const deleteSheet = "
|
|
23968
|
-
const title$3 = "
|
|
23969
|
-
const buttonContainer$2 = "
|
|
23994
|
+
const deleteSheet = "_deleteSheet_vu1nb_1";
|
|
23995
|
+
const title$3 = "_title_vu1nb_5";
|
|
23996
|
+
const buttonContainer$2 = "_buttonContainer_vu1nb_11";
|
|
23997
|
+
const deleteContainer = "_deleteContainer_vu1nb_14";
|
|
23970
23998
|
var style0$m = {
|
|
23971
23999
|
deleteSheet,
|
|
23972
24000
|
title: title$3,
|
|
23973
|
-
buttonContainer: buttonContainer$2
|
|
24001
|
+
buttonContainer: buttonContainer$2,
|
|
24002
|
+
deleteContainer
|
|
23974
24003
|
};
|
|
23975
24004
|
const _sfc_main$B = defineComponent({
|
|
23976
24005
|
name: "DeleteHalfSheet",
|
|
@@ -24006,49 +24035,53 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24006
24035
|
const _component_Button = resolveComponent("Button");
|
|
24007
24036
|
const _component_ActionSheet = resolveComponent("ActionSheet");
|
|
24008
24037
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
24009
|
-
|
|
24010
|
-
|
|
24011
|
-
|
|
24012
|
-
|
|
24013
|
-
|
|
24014
|
-
|
|
24015
|
-
|
|
24016
|
-
|
|
24017
|
-
|
|
24018
|
-
createBaseVNode("img", {
|
|
24019
|
-
src: _ctx.img.iconError
|
|
24020
|
-
}, null, 8, _hoisted_1$p),
|
|
24021
|
-
createBaseVNode("p", {
|
|
24022
|
-
class: normalizeClass(_ctx.style.title)
|
|
24023
|
-
}, toDisplayString(_ctx.lg.userAddress.deleteTitle), 3),
|
|
24038
|
+
createBaseVNode("div", {
|
|
24039
|
+
class: normalizeClass(_ctx.style.deleteContainer)
|
|
24040
|
+
}, [
|
|
24041
|
+
createVNode(_component_ActionSheet, {
|
|
24042
|
+
show: _ctx.open,
|
|
24043
|
+
type: "alert",
|
|
24044
|
+
onClose: _ctx.close
|
|
24045
|
+
}, {
|
|
24046
|
+
default: withCtx(() => [
|
|
24024
24047
|
createBaseVNode("div", {
|
|
24025
|
-
class: normalizeClass(_ctx.style.
|
|
24048
|
+
class: normalizeClass(_ctx.style.deleteSheet)
|
|
24026
24049
|
}, [
|
|
24027
|
-
|
|
24028
|
-
|
|
24029
|
-
|
|
24030
|
-
|
|
24031
|
-
|
|
24032
|
-
|
|
24033
|
-
|
|
24034
|
-
|
|
24035
|
-
|
|
24036
|
-
|
|
24037
|
-
|
|
24038
|
-
|
|
24039
|
-
|
|
24040
|
-
|
|
24041
|
-
|
|
24042
|
-
|
|
24043
|
-
|
|
24044
|
-
|
|
24045
|
-
|
|
24046
|
-
|
|
24050
|
+
createBaseVNode("img", {
|
|
24051
|
+
src: _ctx.img.iconError
|
|
24052
|
+
}, null, 8, _hoisted_1$p),
|
|
24053
|
+
createBaseVNode("p", {
|
|
24054
|
+
class: normalizeClass(_ctx.style.title)
|
|
24055
|
+
}, toDisplayString(_ctx.lg.userAddress.deleteTitle), 3),
|
|
24056
|
+
createBaseVNode("div", {
|
|
24057
|
+
class: normalizeClass(_ctx.style.buttonContainer)
|
|
24058
|
+
}, [
|
|
24059
|
+
createVNode(_component_Button, {
|
|
24060
|
+
type: "danger",
|
|
24061
|
+
block: "",
|
|
24062
|
+
onClick: _ctx.del
|
|
24063
|
+
}, {
|
|
24064
|
+
default: withCtx(() => [
|
|
24065
|
+
createTextVNode(toDisplayString(_ctx.lg.userAddress.delete), 1)
|
|
24066
|
+
]),
|
|
24067
|
+
_: 1
|
|
24068
|
+
}, 8, ["onClick"]),
|
|
24069
|
+
createVNode(_component_Button, {
|
|
24070
|
+
type: "link",
|
|
24071
|
+
block: "",
|
|
24072
|
+
onClick: _ctx.close
|
|
24073
|
+
}, {
|
|
24074
|
+
default: withCtx(() => [
|
|
24075
|
+
createTextVNode(toDisplayString(_ctx.lg.userAddress.close), 1)
|
|
24076
|
+
]),
|
|
24077
|
+
_: 1
|
|
24078
|
+
}, 8, ["onClick"])
|
|
24079
|
+
], 2)
|
|
24047
24080
|
], 2)
|
|
24048
|
-
],
|
|
24049
|
-
|
|
24050
|
-
|
|
24051
|
-
|
|
24081
|
+
]),
|
|
24082
|
+
_: 1
|
|
24083
|
+
}, 8, ["show", "onClose"])
|
|
24084
|
+
], 2)
|
|
24052
24085
|
]);
|
|
24053
24086
|
}
|
|
24054
24087
|
const cssModules$n = {};
|
|
@@ -24213,7 +24246,8 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24213
24246
|
type: "secondary",
|
|
24214
24247
|
"forbidden-swipe": "",
|
|
24215
24248
|
style: normalizeStyle(_ctx.heightStyles.rootHeight),
|
|
24216
|
-
class: normalizeClass(_ctx.style.container)
|
|
24249
|
+
class: normalizeClass(_ctx.style.container),
|
|
24250
|
+
"data-testid": "add-address-sheet"
|
|
24217
24251
|
}, {
|
|
24218
24252
|
default: withCtx(() => [
|
|
24219
24253
|
_ctx.isDesktop ? (openBlock(), createBlock(_component_DesktopHeader, {
|
|
@@ -24467,7 +24501,7 @@ function openWebview(params) {
|
|
|
24467
24501
|
return;
|
|
24468
24502
|
}
|
|
24469
24503
|
try {
|
|
24470
|
-
openUrl =
|
|
24504
|
+
openUrl = appDetail ? new URL(appDetail.openUrl) : null;
|
|
24471
24505
|
} catch (_) {
|
|
24472
24506
|
}
|
|
24473
24507
|
if (params == null ? void 0 : params.authorization) {
|
|
@@ -25982,13 +26016,14 @@ const _sfc_main$r = defineComponent({
|
|
|
25982
26016
|
},
|
|
25983
26017
|
emits: ["success"],
|
|
25984
26018
|
setup(props, context) {
|
|
26019
|
+
var _a;
|
|
25985
26020
|
const { isMobile, isDesktop } = useBreakpoints();
|
|
25986
26021
|
const images2 = getImages();
|
|
25987
26022
|
const { width: screenWidth } = window == null ? void 0 : window.screen;
|
|
25988
26023
|
const timeout = screenWidth <= 767 ? 320 : 0;
|
|
25989
26024
|
const showCashBackDetailRow = computed(() => {
|
|
25990
|
-
var
|
|
25991
|
-
const cashBackDetailList = (
|
|
26025
|
+
var _a2;
|
|
26026
|
+
const cashBackDetailList = (_a2 = props.cashBackDetail) == null ? void 0 : _a2.cashBackDetailList;
|
|
25992
26027
|
const calculating2 = props.calculating;
|
|
25993
26028
|
const calculated = props.calculated;
|
|
25994
26029
|
if (calculating2)
|
|
@@ -26056,7 +26091,7 @@ const _sfc_main$r = defineComponent({
|
|
|
26056
26091
|
copyToClipboard({ value: paymentId2.value });
|
|
26057
26092
|
};
|
|
26058
26093
|
const style = useCssModule();
|
|
26059
|
-
const storeImage2 = getAppDetail().appLogo || images2.merchant;
|
|
26094
|
+
const storeImage2 = ((_a = getAppDetail()) == null ? void 0 : _a.appLogo) || images2.merchant;
|
|
26060
26095
|
const getDateStringFromTimeStamp = (timestamp) => {
|
|
26061
26096
|
const date = new Date(timestamp * 1e3);
|
|
26062
26097
|
return `${date.getFullYear()}\u5E74${date.getMonth() + 1}\u6708${date.getDate()}\u65E5 ${date.getHours()}\u6642${date.getMinutes()}\u5206${date.getSeconds()}\u79D2`;
|
|
@@ -26074,8 +26109,8 @@ const _sfc_main$r = defineComponent({
|
|
|
26074
26109
|
merchantName: computed(() => props.paymentResult.merchantName),
|
|
26075
26110
|
paymentId: paymentId2,
|
|
26076
26111
|
price: computed(() => {
|
|
26077
|
-
var
|
|
26078
|
-
return numberWithCommas((_b = (
|
|
26112
|
+
var _a2, _b;
|
|
26113
|
+
return numberWithCommas((_b = (_a2 = props.paymentResult) == null ? void 0 : _a2.amount) == null ? void 0 : _b.amount);
|
|
26079
26114
|
}),
|
|
26080
26115
|
statusLabelColor: computed(() => props.paymentResult.statusLabelColor.toLowerCase()),
|
|
26081
26116
|
labelText: computed(() => props.paymentResult.statusLabelString),
|
|
@@ -26847,6 +26882,7 @@ const _sfc_main$l = defineComponent({
|
|
|
26847
26882
|
const { postAgeConfirm } = getAgeConfirm();
|
|
26848
26883
|
const lg2 = getLanguage();
|
|
26849
26884
|
const images2 = getImages();
|
|
26885
|
+
const { isDesktop } = useBreakpoints();
|
|
26850
26886
|
const isCountDown = ref(false);
|
|
26851
26887
|
const countDown = useCountDown({
|
|
26852
26888
|
time: 5e3,
|
|
@@ -26873,7 +26909,8 @@ const _sfc_main$l = defineComponent({
|
|
|
26873
26909
|
s.addEventListener("data_ready", (_) => {
|
|
26874
26910
|
var _a;
|
|
26875
26911
|
uiState.animationLoaded = true;
|
|
26876
|
-
|
|
26912
|
+
if (isPayPayMiniApp())
|
|
26913
|
+
makeSound((_a = animation.value) == null ? void 0 : _a.soundUrl);
|
|
26877
26914
|
});
|
|
26878
26915
|
s.addEventListener("complete", uiState.animationListener);
|
|
26879
26916
|
};
|
|
@@ -26959,6 +26996,10 @@ const _sfc_main$l = defineComponent({
|
|
|
26959
26996
|
var _a;
|
|
26960
26997
|
return (_a = animation.value) != null ? _a : { optionalText: "", url: "" };
|
|
26961
26998
|
}),
|
|
26999
|
+
animationUrl: computed(() => {
|
|
27000
|
+
var _a;
|
|
27001
|
+
return animation.value ? isDesktop.value ? (_a = animation.value.largeUrl) != null ? _a : animation.value.url : animation.value.url : "";
|
|
27002
|
+
}),
|
|
26962
27003
|
type,
|
|
26963
27004
|
showContent: computed(() => uiState.showContent),
|
|
26964
27005
|
showFullScreenContent: computed(() => uiState.showFullscreenContent),
|
|
@@ -26998,7 +27039,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26998
27039
|
}, [
|
|
26999
27040
|
createVNode(_component_Lottie, {
|
|
27000
27041
|
loop: false,
|
|
27001
|
-
path: _ctx.
|
|
27042
|
+
path: _ctx.animationUrl,
|
|
27002
27043
|
autoplay: false,
|
|
27003
27044
|
styles: { width: "auto", height: "auto" },
|
|
27004
27045
|
"class-name": _ctx.style.lottieContainer,
|
|
@@ -27101,8 +27142,7 @@ const _sfc_main$k = defineComponent({
|
|
|
27101
27142
|
props: {
|
|
27102
27143
|
appDetail: {
|
|
27103
27144
|
type: Object,
|
|
27104
|
-
required: true
|
|
27105
|
-
default: () => ({})
|
|
27145
|
+
required: true
|
|
27106
27146
|
},
|
|
27107
27147
|
price: {
|
|
27108
27148
|
type: Number,
|
|
@@ -27121,11 +27161,10 @@ const _sfc_main$k = defineComponent({
|
|
|
27121
27161
|
}
|
|
27122
27162
|
},
|
|
27123
27163
|
setup(props) {
|
|
27124
|
-
var _a;
|
|
27125
27164
|
const style = useCssModule();
|
|
27126
27165
|
const lg2 = getLanguage();
|
|
27127
27166
|
const images2 = getImages();
|
|
27128
|
-
const appLogo2 =
|
|
27167
|
+
const appLogo2 = props.appDetail.appLogo || images2.merchant;
|
|
27129
27168
|
const formatPrice = computed(() => numberWithCommas(props.price));
|
|
27130
27169
|
const formatBalance = computed(() => numberWithCommas(props.balance));
|
|
27131
27170
|
const formatInsufficientAmount = computed(() => numberWithCommas(props.insufficientAmount));
|
|
@@ -27920,6 +27959,7 @@ const _sfc_main$h = defineComponent({
|
|
|
27920
27959
|
"layoutUpdate"
|
|
27921
27960
|
],
|
|
27922
27961
|
setup(props, context) {
|
|
27962
|
+
var _a, _b;
|
|
27923
27963
|
const { emit } = context;
|
|
27924
27964
|
const topupPay2 = ref();
|
|
27925
27965
|
const {
|
|
@@ -27951,7 +27991,11 @@ const _sfc_main$h = defineComponent({
|
|
|
27951
27991
|
handleHeightChange();
|
|
27952
27992
|
}, 500);
|
|
27953
27993
|
});
|
|
27954
|
-
const
|
|
27994
|
+
const savedAppDetail = getAppDetail();
|
|
27995
|
+
const appDetail = {
|
|
27996
|
+
appName: (_a = savedAppDetail == null ? void 0 : savedAppDetail.appName) != null ? _a : "",
|
|
27997
|
+
appLogo: (_b = savedAppDetail == null ? void 0 : savedAppDetail.appLogo) != null ? _b : null
|
|
27998
|
+
};
|
|
27955
27999
|
const back2 = () => {
|
|
27956
28000
|
removeMount();
|
|
27957
28001
|
setTimeout(() => {
|
|
@@ -27959,11 +28003,11 @@ const _sfc_main$h = defineComponent({
|
|
|
27959
28003
|
}, 600);
|
|
27960
28004
|
};
|
|
27961
28005
|
const amountLists = computed(() => {
|
|
27962
|
-
var
|
|
28006
|
+
var _a2, _b2, _c, _d, _e, _f;
|
|
27963
28007
|
const config = getAppConfig();
|
|
27964
28008
|
return {
|
|
27965
|
-
halfSheet: createHalfSheetAmount((
|
|
27966
|
-
buttons: createButtonsAmount((_d = props.insufficientBalanceInfo) == null ? void 0 : _d.recommendedTopupAmount, (_f = (_e = config == null ? void 0 : config.topupButtonsAmount) == null ? void 0 : _e
|
|
28009
|
+
halfSheet: createHalfSheetAmount((_a2 = props.insufficientBalanceInfo) == null ? void 0 : _a2.recommendedTopupAmount, (_c = (_b2 = config == null ? void 0 : config.topupHalfSheetAmount[0]) == null ? void 0 : _b2.value) != null ? _c : null),
|
|
28010
|
+
buttons: createButtonsAmount((_d = props.insufficientBalanceInfo) == null ? void 0 : _d.recommendedTopupAmount, (_f = (_e = config == null ? void 0 : config.topupButtonsAmount[0]) == null ? void 0 : _e.value) != null ? _f : null)
|
|
27967
28011
|
};
|
|
27968
28012
|
});
|
|
27969
28013
|
const style = useCssModule();
|
|
@@ -28022,12 +28066,12 @@ const _sfc_main$h = defineComponent({
|
|
|
28022
28066
|
};
|
|
28023
28067
|
return {
|
|
28024
28068
|
balance: computed(() => {
|
|
28025
|
-
var
|
|
28026
|
-
return (
|
|
28069
|
+
var _a2, _b2;
|
|
28070
|
+
return (_b2 = (_a2 = props.insufficientBalanceInfo) == null ? void 0 : _a2.totalBalanceInfo) == null ? void 0 : _b2.balance;
|
|
28027
28071
|
}),
|
|
28028
28072
|
insufficientAmount: computed(() => {
|
|
28029
|
-
var
|
|
28030
|
-
return (
|
|
28073
|
+
var _a2;
|
|
28074
|
+
return (_a2 = props.insufficientBalanceInfo) == null ? void 0 : _a2.insufficientAmount;
|
|
28031
28075
|
}),
|
|
28032
28076
|
back: back2,
|
|
28033
28077
|
style,
|
|
@@ -28961,7 +29005,7 @@ const _sfc_main$g = defineComponent({
|
|
|
28961
29005
|
updateAddressList
|
|
28962
29006
|
} = useAddressControl();
|
|
28963
29007
|
const {
|
|
28964
|
-
getPaymentMethods:
|
|
29008
|
+
getPaymentMethods: getPaymentMethods3,
|
|
28965
29009
|
selectPayment,
|
|
28966
29010
|
paymentMethod: paymentMethod2,
|
|
28967
29011
|
paymentMethods,
|
|
@@ -29002,7 +29046,7 @@ const _sfc_main$g = defineComponent({
|
|
|
29002
29046
|
} = useCloseConfirmation();
|
|
29003
29047
|
onMounted(async () => {
|
|
29004
29048
|
startLoading();
|
|
29005
|
-
const res = await Promise.all([
|
|
29049
|
+
const res = await Promise.all([getPaymentMethods3(true), getConsult2()]);
|
|
29006
29050
|
const paymentMethodResult = res[0];
|
|
29007
29051
|
const consultResult = res[1];
|
|
29008
29052
|
if (consultResult === true && paymentMethodResult.result === false) {
|
|
@@ -29469,7 +29513,10 @@ const popStateHandler = (callback, inputParams) => {
|
|
|
29469
29513
|
}
|
|
29470
29514
|
};
|
|
29471
29515
|
const implicitComplete = (inputParams2) => {
|
|
29472
|
-
|
|
29516
|
+
if (Object.prototype.hasOwnProperty.call(inputParams2, "merchantPaymentId")) {
|
|
29517
|
+
return true;
|
|
29518
|
+
} else
|
|
29519
|
+
return false;
|
|
29473
29520
|
};
|
|
29474
29521
|
return {
|
|
29475
29522
|
mounted() {
|
|
@@ -29632,7 +29679,7 @@ const initErrorSheet = (initErrorSheet2) => {
|
|
|
29632
29679
|
app.mount(container2);
|
|
29633
29680
|
document.body.appendChild(container2);
|
|
29634
29681
|
};
|
|
29635
|
-
|
|
29682
|
+
function showErrorSheet(params) {
|
|
29636
29683
|
var _a;
|
|
29637
29684
|
reconstructParams(params);
|
|
29638
29685
|
try {
|
|
@@ -29781,7 +29828,7 @@ const initAlertSheet = (initAlertSheet2) => {
|
|
|
29781
29828
|
app.mount(container2);
|
|
29782
29829
|
document.body.appendChild(container2);
|
|
29783
29830
|
};
|
|
29784
|
-
|
|
29831
|
+
function showAlert(params) {
|
|
29785
29832
|
var _a;
|
|
29786
29833
|
reconstructParams(params);
|
|
29787
29834
|
try {
|
|
@@ -29881,6 +29928,80 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29881
29928
|
const cssModules$6 = {};
|
|
29882
29929
|
cssModules$6["$style"] = style0$6;
|
|
29883
29930
|
var BannerInfo = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__cssModules", cssModules$6]]);
|
|
29931
|
+
const cashbackInfoContainer = "_cashbackInfoContainer_18hoj_1";
|
|
29932
|
+
const balanceTitle = "_balanceTitle_18hoj_4";
|
|
29933
|
+
const transferTitle = "_transferTitle_18hoj_12";
|
|
29934
|
+
const flexContainer = "_flexContainer_18hoj_18";
|
|
29935
|
+
var style0$5 = {
|
|
29936
|
+
cashbackInfoContainer,
|
|
29937
|
+
balanceTitle,
|
|
29938
|
+
transferTitle,
|
|
29939
|
+
flexContainer
|
|
29940
|
+
};
|
|
29941
|
+
const _sfc_main$c = defineComponent({
|
|
29942
|
+
components: {},
|
|
29943
|
+
props: {
|
|
29944
|
+
cashbackInfo: {
|
|
29945
|
+
type: Object,
|
|
29946
|
+
default: () => {
|
|
29947
|
+
},
|
|
29948
|
+
required: true
|
|
29949
|
+
},
|
|
29950
|
+
totalBalanceInfo: {
|
|
29951
|
+
type: String,
|
|
29952
|
+
default: () => {
|
|
29953
|
+
},
|
|
29954
|
+
required: true
|
|
29955
|
+
},
|
|
29956
|
+
allTotalBalanceInfo: {
|
|
29957
|
+
type: String,
|
|
29958
|
+
default: () => {
|
|
29959
|
+
},
|
|
29960
|
+
required: true
|
|
29961
|
+
},
|
|
29962
|
+
isCharging: {
|
|
29963
|
+
type: Boolean,
|
|
29964
|
+
default: false,
|
|
29965
|
+
required: true
|
|
29966
|
+
}
|
|
29967
|
+
},
|
|
29968
|
+
emits: ["click"],
|
|
29969
|
+
setup(props) {
|
|
29970
|
+
const lg2 = getLanguage();
|
|
29971
|
+
const style = useCssModule();
|
|
29972
|
+
return {
|
|
29973
|
+
availableBalText: computed(() => props.isCharging ? lg2.topup.availableBalanceAfter : lg2.topup.availableBalance),
|
|
29974
|
+
isCashbackSave: computed(() => {
|
|
29975
|
+
var _a;
|
|
29976
|
+
return ((_a = props == null ? void 0 : props.cashbackInfo) == null ? void 0 : _a.cashBackUseStatus) === "SAVE";
|
|
29977
|
+
}),
|
|
29978
|
+
style,
|
|
29979
|
+
lg: lg2
|
|
29980
|
+
};
|
|
29981
|
+
}
|
|
29982
|
+
});
|
|
29983
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
29984
|
+
return openBlock(), createElementBlock("div", {
|
|
29985
|
+
class: normalizeClass(_ctx.style.cashbackInfoContainer)
|
|
29986
|
+
}, [
|
|
29987
|
+
createBaseVNode("div", {
|
|
29988
|
+
class: normalizeClass([_ctx.style.flexContainer, _ctx.style.balanceTitle])
|
|
29989
|
+
}, [
|
|
29990
|
+
createBaseVNode("span", null, toDisplayString(_ctx.availableBalText), 1),
|
|
29991
|
+
createBaseVNode("span", null, toDisplayString(_ctx.totalBalanceInfo) + " \u5186 ", 1)
|
|
29992
|
+
], 2),
|
|
29993
|
+
_ctx.isCashbackSave ? (openBlock(), createElementBlock("div", {
|
|
29994
|
+
key: 0,
|
|
29995
|
+
class: normalizeClass([_ctx.style.flexContainer, _ctx.style.transferTitle])
|
|
29996
|
+
}, [
|
|
29997
|
+
createBaseVNode("span", null, toDisplayString(_ctx.lg.topup.allBalance), 1),
|
|
29998
|
+
createBaseVNode("span", null, toDisplayString(_ctx.allTotalBalanceInfo) + " \u5186 ", 1)
|
|
29999
|
+
], 2)) : createCommentVNode("", true)
|
|
30000
|
+
], 2);
|
|
30001
|
+
}
|
|
30002
|
+
const cssModules$5 = {};
|
|
30003
|
+
cssModules$5["$style"] = style0$5;
|
|
30004
|
+
var CashbackInfo = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__cssModules", cssModules$5]]);
|
|
29884
30005
|
const completion = "_completion_9o00a_1";
|
|
29885
30006
|
const title$2 = "_title_9o00a_5";
|
|
29886
30007
|
const paypayLogo = "_paypayLogo_9o00a_10";
|
|
@@ -29895,7 +30016,7 @@ const green = "_green_9o00a_51";
|
|
|
29895
30016
|
const red = "_red_9o00a_54";
|
|
29896
30017
|
const yellow = "_yellow_9o00a_57";
|
|
29897
30018
|
const gray = "_gray_9o00a_60";
|
|
29898
|
-
var style0$
|
|
30019
|
+
var style0$4 = {
|
|
29899
30020
|
completion,
|
|
29900
30021
|
title: title$2,
|
|
29901
30022
|
paypayLogo,
|
|
@@ -29911,7 +30032,7 @@ var style0$5 = {
|
|
|
29911
30032
|
yellow,
|
|
29912
30033
|
gray
|
|
29913
30034
|
};
|
|
29914
|
-
const _sfc_main$
|
|
30035
|
+
const _sfc_main$b = defineComponent({
|
|
29915
30036
|
components: {
|
|
29916
30037
|
Button,
|
|
29917
30038
|
Divider
|
|
@@ -29968,7 +30089,7 @@ const _hoisted_1$a = ["src"];
|
|
|
29968
30089
|
const _hoisted_2$7 = /* @__PURE__ */ createTextVNode(" \u5186 ");
|
|
29969
30090
|
const _hoisted_3$6 = ["src"];
|
|
29970
30091
|
const _hoisted_4$5 = /* @__PURE__ */ createTextVNode(" \u9589\u3058\u308B ");
|
|
29971
|
-
function _sfc_render$
|
|
30092
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
29972
30093
|
const _component_Divider = resolveComponent("Divider");
|
|
29973
30094
|
const _component_Button = resolveComponent("Button");
|
|
29974
30095
|
return openBlock(), createElementBlock("div", {
|
|
@@ -30034,83 +30155,9 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30034
30155
|
})
|
|
30035
30156
|
], 2);
|
|
30036
30157
|
}
|
|
30037
|
-
const cssModules$5 = {};
|
|
30038
|
-
cssModules$5["$style"] = style0$5;
|
|
30039
|
-
var TopupCompletion = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__cssModules", cssModules$5]]);
|
|
30040
|
-
const cashbackInfoContainer = "_cashbackInfoContainer_18hoj_1";
|
|
30041
|
-
const balanceTitle = "_balanceTitle_18hoj_4";
|
|
30042
|
-
const transferTitle = "_transferTitle_18hoj_12";
|
|
30043
|
-
const flexContainer = "_flexContainer_18hoj_18";
|
|
30044
|
-
var style0$4 = {
|
|
30045
|
-
cashbackInfoContainer,
|
|
30046
|
-
balanceTitle,
|
|
30047
|
-
transferTitle,
|
|
30048
|
-
flexContainer
|
|
30049
|
-
};
|
|
30050
|
-
const _sfc_main$b = defineComponent({
|
|
30051
|
-
components: {},
|
|
30052
|
-
props: {
|
|
30053
|
-
cashbackInfo: {
|
|
30054
|
-
type: Object,
|
|
30055
|
-
default: () => {
|
|
30056
|
-
},
|
|
30057
|
-
required: true
|
|
30058
|
-
},
|
|
30059
|
-
totalBalanceInfo: {
|
|
30060
|
-
type: String,
|
|
30061
|
-
default: () => {
|
|
30062
|
-
},
|
|
30063
|
-
required: true
|
|
30064
|
-
},
|
|
30065
|
-
allTotalBalanceInfo: {
|
|
30066
|
-
type: String,
|
|
30067
|
-
default: () => {
|
|
30068
|
-
},
|
|
30069
|
-
required: true
|
|
30070
|
-
},
|
|
30071
|
-
isCharging: {
|
|
30072
|
-
type: Boolean,
|
|
30073
|
-
default: false,
|
|
30074
|
-
required: true
|
|
30075
|
-
}
|
|
30076
|
-
},
|
|
30077
|
-
emits: ["click"],
|
|
30078
|
-
setup(props) {
|
|
30079
|
-
const lg2 = getLanguage();
|
|
30080
|
-
const style = useCssModule();
|
|
30081
|
-
return {
|
|
30082
|
-
availableBalText: computed(() => props.isCharging ? lg2.topup.availableBalanceAfter : lg2.topup.availableBalance),
|
|
30083
|
-
isCashbackSave: computed(() => {
|
|
30084
|
-
var _a;
|
|
30085
|
-
return ((_a = props == null ? void 0 : props.cashbackInfo) == null ? void 0 : _a.cashBackUseStatus) === "SAVE";
|
|
30086
|
-
}),
|
|
30087
|
-
style,
|
|
30088
|
-
lg: lg2
|
|
30089
|
-
};
|
|
30090
|
-
}
|
|
30091
|
-
});
|
|
30092
|
-
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30093
|
-
return openBlock(), createElementBlock("div", {
|
|
30094
|
-
class: normalizeClass(_ctx.style.cashbackInfoContainer)
|
|
30095
|
-
}, [
|
|
30096
|
-
createBaseVNode("div", {
|
|
30097
|
-
class: normalizeClass([_ctx.style.flexContainer, _ctx.style.balanceTitle])
|
|
30098
|
-
}, [
|
|
30099
|
-
createBaseVNode("span", null, toDisplayString(_ctx.availableBalText), 1),
|
|
30100
|
-
createBaseVNode("span", null, toDisplayString(_ctx.totalBalanceInfo) + " \u5186 ", 1)
|
|
30101
|
-
], 2),
|
|
30102
|
-
_ctx.isCashbackSave ? (openBlock(), createElementBlock("div", {
|
|
30103
|
-
key: 0,
|
|
30104
|
-
class: normalizeClass([_ctx.style.flexContainer, _ctx.style.transferTitle])
|
|
30105
|
-
}, [
|
|
30106
|
-
createBaseVNode("span", null, toDisplayString(_ctx.lg.topup.allBalance), 1),
|
|
30107
|
-
createBaseVNode("span", null, toDisplayString(_ctx.allTotalBalanceInfo) + " \u5186 ", 1)
|
|
30108
|
-
], 2)) : createCommentVNode("", true)
|
|
30109
|
-
], 2);
|
|
30110
|
-
}
|
|
30111
30158
|
const cssModules$4 = {};
|
|
30112
30159
|
cssModules$4["$style"] = style0$4;
|
|
30113
|
-
var
|
|
30160
|
+
var TopupCompletion = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__cssModules", cssModules$4]]);
|
|
30114
30161
|
const topupWrapper = "_topupWrapper_19kvr_7";
|
|
30115
30162
|
const fullHeight = "_fullHeight_19kvr_13";
|
|
30116
30163
|
const bannerText = "_bannerText_19kvr_20";
|
|
@@ -30295,7 +30342,7 @@ const _sfc_main$a = defineComponent({
|
|
|
30295
30342
|
methods: {
|
|
30296
30343
|
numberWithCommas,
|
|
30297
30344
|
async init() {
|
|
30298
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k
|
|
30345
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
30299
30346
|
this.loading = true;
|
|
30300
30347
|
this.isFirstLoad = true;
|
|
30301
30348
|
const paymentIDParams = __spreadProps(__spreadValues({}, ((_a = this.topupParams) == null ? void 0 : _a.merchant) && {
|
|
@@ -30307,23 +30354,30 @@ const _sfc_main$a = defineComponent({
|
|
|
30307
30354
|
sourceInfoApp: (_d = this.topupParams) == null ? void 0 : _d.sourceInfoApp,
|
|
30308
30355
|
productType: (_e = this.topupParams) == null ? void 0 : _e.productType
|
|
30309
30356
|
});
|
|
30310
|
-
const paymentIdResponse = await
|
|
30311
|
-
|
|
30312
|
-
|
|
30313
|
-
|
|
30314
|
-
|
|
30315
|
-
|
|
30316
|
-
|
|
30317
|
-
|
|
30318
|
-
|
|
30357
|
+
const paymentIdResponse = await getPaymentMethods2(paymentIDParams);
|
|
30358
|
+
switch (paymentIdResponse.ppFetchResult) {
|
|
30359
|
+
case "success":
|
|
30360
|
+
break;
|
|
30361
|
+
case "timeout":
|
|
30362
|
+
this.errorCode = MiniAppErrorType.timeOut;
|
|
30363
|
+
this.errorShow = true;
|
|
30364
|
+
return;
|
|
30365
|
+
case "apiError":
|
|
30366
|
+
this.errorCode = MiniAppErrorType.serverError;
|
|
30367
|
+
this.showError();
|
|
30368
|
+
return;
|
|
30369
|
+
default:
|
|
30370
|
+
this.errorCode = MiniAppErrorType.serverError;
|
|
30371
|
+
this.errorShow = true;
|
|
30372
|
+
return;
|
|
30319
30373
|
}
|
|
30320
|
-
this.paymentMethodList = filterUnsupportedPaymentMethod((
|
|
30374
|
+
this.paymentMethodList = filterUnsupportedPaymentMethod((_h = (_g = (_f = paymentIdResponse.body.unsigned) == null ? void 0 : _f.data) == null ? void 0 : _g.payload) == null ? void 0 : _h.paymentMethodList);
|
|
30321
30375
|
this.findFirstValidMethod(0);
|
|
30322
30376
|
const config = getAppConfig();
|
|
30323
30377
|
if (config) {
|
|
30324
|
-
this.inputMoney = (
|
|
30325
|
-
this.topupHalfSheetAmount = (
|
|
30326
|
-
this.topupButtonsAmount = (
|
|
30378
|
+
this.inputMoney = (_i = config == null ? void 0 : config.topupHalfSheetRecommendedAmount[0]) == null ? void 0 : _i.value;
|
|
30379
|
+
this.topupHalfSheetAmount = (_j = config == null ? void 0 : config.topupHalfSheetAmount[0]) == null ? void 0 : _j.value;
|
|
30380
|
+
this.topupButtonsAmount = (_k = config == null ? void 0 : config.topupButtonsAmount[0]) == null ? void 0 : _k.value;
|
|
30327
30381
|
}
|
|
30328
30382
|
this.loading = false;
|
|
30329
30383
|
this.isFirstLoad = false;
|
|
@@ -31068,11 +31122,11 @@ const initShowUpdateWarning = (params) => {
|
|
|
31068
31122
|
app.mount(container2);
|
|
31069
31123
|
document.body.appendChild(container2);
|
|
31070
31124
|
};
|
|
31071
|
-
|
|
31125
|
+
function showUpdateWarning$1(params) {
|
|
31072
31126
|
reconstructParams(params);
|
|
31073
31127
|
initShowUpdateWarning(params);
|
|
31074
31128
|
}
|
|
31075
|
-
|
|
31129
|
+
function scanCode(params) {
|
|
31076
31130
|
reconstructParams(params);
|
|
31077
31131
|
if (isPayPayMiniApp()) {
|
|
31078
31132
|
closeApp({
|
|
@@ -31276,7 +31330,7 @@ async function takePhoto$1(params) {
|
|
|
31276
31330
|
takePhotoInternal(params, TakePhotoMode.album);
|
|
31277
31331
|
}
|
|
31278
31332
|
}
|
|
31279
|
-
|
|
31333
|
+
function setTitle(params) {
|
|
31280
31334
|
var _a;
|
|
31281
31335
|
reconstructParams(params);
|
|
31282
31336
|
document.title = (params == null ? void 0 : params.title) || "";
|
|
@@ -31995,7 +32049,7 @@ function debug(params) {
|
|
|
31995
32049
|
function execute$5(params) {
|
|
31996
32050
|
var _a;
|
|
31997
32051
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
|
|
31998
|
-
v: "1.
|
|
32052
|
+
v: "1.27.0"
|
|
31999
32053
|
});
|
|
32000
32054
|
}
|
|
32001
32055
|
function useCallBack(props, ctx) {
|
|
@@ -32905,20 +32959,25 @@ function registerEmail(params) {
|
|
|
32905
32959
|
initRegisterEmail(params).catch(() => {
|
|
32906
32960
|
});
|
|
32907
32961
|
}
|
|
32908
|
-
|
|
32962
|
+
function registerKyc(params) {
|
|
32909
32963
|
reconstructParams(params);
|
|
32910
|
-
|
|
32964
|
+
execute$4(params);
|
|
32911
32965
|
}
|
|
32912
|
-
|
|
32966
|
+
function execute$4(params) {
|
|
32967
|
+
var _a;
|
|
32913
32968
|
params = __spreadProps(__spreadValues({}, params), {
|
|
32914
32969
|
type: (params == null ? void 0 : params.type) || "EKYC"
|
|
32915
32970
|
});
|
|
32916
32971
|
const appDetail = getAppDetail();
|
|
32917
32972
|
const clientId = getClientId();
|
|
32973
|
+
if (!clientId) {
|
|
32974
|
+
(_a = params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.sdkNotInitialized });
|
|
32975
|
+
return;
|
|
32976
|
+
}
|
|
32918
32977
|
let deeplink = `paypay://kyc/top?appId=${clientId}&appName=${encodeURIComponent((appDetail == null ? void 0 : appDetail.appName) || "")}`;
|
|
32919
32978
|
Object.entries(params).map(([key, value2]) => {
|
|
32920
32979
|
if (typeof value2 !== "function") {
|
|
32921
|
-
let kycData = encodeURIComponent(value2);
|
|
32980
|
+
let kycData = encodeURIComponent(String(value2));
|
|
32922
32981
|
if (Array.isArray(value2)) {
|
|
32923
32982
|
kycData = value2.join(",");
|
|
32924
32983
|
} else if (typeof value2 === "object") {
|
|
@@ -32949,7 +33008,7 @@ function validType(params) {
|
|
|
32949
33008
|
return authTypes.includes(params == null ? void 0 : params.type);
|
|
32950
33009
|
}
|
|
32951
33010
|
async function execute$3(params) {
|
|
32952
|
-
var _a, _b, _c
|
|
33011
|
+
var _a, _b, _c;
|
|
32953
33012
|
if (!validType(params)) {
|
|
32954
33013
|
return (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.invalidType });
|
|
32955
33014
|
}
|
|
@@ -32961,7 +33020,7 @@ async function execute$3(params) {
|
|
|
32961
33020
|
if (!res || "error" in res) {
|
|
32962
33021
|
return (_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
32963
33022
|
}
|
|
32964
|
-
if (
|
|
33023
|
+
if (res.unsigned.data.sessionId) {
|
|
32965
33024
|
const sessionId = res.unsigned.data.sessionId;
|
|
32966
33025
|
const deeplink = `paypay://miniAppMFA?ppSessionId=${sessionId}&type=${params.type}&callbackUrl=${params == null ? void 0 : params.callbackUrl}`;
|
|
32967
33026
|
closeApp({
|
|
@@ -32973,7 +33032,7 @@ async function execute$3(params) {
|
|
|
32973
33032
|
throw new Error();
|
|
32974
33033
|
}
|
|
32975
33034
|
} catch {
|
|
32976
|
-
return (
|
|
33035
|
+
return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
32977
33036
|
}
|
|
32978
33037
|
}
|
|
32979
33038
|
function logout(params) {
|
|
@@ -33222,7 +33281,7 @@ const initSmartButton = (params, data2, preferredLanguage, isLoggedIn) => {
|
|
|
33222
33281
|
const container2 = document.getElementById(params == null ? void 0 : params.containerId);
|
|
33223
33282
|
container2 && app.mount(container2);
|
|
33224
33283
|
};
|
|
33225
|
-
|
|
33284
|
+
function renderLoginButton(params, lg2, preferredLanguage, loggedinUser) {
|
|
33226
33285
|
var _a, _b;
|
|
33227
33286
|
if (!(params == null ? void 0 : params.containerId) || !document.getElementById(params == null ? void 0 : params.containerId)) {
|
|
33228
33287
|
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
|
|
@@ -33247,7 +33306,7 @@ async function renderLoginButton(params, lg2, preferredLanguage, loggedinUser) {
|
|
|
33247
33306
|
}
|
|
33248
33307
|
initSmartButton(params, data2, preferredLanguage);
|
|
33249
33308
|
}
|
|
33250
|
-
|
|
33309
|
+
function renderPayButton(params, lg2, preferredLanguage, isLoggedIn, cashbackInfo) {
|
|
33251
33310
|
var _a;
|
|
33252
33311
|
if (!(params == null ? void 0 : params.containerId) || !document.getElementById(params == null ? void 0 : params.containerId)) {
|
|
33253
33312
|
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
|
|
@@ -33539,7 +33598,7 @@ var en$1 = /* @__PURE__ */ Object.freeze({
|
|
|
33539
33598
|
closeConfirmation,
|
|
33540
33599
|
"default": en
|
|
33541
33600
|
});
|
|
33542
|
-
|
|
33601
|
+
function render(params) {
|
|
33543
33602
|
reconstructParams(params);
|
|
33544
33603
|
let preferredLanguage = (params == null ? void 0 : params.locale) || getPayPayLanguage();
|
|
33545
33604
|
const { smartLogin: smartLogin2, smartPay: smartPay2 } = preferredLanguage === "en" ? en$1 : ja$1;
|
|
@@ -33553,11 +33612,14 @@ async function render(params) {
|
|
|
33553
33612
|
success: () => {
|
|
33554
33613
|
renderPay(__spreadProps(__spreadValues({}, params), {
|
|
33555
33614
|
url: void 0
|
|
33556
|
-
}), smartPay2, preferredLanguage, true)
|
|
33615
|
+
}), smartPay2, preferredLanguage, true).catch(() => {
|
|
33616
|
+
});
|
|
33557
33617
|
},
|
|
33558
33618
|
fail: () => {
|
|
33559
|
-
renderPay(params, smartPay2, preferredLanguage, false)
|
|
33619
|
+
renderPay(params, smartPay2, preferredLanguage, false).catch(() => {
|
|
33620
|
+
});
|
|
33560
33621
|
}
|
|
33622
|
+
}).catch(() => {
|
|
33561
33623
|
});
|
|
33562
33624
|
}
|
|
33563
33625
|
}
|
|
@@ -33611,10 +33673,10 @@ function callbackHandler(params, callback) {
|
|
|
33611
33673
|
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params);
|
|
33612
33674
|
}
|
|
33613
33675
|
}
|
|
33614
|
-
|
|
33676
|
+
function setSessionData(params) {
|
|
33615
33677
|
var _a, _b;
|
|
33616
33678
|
reconstructParams(params);
|
|
33617
|
-
|
|
33679
|
+
sessionStorage.setItem(params == null ? void 0 : params.key, (_a = params == null ? void 0 : params.value) != null ? _a : "");
|
|
33618
33680
|
(_b = params == null ? void 0 : params.success) == null ? void 0 : _b.call(params);
|
|
33619
33681
|
}
|
|
33620
33682
|
function getSessionData(params) {
|
|
@@ -33623,10 +33685,10 @@ function getSessionData(params) {
|
|
|
33623
33685
|
const value2 = sessionStorage.getItem(params == null ? void 0 : params.key);
|
|
33624
33686
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, { [params == null ? void 0 : params.key]: value2 != null ? value2 : "" });
|
|
33625
33687
|
}
|
|
33626
|
-
|
|
33688
|
+
function setStorageData(params) {
|
|
33627
33689
|
var _a, _b;
|
|
33628
33690
|
reconstructParams(params);
|
|
33629
|
-
|
|
33691
|
+
localStorage.setItem(params == null ? void 0 : params.key, (_a = params == null ? void 0 : params.value) != null ? _a : "");
|
|
33630
33692
|
(_b = params == null ? void 0 : params.success) == null ? void 0 : _b.call(params);
|
|
33631
33693
|
}
|
|
33632
33694
|
function getStorageData(params) {
|
|
@@ -33635,20 +33697,20 @@ function getStorageData(params) {
|
|
|
33635
33697
|
const value2 = localStorage.getItem(params == null ? void 0 : params.key);
|
|
33636
33698
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, { [params == null ? void 0 : params.key]: value2 != null ? value2 : "" });
|
|
33637
33699
|
}
|
|
33638
|
-
|
|
33700
|
+
function removeStorageData(params) {
|
|
33639
33701
|
var _a;
|
|
33640
33702
|
reconstructParams(params);
|
|
33641
|
-
|
|
33703
|
+
localStorage.removeItem(params == null ? void 0 : params.key);
|
|
33642
33704
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params);
|
|
33643
33705
|
}
|
|
33644
33706
|
const errorCodes = new Map();
|
|
33645
|
-
errorCodes.set(414,
|
|
33646
|
-
errorCodes.set(413,
|
|
33647
|
-
errorCodes.set(400,
|
|
33648
|
-
errorCodes.set(405,
|
|
33649
|
-
errorCodes.set(502,
|
|
33707
|
+
errorCodes.set(414, MiniAppErrorType.invalidUrl);
|
|
33708
|
+
errorCodes.set(413, MiniAppErrorType.invalidData);
|
|
33709
|
+
errorCodes.set(400, MiniAppErrorType.invalidHeader);
|
|
33710
|
+
errorCodes.set(405, MiniAppErrorType.invalidMethod);
|
|
33711
|
+
errorCodes.set(502, MiniAppErrorType.invalidResponse);
|
|
33650
33712
|
async function request(params) {
|
|
33651
|
-
var _a, _b, _c, _d
|
|
33713
|
+
var _a, _b, _c, _d;
|
|
33652
33714
|
reconstructParams(params);
|
|
33653
33715
|
try {
|
|
33654
33716
|
const response = await fetch(params == null ? void 0 : params.url, {
|
|
@@ -33666,8 +33728,10 @@ async function request(params) {
|
|
|
33666
33728
|
if (!_error.response) {
|
|
33667
33729
|
return (_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, { errorCode: MiniAppErrorType.invalidResponse });
|
|
33668
33730
|
} else {
|
|
33669
|
-
const errorMsg =
|
|
33670
|
-
return (
|
|
33731
|
+
const errorMsg = _error.response ? errorCodes.get((_c = _error.response) == null ? void 0 : _c.status) : null;
|
|
33732
|
+
return (_d = params == null ? void 0 : params.fail) == null ? void 0 : _d.call(params, {
|
|
33733
|
+
errorCode: errorMsg != null ? errorMsg : MiniAppErrorType.statusCodeError
|
|
33734
|
+
});
|
|
33671
33735
|
}
|
|
33672
33736
|
}
|
|
33673
33737
|
}
|
|
@@ -33706,7 +33770,8 @@ class MiniAppModule extends JsBridgeModule {
|
|
|
33706
33770
|
return getRuntime() === MiniAppRuntime.android ? RuntimeEnv.Native : RuntimeEnv.JS;
|
|
33707
33771
|
}
|
|
33708
33772
|
init(params) {
|
|
33709
|
-
init(params)
|
|
33773
|
+
init(params).catch(() => {
|
|
33774
|
+
});
|
|
33710
33775
|
}
|
|
33711
33776
|
copyToClipboard(params) {
|
|
33712
33777
|
copyToClipboard(params);
|
|
@@ -33727,32 +33792,39 @@ class MiniAppModule extends JsBridgeModule {
|
|
|
33727
33792
|
closeApp(params);
|
|
33728
33793
|
}
|
|
33729
33794
|
request(params) {
|
|
33730
|
-
request(params)
|
|
33795
|
+
request(params).catch(() => {
|
|
33796
|
+
});
|
|
33731
33797
|
}
|
|
33732
33798
|
requestInternal(params) {
|
|
33733
|
-
requestInternal(params)
|
|
33799
|
+
requestInternal(params).catch(() => {
|
|
33800
|
+
});
|
|
33734
33801
|
}
|
|
33735
33802
|
getUAID(params) {
|
|
33736
33803
|
getUAID(params);
|
|
33737
33804
|
}
|
|
33738
33805
|
getBalance(params) {
|
|
33739
|
-
getBalance(params)
|
|
33806
|
+
getBalance(params).catch(() => {
|
|
33807
|
+
});
|
|
33740
33808
|
}
|
|
33741
33809
|
getAuthStatus(params) {
|
|
33742
|
-
getAuthStatus(params)
|
|
33810
|
+
getAuthStatus(params).catch(() => {
|
|
33811
|
+
});
|
|
33743
33812
|
}
|
|
33744
33813
|
makePayment(params) {
|
|
33745
33814
|
if (!this.isExecutableService(params))
|
|
33746
33815
|
return;
|
|
33747
|
-
makePayment(params)
|
|
33816
|
+
makePayment(params).catch(() => {
|
|
33817
|
+
});
|
|
33748
33818
|
}
|
|
33749
33819
|
createOrder(params) {
|
|
33750
33820
|
if (!this.isExecutableService(params))
|
|
33751
33821
|
return;
|
|
33752
|
-
makePayment(params)
|
|
33822
|
+
makePayment(params).catch(() => {
|
|
33823
|
+
});
|
|
33753
33824
|
}
|
|
33754
33825
|
getUserProfile(params) {
|
|
33755
|
-
getUserProfile(params)
|
|
33826
|
+
getUserProfile(params).catch(() => {
|
|
33827
|
+
});
|
|
33756
33828
|
}
|
|
33757
33829
|
topup(params) {
|
|
33758
33830
|
if (!this.isExecutableService(params))
|
|
@@ -33775,7 +33847,8 @@ class MiniAppModule extends JsBridgeModule {
|
|
|
33775
33847
|
removeStorageData(params);
|
|
33776
33848
|
}
|
|
33777
33849
|
getPermissionStatus(params) {
|
|
33778
|
-
getPermissionStatus(params)
|
|
33850
|
+
getPermissionStatus(params).catch(() => {
|
|
33851
|
+
});
|
|
33779
33852
|
}
|
|
33780
33853
|
scanCode(params) {
|
|
33781
33854
|
scanCode(params);
|
|
@@ -33796,7 +33869,8 @@ class MiniAppModule extends JsBridgeModule {
|
|
|
33796
33869
|
this.detectMode() === RuntimeEnv.JS ? showUpdateWarning$1(params) : this.jsBridge.callNative("showUpdateWarning", params);
|
|
33797
33870
|
}
|
|
33798
33871
|
getPlatformInformation(params) {
|
|
33799
|
-
getPlatformInformation(params)
|
|
33872
|
+
getPlatformInformation(params).catch(() => {
|
|
33873
|
+
});
|
|
33800
33874
|
}
|
|
33801
33875
|
getDeviceInformation(params) {
|
|
33802
33876
|
getDeviceInformation(params);
|
|
@@ -33805,10 +33879,12 @@ class MiniAppModule extends JsBridgeModule {
|
|
|
33805
33879
|
this.detectMode() === RuntimeEnv.JS ? openApp$1(params) : this.jsBridge.callNative("openApp", params);
|
|
33806
33880
|
}
|
|
33807
33881
|
share(params) {
|
|
33808
|
-
this.detectMode() === RuntimeEnv.JS ? share(params)
|
|
33882
|
+
this.detectMode() === RuntimeEnv.JS ? share(params).catch(() => {
|
|
33883
|
+
}) : this.jsBridge.callNative("share", params);
|
|
33809
33884
|
}
|
|
33810
33885
|
getKycInformation(params) {
|
|
33811
|
-
getKycInformation(params)
|
|
33886
|
+
getKycInformation(params).catch(() => {
|
|
33887
|
+
});
|
|
33812
33888
|
}
|
|
33813
33889
|
getUserAddress(params) {
|
|
33814
33890
|
getUserAddress(params);
|
|
@@ -33819,13 +33895,16 @@ class MiniAppModule extends JsBridgeModule {
|
|
|
33819
33895
|
inputAddress(params);
|
|
33820
33896
|
}
|
|
33821
33897
|
getUserLocation(params) {
|
|
33822
|
-
getUserLocation(params != null ? params : {})
|
|
33898
|
+
getUserLocation(params != null ? params : {}).catch(() => {
|
|
33899
|
+
});
|
|
33823
33900
|
}
|
|
33824
33901
|
takePhoto(params) {
|
|
33825
|
-
takePhoto$1(params != null ? params : {})
|
|
33902
|
+
takePhoto$1(params != null ? params : {}).catch(() => {
|
|
33903
|
+
});
|
|
33826
33904
|
}
|
|
33827
33905
|
checkPaymentMethod(params) {
|
|
33828
|
-
checkPaymentMethod(params)
|
|
33906
|
+
checkPaymentMethod(params).catch(() => {
|
|
33907
|
+
});
|
|
33829
33908
|
}
|
|
33830
33909
|
debug(params) {
|
|
33831
33910
|
debug(params);
|
|
@@ -33845,13 +33924,15 @@ class MiniAppModule extends JsBridgeModule {
|
|
|
33845
33924
|
registerKyc(params);
|
|
33846
33925
|
}
|
|
33847
33926
|
startMultiFactorAuth(params) {
|
|
33848
|
-
startMultiFactorAuth(params)
|
|
33927
|
+
startMultiFactorAuth(params).catch(() => {
|
|
33928
|
+
});
|
|
33849
33929
|
}
|
|
33850
33930
|
logout(params) {
|
|
33851
33931
|
logout(params);
|
|
33852
33932
|
}
|
|
33853
33933
|
verifyMultiFactorAuthResult(params) {
|
|
33854
|
-
verifyMultiFactorAuthResult(params)
|
|
33934
|
+
verifyMultiFactorAuthResult(params).catch(() => {
|
|
33935
|
+
});
|
|
33855
33936
|
}
|
|
33856
33937
|
render(params) {
|
|
33857
33938
|
render(params);
|