@paypay/mini-app-js-sdk 1.53.0 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mini-app-api.d.ts +2 -2
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +262 -241
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/scanCode.d.ts +2 -3
- package/dist/package/payment-method/PayLaterCC.vue.d.ts +4 -0
- package/dist/package/payment-method/SbidBank.vue.d.ts +4 -0
- package/dist/package/payment-method/Wallet.vue.d.ts +4 -0
- package/dist/package/payment-type/PayLaterCC.vue.d.ts +4 -0
- package/dist/package/payment-type/Sbid.vue.d.ts +4 -0
- package/dist/package/payment-type/Wallet.vue.d.ts +4 -0
- package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +4 -0
- package/dist/types.d.ts +11 -1
- package/dist/utils/getImages.d.ts +1 -0
- package/dist/utils/getLanguage.d.ts +3 -0
- package/dist/utils/helper.d.ts +2 -0
- package/dist/utils/minimumAppVersion.d.ts +1 -0
- package/dist/views/error-sheet/Index.vue.d.ts +8 -9
- package/dist/views/get-bank-info/components/GetBankInfoPopup.vue.d.ts +3 -0
- package/dist/views/get-bank-info/components/PayoutMethodList.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Consult.vue.d.ts +5 -3
- package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +4 -0
- package/dist/views/open-app/App.vue.d.ts +4 -0
- package/dist/views/open-map/App.vue.d.ts +3 -0
- package/dist/views/register-user-info/RegisterUserInfoCancelConfirmationSheet.vue.d.ts +5 -2
- package/dist/views/register-user-info/RegisterUserInfoCategoryView.vue.d.ts +4 -0
- package/dist/views/register-user-info/RegisterUserInfoFooterView.vue.d.ts +3 -0
- package/dist/views/register-user-info/RegisterUserInfoKycInfoSheet.vue.d.ts +5 -2
- package/dist/views/register-user-info/RegisterUserInfoMailInfoSheet.vue.d.ts +5 -2
- package/dist/views/register-user-info/input/RegisterUserInfoEmailInput.vue.d.ts +4 -0
- package/dist/views/register-user-info/input/RegisterUserInfoSimpleInput.vue.d.ts +1 -0
- package/dist/views/registerPaymentFeatures/AutoTopupMethod.vue.d.ts +10 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesAmountErrorSheet.vue.d.ts +5 -2
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesAmountSettingSheet.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesAutoTopupConfirmSheet.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesChooseAmount.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesChoosePaymentMethodSheet.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesDefaultErrorSheet.vue.d.ts +4 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesFooterUpdateWarning.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesFooterView.vue.d.ts +4 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesFooterViewWithEnableButton.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesMainView.vue.d.ts +9 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesRootView.vue.d.ts +32 -2
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesSettingCompleteSheet.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesTopupMethodSettingSheet.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/api.d.ts +2 -2
- package/dist/views/registerPaymentFeatures/fallback-method/FallbackMethodAppUpdateWarning.vue.d.ts +1 -0
- package/dist/views/registerPaymentFeatures/store.d.ts +4 -2
- package/dist/views/registerPaymentFeatures/types.d.ts +12 -3
- package/dist/views/show-update-warning/App.vue.d.ts +4 -0
- package/dist/views/three-d-secure-sheet/ThreeDSecureSheet.vue.d.ts +1 -0
- package/dist/views/topup/App.vue.d.ts +4 -0
- package/dist/views/topup/BannerInfo.vue.d.ts +4 -1
- package/dist/views/topup/CashbackInfo.vue.d.ts +3 -0
- package/dist/views/topup/TopupCompletion.vue.d.ts +4 -0
- package/package.json +1 -1
|
@@ -85,8 +85,8 @@ function normalizeNativeResponseData(data2) {
|
|
|
85
85
|
}
|
|
86
86
|
class JsBridge {
|
|
87
87
|
constructor(global2) {
|
|
88
|
-
this.version = "1.
|
|
89
|
-
this.revision = "
|
|
88
|
+
this.version = "1.55.0";
|
|
89
|
+
this.revision = "be18b1c";
|
|
90
90
|
this.messageHandlers = new Map();
|
|
91
91
|
this.responseCallbacks = new Map();
|
|
92
92
|
this.global = global2;
|
|
@@ -1212,11 +1212,14 @@ const registerPaymentFeatures$2 = {
|
|
|
1212
1212
|
message: "\u30AA\u30FC\u30C8\u30C1\u30E3\u30FC\u30B8\u3092\u5229\u7528\u3059\u308B\u306B\u306F\n\u30A2\u30D7\u30EA\u3092\u6700\u65B0\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306B\n\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
1213
1213
|
update: "\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3059\u308B",
|
|
1214
1214
|
cancel: "\u4ECA\u306F\u3057\u306A\u3044"
|
|
1215
|
-
}
|
|
1215
|
+
},
|
|
1216
|
+
eMoneyOnly: "\u9280\u884C\u53E3\u5EA7\u304B\u3089\u306E\u30C1\u30E3\u30FC\u30B8\u306E\u307F",
|
|
1217
|
+
topupNoticeEmoneyOnlyTitle: "\u9280\u884C\u53E3\u5EA7\u304B\u3089\u306E\u30C1\u30E3\u30FC\u30B8\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
1218
|
+
topupNoticeEmoneyOnlyDesc: "\u3053\u306E\u304A\u5E97\u3067\u306E\u304A\u652F\u6255\u3044\u306B\u306FPayPay\u30DE\u30CD\u30FC\u304C\u5FC5\u8981\u3067\u3059\u3002PayPay\u30DE\u30CD\u30FC\u306E\u5229\u7528\u306B\u306F\u9280\u884C\u304B\u3089\u306E\u30C1\u30E3\u30FC\u30B8\u8A2D\u5B9A\u304C\u5FC5\u8981\u3067\u3059"
|
|
1216
1219
|
},
|
|
1217
1220
|
autoTopupRootFooter: {
|
|
1218
1221
|
enable: "\u6709\u52B9\u306B\u3059\u308B",
|
|
1219
|
-
notice: "\
|
|
1222
|
+
notice: "\u8A2D\u5B9A\u306FPayPay\u3067\u306E\u3059\u3079\u3066\u306E\u652F\u6255\u3044\u306B\u9069\u7528\u3055\u308C\u307E\u3059\n\u8A2D\u5B9A\u5B8C\u4E86\u5F8C\u3001\u3054\u5229\u7528\u4E2D\u306E\u30DF\u30CB\u30A2\u30D7\u30EA\u306B\u623B\u308A\u307E\u3059",
|
|
1220
1223
|
notNow: "\u4ECA\u306F\u3057\u306A\u3044"
|
|
1221
1224
|
},
|
|
1222
1225
|
amountChange: {
|
|
@@ -1580,35 +1583,6 @@ function getUserLocationRequest(params) {
|
|
|
1580
1583
|
function isValidUrl(urlChallenge) {
|
|
1581
1584
|
return /^https?:\/\//.test(urlChallenge);
|
|
1582
1585
|
}
|
|
1583
|
-
async function initAppDetail(accessToken) {
|
|
1584
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
1585
|
-
const res = await ppFetch2({
|
|
1586
|
-
method: "GET",
|
|
1587
|
-
url: "web-api/app/v1/apps/detail",
|
|
1588
|
-
headers: { Authorization: `Bearer ${accessToken}` }
|
|
1589
|
-
});
|
|
1590
|
-
if ((res == null ? void 0 : res.ppFetchResult) !== "success" || !((_b = (_a2 = res == null ? void 0 : res.body) == null ? void 0 : _a2.unsigned) == null ? void 0 : _b.data)) {
|
|
1591
|
-
removeAppDetail();
|
|
1592
|
-
return false;
|
|
1593
|
-
}
|
|
1594
|
-
saveAppDetail(JSON.stringify({
|
|
1595
|
-
appLogo: (_e = (_d = (_c = res == null ? void 0 : res.body) == null ? void 0 : _c.unsigned) == null ? void 0 : _d.data) == null ? void 0 : _e.appLogo,
|
|
1596
|
-
appName: (_h = (_g = (_f = res == null ? void 0 : res.body) == null ? void 0 : _f.unsigned) == null ? void 0 : _g.data) == null ? void 0 : _h.appName,
|
|
1597
|
-
openUrl: (_k = (_j = (_i = res == null ? void 0 : res.body) == null ? void 0 : _i.unsigned) == null ? void 0 : _j.data) == null ? void 0 : _k.openUrl,
|
|
1598
|
-
whiteListDomains: (_n = (_m = (_l = res == null ? void 0 : res.body) == null ? void 0 : _l.unsigned) == null ? void 0 : _m.data) == null ? void 0 : _n.whiteListDomains,
|
|
1599
|
-
isInternal: (_q = (_p = (_o = res == null ? void 0 : res.body) == null ? void 0 : _o.unsigned) == null ? void 0 : _p.data) == null ? void 0 : _q.isInternal,
|
|
1600
|
-
window: (_t = (_s = (_r = res == null ? void 0 : res.body) == null ? void 0 : _r.unsigned) == null ? void 0 : _s.data) == null ? void 0 : _t.window,
|
|
1601
|
-
subdomainCookieSharing: (_w = (_v = (_u = res == null ? void 0 : res.body) == null ? void 0 : _u.unsigned) == null ? void 0 : _v.data) == null ? void 0 : _w.subdomainCookieSharing
|
|
1602
|
-
}));
|
|
1603
|
-
return true;
|
|
1604
|
-
}
|
|
1605
|
-
function getAppDetail() {
|
|
1606
|
-
const json = getAppDetail$1();
|
|
1607
|
-
if (json) {
|
|
1608
|
-
return JSON.parse(json);
|
|
1609
|
-
}
|
|
1610
|
-
return null;
|
|
1611
|
-
}
|
|
1612
1586
|
function reconstructParams(params) {
|
|
1613
1587
|
if (!params) {
|
|
1614
1588
|
return params;
|
|
@@ -1648,11 +1622,9 @@ function createWrapComplete(fn) {
|
|
|
1648
1622
|
};
|
|
1649
1623
|
}
|
|
1650
1624
|
function openWebview(openWebviewParams) {
|
|
1651
|
-
var _a2, _b, _c
|
|
1625
|
+
var _a2, _b, _c;
|
|
1652
1626
|
const params = reconstructParams(openWebviewParams);
|
|
1653
1627
|
let url;
|
|
1654
|
-
let openUrl2 = null;
|
|
1655
|
-
const appDetail = getAppDetail();
|
|
1656
1628
|
try {
|
|
1657
1629
|
url = new URL(params == null ? void 0 : params.url);
|
|
1658
1630
|
} catch (error2) {
|
|
@@ -1661,25 +1633,14 @@ function openWebview(openWebviewParams) {
|
|
|
1661
1633
|
});
|
|
1662
1634
|
return;
|
|
1663
1635
|
}
|
|
1664
|
-
|
|
1665
|
-
openUrl2 = appDetail ? new URL(appDetail.openUrl) : null;
|
|
1666
|
-
} catch (_) {
|
|
1667
|
-
}
|
|
1668
|
-
if (params == null ? void 0 : params.authorization) {
|
|
1669
|
-
const url2 = getAuthUrl(params);
|
|
1670
|
-
if (url2 === null) {
|
|
1671
|
-
return;
|
|
1672
|
-
}
|
|
1673
|
-
params.url = url2;
|
|
1674
|
-
openWebviewInternal(params);
|
|
1675
|
-
} else if (["http:", "https:"].includes(url.protocol) && ((params == null ? void 0 : params.style) === "external" || ((_b = appDetail == null ? void 0 : appDetail.whiteListDomains) == null ? void 0 : _b.includes(url.host)) || url.host === (openUrl2 == null ? void 0 : openUrl2.host))) {
|
|
1636
|
+
if (["http:", "https:"].includes(url.protocol)) {
|
|
1676
1637
|
openWebviewInternal(params);
|
|
1677
1638
|
} else {
|
|
1678
|
-
return (
|
|
1679
|
-
errorCode: MiniAppErrorType.
|
|
1639
|
+
return (_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, {
|
|
1640
|
+
errorCode: MiniAppErrorType.notAvailable
|
|
1680
1641
|
});
|
|
1681
1642
|
}
|
|
1682
|
-
(
|
|
1643
|
+
(_c = params == null ? void 0 : params.success) == null ? void 0 : _c.call(params);
|
|
1683
1644
|
}
|
|
1684
1645
|
function openWebviewInternal(params) {
|
|
1685
1646
|
var _a2, _b;
|
|
@@ -1701,35 +1662,6 @@ function openWebviewInternal(params) {
|
|
|
1701
1662
|
}
|
|
1702
1663
|
}
|
|
1703
1664
|
}
|
|
1704
|
-
function getAuthUrl(params) {
|
|
1705
|
-
var _a2, _b;
|
|
1706
|
-
let authUrl = "";
|
|
1707
|
-
switch (getEnv()) {
|
|
1708
|
-
case "staging":
|
|
1709
|
-
authUrl = "https://stg-www.paypay-corp.co.jp";
|
|
1710
|
-
break;
|
|
1711
|
-
case "sandbox":
|
|
1712
|
-
authUrl = "https://stg-www.sandbox.paypay.ne.jp";
|
|
1713
|
-
break;
|
|
1714
|
-
case "canary":
|
|
1715
|
-
authUrl = "https://www-prod-canary.paypay.ne.jp";
|
|
1716
|
-
break;
|
|
1717
|
-
case "qa":
|
|
1718
|
-
authUrl = "https://www.qa.stg.paypay.ne.jp";
|
|
1719
|
-
break;
|
|
1720
|
-
case "production":
|
|
1721
|
-
default:
|
|
1722
|
-
authUrl = "https://www.paypay.ne.jp";
|
|
1723
|
-
}
|
|
1724
|
-
const clientId = (_a2 = getClientId()) != null ? _a2 : "";
|
|
1725
|
-
if (!clientId) {
|
|
1726
|
-
(_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, {
|
|
1727
|
-
errorCode: MiniAppErrorType.sdkNotInitialized
|
|
1728
|
-
});
|
|
1729
|
-
return null;
|
|
1730
|
-
}
|
|
1731
|
-
return `${authUrl}/portal/auth/mini-app/permission?clientId=${clientId}&redirectUrl=${encodeURIComponent(params.url)}`;
|
|
1732
|
-
}
|
|
1733
1665
|
function isDef(val2) {
|
|
1734
1666
|
return val2 !== void 0 && val2 !== null;
|
|
1735
1667
|
}
|
|
@@ -1984,6 +1916,15 @@ function openUrl(linkUrl) {
|
|
|
1984
1916
|
} catch (_) {
|
|
1985
1917
|
}
|
|
1986
1918
|
}
|
|
1919
|
+
function getButtonType(button4, onlyButton = false) {
|
|
1920
|
+
if (button4.buttonType === UIComponentsButtonType.BLUE || onlyButton) {
|
|
1921
|
+
return "primary";
|
|
1922
|
+
} else if (button4.buttonType === UIComponentsButtonType.WHITE) {
|
|
1923
|
+
return "link";
|
|
1924
|
+
} else {
|
|
1925
|
+
return button4.buttonType;
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1987
1928
|
const opaUrl = () => {
|
|
1988
1929
|
switch (getEnv()) {
|
|
1989
1930
|
case "staging":
|
|
@@ -2004,7 +1945,7 @@ const opaUrl = () => {
|
|
|
2004
1945
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
2005
1946
|
let headers = new Headers(__spreadValues({
|
|
2006
1947
|
"Content-Type": "application/json",
|
|
2007
|
-
"Client-Version": "1.
|
|
1948
|
+
"Client-Version": "1.55.0",
|
|
2008
1949
|
"Client-OS-Type": getRuntime()
|
|
2009
1950
|
}, customHeaders));
|
|
2010
1951
|
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" || urlEndpoint === "web-api/app/v1/users/autoTopupConfiguration" || urlEndpoint === "web-api/app/v1/users/preTransactionAutoTopupConfiguration" || urlEndpoint === "web-api/app/v1/users/consultPaymentFeature") {
|
|
@@ -2158,6 +2099,35 @@ async function refreshToken() {
|
|
|
2158
2099
|
}
|
|
2159
2100
|
return false;
|
|
2160
2101
|
}
|
|
2102
|
+
async function initAppDetail(accessToken) {
|
|
2103
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
2104
|
+
const res = await ppFetch2({
|
|
2105
|
+
method: "GET",
|
|
2106
|
+
url: "web-api/app/v1/apps/detail",
|
|
2107
|
+
headers: { Authorization: `Bearer ${accessToken}` }
|
|
2108
|
+
});
|
|
2109
|
+
if ((res == null ? void 0 : res.ppFetchResult) !== "success" || !((_b = (_a2 = res == null ? void 0 : res.body) == null ? void 0 : _a2.unsigned) == null ? void 0 : _b.data)) {
|
|
2110
|
+
removeAppDetail();
|
|
2111
|
+
return false;
|
|
2112
|
+
}
|
|
2113
|
+
saveAppDetail(JSON.stringify({
|
|
2114
|
+
appLogo: (_e = (_d = (_c = res == null ? void 0 : res.body) == null ? void 0 : _c.unsigned) == null ? void 0 : _d.data) == null ? void 0 : _e.appLogo,
|
|
2115
|
+
appName: (_h = (_g = (_f = res == null ? void 0 : res.body) == null ? void 0 : _f.unsigned) == null ? void 0 : _g.data) == null ? void 0 : _h.appName,
|
|
2116
|
+
openUrl: (_k = (_j = (_i = res == null ? void 0 : res.body) == null ? void 0 : _i.unsigned) == null ? void 0 : _j.data) == null ? void 0 : _k.openUrl,
|
|
2117
|
+
whiteListDomains: (_n = (_m = (_l = res == null ? void 0 : res.body) == null ? void 0 : _l.unsigned) == null ? void 0 : _m.data) == null ? void 0 : _n.whiteListDomains,
|
|
2118
|
+
isInternal: (_q = (_p = (_o = res == null ? void 0 : res.body) == null ? void 0 : _o.unsigned) == null ? void 0 : _p.data) == null ? void 0 : _q.isInternal,
|
|
2119
|
+
window: (_t = (_s = (_r = res == null ? void 0 : res.body) == null ? void 0 : _r.unsigned) == null ? void 0 : _s.data) == null ? void 0 : _t.window,
|
|
2120
|
+
subdomainCookieSharing: (_w = (_v = (_u = res == null ? void 0 : res.body) == null ? void 0 : _u.unsigned) == null ? void 0 : _v.data) == null ? void 0 : _w.subdomainCookieSharing
|
|
2121
|
+
}));
|
|
2122
|
+
return true;
|
|
2123
|
+
}
|
|
2124
|
+
function getAppDetail() {
|
|
2125
|
+
const json = getAppDetail$1();
|
|
2126
|
+
if (json) {
|
|
2127
|
+
return JSON.parse(json);
|
|
2128
|
+
}
|
|
2129
|
+
return null;
|
|
2130
|
+
}
|
|
2161
2131
|
async function initAppConfiguration() {
|
|
2162
2132
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
2163
2133
|
const res = await ppFetch2({
|
|
@@ -8420,6 +8390,7 @@ const iconNotice = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-notice
|
|
|
8420
8390
|
const iconTopupSuccess = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-auto-topup-success.svg";
|
|
8421
8391
|
const icon3DSecure = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-3d-secure.svg";
|
|
8422
8392
|
const iconArrowRightBlue = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-arrow-right-blue.svg";
|
|
8393
|
+
const iconInfo = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-info.svg";
|
|
8423
8394
|
var images = {
|
|
8424
8395
|
iconBalanceError,
|
|
8425
8396
|
animationDone,
|
|
@@ -8469,7 +8440,8 @@ var images = {
|
|
|
8469
8440
|
iconNotice,
|
|
8470
8441
|
iconTopupSuccess,
|
|
8471
8442
|
icon3DSecure,
|
|
8472
|
-
iconArrowRightBlue
|
|
8443
|
+
iconArrowRightBlue,
|
|
8444
|
+
iconInfo
|
|
8473
8445
|
};
|
|
8474
8446
|
function getImages() {
|
|
8475
8447
|
return images;
|
|
@@ -8595,15 +8567,7 @@ const _sfc_main$1B = defineComponent({
|
|
|
8595
8567
|
this.$emit("close-click");
|
|
8596
8568
|
return;
|
|
8597
8569
|
},
|
|
8598
|
-
getButtonType
|
|
8599
|
-
if (button4.buttonType === UIComponentsButtonType.BLUE || this.onlyButton) {
|
|
8600
|
-
return "primary";
|
|
8601
|
-
} else if (button4.buttonType === UIComponentsButtonType.WHITE) {
|
|
8602
|
-
return "link";
|
|
8603
|
-
} else {
|
|
8604
|
-
return button4.buttonType;
|
|
8605
|
-
}
|
|
8606
|
-
}
|
|
8570
|
+
getButtonType
|
|
8607
8571
|
}
|
|
8608
8572
|
});
|
|
8609
8573
|
const _hoisted_1$U = ["src"];
|
|
@@ -8643,7 +8607,7 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8643
8607
|
return openBlock(), createElementBlock("div", { key: index2 }, [
|
|
8644
8608
|
createVNode(_component_Button, {
|
|
8645
8609
|
block: "",
|
|
8646
|
-
type: _ctx.getButtonType(item2),
|
|
8610
|
+
type: _ctx.getButtonType(item2, _ctx.onlyButton),
|
|
8647
8611
|
onClick: ($event) => _ctx.buttonClick(item2)
|
|
8648
8612
|
}, {
|
|
8649
8613
|
default: withCtx(() => [
|
|
@@ -28892,13 +28856,6 @@ const _sfc_main$$ = defineComponent({
|
|
|
28892
28856
|
close: () => true
|
|
28893
28857
|
},
|
|
28894
28858
|
setup(props, context) {
|
|
28895
|
-
const getButtonType = (type) => {
|
|
28896
|
-
var _a2;
|
|
28897
|
-
if (type === UIComponentsButtonType.BLUE || ((_a2 = buttonList == null ? void 0 : buttonList.value) == null ? void 0 : _a2.length) === 1) {
|
|
28898
|
-
return "primary";
|
|
28899
|
-
}
|
|
28900
|
-
return "link";
|
|
28901
|
-
};
|
|
28902
28859
|
const getBehavior = (buttonInfo) => {
|
|
28903
28860
|
var _a2;
|
|
28904
28861
|
if ((buttonInfo == null ? void 0 : buttonInfo.actionType) === UIComponentsButtonActionType.DEEPLINK) {
|
|
@@ -28925,13 +28882,15 @@ const _sfc_main$$ = defineComponent({
|
|
|
28925
28882
|
return filterErrorButtonList(props.consultInfo.buttonList);
|
|
28926
28883
|
});
|
|
28927
28884
|
return {
|
|
28928
|
-
getButtonType,
|
|
28929
28885
|
getBehavior,
|
|
28930
28886
|
iconUrl: computed(() => props.consultInfo.iconUrl),
|
|
28931
28887
|
title: computed(() => props.consultInfo.title),
|
|
28932
28888
|
description: computed(() => props.consultInfo.description),
|
|
28933
28889
|
buttonList
|
|
28934
28890
|
};
|
|
28891
|
+
},
|
|
28892
|
+
methods: {
|
|
28893
|
+
getButtonType
|
|
28935
28894
|
}
|
|
28936
28895
|
});
|
|
28937
28896
|
const _hoisted_1$z = ["src"];
|
|
@@ -28960,11 +28919,12 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28960
28919
|
], 2),
|
|
28961
28920
|
createBaseVNode("div", null, [
|
|
28962
28921
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonList, (buttonInfo, index2) => {
|
|
28922
|
+
var _a2;
|
|
28963
28923
|
return openBlock(), createBlock(_component_Button, {
|
|
28964
28924
|
key: `${index2}-${buttonInfo.type}`,
|
|
28965
28925
|
"data-testid": "consult-button",
|
|
28966
28926
|
block: "",
|
|
28967
|
-
type: _ctx.getButtonType(buttonInfo.
|
|
28927
|
+
type: _ctx.getButtonType(buttonInfo, ((_a2 = _ctx.buttonList) == null ? void 0 : _a2.length) === 1),
|
|
28968
28928
|
onClick: ($event) => _ctx.getBehavior(buttonInfo)
|
|
28969
28929
|
}, {
|
|
28970
28930
|
default: withCtx(() => [
|
|
@@ -33162,12 +33122,12 @@ const Currency = defineComponent({
|
|
|
33162
33122
|
}, [renderInput()])]);
|
|
33163
33123
|
}
|
|
33164
33124
|
});
|
|
33165
|
-
const bannerInfoContainer = "
|
|
33166
|
-
const bannerInfoIcon = "
|
|
33167
|
-
const bannerDesc = "
|
|
33168
|
-
const bannerTitle = "
|
|
33125
|
+
const bannerInfoContainer = "_bannerInfoContainer_ykpz3_2";
|
|
33126
|
+
const bannerInfoIcon = "_bannerInfoIcon_ykpz3_16";
|
|
33127
|
+
const bannerDesc = "_bannerDesc_ykpz3_20";
|
|
33128
|
+
const bannerTitle = "_bannerTitle_ykpz3_26";
|
|
33169
33129
|
var style0$C = {
|
|
33170
|
-
"ppmna-default-font": "_ppmna-default-
|
|
33130
|
+
"ppmna-default-font": "_ppmna-default-font_ykpz3_1",
|
|
33171
33131
|
bannerInfoContainer,
|
|
33172
33132
|
bannerInfoIcon,
|
|
33173
33133
|
bannerDesc,
|
|
@@ -33209,12 +33169,15 @@ const _sfc_main$L = defineComponent({
|
|
|
33209
33169
|
return (_c = (_b = (_a2 = props == null ? void 0 : props.selectedPaymentMethod) == null ? void 0 : _a2.descriptionBannerInfo) == null ? void 0 : _b.displayResponse) == null ? void 0 : _c.description;
|
|
33210
33170
|
}),
|
|
33211
33171
|
buttonList: computed(() => {
|
|
33212
|
-
var _a2, _b, _c;
|
|
33213
|
-
return (_c = (_b = (_a2 = props == null ? void 0 : props.selectedPaymentMethod) == null ? void 0 : _a2.descriptionBannerInfo) == null ? void 0 : _b.displayResponse) == null ? void 0 : _c.buttonList;
|
|
33172
|
+
var _a2, _b, _c, _d;
|
|
33173
|
+
return filterErrorButtonList((_d = (_c = (_b = (_a2 = props == null ? void 0 : props.selectedPaymentMethod) == null ? void 0 : _a2.descriptionBannerInfo) == null ? void 0 : _b.displayResponse) == null ? void 0 : _c.buttonList) != null ? _d : []);
|
|
33214
33174
|
}),
|
|
33215
33175
|
click,
|
|
33216
33176
|
style
|
|
33217
33177
|
};
|
|
33178
|
+
},
|
|
33179
|
+
methods: {
|
|
33180
|
+
getButtonType
|
|
33218
33181
|
}
|
|
33219
33182
|
});
|
|
33220
33183
|
const _hoisted_1$m = ["src"];
|
|
@@ -33234,12 +33197,13 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33234
33197
|
class: normalizeClass(_ctx.style.bannerDesc)
|
|
33235
33198
|
}, toDisplayString(_ctx.description), 3),
|
|
33236
33199
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonList, (item2, index2) => {
|
|
33200
|
+
var _a2;
|
|
33237
33201
|
return openBlock(), createElementBlock("div", { key: index2 }, [
|
|
33238
33202
|
createVNode(_component_Button, {
|
|
33239
33203
|
name: "listbtn_" + index2,
|
|
33240
33204
|
block: "",
|
|
33241
33205
|
"tab-index": index2,
|
|
33242
|
-
type: item2.
|
|
33206
|
+
type: _ctx.getButtonType(item2, ((_a2 = _ctx.buttonList) == null ? void 0 : _a2.length) === 1),
|
|
33243
33207
|
onClick: ($event) => _ctx.click(item2, index2)
|
|
33244
33208
|
}, {
|
|
33245
33209
|
default: withCtx(() => [
|
|
@@ -34385,11 +34349,19 @@ async function execute$a(params) {
|
|
|
34385
34349
|
return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
34386
34350
|
}
|
|
34387
34351
|
}
|
|
34388
|
-
function scanCode(
|
|
34352
|
+
function scanCode(params) {
|
|
34353
|
+
var _a2, _b;
|
|
34389
34354
|
if (isPayPayMiniApp()) {
|
|
34355
|
+
const clientId = getClientId();
|
|
34356
|
+
if (!clientId) {
|
|
34357
|
+
(_a2 = params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.sdkNotInitialized });
|
|
34358
|
+
return;
|
|
34359
|
+
}
|
|
34360
|
+
const redirectUrlOnCancel = (_b = params == null ? void 0 : params.redirectUrlOnCancel) != null ? _b : window.location.href;
|
|
34361
|
+
const deeplink = `paypay://miniapp?appId=${clientId}&redirectUrl=${encodeURIComponent(redirectUrlOnCancel)}&closeCurrentScreen=true`;
|
|
34390
34362
|
closeApp({
|
|
34391
34363
|
options: {
|
|
34392
|
-
deeplink:
|
|
34364
|
+
deeplink: `paypay://scan?callbackdeeplink=${encodeURIComponent(deeplink)}`
|
|
34393
34365
|
}
|
|
34394
34366
|
});
|
|
34395
34367
|
} else {
|
|
@@ -35469,7 +35441,7 @@ function debug(params) {
|
|
|
35469
35441
|
function execute$6(params) {
|
|
35470
35442
|
var _a2;
|
|
35471
35443
|
(_a2 = params == null ? void 0 : params.success) == null ? void 0 : _a2.call(params, {
|
|
35472
|
-
v: "1.
|
|
35444
|
+
v: "1.55.0"
|
|
35473
35445
|
});
|
|
35474
35446
|
}
|
|
35475
35447
|
function useCallBack(props, ctx) {
|
|
@@ -37045,11 +37017,14 @@ const registerPaymentFeatures$1 = {
|
|
|
37045
37017
|
message: "To use Auto Charge, \nplease update the application \nto the latest version",
|
|
37046
37018
|
update: "Update app",
|
|
37047
37019
|
cancel: "Don't do it now"
|
|
37048
|
-
}
|
|
37020
|
+
},
|
|
37021
|
+
eMoneyOnly: "Top-up from bank account only",
|
|
37022
|
+
topupNoticeEmoneyOnlyTitle: "Choose Top-Up from Bank Account",
|
|
37023
|
+
topupNoticeEmoneyOnlyDesc: "You need to use PayPay Money to pay at this store. Top up from a bank account to use PayPay Money."
|
|
37049
37024
|
},
|
|
37050
37025
|
autoTopupRootFooter: {
|
|
37051
37026
|
enable: "Enable",
|
|
37052
|
-
notice: "
|
|
37027
|
+
notice: "Settings apply to all PayPay payments\nAfter completing the settings, return to the mini app you are using.",
|
|
37053
37028
|
notNow: "Not now"
|
|
37054
37029
|
},
|
|
37055
37030
|
amountChange: {
|
|
@@ -38691,12 +38666,12 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38691
38666
|
const cssModules$k = {};
|
|
38692
38667
|
cssModules$k["$style"] = style0$k;
|
|
38693
38668
|
var RegisterUserInfoCategoryView = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__cssModules", cssModules$k]]);
|
|
38694
|
-
const container$6 = "
|
|
38695
|
-
const text$1 = "
|
|
38696
|
-
const buttonRow = "
|
|
38697
|
-
const back = "
|
|
38698
|
-
const next = "
|
|
38699
|
-
const cancel$1 = "
|
|
38669
|
+
const container$6 = "_container_on600_1";
|
|
38670
|
+
const text$1 = "_text_on600_4";
|
|
38671
|
+
const buttonRow = "_buttonRow_on600_9";
|
|
38672
|
+
const back = "_back_on600_15";
|
|
38673
|
+
const next = "_next_on600_26";
|
|
38674
|
+
const cancel$1 = "_cancel_on600_41";
|
|
38700
38675
|
var style0$j = {
|
|
38701
38676
|
container: container$6,
|
|
38702
38677
|
text: text$1,
|
|
@@ -39543,13 +39518,11 @@ function execute$1(params) {
|
|
|
39543
39518
|
(_b = params == null ? void 0 : params.complete) == null ? void 0 : _b.call(params);
|
|
39544
39519
|
}
|
|
39545
39520
|
}
|
|
39546
|
-
function getTopupConfiguration() {
|
|
39521
|
+
function getTopupConfiguration(params) {
|
|
39547
39522
|
return ppFetch2({
|
|
39548
39523
|
method: "GET",
|
|
39549
39524
|
url: "web-api/app/v1/users/autoTopupConfiguration",
|
|
39550
|
-
params
|
|
39551
|
-
includePaymentMethodList: true
|
|
39552
|
-
}
|
|
39525
|
+
params
|
|
39553
39526
|
});
|
|
39554
39527
|
}
|
|
39555
39528
|
function updatePreTransactionAutoTopupConfiguration(params) {
|
|
@@ -39572,7 +39545,8 @@ function getConsultPaymentFeature(params) {
|
|
|
39572
39545
|
url: "web-api/app/v1/users/consultPaymentFeature",
|
|
39573
39546
|
params: {
|
|
39574
39547
|
paymentFeatureType: params.paymentFeatureType,
|
|
39575
|
-
merchant: params == null ? void 0 : params.merchant
|
|
39548
|
+
merchant: params == null ? void 0 : params.merchant,
|
|
39549
|
+
productType: params == null ? void 0 : params.productType
|
|
39576
39550
|
}
|
|
39577
39551
|
});
|
|
39578
39552
|
}
|
|
@@ -39630,7 +39604,10 @@ const useRegisterPaymentFeaturesStore = defineStore("registerPaymentFeatures", {
|
|
|
39630
39604
|
},
|
|
39631
39605
|
errorSheet: {
|
|
39632
39606
|
isVisible: false
|
|
39633
|
-
}
|
|
39607
|
+
},
|
|
39608
|
+
isEmoneyOnly: false,
|
|
39609
|
+
showEmoneyOnlyNotice: false,
|
|
39610
|
+
ptacPaymentMethodId: void 0
|
|
39634
39611
|
};
|
|
39635
39612
|
},
|
|
39636
39613
|
getters: {
|
|
@@ -39690,18 +39667,27 @@ const useRegisterPaymentFeaturesStore = defineStore("registerPaymentFeatures", {
|
|
|
39690
39667
|
this.minimumTopupAmount = payload.amount;
|
|
39691
39668
|
},
|
|
39692
39669
|
selectPaymentMethod(payload) {
|
|
39670
|
+
var _a2;
|
|
39693
39671
|
this.selectedPaymentMethodInfo = this.availablePaymentMethodList ? this.availablePaymentMethodList[payload.paymentIndex] : void 0;
|
|
39672
|
+
if (((_a2 = this.selectedPaymentMethodInfo) == null ? void 0 : _a2.paymentMethodId) !== this.ptacPaymentMethodId && this.isEmoneyOnly) {
|
|
39673
|
+
this.showEmoneyOnlyNotice = false;
|
|
39674
|
+
}
|
|
39694
39675
|
},
|
|
39695
|
-
async initialize(
|
|
39676
|
+
async initialize(isEmoneyOnly, needUpdate, merchant2, productType) {
|
|
39696
39677
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
39697
|
-
|
|
39698
|
-
if (!isAvailablePreTransactionAutoTopup) {
|
|
39678
|
+
if (needUpdate) {
|
|
39699
39679
|
this.needUpdate = true;
|
|
39700
39680
|
this.renderRoot = true;
|
|
39701
39681
|
this.openSetting();
|
|
39702
39682
|
return;
|
|
39703
39683
|
}
|
|
39704
|
-
|
|
39684
|
+
this.isEmoneyOnly = isEmoneyOnly;
|
|
39685
|
+
const topupConfigParams = {
|
|
39686
|
+
includePaymentMethodList: true,
|
|
39687
|
+
merchant: merchant2,
|
|
39688
|
+
productType
|
|
39689
|
+
};
|
|
39690
|
+
const response = await getTopupConfiguration(topupConfigParams);
|
|
39705
39691
|
if (response.ppFetchResult !== "success") {
|
|
39706
39692
|
this.handleErrorResponse(response);
|
|
39707
39693
|
return;
|
|
@@ -39709,38 +39695,16 @@ const useRegisterPaymentFeaturesStore = defineStore("registerPaymentFeatures", {
|
|
|
39709
39695
|
const config2 = (_b = (_a2 = response.body) == null ? void 0 : _a2.unsigned) == null ? void 0 : _b.data;
|
|
39710
39696
|
this.mode = getTopupSettingMode(config2);
|
|
39711
39697
|
if (this.mode === AutoTopupModeType.PRE_AUTO_TOPUP) {
|
|
39712
|
-
|
|
39713
|
-
|
|
39714
|
-
|
|
39715
|
-
|
|
39716
|
-
|
|
39717
|
-
|
|
39718
|
-
|
|
39719
|
-
|
|
39720
|
-
const consultResponse = await getConsultPaymentFeature(params);
|
|
39721
|
-
if (consultResponse.ppFetchResult !== "success") {
|
|
39722
|
-
this.handleErrorResponse(consultResponse);
|
|
39723
|
-
return;
|
|
39724
|
-
}
|
|
39725
|
-
const nextAction = (_e = (_d = (_c = consultResponse.body) == null ? void 0 : _c.unsigned) == null ? void 0 : _d.data) == null ? void 0 : _e.nextAction;
|
|
39726
|
-
if (nextAction === ConsultPaymentFeatureTypes.PRE_TRANSACTION_AUTO_CHARGE) {
|
|
39727
|
-
await this.showAddBankUI();
|
|
39728
|
-
return;
|
|
39698
|
+
this.ptacPaymentMethodId = (_c = config2.preTransactionAutoTopupConfiguration) == null ? void 0 : _c.paymentMethodId;
|
|
39699
|
+
this.paymentMethodList = (_d = config2.paymentMethodList) != null ? _d : [];
|
|
39700
|
+
this.minimumTopupAmount = (_e = config2.preTransactionAutoTopupConfiguration) == null ? void 0 : _e.minimumTopupAmount;
|
|
39701
|
+
if (((_f = this.paymentMethodList) == null ? void 0 : _f.length) > 0 && this.existActivatedMethod) {
|
|
39702
|
+
this.selectedPaymentMethodInfo = config2.preTransactionAutoTopupPaymentMethod;
|
|
39703
|
+
const isMethodAvailableInList = (_g = this.paymentMethodList) == null ? void 0 : _g.find((element) => element.paymentMethodId === this.ptacPaymentMethodId);
|
|
39704
|
+
if (!isMethodAvailableInList && this.isEmoneyOnly) {
|
|
39705
|
+
this.showEmoneyOnlyNotice = true;
|
|
39729
39706
|
}
|
|
39730
39707
|
}
|
|
39731
|
-
this.paymentMethodList = config2.paymentMethodList;
|
|
39732
|
-
this.minimumTopupAmount = (_f = config2.preTransactionAutoTopupConfiguration) == null ? void 0 : _f.minimumTopupAmount;
|
|
39733
|
-
this.selectedPaymentMethodInfo = (_g = this.paymentMethodList) == null ? void 0 : _g.find((element) => {
|
|
39734
|
-
var _a3;
|
|
39735
|
-
return element.paymentMethodId === ((_a3 = config2.preTransactionAutoTopupConfiguration) == null ? void 0 : _a3.paymentMethodId);
|
|
39736
|
-
});
|
|
39737
|
-
if (this.selectedAvailableTopupMethod) {
|
|
39738
|
-
this.isFinishSetting = true;
|
|
39739
|
-
this.result = {
|
|
39740
|
-
type: "success"
|
|
39741
|
-
};
|
|
39742
|
-
return;
|
|
39743
|
-
}
|
|
39744
39708
|
}
|
|
39745
39709
|
const appConfig = await this.initAppConfig();
|
|
39746
39710
|
if (!appConfig) {
|
|
@@ -39883,7 +39847,7 @@ const useRegisterPaymentFeaturesStore = defineStore("registerPaymentFeatures", {
|
|
|
39883
39847
|
}
|
|
39884
39848
|
},
|
|
39885
39849
|
selectTopupMethodSetting() {
|
|
39886
|
-
if (this.
|
|
39850
|
+
if (this.existActivatedMethod) {
|
|
39887
39851
|
this.openChooseTopupMethodSheet();
|
|
39888
39852
|
} else {
|
|
39889
39853
|
this.openTopupMethodSetting();
|
|
@@ -39988,7 +39952,7 @@ function getTopupSettingMode(config2) {
|
|
|
39988
39952
|
}
|
|
39989
39953
|
return AutoTopupModeType.UNREGISTERED;
|
|
39990
39954
|
}
|
|
39991
|
-
const container$2 = "
|
|
39955
|
+
const container$2 = "_container_1fgx4_1";
|
|
39992
39956
|
var style0$c = {
|
|
39993
39957
|
container: container$2
|
|
39994
39958
|
};
|
|
@@ -40011,7 +39975,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40011
39975
|
class: normalizeClass(_ctx.$style.container)
|
|
40012
39976
|
}, [
|
|
40013
39977
|
createVNode(_component_Button, {
|
|
40014
|
-
type: "
|
|
39978
|
+
type: "outLined",
|
|
40015
39979
|
block: "",
|
|
40016
39980
|
onClick: _ctx.store.cancelSetting
|
|
40017
39981
|
}, {
|
|
@@ -40025,9 +39989,9 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40025
39989
|
const cssModules$c = {};
|
|
40026
39990
|
cssModules$c["$style"] = style0$c;
|
|
40027
39991
|
var RegisterPaymentFeaturesFooterView = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__cssModules", cssModules$c]]);
|
|
40028
|
-
const container$1 = "
|
|
40029
|
-
const description$7 = "
|
|
40030
|
-
const enable = "
|
|
39992
|
+
const container$1 = "_container_zhmhg_1";
|
|
39993
|
+
const description$7 = "_description_zhmhg_6";
|
|
39994
|
+
const enable = "_enable_zhmhg_16";
|
|
40031
39995
|
var style0$b = {
|
|
40032
39996
|
container: container$1,
|
|
40033
39997
|
description: description$7,
|
|
@@ -40051,12 +40015,16 @@ const _sfc_main$d = defineComponent({
|
|
|
40051
40015
|
loading2.value = false;
|
|
40052
40016
|
});
|
|
40053
40017
|
};
|
|
40018
|
+
const showEmoneyOnlyNotice = computed(() => {
|
|
40019
|
+
return store.showEmoneyOnlyNotice;
|
|
40020
|
+
});
|
|
40054
40021
|
return {
|
|
40055
40022
|
lg: getLanguage().registerPaymentFeatures.autoTopupRootFooter,
|
|
40056
40023
|
close,
|
|
40057
40024
|
enable: enable2,
|
|
40058
40025
|
loading: loading2,
|
|
40059
|
-
store
|
|
40026
|
+
store,
|
|
40027
|
+
showEmoneyOnlyNotice
|
|
40060
40028
|
};
|
|
40061
40029
|
}
|
|
40062
40030
|
});
|
|
@@ -40073,7 +40041,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40073
40041
|
block: "",
|
|
40074
40042
|
class: normalizeClass(_ctx.$style.enable),
|
|
40075
40043
|
loading: _ctx.loading,
|
|
40076
|
-
disabled: _ctx.loading,
|
|
40044
|
+
disabled: _ctx.loading || _ctx.showEmoneyOnlyNotice,
|
|
40077
40045
|
onClick: _ctx.enable
|
|
40078
40046
|
}, {
|
|
40079
40047
|
default: withCtx(() => [
|
|
@@ -40155,17 +40123,21 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40155
40123
|
const cssModules$a = {};
|
|
40156
40124
|
cssModules$a["$style"] = style0$a;
|
|
40157
40125
|
var RegisterPaymentFeaturesFooterUpdateWarning = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__cssModules", cssModules$a]]);
|
|
40158
|
-
const method = "
|
|
40159
|
-
const icon$7 = "
|
|
40160
|
-
const bankIcon = "
|
|
40161
|
-
const text = "
|
|
40162
|
-
const
|
|
40126
|
+
const method = "_method_tc4a7_1";
|
|
40127
|
+
const icon$7 = "_icon_tc4a7_10";
|
|
40128
|
+
const bankIcon = "_bankIcon_tc4a7_13";
|
|
40129
|
+
const text = "_text_tc4a7_16";
|
|
40130
|
+
const eMoneyOnly = "_eMoneyOnly_tc4a7_24";
|
|
40131
|
+
const bankInfo = "_bankInfo_tc4a7_34";
|
|
40132
|
+
const eMoneyOnlyMethod = "_eMoneyOnlyMethod_tc4a7_37";
|
|
40163
40133
|
var style0$9 = {
|
|
40164
40134
|
method,
|
|
40165
40135
|
icon: icon$7,
|
|
40166
40136
|
bankIcon,
|
|
40167
40137
|
text,
|
|
40168
|
-
|
|
40138
|
+
eMoneyOnly,
|
|
40139
|
+
bankInfo,
|
|
40140
|
+
eMoneyOnlyMethod
|
|
40169
40141
|
};
|
|
40170
40142
|
const _sfc_main$b = defineComponent({
|
|
40171
40143
|
name: "AutoTopupMethod",
|
|
@@ -40217,6 +40189,12 @@ const _sfc_main$b = defineComponent({
|
|
|
40217
40189
|
const onSelectTopupMethodSetting = () => {
|
|
40218
40190
|
emit("settingTopupMethod");
|
|
40219
40191
|
};
|
|
40192
|
+
const isEmoneyOnly = computed(() => {
|
|
40193
|
+
return store.isEmoneyOnly;
|
|
40194
|
+
});
|
|
40195
|
+
const showEmoneyOnlyNotice = computed(() => {
|
|
40196
|
+
return store.showEmoneyOnlyNotice;
|
|
40197
|
+
});
|
|
40220
40198
|
return {
|
|
40221
40199
|
lg: getLanguage().registerPaymentFeatures.autoTopupRoot,
|
|
40222
40200
|
images: getImages(),
|
|
@@ -40226,7 +40204,9 @@ const _sfc_main$b = defineComponent({
|
|
|
40226
40204
|
onSelectTopupMethodSetting,
|
|
40227
40205
|
store,
|
|
40228
40206
|
sbidMethod,
|
|
40229
|
-
payLaterCcMethod
|
|
40207
|
+
payLaterCcMethod,
|
|
40208
|
+
isEmoneyOnly,
|
|
40209
|
+
showEmoneyOnlyNotice
|
|
40230
40210
|
};
|
|
40231
40211
|
}
|
|
40232
40212
|
});
|
|
@@ -40257,7 +40237,11 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40257
40237
|
}, [
|
|
40258
40238
|
_ctx.bankMethod ? (openBlock(), createElementBlock("div", {
|
|
40259
40239
|
key: 0,
|
|
40260
|
-
class: normalizeClass([
|
|
40240
|
+
class: normalizeClass([
|
|
40241
|
+
_ctx.$style.method,
|
|
40242
|
+
_ctx.$style.bankInfo,
|
|
40243
|
+
{ [_ctx.$style.eMoneyOnlyMethod]: _ctx.showEmoneyOnlyNotice }
|
|
40244
|
+
])
|
|
40261
40245
|
}, [
|
|
40262
40246
|
createVNode(_component_Bank, {
|
|
40263
40247
|
bank: _ctx.bankMethod,
|
|
@@ -40270,7 +40254,11 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40270
40254
|
], 2)) : createCommentVNode("", true),
|
|
40271
40255
|
_ctx.creditMethod ? (openBlock(), createElementBlock("div", {
|
|
40272
40256
|
key: 1,
|
|
40273
|
-
class: normalizeClass([
|
|
40257
|
+
class: normalizeClass([
|
|
40258
|
+
_ctx.$style.method,
|
|
40259
|
+
_ctx.$style.bankInfo,
|
|
40260
|
+
{ [_ctx.$style.eMoneyOnlyMethod]: _ctx.showEmoneyOnlyNotice }
|
|
40261
|
+
])
|
|
40274
40262
|
}, [
|
|
40275
40263
|
createVNode(_component_CreditCard, { credit: _ctx.creditMethod }, null, 8, ["credit"]),
|
|
40276
40264
|
createBaseVNode("img", {
|
|
@@ -40280,7 +40268,11 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40280
40268
|
], 2)) : createCommentVNode("", true),
|
|
40281
40269
|
_ctx.sbidMethod ? (openBlock(), createElementBlock("div", {
|
|
40282
40270
|
key: 2,
|
|
40283
|
-
class: normalizeClass([
|
|
40271
|
+
class: normalizeClass([
|
|
40272
|
+
_ctx.$style.method,
|
|
40273
|
+
_ctx.$style.bankInfo,
|
|
40274
|
+
{ [_ctx.$style.eMoneyOnlyMethod]: _ctx.showEmoneyOnlyNotice }
|
|
40275
|
+
])
|
|
40284
40276
|
}, [
|
|
40285
40277
|
createVNode(_component_SbidBank, { sbid: _ctx.sbidMethod }, null, 8, ["sbid"]),
|
|
40286
40278
|
createBaseVNode("img", {
|
|
@@ -40290,7 +40282,11 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40290
40282
|
], 2)) : createCommentVNode("", true),
|
|
40291
40283
|
_ctx.payLaterCcMethod ? (openBlock(), createElementBlock("div", {
|
|
40292
40284
|
key: 3,
|
|
40293
|
-
class: normalizeClass([
|
|
40285
|
+
class: normalizeClass([
|
|
40286
|
+
_ctx.$style.method,
|
|
40287
|
+
_ctx.$style.bankInfo,
|
|
40288
|
+
{ [_ctx.$style.eMoneyOnlyMethod]: _ctx.showEmoneyOnlyNotice }
|
|
40289
|
+
])
|
|
40294
40290
|
}, [
|
|
40295
40291
|
createVNode(_component_PayLaterCC, { "pay-later": _ctx.payLaterCcMethod }, null, 8, ["pay-later"]),
|
|
40296
40292
|
createBaseVNode("img", {
|
|
@@ -40313,14 +40309,20 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40313
40309
|
alt: ""
|
|
40314
40310
|
}, null, 10, _hoisted_5)
|
|
40315
40311
|
], 2),
|
|
40316
|
-
createBaseVNode("
|
|
40317
|
-
|
|
40318
|
-
|
|
40319
|
-
|
|
40320
|
-
|
|
40312
|
+
createBaseVNode("div", null, [
|
|
40313
|
+
createBaseVNode("p", {
|
|
40314
|
+
class: normalizeClass(_ctx.$style.text)
|
|
40315
|
+
}, [
|
|
40316
|
+
_ctx.store.isEmptyPaymentMethodList ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(_ctx.lg.addTopupMethod), 1)) : (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(_ctx.lg.noActivatedTopupMethod), 1))
|
|
40317
|
+
], 2),
|
|
40318
|
+
_ctx.isEmoneyOnly ? (openBlock(), createElementBlock("p", {
|
|
40319
|
+
key: 0,
|
|
40320
|
+
class: normalizeClass(_ctx.$style.eMoneyOnly)
|
|
40321
|
+
}, toDisplayString(_ctx.lg.eMoneyOnly), 3)) : createCommentVNode("", true)
|
|
40322
|
+
]),
|
|
40321
40323
|
createBaseVNode("img", {
|
|
40322
40324
|
class: normalizeClass(_ctx.$style.icon),
|
|
40323
|
-
src: _ctx.images.
|
|
40325
|
+
src: _ctx.images.iconArrowRightBlue
|
|
40324
40326
|
}, null, 10, _hoisted_8)
|
|
40325
40327
|
], 2))
|
|
40326
40328
|
]);
|
|
@@ -40328,23 +40330,26 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40328
40330
|
const cssModules$9 = {};
|
|
40329
40331
|
cssModules$9["$style"] = style0$9;
|
|
40330
40332
|
var AutoTopupMethod = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__cssModules", cssModules$9]]);
|
|
40331
|
-
const container = "
|
|
40332
|
-
const mainContents = "
|
|
40333
|
-
const section = "
|
|
40334
|
-
const main = "
|
|
40335
|
-
const icon$6 = "
|
|
40336
|
-
const title$5 = "
|
|
40337
|
-
const description$6 = "
|
|
40338
|
-
const config = "
|
|
40339
|
-
const item = "
|
|
40340
|
-
const label = "
|
|
40341
|
-
const contents$5 = "
|
|
40342
|
-
const inner$5 = "
|
|
40343
|
-
const price = "
|
|
40344
|
-
const amount = "
|
|
40345
|
-
const unit$1 = "
|
|
40346
|
-
const notice = "
|
|
40347
|
-
const
|
|
40333
|
+
const container = "_container_rj0l8_1";
|
|
40334
|
+
const mainContents = "_mainContents_rj0l8_7";
|
|
40335
|
+
const section = "_section_rj0l8_13";
|
|
40336
|
+
const main = "_main_rj0l8_7";
|
|
40337
|
+
const icon$6 = "_icon_rj0l8_21";
|
|
40338
|
+
const title$5 = "_title_rj0l8_25";
|
|
40339
|
+
const description$6 = "_description_rj0l8_32";
|
|
40340
|
+
const config = "_config_rj0l8_42";
|
|
40341
|
+
const item = "_item_rj0l8_47";
|
|
40342
|
+
const label = "_label_rj0l8_57";
|
|
40343
|
+
const contents$5 = "_contents_rj0l8_61";
|
|
40344
|
+
const inner$5 = "_inner_rj0l8_61";
|
|
40345
|
+
const price = "_price_rj0l8_67";
|
|
40346
|
+
const amount = "_amount_rj0l8_72";
|
|
40347
|
+
const unit$1 = "_unit_rj0l8_77";
|
|
40348
|
+
const notice = "_notice_rj0l8_82";
|
|
40349
|
+
const eMoneyOnlyNotice = "_eMoneyOnlyNotice_rj0l8_103";
|
|
40350
|
+
const noticeTitle = "_noticeTitle_rj0l8_107";
|
|
40351
|
+
const noticeDesc = "_noticeDesc_rj0l8_111";
|
|
40352
|
+
const updateMessage = "_updateMessage_rj0l8_114";
|
|
40348
40353
|
var style0$8 = {
|
|
40349
40354
|
container,
|
|
40350
40355
|
mainContents,
|
|
@@ -40362,6 +40367,9 @@ var style0$8 = {
|
|
|
40362
40367
|
amount,
|
|
40363
40368
|
unit: unit$1,
|
|
40364
40369
|
notice,
|
|
40370
|
+
eMoneyOnlyNotice,
|
|
40371
|
+
noticeTitle,
|
|
40372
|
+
noticeDesc,
|
|
40365
40373
|
updateMessage
|
|
40366
40374
|
};
|
|
40367
40375
|
const _sfc_main$a = defineComponent({
|
|
@@ -40400,6 +40408,9 @@ const _sfc_main$a = defineComponent({
|
|
|
40400
40408
|
const title2 = computed(() => {
|
|
40401
40409
|
return store.needUpdate ? lg2.titleNeedUpdate : lg2.title;
|
|
40402
40410
|
});
|
|
40411
|
+
const showEmoneyOnlyNotice = computed(() => {
|
|
40412
|
+
return store.showEmoneyOnlyNotice;
|
|
40413
|
+
});
|
|
40403
40414
|
return {
|
|
40404
40415
|
topupAmount: topupAmount2,
|
|
40405
40416
|
images: getImages(),
|
|
@@ -40412,7 +40423,8 @@ const _sfc_main$a = defineComponent({
|
|
|
40412
40423
|
onSelectTopupAmount,
|
|
40413
40424
|
categoryStyle,
|
|
40414
40425
|
containerStyle,
|
|
40415
|
-
title: title2
|
|
40426
|
+
title: title2,
|
|
40427
|
+
showEmoneyOnlyNotice
|
|
40416
40428
|
};
|
|
40417
40429
|
}
|
|
40418
40430
|
});
|
|
@@ -40495,19 +40507,30 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40495
40507
|
}, null, 8, ["topup-method", "onSelectTopupMethod", "onSettingTopupMethod"])
|
|
40496
40508
|
]),
|
|
40497
40509
|
createBaseVNode("div", {
|
|
40498
|
-
class: normalizeClass(
|
|
40510
|
+
class: normalizeClass([
|
|
40511
|
+
_ctx.$style.notice,
|
|
40512
|
+
{ [_ctx.$style.eMoneyOnlyNotice]: _ctx.showEmoneyOnlyNotice }
|
|
40513
|
+
])
|
|
40499
40514
|
}, [
|
|
40500
40515
|
createBaseVNode("div", {
|
|
40501
40516
|
class: normalizeClass(_ctx.$style.icon)
|
|
40502
40517
|
}, [
|
|
40503
40518
|
createBaseVNode("img", {
|
|
40504
|
-
src: _ctx.images.iconNotice,
|
|
40519
|
+
src: _ctx.showEmoneyOnlyNotice ? _ctx.images.iconInfo : _ctx.images.iconNotice,
|
|
40505
40520
|
alt: ""
|
|
40506
40521
|
}, null, 8, _hoisted_3)
|
|
40507
40522
|
], 2),
|
|
40508
40523
|
createBaseVNode("div", {
|
|
40509
40524
|
class: normalizeClass(_ctx.$style.contents)
|
|
40510
|
-
},
|
|
40525
|
+
}, [
|
|
40526
|
+
_ctx.showEmoneyOnlyNotice ? (openBlock(), createElementBlock("p", {
|
|
40527
|
+
key: 0,
|
|
40528
|
+
class: normalizeClass(_ctx.$style.noticeTitle)
|
|
40529
|
+
}, toDisplayString(_ctx.lg.topupNoticeEmoneyOnlyTitle), 3)) : createCommentVNode("", true),
|
|
40530
|
+
createBaseVNode("p", {
|
|
40531
|
+
class: normalizeClass(_ctx.$style.noticeDesc)
|
|
40532
|
+
}, toDisplayString(_ctx.showEmoneyOnlyNotice ? _ctx.lg.topupNoticeEmoneyOnlyDesc : _ctx.lg.topupNotice), 3)
|
|
40533
|
+
], 2)
|
|
40511
40534
|
], 2)
|
|
40512
40535
|
], 2)) : (openBlock(), createElementBlock("div", {
|
|
40513
40536
|
key: 1,
|
|
@@ -41189,6 +41212,16 @@ const _sfc_main$1 = defineComponent({
|
|
|
41189
41212
|
params: {
|
|
41190
41213
|
type: Object,
|
|
41191
41214
|
required: true
|
|
41215
|
+
},
|
|
41216
|
+
isEmoneyOnly: {
|
|
41217
|
+
type: Boolean,
|
|
41218
|
+
default: false,
|
|
41219
|
+
required: false
|
|
41220
|
+
},
|
|
41221
|
+
needUpdate: {
|
|
41222
|
+
type: Boolean,
|
|
41223
|
+
default: false,
|
|
41224
|
+
required: false
|
|
41192
41225
|
}
|
|
41193
41226
|
},
|
|
41194
41227
|
emits: {
|
|
@@ -41198,7 +41231,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
41198
41231
|
var _a2, _b;
|
|
41199
41232
|
const lg2 = getLanguage().registerPaymentFeatures.autoTopupRoot;
|
|
41200
41233
|
const store = useRegisterPaymentFeaturesStore();
|
|
41201
|
-
store.initialize((_a2 = props.params) == null ? void 0 : _a2.
|
|
41234
|
+
store.initialize(props.isEmoneyOnly, props.needUpdate, (_a2 = props.params) == null ? void 0 : _a2.merchant, (_b = props.params) == null ? void 0 : _b.productType).catch(() => {
|
|
41202
41235
|
});
|
|
41203
41236
|
const complete = () => {
|
|
41204
41237
|
var _a3, _b2;
|
|
@@ -41389,6 +41422,7 @@ const cssModules = {};
|
|
|
41389
41422
|
cssModules["$style"] = style0;
|
|
41390
41423
|
var FallbackMethodAppUpdateWarning = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__cssModules", cssModules]]);
|
|
41391
41424
|
const MinVersion = {
|
|
41425
|
+
PRE_TRANSACTION_AUTO_CHARGE: "3.43.0",
|
|
41392
41426
|
FALLBACK_PAYMENT_METHOD: "3.61.0"
|
|
41393
41427
|
};
|
|
41394
41428
|
function checkIfValidInput(params) {
|
|
@@ -41412,59 +41446,46 @@ function registerPaymentFeatures(params) {
|
|
|
41412
41446
|
(_b = params.complete) == null ? void 0 : _b.call(params);
|
|
41413
41447
|
return;
|
|
41414
41448
|
}
|
|
41415
|
-
|
|
41416
|
-
|
|
41417
|
-
} else if (params.paymentFeatureType === PaymentFeatureTypes.FALLBACK_PAYMENT_METHOD) {
|
|
41418
|
-
checkVersionAndHandleCallback(params, () => {
|
|
41419
|
-
consultPaymentFeatureType(params, true).catch(() => {
|
|
41420
|
-
});
|
|
41421
|
-
});
|
|
41422
|
-
} else {
|
|
41423
|
-
consultPaymentFeatureType(params).catch(() => {
|
|
41424
|
-
});
|
|
41425
|
-
}
|
|
41449
|
+
consultPaymentFeatureType(params).catch(() => {
|
|
41450
|
+
});
|
|
41426
41451
|
}
|
|
41427
|
-
async function consultPaymentFeatureType(params
|
|
41452
|
+
async function consultPaymentFeatureType(params) {
|
|
41428
41453
|
var _a2, _b;
|
|
41429
41454
|
const consultResponse = await getConsultPaymentFeatureAction(params);
|
|
41430
41455
|
if (!consultResponse) {
|
|
41431
41456
|
return;
|
|
41432
41457
|
}
|
|
41433
|
-
if (consultResponse === ConsultPaymentFeatureTypes.NONE) {
|
|
41458
|
+
if (consultResponse.nextAction === ConsultPaymentFeatureTypes.NONE) {
|
|
41434
41459
|
(_a2 = params == null ? void 0 : params.success) == null ? void 0 : _a2.call(params);
|
|
41435
41460
|
(_b = params == null ? void 0 : params.complete) == null ? void 0 : _b.call(params);
|
|
41436
|
-
} else if (consultResponse === ConsultPaymentFeatureTypes.PRE_TRANSACTION_AUTO_CHARGE) {
|
|
41437
|
-
|
|
41438
|
-
|
|
41439
|
-
|
|
41461
|
+
} else if (consultResponse.nextAction === ConsultPaymentFeatureTypes.PRE_TRANSACTION_AUTO_CHARGE) {
|
|
41462
|
+
const isMethodSupported = checkVersion(MinVersion.PRE_TRANSACTION_AUTO_CHARGE);
|
|
41463
|
+
const props = {
|
|
41464
|
+
isEmoneyOnly: consultResponse.isEmoneyOnly,
|
|
41465
|
+
needUpdate: !isMethodSupported
|
|
41466
|
+
};
|
|
41467
|
+
mountUIComponent(params, RegisterPaymentFeaturesRootView, props);
|
|
41468
|
+
} else if (consultResponse.nextAction === ConsultPaymentFeatureTypes.FALLBACK_PAYMENT_METHOD) {
|
|
41469
|
+
const isMethodSupported = checkVersion(MinVersion.FALLBACK_PAYMENT_METHOD);
|
|
41470
|
+
if (isMethodSupported) {
|
|
41440
41471
|
triggerFallbackPaymentMethod(params);
|
|
41441
41472
|
} else {
|
|
41442
|
-
|
|
41443
|
-
triggerFallbackPaymentMethod(params);
|
|
41444
|
-
});
|
|
41473
|
+
mountUIComponent(params, FallbackMethodAppUpdateWarning);
|
|
41445
41474
|
}
|
|
41446
41475
|
} else {
|
|
41447
41476
|
triggerFailCallback(params, MiniAppErrorType.unknown);
|
|
41448
41477
|
}
|
|
41449
41478
|
}
|
|
41450
|
-
function
|
|
41451
|
-
const isFallbackMethodSupported = checkVersion(MinVersion.FALLBACK_PAYMENT_METHOD);
|
|
41452
|
-
if (!isFallbackMethodSupported) {
|
|
41453
|
-
mountUIComponent(params, FallbackMethodAppUpdateWarning);
|
|
41454
|
-
} else {
|
|
41455
|
-
callback();
|
|
41456
|
-
}
|
|
41457
|
-
}
|
|
41458
|
-
function mountUIComponent(params, component) {
|
|
41479
|
+
function mountUIComponent(params, component, props) {
|
|
41459
41480
|
const container2 = document.createElement("div");
|
|
41460
41481
|
container2.className = "ppmna-reset-css";
|
|
41461
|
-
const app = createApp(component, {
|
|
41482
|
+
const app = createApp(component, __spreadValues({
|
|
41462
41483
|
onComplete: () => {
|
|
41463
41484
|
app.unmount();
|
|
41464
41485
|
document.body.removeChild(container2);
|
|
41465
41486
|
},
|
|
41466
41487
|
params
|
|
41467
|
-
});
|
|
41488
|
+
}, props));
|
|
41468
41489
|
app.use(createPinia());
|
|
41469
41490
|
app.directive(HORIZONTAL_SCROLL_KEY, useHorizontalScrollDirective);
|
|
41470
41491
|
app.directive(VERTICAL_SCROLL_KEY, useVerticalScrollDirective);
|
|
@@ -41472,7 +41493,7 @@ function mountUIComponent(params, component) {
|
|
|
41472
41493
|
document.body.appendChild(container2);
|
|
41473
41494
|
}
|
|
41474
41495
|
async function getConsultPaymentFeatureAction(params) {
|
|
41475
|
-
var _a2, _b
|
|
41496
|
+
var _a2, _b;
|
|
41476
41497
|
const response = await getConsultPaymentFeature(params);
|
|
41477
41498
|
switch (response.ppFetchResult) {
|
|
41478
41499
|
case "success":
|
|
@@ -41484,7 +41505,7 @@ async function getConsultPaymentFeatureAction(params) {
|
|
|
41484
41505
|
triggerFailCallback(params, MiniAppErrorType.serverError);
|
|
41485
41506
|
return false;
|
|
41486
41507
|
}
|
|
41487
|
-
return (
|
|
41508
|
+
return (_b = (_a2 = response.body) == null ? void 0 : _a2.unsigned) == null ? void 0 : _b.data;
|
|
41488
41509
|
}
|
|
41489
41510
|
function triggerFallbackPaymentMethod(params) {
|
|
41490
41511
|
var _a2;
|
|
@@ -41652,7 +41673,7 @@ class MiniAppModule extends JsBridgeModule {
|
|
|
41652
41673
|
});
|
|
41653
41674
|
}
|
|
41654
41675
|
scanCode(params) {
|
|
41655
|
-
scanCode();
|
|
41676
|
+
scanCode(params);
|
|
41656
41677
|
}
|
|
41657
41678
|
showAlert(params) {
|
|
41658
41679
|
this.detectMode() === RuntimeEnv.JS ? showAlert(params) : this.jsBridge.callNative("showAlert", params);
|