@paypay/mini-app-js-sdk 1.46.0 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +925 -617
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/makePayment.d.ts +22 -14
- package/dist/package/banner-header/index.vue.d.ts +1 -1
- package/dist/package/payment-method/Bank.vue.d.ts +14 -5
- package/dist/package/payment-method/CreditCard.vue.d.ts +14 -13
- package/dist/package/payment-method/PayLaterCC.vue.d.ts +14 -4
- package/dist/package/payment-method/SbidBank.vue.d.ts +14 -5
- package/dist/package/payment-method/Wallet.vue.d.ts +6 -2
- package/dist/package/payment-method/index.d.ts +6 -2
- package/dist/utils/helper.d.ts +3 -2
- package/dist/utils/ip.d.ts +2 -2
- package/dist/views/make-payment/Main.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +10 -1
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +10 -1
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +230 -36
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +10 -1
- package/dist/views/make-payment/Sheets/MaintenanceInfo.vue.d.ts +20 -0
- package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +10 -1
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +10 -1
- package/dist/views/make-payment/hooks/app-hooks.d.ts +116 -22
- package/dist/views/make-payment/utils/paymentMethod.d.ts +1 -1
- package/dist/views/topup/App.vue.d.ts +2 -3
- package/package.json +3 -2
|
@@ -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.48.0";
|
|
89
|
+
this.revision = "962847a";
|
|
90
90
|
this.messageHandlers = new Map();
|
|
91
91
|
this.responseCallbacks = new Map();
|
|
92
92
|
this.global = global2;
|
|
@@ -431,9 +431,17 @@ var ChallengeMethod;
|
|
|
431
431
|
(function(ChallengeMethod2) {
|
|
432
432
|
ChallengeMethod2["S256"] = "S256";
|
|
433
433
|
})(ChallengeMethod || (ChallengeMethod = {}));
|
|
434
|
-
function
|
|
434
|
+
function isLocalIP(hostName) {
|
|
435
|
+
if (hostName === "localhost")
|
|
436
|
+
return true;
|
|
437
|
+
if (!isIP(hostName))
|
|
438
|
+
return false;
|
|
439
|
+
const expression = /(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)/;
|
|
440
|
+
return expression.test(hostName);
|
|
441
|
+
}
|
|
442
|
+
function isIP(hostName) {
|
|
435
443
|
const expression = /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/;
|
|
436
|
-
return expression.test(
|
|
444
|
+
return expression.test(hostName);
|
|
437
445
|
}
|
|
438
446
|
const secondaryList = [
|
|
439
447
|
"ab.ca",
|
|
@@ -779,13 +787,14 @@ function getAccessToken() {
|
|
|
779
787
|
return api.get(PpLocalStorageKey.accessToken);
|
|
780
788
|
}
|
|
781
789
|
function saveCookie(key2, value2, expires) {
|
|
790
|
+
var _a;
|
|
782
791
|
removeCookie(key2);
|
|
783
792
|
if (value2) {
|
|
784
793
|
const domain = getDomain(key2 === PpLocalStorageKey.appDetail ? value2 : null);
|
|
785
794
|
return api.set(key2, value2, {
|
|
786
795
|
domain,
|
|
787
796
|
expires,
|
|
788
|
-
secure:
|
|
797
|
+
secure: !isLocalIP((_a = window.location) == null ? void 0 : _a.hostname)
|
|
789
798
|
});
|
|
790
799
|
}
|
|
791
800
|
}
|
|
@@ -1554,6 +1563,131 @@ function getUserLocationRequest(params) {
|
|
|
1554
1563
|
function isValidUrl(urlChallenge) {
|
|
1555
1564
|
return /^https?:\/\//.test(urlChallenge);
|
|
1556
1565
|
}
|
|
1566
|
+
async function initAppDetail(accessToken) {
|
|
1567
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
1568
|
+
const res = await ppFetch2({
|
|
1569
|
+
method: "GET",
|
|
1570
|
+
url: "web-api/app/v1/apps/detail",
|
|
1571
|
+
headers: { Authorization: `Bearer ${accessToken}` }
|
|
1572
|
+
});
|
|
1573
|
+
if ((res == null ? void 0 : res.ppFetchResult) !== "success" || !((_b = (_a = res == null ? void 0 : res.body) == null ? void 0 : _a.unsigned) == null ? void 0 : _b.data)) {
|
|
1574
|
+
removeAppDetail();
|
|
1575
|
+
return false;
|
|
1576
|
+
}
|
|
1577
|
+
saveAppDetail(JSON.stringify({
|
|
1578
|
+
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,
|
|
1579
|
+
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,
|
|
1580
|
+
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,
|
|
1581
|
+
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,
|
|
1582
|
+
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,
|
|
1583
|
+
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,
|
|
1584
|
+
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
|
|
1585
|
+
}));
|
|
1586
|
+
return true;
|
|
1587
|
+
}
|
|
1588
|
+
function getAppDetail() {
|
|
1589
|
+
const json = getAppDetail$1();
|
|
1590
|
+
if (json) {
|
|
1591
|
+
return JSON.parse(json);
|
|
1592
|
+
}
|
|
1593
|
+
return null;
|
|
1594
|
+
}
|
|
1595
|
+
function reconstructParams(params) {
|
|
1596
|
+
if (!params)
|
|
1597
|
+
return params;
|
|
1598
|
+
const _a = params, { success: success2, complete, fail } = _a, data2 = __objRest(_a, ["success", "complete", "fail"]);
|
|
1599
|
+
return __spreadProps(__spreadValues({}, data2), {
|
|
1600
|
+
success: (result2) => {
|
|
1601
|
+
setTimeout(() => {
|
|
1602
|
+
success2 == null ? void 0 : success2(result2);
|
|
1603
|
+
}, 0);
|
|
1604
|
+
setTimeout(() => {
|
|
1605
|
+
complete == null ? void 0 : complete();
|
|
1606
|
+
}, 0);
|
|
1607
|
+
},
|
|
1608
|
+
fail: (result2) => {
|
|
1609
|
+
setTimeout(() => {
|
|
1610
|
+
fail == null ? void 0 : fail(result2);
|
|
1611
|
+
}, 0);
|
|
1612
|
+
setTimeout(() => {
|
|
1613
|
+
complete == null ? void 0 : complete();
|
|
1614
|
+
}, 0);
|
|
1615
|
+
}
|
|
1616
|
+
});
|
|
1617
|
+
}
|
|
1618
|
+
function openWebview(openWebviewParams) {
|
|
1619
|
+
var _a, _b, _c, _d;
|
|
1620
|
+
const params = reconstructParams(openWebviewParams);
|
|
1621
|
+
let url;
|
|
1622
|
+
let openUrl2 = null;
|
|
1623
|
+
const appDetail = getAppDetail();
|
|
1624
|
+
try {
|
|
1625
|
+
url = new URL(params == null ? void 0 : params.url);
|
|
1626
|
+
} catch (error2) {
|
|
1627
|
+
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, {
|
|
1628
|
+
errorCode: MiniAppErrorType.invalidUrl
|
|
1629
|
+
});
|
|
1630
|
+
return;
|
|
1631
|
+
}
|
|
1632
|
+
try {
|
|
1633
|
+
openUrl2 = appDetail ? new URL(appDetail.openUrl) : null;
|
|
1634
|
+
} catch (_) {
|
|
1635
|
+
}
|
|
1636
|
+
if (params == null ? void 0 : params.authorization) {
|
|
1637
|
+
params.url = getAuthUrl(params.url);
|
|
1638
|
+
openWebviewInternal(params);
|
|
1639
|
+
} 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))) {
|
|
1640
|
+
openWebviewInternal(params);
|
|
1641
|
+
} else {
|
|
1642
|
+
return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, {
|
|
1643
|
+
errorCode: MiniAppErrorType.whiteListError
|
|
1644
|
+
});
|
|
1645
|
+
}
|
|
1646
|
+
(_d = params == null ? void 0 : params.success) == null ? void 0 : _d.call(params);
|
|
1647
|
+
}
|
|
1648
|
+
function openWebviewInternal(params) {
|
|
1649
|
+
var _a, _b;
|
|
1650
|
+
let url;
|
|
1651
|
+
try {
|
|
1652
|
+
url = new URL(params == null ? void 0 : params.url);
|
|
1653
|
+
} catch (_) {
|
|
1654
|
+
}
|
|
1655
|
+
if (isPayPayMiniApp() && url) {
|
|
1656
|
+
if (["http:", "https:"].includes(url.protocol)) {
|
|
1657
|
+
url.searchParams.set("ppOpenWebview", (_a = params == null ? void 0 : params.style) != null ? _a : "modal");
|
|
1658
|
+
}
|
|
1659
|
+
window.location.href = url.toString();
|
|
1660
|
+
} else if (url) {
|
|
1661
|
+
if (["http:", "https:"].includes(url.protocol)) {
|
|
1662
|
+
(_b = window.open(url.toString(), "_blank")) == null ? void 0 : _b.focus();
|
|
1663
|
+
} else {
|
|
1664
|
+
window.location.href = url.toString();
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
function getAuthUrl(redirectUrl) {
|
|
1669
|
+
var _a;
|
|
1670
|
+
let authUrl = "";
|
|
1671
|
+
switch (getEnv()) {
|
|
1672
|
+
case "staging":
|
|
1673
|
+
authUrl = "https://stg-www.paypay-corp.co.jp";
|
|
1674
|
+
break;
|
|
1675
|
+
case "sandbox":
|
|
1676
|
+
authUrl = "https://stg-www.sandbox.paypay.ne.jp";
|
|
1677
|
+
break;
|
|
1678
|
+
case "canary":
|
|
1679
|
+
authUrl = "https://www-prod-canary.paypay.ne.jp";
|
|
1680
|
+
break;
|
|
1681
|
+
case "qa":
|
|
1682
|
+
authUrl = "https://www.qa.stg.paypay.ne.jp";
|
|
1683
|
+
break;
|
|
1684
|
+
case "production":
|
|
1685
|
+
default:
|
|
1686
|
+
authUrl = "https://www.paypay.ne.jp";
|
|
1687
|
+
}
|
|
1688
|
+
const clientId = (_a = getClientId()) != null ? _a : "";
|
|
1689
|
+
return `${authUrl}/portal/auth/mini-app/permission?clientId=${clientId}&redirectUrl=${encodeURIComponent(redirectUrl)}`;
|
|
1690
|
+
}
|
|
1557
1691
|
function isDef(val2) {
|
|
1558
1692
|
return val2 !== void 0 && val2 !== null;
|
|
1559
1693
|
}
|
|
@@ -1729,11 +1863,14 @@ function handleHeightResize(el, windowHeight, isScrollable, offsetHeight) {
|
|
|
1729
1863
|
return false;
|
|
1730
1864
|
}
|
|
1731
1865
|
}
|
|
1732
|
-
function getPaymentMethodStatus(isExpired,
|
|
1866
|
+
function getPaymentMethodStatus(isExpired, paymentMethodInfo) {
|
|
1733
1867
|
const lg2 = getLanguage();
|
|
1734
1868
|
if (isExpired)
|
|
1735
1869
|
return lg2.paymentMethod.expired;
|
|
1736
|
-
|
|
1870
|
+
const { paymentMethodStatus: paymentMethodStatus2, paymentMethodStatusLabel } = paymentMethodInfo || {};
|
|
1871
|
+
if (paymentMethodStatusLabel)
|
|
1872
|
+
return paymentMethodStatusLabel;
|
|
1873
|
+
return paymentMethodStatus2 && paymentMethodStatus2 in PaymentMethodStatus ? lg2.paymentMethodStatus[paymentMethodStatus2] : "";
|
|
1737
1874
|
}
|
|
1738
1875
|
function filterErrorButtonList(buttonList) {
|
|
1739
1876
|
return buttonList == null ? void 0 : buttonList.filter((button4) => {
|
|
@@ -1782,6 +1919,23 @@ async function generateCodeChallange(codeVerifier) {
|
|
|
1782
1919
|
const hash = await crypto.subtle.digest("SHA-256", array);
|
|
1783
1920
|
return base64UrlEncode(String.fromCharCode(...new Uint8Array(hash)));
|
|
1784
1921
|
}
|
|
1922
|
+
function openUrl(linkUrl) {
|
|
1923
|
+
if (!linkUrl)
|
|
1924
|
+
return;
|
|
1925
|
+
if (isValidUrl(linkUrl)) {
|
|
1926
|
+
openWebviewInternal({ url: linkUrl });
|
|
1927
|
+
return;
|
|
1928
|
+
}
|
|
1929
|
+
try {
|
|
1930
|
+
const url = new URL(linkUrl);
|
|
1931
|
+
const urlParam = url.searchParams.get("url");
|
|
1932
|
+
if (urlParam && linkUrl.startsWith("paypay://embed")) {
|
|
1933
|
+
openWebviewInternal({ url: urlParam });
|
|
1934
|
+
return;
|
|
1935
|
+
}
|
|
1936
|
+
} catch (_) {
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1785
1939
|
const opaUrl = () => {
|
|
1786
1940
|
switch (getEnv()) {
|
|
1787
1941
|
case "staging":
|
|
@@ -1802,7 +1956,7 @@ const opaUrl = () => {
|
|
|
1802
1956
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
1803
1957
|
let headers = new Headers(__spreadValues({
|
|
1804
1958
|
"Content-Type": "application/json",
|
|
1805
|
-
"Client-Version": "1.
|
|
1959
|
+
"Client-Version": "1.48.0",
|
|
1806
1960
|
"Client-OS-Type": getRuntime()
|
|
1807
1961
|
}, customHeaders));
|
|
1808
1962
|
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") {
|
|
@@ -1955,35 +2109,6 @@ async function refreshToken() {
|
|
|
1955
2109
|
}
|
|
1956
2110
|
return false;
|
|
1957
2111
|
}
|
|
1958
|
-
async function initAppDetail(accessToken) {
|
|
1959
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
1960
|
-
const res = await ppFetch2({
|
|
1961
|
-
method: "GET",
|
|
1962
|
-
url: "web-api/app/v1/apps/detail",
|
|
1963
|
-
headers: { Authorization: `Bearer ${accessToken}` }
|
|
1964
|
-
});
|
|
1965
|
-
if ((res == null ? void 0 : res.ppFetchResult) !== "success" || !((_b = (_a = res == null ? void 0 : res.body) == null ? void 0 : _a.unsigned) == null ? void 0 : _b.data)) {
|
|
1966
|
-
removeAppDetail();
|
|
1967
|
-
return false;
|
|
1968
|
-
}
|
|
1969
|
-
saveAppDetail(JSON.stringify({
|
|
1970
|
-
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,
|
|
1971
|
-
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,
|
|
1972
|
-
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,
|
|
1973
|
-
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,
|
|
1974
|
-
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,
|
|
1975
|
-
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,
|
|
1976
|
-
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
|
|
1977
|
-
}));
|
|
1978
|
-
return true;
|
|
1979
|
-
}
|
|
1980
|
-
function getAppDetail() {
|
|
1981
|
-
const json = getAppDetail$1();
|
|
1982
|
-
if (json) {
|
|
1983
|
-
return JSON.parse(json);
|
|
1984
|
-
}
|
|
1985
|
-
return null;
|
|
1986
|
-
}
|
|
1987
2112
|
async function initAppConfiguration() {
|
|
1988
2113
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
1989
2114
|
const res = await ppFetch2({
|
|
@@ -2012,29 +2137,6 @@ function getAppConfig() {
|
|
|
2012
2137
|
}
|
|
2013
2138
|
return null;
|
|
2014
2139
|
}
|
|
2015
|
-
function reconstructParams(params) {
|
|
2016
|
-
if (!params)
|
|
2017
|
-
return params;
|
|
2018
|
-
const _a = params, { success: success2, complete, fail } = _a, data2 = __objRest(_a, ["success", "complete", "fail"]);
|
|
2019
|
-
return __spreadProps(__spreadValues({}, data2), {
|
|
2020
|
-
success: (result2) => {
|
|
2021
|
-
setTimeout(() => {
|
|
2022
|
-
success2 == null ? void 0 : success2(result2);
|
|
2023
|
-
}, 0);
|
|
2024
|
-
setTimeout(() => {
|
|
2025
|
-
complete == null ? void 0 : complete();
|
|
2026
|
-
}, 0);
|
|
2027
|
-
},
|
|
2028
|
-
fail: (result2) => {
|
|
2029
|
-
setTimeout(() => {
|
|
2030
|
-
fail == null ? void 0 : fail(result2);
|
|
2031
|
-
}, 0);
|
|
2032
|
-
setTimeout(() => {
|
|
2033
|
-
complete == null ? void 0 : complete();
|
|
2034
|
-
}, 0);
|
|
2035
|
-
}
|
|
2036
|
-
});
|
|
2037
|
-
}
|
|
2038
2140
|
var MiniAppStatusType;
|
|
2039
2141
|
(function(MiniAppStatusType2) {
|
|
2040
2142
|
MiniAppStatusType2["validToken"] = "TOKEN_VALID";
|
|
@@ -7586,7 +7688,8 @@ async function execute$c(params) {
|
|
|
7586
7688
|
});
|
|
7587
7689
|
}
|
|
7588
7690
|
}
|
|
7589
|
-
const
|
|
7691
|
+
const url = new URL(window.location.href);
|
|
7692
|
+
const urlParams = url.searchParams;
|
|
7590
7693
|
let token = urlParams == null ? void 0 : urlParams.get("token");
|
|
7591
7694
|
if (!token || token.length < 1) {
|
|
7592
7695
|
token = urlParams == null ? void 0 : urlParams.get("one_time_token");
|
|
@@ -7599,9 +7702,8 @@ async function execute$c(params) {
|
|
|
7599
7702
|
}
|
|
7600
7703
|
urlParams.delete("token");
|
|
7601
7704
|
urlParams.delete("one_time_token");
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
history.replaceState(null, "", newUrl);
|
|
7705
|
+
url.search = urlParams.toString();
|
|
7706
|
+
history.replaceState(null, "", url);
|
|
7605
7707
|
const codeVerifier = getCodeVerifier();
|
|
7606
7708
|
const res = await ppFetch2({
|
|
7607
7709
|
method: "POST",
|
|
@@ -7680,87 +7782,14 @@ function copyToClipboard(copyTextParams) {
|
|
|
7680
7782
|
document.body.removeChild(textarea);
|
|
7681
7783
|
result2 ? (_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params) : (_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, { errorCode: MiniAppErrorType.other });
|
|
7682
7784
|
}
|
|
7683
|
-
|
|
7684
|
-
var _a, _b, _c, _d;
|
|
7685
|
-
const params = reconstructParams(openWebviewParams);
|
|
7686
|
-
let url;
|
|
7687
|
-
let openUrl = null;
|
|
7688
|
-
const appDetail = getAppDetail();
|
|
7689
|
-
try {
|
|
7690
|
-
url = new URL(params == null ? void 0 : params.url);
|
|
7691
|
-
} catch (error2) {
|
|
7692
|
-
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, {
|
|
7693
|
-
errorCode: MiniAppErrorType.invalidUrl
|
|
7694
|
-
});
|
|
7695
|
-
return;
|
|
7696
|
-
}
|
|
7697
|
-
try {
|
|
7698
|
-
openUrl = appDetail ? new URL(appDetail.openUrl) : null;
|
|
7699
|
-
} catch (_) {
|
|
7700
|
-
}
|
|
7701
|
-
if (params == null ? void 0 : params.authorization) {
|
|
7702
|
-
params.url = getAuthUrl(params.url);
|
|
7703
|
-
openWebviewInternal(params);
|
|
7704
|
-
} 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 === (openUrl == null ? void 0 : openUrl.host))) {
|
|
7705
|
-
openWebviewInternal(params);
|
|
7706
|
-
} else {
|
|
7707
|
-
return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, {
|
|
7708
|
-
errorCode: MiniAppErrorType.whiteListError
|
|
7709
|
-
});
|
|
7710
|
-
}
|
|
7711
|
-
(_d = params == null ? void 0 : params.success) == null ? void 0 : _d.call(params);
|
|
7712
|
-
}
|
|
7713
|
-
function openWebviewInternal(params) {
|
|
7714
|
-
var _a, _b;
|
|
7715
|
-
let url;
|
|
7716
|
-
try {
|
|
7717
|
-
url = new URL(params == null ? void 0 : params.url);
|
|
7718
|
-
} catch (_) {
|
|
7719
|
-
}
|
|
7720
|
-
if (isPayPayMiniApp() && url) {
|
|
7721
|
-
if (["http:", "https:"].includes(url.protocol)) {
|
|
7722
|
-
url.searchParams.set("ppOpenWebview", (_a = params == null ? void 0 : params.style) != null ? _a : "modal");
|
|
7723
|
-
}
|
|
7724
|
-
window.location.href = url.toString();
|
|
7725
|
-
} else if (url) {
|
|
7726
|
-
if (["http:", "https:"].includes(url.protocol)) {
|
|
7727
|
-
(_b = window.open(url.toString(), "_blank")) == null ? void 0 : _b.focus();
|
|
7728
|
-
} else {
|
|
7729
|
-
window.location.href = url.toString();
|
|
7730
|
-
}
|
|
7731
|
-
}
|
|
7732
|
-
}
|
|
7733
|
-
function getAuthUrl(redirectUrl) {
|
|
7734
|
-
var _a;
|
|
7735
|
-
let authUrl = "";
|
|
7736
|
-
switch (getEnv()) {
|
|
7737
|
-
case "staging":
|
|
7738
|
-
authUrl = "https://stg-www.paypay-corp.co.jp";
|
|
7739
|
-
break;
|
|
7740
|
-
case "sandbox":
|
|
7741
|
-
authUrl = "https://stg-www.sandbox.paypay.ne.jp";
|
|
7742
|
-
break;
|
|
7743
|
-
case "canary":
|
|
7744
|
-
authUrl = "https://www-prod-canary.paypay.ne.jp";
|
|
7745
|
-
break;
|
|
7746
|
-
case "qa":
|
|
7747
|
-
authUrl = "https://www.qa.stg.paypay.ne.jp";
|
|
7748
|
-
break;
|
|
7749
|
-
case "production":
|
|
7750
|
-
default:
|
|
7751
|
-
authUrl = "https://www.paypay.ne.jp";
|
|
7752
|
-
}
|
|
7753
|
-
const clientId = (_a = getClientId()) != null ? _a : "";
|
|
7754
|
-
return `${authUrl}/portal/auth/mini-app/permission?clientId=${clientId}&redirectUrl=${encodeURIComponent(redirectUrl)}`;
|
|
7755
|
-
}
|
|
7756
|
-
var _sfc_main$1A = defineComponent({
|
|
7785
|
+
var _sfc_main$1B = defineComponent({
|
|
7757
7786
|
name: "LoadingIndicator"
|
|
7758
7787
|
});
|
|
7759
7788
|
const loading$1 = "_loading_ovc6l_1";
|
|
7760
7789
|
const bounce = "_bounce_ovc6l_14";
|
|
7761
7790
|
const bounce1 = "_bounce1_ovc6l_14";
|
|
7762
7791
|
const bounce2 = "_bounce2_ovc6l_17";
|
|
7763
|
-
var style0$
|
|
7792
|
+
var style0$1q = {
|
|
7764
7793
|
loading: loading$1,
|
|
7765
7794
|
bounce,
|
|
7766
7795
|
bounce1,
|
|
@@ -7774,7 +7803,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
7774
7803
|
return target;
|
|
7775
7804
|
};
|
|
7776
7805
|
const _hoisted_1$W = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
7777
|
-
function _sfc_render$
|
|
7806
|
+
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7778
7807
|
return openBlock(), createElementBlock("div", {
|
|
7779
7808
|
class: normalizeClass(_ctx.$style.loading)
|
|
7780
7809
|
}, [
|
|
@@ -7787,9 +7816,9 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7787
7816
|
_hoisted_1$W
|
|
7788
7817
|
], 2);
|
|
7789
7818
|
}
|
|
7790
|
-
const cssModules$
|
|
7791
|
-
cssModules$
|
|
7792
|
-
var LoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7819
|
+
const cssModules$1q = {};
|
|
7820
|
+
cssModules$1q["$style"] = style0$1q;
|
|
7821
|
+
var LoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1B], ["__cssModules", cssModules$1q]]);
|
|
7793
7822
|
const buttonWrapper = "_buttonWrapper_1a5ed_2";
|
|
7794
7823
|
const container$A = "_container_1a5ed_2";
|
|
7795
7824
|
const primary = "_primary_1a5ed_24";
|
|
@@ -8393,7 +8422,7 @@ const errorTitle = "_errorTitle_86qa7_25";
|
|
|
8393
8422
|
const subTitle$2 = "_subTitle_86qa7_33";
|
|
8394
8423
|
const btnContainer$2 = "_btnContainer_86qa7_41";
|
|
8395
8424
|
const closeBtn$3 = "_closeBtn_86qa7_45";
|
|
8396
|
-
var style0$
|
|
8425
|
+
var style0$1p = {
|
|
8397
8426
|
"ppmna-default-font": "_ppmna-default-font_86qa7_1",
|
|
8398
8427
|
errorContainer,
|
|
8399
8428
|
errorIcon,
|
|
@@ -8403,7 +8432,7 @@ var style0$1o = {
|
|
|
8403
8432
|
btnContainer: btnContainer$2,
|
|
8404
8433
|
closeBtn: closeBtn$3
|
|
8405
8434
|
};
|
|
8406
|
-
const _sfc_main$
|
|
8435
|
+
const _sfc_main$1A = defineComponent({
|
|
8407
8436
|
components: {
|
|
8408
8437
|
ActionSheet,
|
|
8409
8438
|
Button
|
|
@@ -8519,7 +8548,7 @@ const _sfc_main$1z = defineComponent({
|
|
|
8519
8548
|
}
|
|
8520
8549
|
});
|
|
8521
8550
|
const _hoisted_1$V = ["src"];
|
|
8522
|
-
function _sfc_render$
|
|
8551
|
+
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8523
8552
|
const _component_Button = resolveComponent("Button");
|
|
8524
8553
|
const _component_ActionSheet = resolveComponent("ActionSheet");
|
|
8525
8554
|
return openBlock(), createBlock(_component_ActionSheet, {
|
|
@@ -8588,10 +8617,10 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8588
8617
|
_: 1
|
|
8589
8618
|
}, 8, ["show"]);
|
|
8590
8619
|
}
|
|
8591
|
-
const cssModules$
|
|
8592
|
-
cssModules$
|
|
8593
|
-
var ErrorSheet = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8594
|
-
const wrapperClass$
|
|
8620
|
+
const cssModules$1p = {};
|
|
8621
|
+
cssModules$1p["$style"] = style0$1p;
|
|
8622
|
+
var ErrorSheet = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1A], ["__cssModules", cssModules$1p]]);
|
|
8623
|
+
const wrapperClass$q = "_wrapperClass_hgr81_2";
|
|
8595
8624
|
const openMapActionsheetContainer = "_openMapActionsheetContainer_hgr81_2";
|
|
8596
8625
|
const openMapTitle = "_openMapTitle_hgr81_13";
|
|
8597
8626
|
const openMapActionsheetMain = "_openMapActionsheetMain_hgr81_19";
|
|
@@ -8599,9 +8628,9 @@ const divider = "_divider_hgr81_26";
|
|
|
8599
8628
|
const mapButton = "_mapButton_hgr81_29";
|
|
8600
8629
|
const closeBtn$2 = "_closeBtn_hgr81_36";
|
|
8601
8630
|
const mapList = "_mapList_hgr81_48";
|
|
8602
|
-
var style0$
|
|
8631
|
+
var style0$1o = {
|
|
8603
8632
|
"ppmna-default-font": "_ppmna-default-font_hgr81_1",
|
|
8604
|
-
wrapperClass: wrapperClass$
|
|
8633
|
+
wrapperClass: wrapperClass$q,
|
|
8605
8634
|
openMapActionsheetContainer,
|
|
8606
8635
|
openMapTitle,
|
|
8607
8636
|
openMapActionsheetMain,
|
|
@@ -8610,7 +8639,7 @@ var style0$1n = {
|
|
|
8610
8639
|
closeBtn: closeBtn$2,
|
|
8611
8640
|
mapList
|
|
8612
8641
|
};
|
|
8613
|
-
const _sfc_main$
|
|
8642
|
+
const _sfc_main$1z = defineComponent({
|
|
8614
8643
|
components: {
|
|
8615
8644
|
ActionSheet,
|
|
8616
8645
|
Button,
|
|
@@ -8662,7 +8691,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
8662
8691
|
}
|
|
8663
8692
|
});
|
|
8664
8693
|
const _hoisted_1$U = /* @__PURE__ */ createTextVNode(" \u30AD\u30E3\u30F3\u30BB\u30EB ");
|
|
8665
|
-
function _sfc_render$
|
|
8694
|
+
function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8666
8695
|
const _component_Divider = resolveComponent("Divider");
|
|
8667
8696
|
const _component_Button = resolveComponent("Button");
|
|
8668
8697
|
const _component_ActionSheet = resolveComponent("ActionSheet");
|
|
@@ -8732,9 +8761,9 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8732
8761
|
}, null, 8, ["show", "error-text"])
|
|
8733
8762
|
], 64);
|
|
8734
8763
|
}
|
|
8735
|
-
const cssModules$
|
|
8736
|
-
cssModules$
|
|
8737
|
-
var AppVue$8 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8764
|
+
const cssModules$1o = {};
|
|
8765
|
+
cssModules$1o["$style"] = style0$1o;
|
|
8766
|
+
var AppVue$8 = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1z], ["__cssModules", cssModules$1o]]);
|
|
8738
8767
|
const popStateHandler = (callback, inputParams) => {
|
|
8739
8768
|
const handlePopState = () => {
|
|
8740
8769
|
var _a, _b;
|
|
@@ -9228,7 +9257,7 @@ function useBreakpoints() {
|
|
|
9228
9257
|
windowHeight: computed(() => windowHeight.value)
|
|
9229
9258
|
};
|
|
9230
9259
|
}
|
|
9231
|
-
const wrapperClass$
|
|
9260
|
+
const wrapperClass$p = "_wrapperClass_1k2lr_1";
|
|
9232
9261
|
const breakDownList = "_breakDownList_1k2lr_1";
|
|
9233
9262
|
const nonUsable = "_nonUsable_1k2lr_17";
|
|
9234
9263
|
const breakDownEnter = "_breakDownEnter_1k2lr_35";
|
|
@@ -9238,8 +9267,8 @@ const enterActive = "_enterActive_1k2lr_55";
|
|
|
9238
9267
|
const leaveActive = "_leaveActive_1k2lr_60";
|
|
9239
9268
|
const enterTo = "_enterTo_1k2lr_65";
|
|
9240
9269
|
const leaveTo = "_leaveTo_1k2lr_69";
|
|
9241
|
-
var style0$
|
|
9242
|
-
wrapperClass: wrapperClass$
|
|
9270
|
+
var style0$1n = {
|
|
9271
|
+
wrapperClass: wrapperClass$p,
|
|
9243
9272
|
breakDownList,
|
|
9244
9273
|
nonUsable,
|
|
9245
9274
|
breakDownEnter,
|
|
@@ -9250,7 +9279,7 @@ var style0$1m = {
|
|
|
9250
9279
|
enterTo,
|
|
9251
9280
|
leaveTo
|
|
9252
9281
|
};
|
|
9253
|
-
const _sfc_main$
|
|
9282
|
+
const _sfc_main$1y = defineComponent({
|
|
9254
9283
|
props: {
|
|
9255
9284
|
wallet: {
|
|
9256
9285
|
type: Object,
|
|
@@ -9291,7 +9320,7 @@ const _sfc_main$1x = defineComponent({
|
|
|
9291
9320
|
};
|
|
9292
9321
|
}
|
|
9293
9322
|
});
|
|
9294
|
-
function _sfc_render$
|
|
9323
|
+
function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9295
9324
|
return openBlock(), createElementBlock("div", {
|
|
9296
9325
|
class: normalizeClass(_ctx.$style.wrapperClass)
|
|
9297
9326
|
}, [
|
|
@@ -9354,10 +9383,10 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9354
9383
|
}, 8, ["enter-active-class", "leave-active-class", "enter-to-class", "leave-to-class"])
|
|
9355
9384
|
], 2);
|
|
9356
9385
|
}
|
|
9357
|
-
const cssModules$
|
|
9358
|
-
cssModules$
|
|
9359
|
-
var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9360
|
-
const wrapperClass$
|
|
9386
|
+
const cssModules$1n = {};
|
|
9387
|
+
cssModules$1n["$style"] = style0$1n;
|
|
9388
|
+
var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1y], ["__cssModules", cssModules$1n]]);
|
|
9389
|
+
const wrapperClass$o = "_wrapperClass_123gn_1";
|
|
9361
9390
|
const ppmnaPaymentTypeContainer$4 = "_ppmnaPaymentTypeContainer_123gn_1";
|
|
9362
9391
|
const img$e = "_img_123gn_5";
|
|
9363
9392
|
const imgContainer$5 = "_imgContainer_123gn_18";
|
|
@@ -9375,8 +9404,8 @@ const chargeContainer = "_chargeContainer_123gn_96";
|
|
|
9375
9404
|
const greenTick = "_greenTick_123gn_106";
|
|
9376
9405
|
const autoCharge = "_autoCharge_123gn_119";
|
|
9377
9406
|
const makePaymentRightAlign = "_makePaymentRightAlign_123gn_126";
|
|
9378
|
-
var style0$
|
|
9379
|
-
wrapperClass: wrapperClass$
|
|
9407
|
+
var style0$1m = {
|
|
9408
|
+
wrapperClass: wrapperClass$o,
|
|
9380
9409
|
ppmnaPaymentTypeContainer: ppmnaPaymentTypeContainer$4,
|
|
9381
9410
|
img: img$e,
|
|
9382
9411
|
imgContainer: imgContainer$5,
|
|
@@ -9395,7 +9424,7 @@ var style0$1l = {
|
|
|
9395
9424
|
autoCharge,
|
|
9396
9425
|
makePaymentRightAlign
|
|
9397
9426
|
};
|
|
9398
|
-
const _sfc_main$
|
|
9427
|
+
const _sfc_main$1x = defineComponent({
|
|
9399
9428
|
components: {
|
|
9400
9429
|
WalletBreakdown
|
|
9401
9430
|
},
|
|
@@ -9435,8 +9464,8 @@ const _sfc_main$1w = defineComponent({
|
|
|
9435
9464
|
}
|
|
9436
9465
|
});
|
|
9437
9466
|
const _hoisted_1$T = ["src"];
|
|
9438
|
-
const _hoisted_2$
|
|
9439
|
-
function _sfc_render$
|
|
9467
|
+
const _hoisted_2$s = ["src"];
|
|
9468
|
+
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9440
9469
|
const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
|
|
9441
9470
|
return openBlock(), createElementBlock("div", {
|
|
9442
9471
|
class: normalizeClass([
|
|
@@ -9474,7 +9503,7 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9474
9503
|
class: normalizeClass(_ctx.$style.greenTick),
|
|
9475
9504
|
src: _ctx.images.checkGreen,
|
|
9476
9505
|
alt: "green-tick"
|
|
9477
|
-
}, null, 10, _hoisted_2$
|
|
9506
|
+
}, null, 10, _hoisted_2$s),
|
|
9478
9507
|
createBaseVNode("span", {
|
|
9479
9508
|
class: normalizeClass(_ctx.$style.autoCharge)
|
|
9480
9509
|
}, toDisplayString(_ctx.lg.wallet.autoCharge), 3)
|
|
@@ -9498,10 +9527,10 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9498
9527
|
], 2)
|
|
9499
9528
|
], 2);
|
|
9500
9529
|
}
|
|
9501
|
-
const cssModules$
|
|
9502
|
-
cssModules$
|
|
9503
|
-
var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9504
|
-
const wrapperClass$
|
|
9530
|
+
const cssModules$1m = {};
|
|
9531
|
+
cssModules$1m["$style"] = style0$1m;
|
|
9532
|
+
var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$1x], ["__cssModules", cssModules$1m]]);
|
|
9533
|
+
const wrapperClass$n = "_wrapperClass_1cpol_1";
|
|
9505
9534
|
const ppmnaPaymentTypeContainer$3 = "_ppmnaPaymentTypeContainer_1cpol_1";
|
|
9506
9535
|
const img$d = "_img_1cpol_5";
|
|
9507
9536
|
const imgContainer$4 = "_imgContainer_1cpol_18";
|
|
@@ -9518,14 +9547,14 @@ const auth = "_auth_1cpol_90";
|
|
|
9518
9547
|
const authText = "_authText_1cpol_100";
|
|
9519
9548
|
const cardImageContainer = "_cardImageContainer_1cpol_104";
|
|
9520
9549
|
const cardImg = "_cardImg_1cpol_107";
|
|
9521
|
-
const content$
|
|
9550
|
+
const content$h = "_content_1cpol_111";
|
|
9522
9551
|
const authenticated = "_authenticated_1cpol_121";
|
|
9523
9552
|
const notAuthenticated = "_notAuthenticated_1cpol_124";
|
|
9524
9553
|
const authorizedImg$1 = "_authorizedImg_1cpol_127";
|
|
9525
9554
|
const unAuthorizedImg$1 = "_unAuthorizedImg_1cpol_136";
|
|
9526
9555
|
const creditCard$1 = "_creditCard_1cpol_144";
|
|
9527
|
-
var style0$
|
|
9528
|
-
wrapperClass: wrapperClass$
|
|
9556
|
+
var style0$1l = {
|
|
9557
|
+
wrapperClass: wrapperClass$n,
|
|
9529
9558
|
ppmnaPaymentTypeContainer: ppmnaPaymentTypeContainer$3,
|
|
9530
9559
|
img: img$d,
|
|
9531
9560
|
imgContainer: imgContainer$4,
|
|
@@ -9542,7 +9571,7 @@ var style0$1k = {
|
|
|
9542
9571
|
authText,
|
|
9543
9572
|
cardImageContainer,
|
|
9544
9573
|
cardImg,
|
|
9545
|
-
content: content$
|
|
9574
|
+
content: content$h,
|
|
9546
9575
|
authenticated,
|
|
9547
9576
|
notAuthenticated,
|
|
9548
9577
|
authorizedImg: authorizedImg$1,
|
|
@@ -9557,7 +9586,7 @@ const creditCardMap$1 = {
|
|
|
9557
9586
|
[CreditTypes.AMEX]: img$c.amex,
|
|
9558
9587
|
yj: img$c.yahoo
|
|
9559
9588
|
};
|
|
9560
|
-
const _sfc_main$
|
|
9589
|
+
const _sfc_main$1w = defineComponent({
|
|
9561
9590
|
props: {
|
|
9562
9591
|
credit: {
|
|
9563
9592
|
type: Object,
|
|
@@ -9633,8 +9662,8 @@ const _sfc_main$1v = defineComponent({
|
|
|
9633
9662
|
}
|
|
9634
9663
|
});
|
|
9635
9664
|
const _hoisted_1$S = ["src"];
|
|
9636
|
-
const _hoisted_2$
|
|
9637
|
-
function _sfc_render$
|
|
9665
|
+
const _hoisted_2$r = ["src"];
|
|
9666
|
+
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9638
9667
|
return openBlock(), createElementBlock("div", {
|
|
9639
9668
|
class: normalizeClass([
|
|
9640
9669
|
_ctx.style.wrapperClass,
|
|
@@ -9672,7 +9701,7 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9672
9701
|
createBaseVNode("img", {
|
|
9673
9702
|
src: _ctx.authInfo.img,
|
|
9674
9703
|
class: normalizeClass([_ctx.authInfo.authImg])
|
|
9675
|
-
}, null, 10, _hoisted_2$
|
|
9704
|
+
}, null, 10, _hoisted_2$r),
|
|
9676
9705
|
createBaseVNode("span", {
|
|
9677
9706
|
class: normalizeClass([_ctx.style.authText])
|
|
9678
9707
|
}, toDisplayString(_ctx.authInfo.text), 3)
|
|
@@ -9692,10 +9721,10 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9692
9721
|
], 2)
|
|
9693
9722
|
], 2);
|
|
9694
9723
|
}
|
|
9695
|
-
const cssModules$
|
|
9696
|
-
cssModules$
|
|
9697
|
-
var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9698
|
-
const wrapperClass$
|
|
9724
|
+
const cssModules$1l = {};
|
|
9725
|
+
cssModules$1l["$style"] = style0$1l;
|
|
9726
|
+
var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1w], ["__cssModules", cssModules$1l]]);
|
|
9727
|
+
const wrapperClass$m = "_wrapperClass_insy7_1";
|
|
9699
9728
|
const ppmnaPaymentTypeContainer$2 = "_ppmnaPaymentTypeContainer_insy7_1";
|
|
9700
9729
|
const img$b = "_img_insy7_5";
|
|
9701
9730
|
const imgContainer$3 = "_imgContainer_insy7_18";
|
|
@@ -9709,12 +9738,12 @@ const arrowRight$2 = "_arrowRight_insy7_71";
|
|
|
9709
9738
|
const makePaymentArrowContainer$2 = "_makePaymentArrowContainer_insy7_81";
|
|
9710
9739
|
const bankImg = "_bankImg_insy7_85";
|
|
9711
9740
|
const branchCode = "_branchCode_insy7_89";
|
|
9712
|
-
const content$
|
|
9741
|
+
const content$g = "_content_insy7_92";
|
|
9713
9742
|
const roundContainer = "_roundContainer_insy7_96";
|
|
9714
9743
|
const round$2 = "_round_insy7_26";
|
|
9715
9744
|
const bankName = "_bankName_insy7_102";
|
|
9716
|
-
var style0$
|
|
9717
|
-
wrapperClass: wrapperClass$
|
|
9745
|
+
var style0$1k = {
|
|
9746
|
+
wrapperClass: wrapperClass$m,
|
|
9718
9747
|
ppmnaPaymentTypeContainer: ppmnaPaymentTypeContainer$2,
|
|
9719
9748
|
img: img$b,
|
|
9720
9749
|
imgContainer: imgContainer$3,
|
|
@@ -9728,7 +9757,7 @@ var style0$1j = {
|
|
|
9728
9757
|
makePaymentArrowContainer: makePaymentArrowContainer$2,
|
|
9729
9758
|
bankImg,
|
|
9730
9759
|
branchCode,
|
|
9731
|
-
content: content$
|
|
9760
|
+
content: content$g,
|
|
9732
9761
|
roundContainer,
|
|
9733
9762
|
round: round$2,
|
|
9734
9763
|
bankName
|
|
@@ -9742,7 +9771,7 @@ const getTypeText$2 = (val2) => {
|
|
|
9742
9771
|
return "";
|
|
9743
9772
|
}
|
|
9744
9773
|
};
|
|
9745
|
-
const _sfc_main$
|
|
9774
|
+
const _sfc_main$1v = defineComponent({
|
|
9746
9775
|
props: {
|
|
9747
9776
|
bank: {
|
|
9748
9777
|
type: Object,
|
|
@@ -9787,7 +9816,7 @@ const _sfc_main$1u = defineComponent({
|
|
|
9787
9816
|
}
|
|
9788
9817
|
});
|
|
9789
9818
|
const _hoisted_1$R = ["src"];
|
|
9790
|
-
function _sfc_render$
|
|
9819
|
+
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9791
9820
|
return openBlock(), createElementBlock("div", {
|
|
9792
9821
|
class: normalizeClass([
|
|
9793
9822
|
_ctx.style.wrapperClass,
|
|
@@ -9841,10 +9870,10 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9841
9870
|
], 2)
|
|
9842
9871
|
], 2);
|
|
9843
9872
|
}
|
|
9844
|
-
const cssModules$
|
|
9845
|
-
cssModules$
|
|
9846
|
-
var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9847
|
-
const wrapperClass$
|
|
9873
|
+
const cssModules$1k = {};
|
|
9874
|
+
cssModules$1k["$style"] = style0$1k;
|
|
9875
|
+
var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$1v], ["__cssModules", cssModules$1k]]);
|
|
9876
|
+
const wrapperClass$l = "_wrapperClass_101rj_1";
|
|
9848
9877
|
const ppmnaPaymentTypeContainer$1 = "_ppmnaPaymentTypeContainer_101rj_1";
|
|
9849
9878
|
const img$a = "_img_101rj_5";
|
|
9850
9879
|
const imgContainer$2 = "_imgContainer_101rj_18";
|
|
@@ -9858,11 +9887,11 @@ const arrowRight$1 = "_arrowRight_101rj_71";
|
|
|
9858
9887
|
const makePaymentArrowContainer$1 = "_makePaymentArrowContainer_101rj_81";
|
|
9859
9888
|
const container$y = "_container_101rj_85";
|
|
9860
9889
|
const sbidImg = "_sbidImg_101rj_97";
|
|
9861
|
-
const content$
|
|
9890
|
+
const content$f = "_content_101rj_105";
|
|
9862
9891
|
const desc1 = "_desc1_101rj_118";
|
|
9863
9892
|
const desc2 = "_desc2_101rj_122";
|
|
9864
|
-
var style0$
|
|
9865
|
-
wrapperClass: wrapperClass$
|
|
9893
|
+
var style0$1j = {
|
|
9894
|
+
wrapperClass: wrapperClass$l,
|
|
9866
9895
|
ppmnaPaymentTypeContainer: ppmnaPaymentTypeContainer$1,
|
|
9867
9896
|
img: img$a,
|
|
9868
9897
|
imgContainer: imgContainer$2,
|
|
@@ -9876,11 +9905,11 @@ var style0$1i = {
|
|
|
9876
9905
|
makePaymentArrowContainer: makePaymentArrowContainer$1,
|
|
9877
9906
|
container: container$y,
|
|
9878
9907
|
sbidImg,
|
|
9879
|
-
content: content$
|
|
9908
|
+
content: content$f,
|
|
9880
9909
|
desc1,
|
|
9881
9910
|
desc2
|
|
9882
9911
|
};
|
|
9883
|
-
const _sfc_main$
|
|
9912
|
+
const _sfc_main$1u = defineComponent({
|
|
9884
9913
|
props: {
|
|
9885
9914
|
sbid: {
|
|
9886
9915
|
type: Object,
|
|
@@ -9908,7 +9937,7 @@ const _sfc_main$1t = defineComponent({
|
|
|
9908
9937
|
}
|
|
9909
9938
|
});
|
|
9910
9939
|
const _hoisted_1$Q = ["src"];
|
|
9911
|
-
function _sfc_render$
|
|
9940
|
+
function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9912
9941
|
return openBlock(), createElementBlock("div", {
|
|
9913
9942
|
class: normalizeClass([_ctx.$style.wrapperClass, _ctx.$style.container])
|
|
9914
9943
|
}, [
|
|
@@ -9942,10 +9971,10 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9942
9971
|
], 2)
|
|
9943
9972
|
], 2);
|
|
9944
9973
|
}
|
|
9945
|
-
const cssModules$
|
|
9946
|
-
cssModules$
|
|
9947
|
-
var SbidType = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9948
|
-
const wrapperClass$
|
|
9974
|
+
const cssModules$1j = {};
|
|
9975
|
+
cssModules$1j["$style"] = style0$1j;
|
|
9976
|
+
var SbidType = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$1u], ["__cssModules", cssModules$1j]]);
|
|
9977
|
+
const wrapperClass$k = "_wrapperClass_1nwz1_1";
|
|
9949
9978
|
const ppmnaPaymentTypeContainer = "_ppmnaPaymentTypeContainer_1nwz1_1";
|
|
9950
9979
|
const img$9 = "_img_1nwz1_5";
|
|
9951
9980
|
const imgContainer$1 = "_imgContainer_1nwz1_18";
|
|
@@ -9960,8 +9989,8 @@ const makePaymentArrowContainer = "_makePaymentArrowContainer_1nwz1_81";
|
|
|
9960
9989
|
const container$x = "_container_1nwz1_86";
|
|
9961
9990
|
const subTitle = "_subTitle_1nwz1_91";
|
|
9962
9991
|
const imageContainer$5 = "_imageContainer_1nwz1_96";
|
|
9963
|
-
var style0$
|
|
9964
|
-
wrapperClass: wrapperClass$
|
|
9992
|
+
var style0$1i = {
|
|
9993
|
+
wrapperClass: wrapperClass$k,
|
|
9965
9994
|
ppmnaPaymentTypeContainer,
|
|
9966
9995
|
img: img$9,
|
|
9967
9996
|
imgContainer: imgContainer$1,
|
|
@@ -9977,7 +10006,7 @@ var style0$1h = {
|
|
|
9977
10006
|
subTitle,
|
|
9978
10007
|
imageContainer: imageContainer$5
|
|
9979
10008
|
};
|
|
9980
|
-
const _sfc_main$
|
|
10009
|
+
const _sfc_main$1t = defineComponent({
|
|
9981
10010
|
props: {
|
|
9982
10011
|
payLater: {
|
|
9983
10012
|
type: Object,
|
|
@@ -10006,7 +10035,7 @@ const _sfc_main$1s = defineComponent({
|
|
|
10006
10035
|
}
|
|
10007
10036
|
});
|
|
10008
10037
|
const _hoisted_1$P = ["src"];
|
|
10009
|
-
function _sfc_render$
|
|
10038
|
+
function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10010
10039
|
return openBlock(), createElementBlock("div", {
|
|
10011
10040
|
class: normalizeClass([
|
|
10012
10041
|
_ctx.$style.wrapperClass,
|
|
@@ -10047,9 +10076,9 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10047
10076
|
], 2)
|
|
10048
10077
|
], 2);
|
|
10049
10078
|
}
|
|
10050
|
-
const cssModules$
|
|
10051
|
-
cssModules$
|
|
10052
|
-
var PayLaterType = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10079
|
+
const cssModules$1i = {};
|
|
10080
|
+
cssModules$1i["$style"] = style0$1i;
|
|
10081
|
+
var PayLaterType = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1t], ["__cssModules", cssModules$1i]]);
|
|
10053
10082
|
const PaymentType = defineComponent({
|
|
10054
10083
|
props: {
|
|
10055
10084
|
paymentMethod: {
|
|
@@ -22858,16 +22887,16 @@ const Lottie = defineComponent({
|
|
|
22858
22887
|
}, null);
|
|
22859
22888
|
}
|
|
22860
22889
|
});
|
|
22861
|
-
const wrapperClass$
|
|
22890
|
+
const wrapperClass$j = "_wrapperClass_192d5_7";
|
|
22862
22891
|
const container$w = "_container_192d5_7";
|
|
22863
22892
|
const header$a = "_header_192d5_21";
|
|
22864
22893
|
const arrow$2 = "_arrow_192d5_28";
|
|
22865
22894
|
const address$1 = "_address_192d5_37";
|
|
22866
22895
|
const arrowContainer$1 = "_arrowContainer_192d5_46";
|
|
22867
22896
|
const text$7 = "_text_192d5_57";
|
|
22868
|
-
var style0$
|
|
22897
|
+
var style0$1h = {
|
|
22869
22898
|
"ppmna-default-font": "_ppmna-default-font_192d5_1",
|
|
22870
|
-
wrapperClass: wrapperClass$
|
|
22899
|
+
wrapperClass: wrapperClass$j,
|
|
22871
22900
|
container: container$w,
|
|
22872
22901
|
header: header$a,
|
|
22873
22902
|
arrow: arrow$2,
|
|
@@ -22875,7 +22904,7 @@ var style0$1g = {
|
|
|
22875
22904
|
arrowContainer: arrowContainer$1,
|
|
22876
22905
|
text: text$7
|
|
22877
22906
|
};
|
|
22878
|
-
const _sfc_main$
|
|
22907
|
+
const _sfc_main$1s = defineComponent({
|
|
22879
22908
|
name: "AddressInfo",
|
|
22880
22909
|
components: {},
|
|
22881
22910
|
props: {
|
|
@@ -22917,7 +22946,7 @@ const _sfc_main$1r = defineComponent({
|
|
|
22917
22946
|
};
|
|
22918
22947
|
}
|
|
22919
22948
|
});
|
|
22920
|
-
function _sfc_render$
|
|
22949
|
+
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22921
22950
|
return openBlock(), createElementBlock("div", {
|
|
22922
22951
|
class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.container])
|
|
22923
22952
|
}, [
|
|
@@ -22949,23 +22978,23 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22949
22978
|
], 2)
|
|
22950
22979
|
], 2);
|
|
22951
22980
|
}
|
|
22952
|
-
const cssModules$
|
|
22953
|
-
cssModules$
|
|
22954
|
-
var AddressInfo$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22955
|
-
const wrapperClass$
|
|
22956
|
-
const paymentMethodContainer$4 = "
|
|
22957
|
-
const imageWrapper$3 = "
|
|
22958
|
-
const imageContainer$4 = "
|
|
22959
|
-
const roundStylePaymentMethod$3 = "
|
|
22960
|
-
const label$7 = "
|
|
22961
|
-
const mainLabel$4 = "
|
|
22962
|
-
const subLabel$4 = "
|
|
22963
|
-
const invalid$5 = "
|
|
22964
|
-
const rightAlign$5 = "
|
|
22965
|
-
const paymentMethodDisabled$4 = "
|
|
22966
|
-
const img$8 = "
|
|
22967
|
-
var style0$
|
|
22968
|
-
wrapperClass: wrapperClass$
|
|
22981
|
+
const cssModules$1h = {};
|
|
22982
|
+
cssModules$1h["$style"] = style0$1h;
|
|
22983
|
+
var AddressInfo$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$1s], ["__cssModules", cssModules$1h]]);
|
|
22984
|
+
const wrapperClass$i = "_wrapperClass_otzwj_1";
|
|
22985
|
+
const paymentMethodContainer$4 = "_paymentMethodContainer_otzwj_1";
|
|
22986
|
+
const imageWrapper$3 = "_imageWrapper_otzwj_6";
|
|
22987
|
+
const imageContainer$4 = "_imageContainer_otzwj_10";
|
|
22988
|
+
const roundStylePaymentMethod$3 = "_roundStylePaymentMethod_otzwj_19";
|
|
22989
|
+
const label$7 = "_label_otzwj_23";
|
|
22990
|
+
const mainLabel$4 = "_mainLabel_otzwj_30";
|
|
22991
|
+
const subLabel$4 = "_subLabel_otzwj_37";
|
|
22992
|
+
const invalid$5 = "_invalid_otzwj_46";
|
|
22993
|
+
const rightAlign$5 = "_rightAlign_otzwj_58";
|
|
22994
|
+
const paymentMethodDisabled$4 = "_paymentMethodDisabled_otzwj_63";
|
|
22995
|
+
const img$8 = "_img_otzwj_68";
|
|
22996
|
+
var style0$1g = {
|
|
22997
|
+
wrapperClass: wrapperClass$i,
|
|
22969
22998
|
paymentMethodContainer: paymentMethodContainer$4,
|
|
22970
22999
|
imageWrapper: imageWrapper$3,
|
|
22971
23000
|
imageContainer: imageContainer$4,
|
|
@@ -22978,7 +23007,7 @@ var style0$1f = {
|
|
|
22978
23007
|
paymentMethodDisabled: paymentMethodDisabled$4,
|
|
22979
23008
|
img: img$8
|
|
22980
23009
|
};
|
|
22981
|
-
const _sfc_main$
|
|
23010
|
+
const _sfc_main$1r = defineComponent({
|
|
22982
23011
|
components: {
|
|
22983
23012
|
WalletBreakdown
|
|
22984
23013
|
},
|
|
@@ -22988,6 +23017,9 @@ const _sfc_main$1q = defineComponent({
|
|
|
22988
23017
|
required: true
|
|
22989
23018
|
}
|
|
22990
23019
|
},
|
|
23020
|
+
emits: {
|
|
23021
|
+
select: () => true
|
|
23022
|
+
},
|
|
22991
23023
|
setup(props) {
|
|
22992
23024
|
const openBreakDown = ref(false);
|
|
22993
23025
|
const toggleBreakDown = () => {
|
|
@@ -23029,10 +23061,11 @@ const _sfc_main$1q = defineComponent({
|
|
|
23029
23061
|
}
|
|
23030
23062
|
});
|
|
23031
23063
|
const _hoisted_1$O = ["src"];
|
|
23032
|
-
function _sfc_render$
|
|
23064
|
+
function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23033
23065
|
const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
|
|
23034
23066
|
return openBlock(), createElementBlock("div", {
|
|
23035
|
-
class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.paymentMethodContainer])
|
|
23067
|
+
class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.paymentMethodContainer]),
|
|
23068
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("select"))
|
|
23036
23069
|
}, [
|
|
23037
23070
|
createBaseVNode("div", {
|
|
23038
23071
|
class: normalizeClass(_ctx.style.imageContainer)
|
|
@@ -23056,36 +23089,36 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23056
23089
|
], 2)
|
|
23057
23090
|
], 2);
|
|
23058
23091
|
}
|
|
23059
|
-
const cssModules$
|
|
23060
|
-
cssModules$
|
|
23061
|
-
var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23062
|
-
const wrapperClass$
|
|
23063
|
-
const paymentMethodContainer$3 = "
|
|
23064
|
-
const imageWrapper$2 = "
|
|
23065
|
-
const imageContainer$3 = "
|
|
23066
|
-
const roundStylePaymentMethod$2 = "
|
|
23067
|
-
const label$6 = "
|
|
23068
|
-
const mainLabel$3 = "
|
|
23069
|
-
const subLabel$3 = "
|
|
23070
|
-
const invalid$4 = "
|
|
23071
|
-
const rightAlign$4 = "
|
|
23072
|
-
const paymentMethodDisabled$3 = "
|
|
23073
|
-
const img$7 = "
|
|
23074
|
-
const round$1 = "
|
|
23075
|
-
const creditCardLabel = "
|
|
23076
|
-
const authenticateStatusContainer = "
|
|
23077
|
-
const unAuthorizedImg = "
|
|
23078
|
-
const unAuthorized = "
|
|
23079
|
-
const authorized = "
|
|
23080
|
-
const authorizedImg = "
|
|
23081
|
-
const creditCard = "
|
|
23082
|
-
const maintainanceInfo$
|
|
23083
|
-
const paymentInfo$
|
|
23084
|
-
const fullWidth$1 = "
|
|
23085
|
-
const cardInfo = "
|
|
23086
|
-
const additionDescription = "
|
|
23087
|
-
var style0$
|
|
23088
|
-
wrapperClass: wrapperClass$
|
|
23092
|
+
const cssModules$1g = {};
|
|
23093
|
+
cssModules$1g["$style"] = style0$1g;
|
|
23094
|
+
var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1r], ["__cssModules", cssModules$1g]]);
|
|
23095
|
+
const wrapperClass$h = "_wrapperClass_1u7pq_1";
|
|
23096
|
+
const paymentMethodContainer$3 = "_paymentMethodContainer_1u7pq_1";
|
|
23097
|
+
const imageWrapper$2 = "_imageWrapper_1u7pq_6";
|
|
23098
|
+
const imageContainer$3 = "_imageContainer_1u7pq_10";
|
|
23099
|
+
const roundStylePaymentMethod$2 = "_roundStylePaymentMethod_1u7pq_19";
|
|
23100
|
+
const label$6 = "_label_1u7pq_23";
|
|
23101
|
+
const mainLabel$3 = "_mainLabel_1u7pq_30";
|
|
23102
|
+
const subLabel$3 = "_subLabel_1u7pq_37";
|
|
23103
|
+
const invalid$4 = "_invalid_1u7pq_46";
|
|
23104
|
+
const rightAlign$4 = "_rightAlign_1u7pq_58";
|
|
23105
|
+
const paymentMethodDisabled$3 = "_paymentMethodDisabled_1u7pq_63";
|
|
23106
|
+
const img$7 = "_img_1u7pq_68";
|
|
23107
|
+
const round$1 = "_round_1u7pq_19";
|
|
23108
|
+
const creditCardLabel = "_creditCardLabel_1u7pq_75";
|
|
23109
|
+
const authenticateStatusContainer = "_authenticateStatusContainer_1u7pq_80";
|
|
23110
|
+
const unAuthorizedImg = "_unAuthorizedImg_1u7pq_87";
|
|
23111
|
+
const unAuthorized = "_unAuthorized_1u7pq_87";
|
|
23112
|
+
const authorized = "_authorized_1u7pq_93";
|
|
23113
|
+
const authorizedImg = "_authorizedImg_1u7pq_96";
|
|
23114
|
+
const creditCard = "_creditCard_1u7pq_75";
|
|
23115
|
+
const maintainanceInfo$3 = "_maintainanceInfo_1u7pq_103";
|
|
23116
|
+
const paymentInfo$3 = "_paymentInfo_1u7pq_110";
|
|
23117
|
+
const fullWidth$1 = "_fullWidth_1u7pq_113";
|
|
23118
|
+
const cardInfo = "_cardInfo_1u7pq_116";
|
|
23119
|
+
const additionDescription = "_additionDescription_1u7pq_121";
|
|
23120
|
+
var style0$1f = {
|
|
23121
|
+
wrapperClass: wrapperClass$h,
|
|
23089
23122
|
paymentMethodContainer: paymentMethodContainer$3,
|
|
23090
23123
|
imageWrapper: imageWrapper$2,
|
|
23091
23124
|
imageContainer: imageContainer$3,
|
|
@@ -23105,8 +23138,8 @@ var style0$1e = {
|
|
|
23105
23138
|
authorized,
|
|
23106
23139
|
authorizedImg,
|
|
23107
23140
|
creditCard,
|
|
23108
|
-
maintainanceInfo: maintainanceInfo$
|
|
23109
|
-
paymentInfo: paymentInfo$
|
|
23141
|
+
maintainanceInfo: maintainanceInfo$3,
|
|
23142
|
+
paymentInfo: paymentInfo$3,
|
|
23110
23143
|
fullWidth: fullWidth$1,
|
|
23111
23144
|
cardInfo,
|
|
23112
23145
|
additionDescription
|
|
@@ -23118,7 +23151,7 @@ const creditCardMap = {
|
|
|
23118
23151
|
[CreditTypes.MASTER]: img$6.master,
|
|
23119
23152
|
[CreditTypes.AMEX]: img$6.amex
|
|
23120
23153
|
};
|
|
23121
|
-
const _sfc_main$
|
|
23154
|
+
const _sfc_main$1q = defineComponent({
|
|
23122
23155
|
components: {
|
|
23123
23156
|
Button
|
|
23124
23157
|
},
|
|
@@ -23133,7 +23166,10 @@ const _sfc_main$1p = defineComponent({
|
|
|
23133
23166
|
default: false
|
|
23134
23167
|
}
|
|
23135
23168
|
},
|
|
23136
|
-
|
|
23169
|
+
emits: {
|
|
23170
|
+
select: () => true
|
|
23171
|
+
},
|
|
23172
|
+
setup(props, { emit }) {
|
|
23137
23173
|
const style = useCssModule();
|
|
23138
23174
|
const isYjCard = computed(() => {
|
|
23139
23175
|
var _a, _b;
|
|
@@ -23147,9 +23183,9 @@ const _sfc_main$1p = defineComponent({
|
|
|
23147
23183
|
var _a, _b;
|
|
23148
23184
|
return (_b = (_a = props.credit) == null ? void 0 : _a.creditCardInfo) == null ? void 0 : _b.isExpired;
|
|
23149
23185
|
});
|
|
23150
|
-
const
|
|
23186
|
+
const isDisable = computed(() => {
|
|
23151
23187
|
var _a, _b;
|
|
23152
|
-
return ((_b = (_a = props.credit) == null ? void 0 : _a.creditCardInfo) == null ? void 0 : _b.paymentMethodStatus)
|
|
23188
|
+
return ((_b = (_a = props.credit) == null ? void 0 : _a.creditCardInfo) == null ? void 0 : _b.paymentMethodStatus) !== "ACTIVATED" || isExpired.value;
|
|
23153
23189
|
});
|
|
23154
23190
|
const authInfo = computed(() => {
|
|
23155
23191
|
var _a, _b;
|
|
@@ -23192,18 +23228,25 @@ const _sfc_main$1p = defineComponent({
|
|
|
23192
23228
|
style: props.round ? style.round : style.creditCard
|
|
23193
23229
|
};
|
|
23194
23230
|
});
|
|
23195
|
-
const paymentMethodStatus2 = computed(() => {
|
|
23196
|
-
var _a, _b;
|
|
23197
|
-
return (_b = (_a = props.credit) == null ? void 0 : _a.creditCardInfo) == null ? void 0 : _b.paymentMethodStatus;
|
|
23198
|
-
});
|
|
23199
23231
|
const paymentMethodStatusText = computed(() => {
|
|
23200
|
-
var _a;
|
|
23201
|
-
return getPaymentMethodStatus((_a = isExpired.value) != null ? _a : false,
|
|
23232
|
+
var _a, _b;
|
|
23233
|
+
return getPaymentMethodStatus((_a = isExpired.value) != null ? _a : false, (_b = props.credit) == null ? void 0 : _b.creditCardInfo);
|
|
23202
23234
|
});
|
|
23203
23235
|
const additionalDescription = computed(() => {
|
|
23204
23236
|
var _a;
|
|
23205
23237
|
return (_a = props.credit.paymentMethodDescriptionInfo) == null ? void 0 : _a.additionalDescription;
|
|
23206
23238
|
});
|
|
23239
|
+
const handleClick = (e, info2) => {
|
|
23240
|
+
if (info2 == null ? void 0 : info2.linkUrl) {
|
|
23241
|
+
e == null ? void 0 : e.stopPropagation();
|
|
23242
|
+
openUrl(info2.linkUrl);
|
|
23243
|
+
}
|
|
23244
|
+
};
|
|
23245
|
+
const handleSelect = () => {
|
|
23246
|
+
if (isDisable.value)
|
|
23247
|
+
return;
|
|
23248
|
+
emit("select");
|
|
23249
|
+
};
|
|
23207
23250
|
return {
|
|
23208
23251
|
last4digits: computed(() => {
|
|
23209
23252
|
var _a, _b;
|
|
@@ -23211,25 +23254,36 @@ const _sfc_main$1p = defineComponent({
|
|
|
23211
23254
|
}),
|
|
23212
23255
|
authInfo,
|
|
23213
23256
|
paymentMethodStatusText,
|
|
23214
|
-
|
|
23215
|
-
|
|
23216
|
-
return (_d = (_c = (_b = (_a = props.credit) == null ? void 0 : _a.paymentMethodDescriptionInfo) == null ? void 0 : _b.statusDescription) == null ? void 0 : _c.text) != null ? _d : "";
|
|
23217
|
-
}),
|
|
23218
|
-
getClass: isExpired.value || paymentMethodStatus2.value !== "ACTIVATED" ? style.paymentMethodDisabled : "",
|
|
23219
|
-
isActivated,
|
|
23257
|
+
getClass: isDisable.value ? style.paymentMethodDisabled : "",
|
|
23258
|
+
isDisable,
|
|
23220
23259
|
style,
|
|
23221
23260
|
cardInfo: cardInfo2,
|
|
23222
|
-
|
|
23223
|
-
|
|
23261
|
+
additionalDescription,
|
|
23262
|
+
payMethodDescriptionInfo: computed(() => {
|
|
23263
|
+
var _a, _b, _c, _d;
|
|
23264
|
+
return [
|
|
23265
|
+
(_b = (_a = props.credit) == null ? void 0 : _a.paymentMethodDescriptionInfo) == null ? void 0 : _b.statusDescription,
|
|
23266
|
+
(_d = (_c = props.credit) == null ? void 0 : _c.paymentMethodDescriptionInfo) == null ? void 0 : _d.detailDescription
|
|
23267
|
+
].filter((info2) => !!info2);
|
|
23268
|
+
}),
|
|
23269
|
+
getMaintenanceStyle: computed(() => (info2) => {
|
|
23270
|
+
return {
|
|
23271
|
+
color: info2.color
|
|
23272
|
+
};
|
|
23273
|
+
}),
|
|
23274
|
+
handleClick,
|
|
23275
|
+
handleSelect
|
|
23224
23276
|
};
|
|
23225
23277
|
}
|
|
23226
23278
|
});
|
|
23227
23279
|
const _hoisted_1$N = ["src"];
|
|
23228
|
-
const _hoisted_2$
|
|
23229
|
-
|
|
23280
|
+
const _hoisted_2$q = ["src"];
|
|
23281
|
+
const _hoisted_3$e = ["onClick"];
|
|
23282
|
+
function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23230
23283
|
const _component_Button = resolveComponent("Button");
|
|
23231
23284
|
return openBlock(), createElementBlock("div", {
|
|
23232
|
-
class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.paymentMethodContainer, _ctx.getClass])
|
|
23285
|
+
class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.paymentMethodContainer, _ctx.getClass]),
|
|
23286
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleSelect && _ctx.handleSelect(...args))
|
|
23233
23287
|
}, [
|
|
23234
23288
|
createBaseVNode("div", {
|
|
23235
23289
|
class: normalizeClass(_ctx.style.imageWrapper)
|
|
@@ -23274,7 +23328,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23274
23328
|
createBaseVNode("img", {
|
|
23275
23329
|
src: _ctx.authInfo.img,
|
|
23276
23330
|
class: normalizeClass(_ctx.authInfo.imgStyle)
|
|
23277
|
-
}, null, 10, _hoisted_2$
|
|
23331
|
+
}, null, 10, _hoisted_2$q),
|
|
23278
23332
|
createBaseVNode("span", null, toDisplayString(_ctx.authInfo.text), 1)
|
|
23279
23333
|
], 2)
|
|
23280
23334
|
], 2),
|
|
@@ -23291,7 +23345,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23291
23345
|
createBaseVNode("span", {
|
|
23292
23346
|
class: normalizeClass(_ctx.style.rightAlign)
|
|
23293
23347
|
}, [
|
|
23294
|
-
|
|
23348
|
+
_ctx.isDisable ? (openBlock(), createBlock(_component_Button, {
|
|
23295
23349
|
key: 0,
|
|
23296
23350
|
disabled: true,
|
|
23297
23351
|
class: normalizeClass(_ctx.style.invalid),
|
|
@@ -23305,35 +23359,40 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23305
23359
|
}, 8, ["class"])) : createCommentVNode("", true)
|
|
23306
23360
|
], 2)
|
|
23307
23361
|
], 2),
|
|
23308
|
-
|
|
23309
|
-
|
|
23310
|
-
|
|
23311
|
-
|
|
23362
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.payMethodDescriptionInfo, (info2, index2) => {
|
|
23363
|
+
return openBlock(), createElementBlock("div", {
|
|
23364
|
+
key: index2,
|
|
23365
|
+
class: normalizeClass(_ctx.style.maintainanceInfo),
|
|
23366
|
+
style: normalizeStyle(_ctx.getMaintenanceStyle(info2)),
|
|
23367
|
+
"data-testid": "description-info",
|
|
23368
|
+
onClick: ($event) => _ctx.handleClick($event, info2)
|
|
23369
|
+
}, toDisplayString(info2.text), 15, _hoisted_3$e);
|
|
23370
|
+
}), 128))
|
|
23312
23371
|
], 2)
|
|
23313
23372
|
], 2);
|
|
23314
23373
|
}
|
|
23315
|
-
const cssModules$
|
|
23316
|
-
cssModules$
|
|
23317
|
-
var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23318
|
-
const wrapperClass$
|
|
23319
|
-
const paymentMethodContainer$2 = "
|
|
23320
|
-
const imageWrapper$1 = "
|
|
23321
|
-
const imageContainer$2 = "
|
|
23322
|
-
const roundStylePaymentMethod$1 = "
|
|
23323
|
-
const label$5 = "
|
|
23324
|
-
const mainLabel$2 = "
|
|
23325
|
-
const subLabel$2 = "
|
|
23326
|
-
const invalid$3 = "
|
|
23327
|
-
const rightAlign$3 = "
|
|
23328
|
-
const paymentMethodDisabled$2 = "
|
|
23329
|
-
const img$5 = "
|
|
23330
|
-
const round = "
|
|
23331
|
-
const branchNumber$1 = "
|
|
23332
|
-
const maintainanceInfo$
|
|
23333
|
-
const paymentInfo$
|
|
23334
|
-
const fullWidth = "
|
|
23335
|
-
var style0$
|
|
23336
|
-
wrapperClass: wrapperClass$
|
|
23374
|
+
const cssModules$1f = {};
|
|
23375
|
+
cssModules$1f["$style"] = style0$1f;
|
|
23376
|
+
var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1q], ["__cssModules", cssModules$1f]]);
|
|
23377
|
+
const wrapperClass$g = "_wrapperClass_6wfpf_1";
|
|
23378
|
+
const paymentMethodContainer$2 = "_paymentMethodContainer_6wfpf_1";
|
|
23379
|
+
const imageWrapper$1 = "_imageWrapper_6wfpf_6";
|
|
23380
|
+
const imageContainer$2 = "_imageContainer_6wfpf_10";
|
|
23381
|
+
const roundStylePaymentMethod$1 = "_roundStylePaymentMethod_6wfpf_19";
|
|
23382
|
+
const label$5 = "_label_6wfpf_23";
|
|
23383
|
+
const mainLabel$2 = "_mainLabel_6wfpf_30";
|
|
23384
|
+
const subLabel$2 = "_subLabel_6wfpf_37";
|
|
23385
|
+
const invalid$3 = "_invalid_6wfpf_46";
|
|
23386
|
+
const rightAlign$3 = "_rightAlign_6wfpf_58";
|
|
23387
|
+
const paymentMethodDisabled$2 = "_paymentMethodDisabled_6wfpf_63";
|
|
23388
|
+
const img$5 = "_img_6wfpf_68";
|
|
23389
|
+
const round = "_round_6wfpf_19";
|
|
23390
|
+
const branchNumber$1 = "_branchNumber_6wfpf_75";
|
|
23391
|
+
const maintainanceInfo$2 = "_maintainanceInfo_6wfpf_81";
|
|
23392
|
+
const paymentInfo$2 = "_paymentInfo_6wfpf_87";
|
|
23393
|
+
const fullWidth = "_fullWidth_6wfpf_90";
|
|
23394
|
+
var style0$1e = {
|
|
23395
|
+
wrapperClass: wrapperClass$g,
|
|
23337
23396
|
paymentMethodContainer: paymentMethodContainer$2,
|
|
23338
23397
|
imageWrapper: imageWrapper$1,
|
|
23339
23398
|
imageContainer: imageContainer$2,
|
|
@@ -23347,8 +23406,8 @@ var style0$1d = {
|
|
|
23347
23406
|
img: img$5,
|
|
23348
23407
|
round,
|
|
23349
23408
|
branchNumber: branchNumber$1,
|
|
23350
|
-
maintainanceInfo: maintainanceInfo$
|
|
23351
|
-
paymentInfo: paymentInfo$
|
|
23409
|
+
maintainanceInfo: maintainanceInfo$2,
|
|
23410
|
+
paymentInfo: paymentInfo$2,
|
|
23352
23411
|
fullWidth
|
|
23353
23412
|
};
|
|
23354
23413
|
const getTypeText$1 = (val2) => {
|
|
@@ -23360,7 +23419,7 @@ const getTypeText$1 = (val2) => {
|
|
|
23360
23419
|
return "";
|
|
23361
23420
|
}
|
|
23362
23421
|
};
|
|
23363
|
-
const _sfc_main$
|
|
23422
|
+
const _sfc_main$1p = defineComponent({
|
|
23364
23423
|
components: {
|
|
23365
23424
|
Button
|
|
23366
23425
|
},
|
|
@@ -23375,18 +23434,20 @@ const _sfc_main$1o = defineComponent({
|
|
|
23375
23434
|
default: false
|
|
23376
23435
|
}
|
|
23377
23436
|
},
|
|
23378
|
-
|
|
23379
|
-
|
|
23437
|
+
emits: {
|
|
23438
|
+
select: () => true
|
|
23439
|
+
},
|
|
23440
|
+
setup(props, { emit }) {
|
|
23380
23441
|
const bankInfo2 = computed(() => {
|
|
23381
|
-
var
|
|
23382
|
-
const bankInfo22 = ((
|
|
23442
|
+
var _a, _b;
|
|
23443
|
+
const bankInfo22 = ((_a = props.bank) == null ? void 0 : _a.bankInfo) || null;
|
|
23383
23444
|
const logo = bankInfo22 == null ? void 0 : bankInfo22.bankLogoUrl;
|
|
23384
23445
|
const name2 = bankInfo22 == null ? void 0 : bankInfo22.bankName;
|
|
23385
23446
|
let branchCode2 = bankInfo22 == null ? void 0 : bankInfo22.bankBranchCode;
|
|
23386
23447
|
const branchName = bankInfo22 == null ? void 0 : bankInfo22.bankBranchName;
|
|
23387
23448
|
const digits = bankInfo22 == null ? void 0 : bankInfo22.bankAccountNumberLast2digits;
|
|
23388
23449
|
if ((bankInfo22 == null ? void 0 : bankInfo22.bankCode) !== bankCode.YUCHO_BANK_CODE) {
|
|
23389
|
-
branchCode2 = getTypeText$1((
|
|
23450
|
+
branchCode2 = getTypeText$1((_b = bankInfo22 == null ? void 0 : bankInfo22.bankAccountType) != null ? _b : "");
|
|
23390
23451
|
}
|
|
23391
23452
|
return {
|
|
23392
23453
|
logo,
|
|
@@ -23397,30 +23458,54 @@ const _sfc_main$1o = defineComponent({
|
|
|
23397
23458
|
};
|
|
23398
23459
|
});
|
|
23399
23460
|
const style = useCssModule();
|
|
23461
|
+
const handleClick = (e, info2) => {
|
|
23462
|
+
if (info2 == null ? void 0 : info2.linkUrl) {
|
|
23463
|
+
e == null ? void 0 : e.stopPropagation();
|
|
23464
|
+
openUrl(info2.linkUrl);
|
|
23465
|
+
}
|
|
23466
|
+
};
|
|
23467
|
+
const isDisable = computed(() => {
|
|
23468
|
+
var _a, _b;
|
|
23469
|
+
return ((_b = (_a = props.bank) == null ? void 0 : _a.bankInfo) == null ? void 0 : _b.paymentMethodStatus) !== PaymentMethodStatus.ACTIVATED;
|
|
23470
|
+
});
|
|
23471
|
+
const handleSelect = () => {
|
|
23472
|
+
if (isDisable == null ? void 0 : isDisable.value)
|
|
23473
|
+
return;
|
|
23474
|
+
emit("select");
|
|
23475
|
+
};
|
|
23400
23476
|
return {
|
|
23401
23477
|
bankInfo: bankInfo2,
|
|
23402
|
-
isDisable
|
|
23403
|
-
|
|
23404
|
-
|
|
23478
|
+
isDisable,
|
|
23479
|
+
paymentMethodStatusText: computed(() => {
|
|
23480
|
+
var _a;
|
|
23481
|
+
return getPaymentMethodStatus(false, (_a = props.bank) == null ? void 0 : _a.bankInfo);
|
|
23405
23482
|
}),
|
|
23406
|
-
|
|
23407
|
-
|
|
23408
|
-
|
|
23483
|
+
getClass: (isDisable == null ? void 0 : isDisable.value) ? style.paymentMethodDisabled : "",
|
|
23484
|
+
style,
|
|
23485
|
+
payMethodDescriptionInfo: computed(() => {
|
|
23486
|
+
var _a, _b, _c, _d;
|
|
23487
|
+
return [
|
|
23488
|
+
(_b = (_a = props.bank) == null ? void 0 : _a.paymentMethodDescriptionInfo) == null ? void 0 : _b.statusDescription,
|
|
23489
|
+
(_d = (_c = props.bank) == null ? void 0 : _c.paymentMethodDescriptionInfo) == null ? void 0 : _d.detailDescription
|
|
23490
|
+
].filter((info2) => !!info2);
|
|
23409
23491
|
}),
|
|
23410
|
-
|
|
23411
|
-
|
|
23412
|
-
|
|
23492
|
+
getMaintenanceStyle: computed(() => (info2) => {
|
|
23493
|
+
return {
|
|
23494
|
+
color: info2.color
|
|
23495
|
+
};
|
|
23413
23496
|
}),
|
|
23414
|
-
|
|
23415
|
-
|
|
23497
|
+
handleClick,
|
|
23498
|
+
handleSelect
|
|
23416
23499
|
};
|
|
23417
23500
|
}
|
|
23418
23501
|
});
|
|
23419
23502
|
const _hoisted_1$M = ["src"];
|
|
23420
|
-
|
|
23503
|
+
const _hoisted_2$p = ["onClick"];
|
|
23504
|
+
function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23421
23505
|
const _component_Button = resolveComponent("Button");
|
|
23422
23506
|
return openBlock(), createElementBlock("div", {
|
|
23423
|
-
class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.paymentMethodContainer, _ctx.getClass])
|
|
23507
|
+
class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.paymentMethodContainer, _ctx.getClass]),
|
|
23508
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleSelect && _ctx.handleSelect(...args))
|
|
23424
23509
|
}, [
|
|
23425
23510
|
createBaseVNode("div", {
|
|
23426
23511
|
class: normalizeClass(_ctx.style.imageWrapper)
|
|
@@ -23473,53 +23558,57 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23473
23558
|
type: "default"
|
|
23474
23559
|
}, {
|
|
23475
23560
|
default: withCtx(() => [
|
|
23476
|
-
createTextVNode(toDisplayString(_ctx.
|
|
23561
|
+
createTextVNode(toDisplayString(_ctx.paymentMethodStatusText), 1)
|
|
23477
23562
|
]),
|
|
23478
23563
|
_: 1
|
|
23479
23564
|
}, 8, ["class"])) : createCommentVNode("", true)
|
|
23480
23565
|
], 2)
|
|
23481
23566
|
], 2),
|
|
23482
|
-
|
|
23483
|
-
|
|
23484
|
-
|
|
23485
|
-
|
|
23567
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.payMethodDescriptionInfo, (info2, index2) => {
|
|
23568
|
+
return openBlock(), createElementBlock("div", {
|
|
23569
|
+
key: index2,
|
|
23570
|
+
class: normalizeClass(_ctx.style.maintainanceInfo),
|
|
23571
|
+
style: normalizeStyle(_ctx.getMaintenanceStyle(info2)),
|
|
23572
|
+
onClick: ($event) => _ctx.handleClick($event, info2)
|
|
23573
|
+
}, toDisplayString(info2.text), 15, _hoisted_2$p);
|
|
23574
|
+
}), 128))
|
|
23486
23575
|
], 2)
|
|
23487
23576
|
], 2);
|
|
23488
23577
|
}
|
|
23489
|
-
const cssModules$
|
|
23490
|
-
cssModules$
|
|
23491
|
-
var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23492
|
-
const wrapperClass$
|
|
23493
|
-
const container$v = "
|
|
23494
|
-
const imageContainer$1 = "
|
|
23495
|
-
const img$4 = "
|
|
23496
|
-
const content$
|
|
23497
|
-
const paymentInfo = "
|
|
23498
|
-
const paymentDesc = "
|
|
23499
|
-
const mainDesc = "
|
|
23500
|
-
const subDesc = "
|
|
23501
|
-
const disable = "
|
|
23502
|
-
const centerAlign = "
|
|
23503
|
-
const maintainanceInfo = "
|
|
23504
|
-
const invalid$2 = "
|
|
23505
|
-
const paymentMethodDisabled$1 = "
|
|
23506
|
-
var style0$
|
|
23507
|
-
wrapperClass: wrapperClass$
|
|
23578
|
+
const cssModules$1e = {};
|
|
23579
|
+
cssModules$1e["$style"] = style0$1e;
|
|
23580
|
+
var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1p], ["__cssModules", cssModules$1e]]);
|
|
23581
|
+
const wrapperClass$f = "_wrapperClass_4g7cx_1";
|
|
23582
|
+
const container$v = "_container_4g7cx_1";
|
|
23583
|
+
const imageContainer$1 = "_imageContainer_4g7cx_7";
|
|
23584
|
+
const img$4 = "_img_4g7cx_10";
|
|
23585
|
+
const content$e = "_content_4g7cx_15";
|
|
23586
|
+
const paymentInfo$1 = "_paymentInfo_4g7cx_19";
|
|
23587
|
+
const paymentDesc = "_paymentDesc_4g7cx_23";
|
|
23588
|
+
const mainDesc = "_mainDesc_4g7cx_27";
|
|
23589
|
+
const subDesc = "_subDesc_4g7cx_34";
|
|
23590
|
+
const disable = "_disable_4g7cx_40";
|
|
23591
|
+
const centerAlign = "_centerAlign_4g7cx_46";
|
|
23592
|
+
const maintainanceInfo$1 = "_maintainanceInfo_4g7cx_49";
|
|
23593
|
+
const invalid$2 = "_invalid_4g7cx_55";
|
|
23594
|
+
const paymentMethodDisabled$1 = "_paymentMethodDisabled_4g7cx_66";
|
|
23595
|
+
var style0$1d = {
|
|
23596
|
+
wrapperClass: wrapperClass$f,
|
|
23508
23597
|
container: container$v,
|
|
23509
23598
|
imageContainer: imageContainer$1,
|
|
23510
23599
|
img: img$4,
|
|
23511
|
-
content: content$
|
|
23512
|
-
paymentInfo,
|
|
23600
|
+
content: content$e,
|
|
23601
|
+
paymentInfo: paymentInfo$1,
|
|
23513
23602
|
paymentDesc,
|
|
23514
23603
|
mainDesc,
|
|
23515
23604
|
subDesc,
|
|
23516
23605
|
disable,
|
|
23517
23606
|
centerAlign,
|
|
23518
|
-
maintainanceInfo,
|
|
23607
|
+
maintainanceInfo: maintainanceInfo$1,
|
|
23519
23608
|
invalid: invalid$2,
|
|
23520
23609
|
paymentMethodDisabled: paymentMethodDisabled$1
|
|
23521
23610
|
};
|
|
23522
|
-
const _sfc_main$
|
|
23611
|
+
const _sfc_main$1o = defineComponent({
|
|
23523
23612
|
components: {
|
|
23524
23613
|
Button
|
|
23525
23614
|
},
|
|
@@ -23529,31 +23618,56 @@ const _sfc_main$1n = defineComponent({
|
|
|
23529
23618
|
required: true
|
|
23530
23619
|
}
|
|
23531
23620
|
},
|
|
23532
|
-
|
|
23533
|
-
|
|
23621
|
+
emits: {
|
|
23622
|
+
select: () => true
|
|
23623
|
+
},
|
|
23624
|
+
setup(props, { emit }) {
|
|
23534
23625
|
const style = useCssModule();
|
|
23626
|
+
const handleClick = (e, info2) => {
|
|
23627
|
+
if (info2 == null ? void 0 : info2.linkUrl) {
|
|
23628
|
+
e == null ? void 0 : e.stopPropagation();
|
|
23629
|
+
openUrl(info2.linkUrl);
|
|
23630
|
+
}
|
|
23631
|
+
};
|
|
23632
|
+
const isDisable = computed(() => {
|
|
23633
|
+
var _a, _b;
|
|
23634
|
+
return ((_b = (_a = props.sbid) == null ? void 0 : _a.sbidCarrierBillingInfo) == null ? void 0 : _b.paymentMethodStatus) !== PaymentMethodStatus.ACTIVATED;
|
|
23635
|
+
});
|
|
23636
|
+
const handleSelect = () => {
|
|
23637
|
+
if (isDisable.value)
|
|
23638
|
+
return;
|
|
23639
|
+
emit("select");
|
|
23640
|
+
};
|
|
23535
23641
|
return {
|
|
23536
|
-
isDisable
|
|
23537
|
-
var _a2, _b2;
|
|
23538
|
-
return ((_b2 = (_a2 = props.sbid) == null ? void 0 : _a2.sbidCarrierBillingInfo) == null ? void 0 : _b2.paymentMethodStatus) !== "ACTIVATED";
|
|
23539
|
-
}),
|
|
23642
|
+
isDisable,
|
|
23540
23643
|
images: getImages(),
|
|
23541
|
-
|
|
23542
|
-
var
|
|
23543
|
-
return getPaymentMethodStatus(false, (
|
|
23544
|
-
}),
|
|
23545
|
-
maintainanceInfo: computed(() => {
|
|
23546
|
-
var _a2, _b2, _c, _d;
|
|
23547
|
-
return (_d = (_c = (_b2 = (_a2 = props.sbid) == null ? void 0 : _a2.paymentMethodDescriptionInfo) == null ? void 0 : _b2.statusDescription) == null ? void 0 : _c.text) != null ? _d : "";
|
|
23644
|
+
paymentMethodStatusText: computed(() => {
|
|
23645
|
+
var _a;
|
|
23646
|
+
return getPaymentMethodStatus(false, (_a = props.sbid) == null ? void 0 : _a.sbidCarrierBillingInfo);
|
|
23548
23647
|
}),
|
|
23549
|
-
getClass: (
|
|
23648
|
+
getClass: (isDisable == null ? void 0 : isDisable.value) ? style.paymentMethodDisabled : "",
|
|
23550
23649
|
lg: getLanguage(),
|
|
23551
|
-
style
|
|
23650
|
+
style,
|
|
23651
|
+
payMethodDescriptionInfo: computed(() => {
|
|
23652
|
+
var _a, _b, _c, _d;
|
|
23653
|
+
return [
|
|
23654
|
+
(_b = (_a = props.sbid) == null ? void 0 : _a.paymentMethodDescriptionInfo) == null ? void 0 : _b.statusDescription,
|
|
23655
|
+
(_d = (_c = props.sbid) == null ? void 0 : _c.paymentMethodDescriptionInfo) == null ? void 0 : _d.detailDescription
|
|
23656
|
+
].filter((info2) => !!info2);
|
|
23657
|
+
}),
|
|
23658
|
+
getMaintenanceStyle: computed(() => (info2) => {
|
|
23659
|
+
return {
|
|
23660
|
+
color: info2.color
|
|
23661
|
+
};
|
|
23662
|
+
}),
|
|
23663
|
+
handleClick,
|
|
23664
|
+
handleSelect
|
|
23552
23665
|
};
|
|
23553
23666
|
}
|
|
23554
23667
|
});
|
|
23555
23668
|
const _hoisted_1$L = ["src"];
|
|
23556
|
-
|
|
23669
|
+
const _hoisted_2$o = ["onClick"];
|
|
23670
|
+
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23557
23671
|
const _component_Button = resolveComponent("Button");
|
|
23558
23672
|
return openBlock(), createElementBlock("div", {
|
|
23559
23673
|
class: normalizeClass([
|
|
@@ -23561,7 +23675,8 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23561
23675
|
_ctx.style.container,
|
|
23562
23676
|
_ctx.getClass,
|
|
23563
23677
|
_ctx.isDisable ? _ctx.style.centerAlign : ""
|
|
23564
|
-
])
|
|
23678
|
+
]),
|
|
23679
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleSelect && _ctx.handleSelect(...args))
|
|
23565
23680
|
}, [
|
|
23566
23681
|
createBaseVNode("div", {
|
|
23567
23682
|
class: normalizeClass(_ctx.style.imageContainer)
|
|
@@ -23601,34 +23716,41 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23601
23716
|
type: "default"
|
|
23602
23717
|
}, {
|
|
23603
23718
|
default: withCtx(() => [
|
|
23604
|
-
createTextVNode(toDisplayString(_ctx.
|
|
23719
|
+
createTextVNode(toDisplayString(_ctx.paymentMethodStatusText), 1)
|
|
23605
23720
|
]),
|
|
23606
23721
|
_: 1
|
|
23607
23722
|
}, 8, ["class"])) : createCommentVNode("", true)
|
|
23608
23723
|
])
|
|
23609
23724
|
], 2),
|
|
23610
|
-
|
|
23611
|
-
|
|
23612
|
-
|
|
23613
|
-
|
|
23725
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.payMethodDescriptionInfo, (info2, index2) => {
|
|
23726
|
+
return openBlock(), createElementBlock("div", {
|
|
23727
|
+
key: index2,
|
|
23728
|
+
class: normalizeClass(_ctx.style.maintainanceInfo),
|
|
23729
|
+
style: normalizeStyle(_ctx.getMaintenanceStyle(info2)),
|
|
23730
|
+
onClick: ($event) => _ctx.handleClick($event, info2)
|
|
23731
|
+
}, toDisplayString(info2.text), 15, _hoisted_2$o);
|
|
23732
|
+
}), 128))
|
|
23614
23733
|
], 2)
|
|
23615
23734
|
], 2);
|
|
23616
23735
|
}
|
|
23617
|
-
const cssModules$
|
|
23618
|
-
cssModules$
|
|
23619
|
-
var SbidBank = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23620
|
-
const wrapperClass$
|
|
23621
|
-
const img$3 = "
|
|
23622
|
-
const container$u = "
|
|
23623
|
-
const imgContainer = "
|
|
23624
|
-
const labelContainer = "
|
|
23625
|
-
const mainLabel$1 = "
|
|
23626
|
-
const subLabel$1 = "
|
|
23627
|
-
const disabled$2 = "
|
|
23628
|
-
const rightAlign$2 = "
|
|
23629
|
-
const invalid$1 = "
|
|
23630
|
-
|
|
23631
|
-
|
|
23736
|
+
const cssModules$1d = {};
|
|
23737
|
+
cssModules$1d["$style"] = style0$1d;
|
|
23738
|
+
var SbidBank = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1o], ["__cssModules", cssModules$1d]]);
|
|
23739
|
+
const wrapperClass$e = "_wrapperClass_jhs19_1";
|
|
23740
|
+
const img$3 = "_img_jhs19_1";
|
|
23741
|
+
const container$u = "_container_jhs19_5";
|
|
23742
|
+
const imgContainer = "_imgContainer_jhs19_10";
|
|
23743
|
+
const labelContainer = "_labelContainer_jhs19_19";
|
|
23744
|
+
const mainLabel$1 = "_mainLabel_jhs19_26";
|
|
23745
|
+
const subLabel$1 = "_subLabel_jhs19_33";
|
|
23746
|
+
const disabled$2 = "_disabled_jhs19_39";
|
|
23747
|
+
const rightAlign$2 = "_rightAlign_jhs19_44";
|
|
23748
|
+
const invalid$1 = "_invalid_jhs19_48";
|
|
23749
|
+
const content$d = "_content_jhs19_59";
|
|
23750
|
+
const paymentInfo = "_paymentInfo_jhs19_62";
|
|
23751
|
+
const maintainanceInfo = "_maintainanceInfo_jhs19_65";
|
|
23752
|
+
var style0$1c = {
|
|
23753
|
+
wrapperClass: wrapperClass$e,
|
|
23632
23754
|
img: img$3,
|
|
23633
23755
|
container: container$u,
|
|
23634
23756
|
imgContainer,
|
|
@@ -23637,9 +23759,12 @@ var style0$1b = {
|
|
|
23637
23759
|
subLabel: subLabel$1,
|
|
23638
23760
|
disabled: disabled$2,
|
|
23639
23761
|
rightAlign: rightAlign$2,
|
|
23640
|
-
invalid: invalid$1
|
|
23762
|
+
invalid: invalid$1,
|
|
23763
|
+
content: content$d,
|
|
23764
|
+
paymentInfo,
|
|
23765
|
+
maintainanceInfo
|
|
23641
23766
|
};
|
|
23642
|
-
const _sfc_main$
|
|
23767
|
+
const _sfc_main$1n = defineComponent({
|
|
23643
23768
|
components: {
|
|
23644
23769
|
Button
|
|
23645
23770
|
},
|
|
@@ -23649,25 +23774,57 @@ const _sfc_main$1m = defineComponent({
|
|
|
23649
23774
|
required: true
|
|
23650
23775
|
}
|
|
23651
23776
|
},
|
|
23652
|
-
|
|
23653
|
-
|
|
23777
|
+
emits: {
|
|
23778
|
+
select: () => true
|
|
23779
|
+
},
|
|
23780
|
+
setup(props, { emit }) {
|
|
23781
|
+
const handleClick = (e, info2) => {
|
|
23782
|
+
if (info2 == null ? void 0 : info2.linkUrl) {
|
|
23783
|
+
e == null ? void 0 : e.stopPropagation();
|
|
23784
|
+
openUrl(info2.linkUrl);
|
|
23785
|
+
}
|
|
23786
|
+
};
|
|
23787
|
+
const isDisable = computed(() => {
|
|
23788
|
+
var _a, _b;
|
|
23789
|
+
return ((_b = (_a = props == null ? void 0 : props.payLater) == null ? void 0 : _a.payLaterCcInfo) == null ? void 0 : _b.paymentMethodStatus) !== PaymentMethodStatus.ACTIVATED;
|
|
23790
|
+
});
|
|
23791
|
+
const handleSelect = () => {
|
|
23792
|
+
if (isDisable.value)
|
|
23793
|
+
return;
|
|
23794
|
+
emit("select");
|
|
23795
|
+
};
|
|
23654
23796
|
return {
|
|
23655
23797
|
formattedBalance: computed(() => {
|
|
23656
|
-
var
|
|
23657
|
-
return formatAmount((
|
|
23798
|
+
var _a, _b;
|
|
23799
|
+
return formatAmount((_b = (_a = props.payLater) == null ? void 0 : _a.payLaterCcInfo) == null ? void 0 : _b.availableAmount);
|
|
23658
23800
|
}),
|
|
23659
|
-
isDisable
|
|
23801
|
+
isDisable,
|
|
23660
23802
|
images: getImages(),
|
|
23661
23803
|
lg: getLanguage(),
|
|
23662
23804
|
paymentMethodStatusText: computed(() => {
|
|
23663
|
-
var
|
|
23664
|
-
return getPaymentMethodStatus(false, (
|
|
23665
|
-
})
|
|
23805
|
+
var _a;
|
|
23806
|
+
return getPaymentMethodStatus(false, (_a = props == null ? void 0 : props.payLater) == null ? void 0 : _a.payLaterCcInfo);
|
|
23807
|
+
}),
|
|
23808
|
+
payMethodDescriptionInfo: computed(() => {
|
|
23809
|
+
var _a, _b, _c, _d;
|
|
23810
|
+
return [
|
|
23811
|
+
(_b = (_a = props.payLater) == null ? void 0 : _a.paymentMethodDescriptionInfo) == null ? void 0 : _b.statusDescription,
|
|
23812
|
+
(_d = (_c = props.payLater) == null ? void 0 : _c.paymentMethodDescriptionInfo) == null ? void 0 : _d.detailDescription
|
|
23813
|
+
].filter((info2) => !!info2);
|
|
23814
|
+
}),
|
|
23815
|
+
getMaintenanceStyle: computed(() => (info2) => {
|
|
23816
|
+
return {
|
|
23817
|
+
color: info2.color
|
|
23818
|
+
};
|
|
23819
|
+
}),
|
|
23820
|
+
handleClick,
|
|
23821
|
+
handleSelect
|
|
23666
23822
|
};
|
|
23667
23823
|
}
|
|
23668
23824
|
});
|
|
23669
23825
|
const _hoisted_1$K = ["src"];
|
|
23670
|
-
|
|
23826
|
+
const _hoisted_2$n = ["onClick"];
|
|
23827
|
+
function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23671
23828
|
const _component_Button = resolveComponent("Button");
|
|
23672
23829
|
return openBlock(), createElementBlock("div", {
|
|
23673
23830
|
class: normalizeClass([
|
|
@@ -23676,7 +23833,8 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23676
23833
|
[_ctx.$style.disabled]: _ctx.isDisable,
|
|
23677
23834
|
[_ctx.$style.container]: true
|
|
23678
23835
|
}
|
|
23679
|
-
])
|
|
23836
|
+
]),
|
|
23837
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleSelect && _ctx.handleSelect(...args))
|
|
23680
23838
|
}, [
|
|
23681
23839
|
createBaseVNode("div", {
|
|
23682
23840
|
class: normalizeClass(_ctx.$style.imgContainer)
|
|
@@ -23687,37 +23845,53 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23687
23845
|
}, null, 10, _hoisted_1$K)
|
|
23688
23846
|
], 2),
|
|
23689
23847
|
createBaseVNode("div", {
|
|
23690
|
-
class: normalizeClass(_ctx.$style.
|
|
23691
|
-
}, [
|
|
23692
|
-
createBaseVNode("span", {
|
|
23693
|
-
class: normalizeClass(_ctx.$style.mainLabel),
|
|
23694
|
-
"data-testid": "pay-method-title"
|
|
23695
|
-
}, toDisplayString(_ctx.lg.payLater.title), 3),
|
|
23696
|
-
createBaseVNode("span", {
|
|
23697
|
-
class: normalizeClass(_ctx.$style.subLabel)
|
|
23698
|
-
}, toDisplayString(_ctx.lg.payLater.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 3)
|
|
23699
|
-
], 2),
|
|
23700
|
-
createBaseVNode("span", {
|
|
23701
|
-
class: normalizeClass(_ctx.$style.rightAlign)
|
|
23848
|
+
class: normalizeClass(_ctx.$style.content)
|
|
23702
23849
|
}, [
|
|
23703
|
-
|
|
23704
|
-
|
|
23705
|
-
|
|
23706
|
-
|
|
23707
|
-
|
|
23708
|
-
|
|
23709
|
-
|
|
23710
|
-
|
|
23711
|
-
|
|
23712
|
-
|
|
23713
|
-
|
|
23714
|
-
|
|
23850
|
+
createBaseVNode("div", {
|
|
23851
|
+
class: normalizeClass(_ctx.$style.paymentInfo)
|
|
23852
|
+
}, [
|
|
23853
|
+
createBaseVNode("div", {
|
|
23854
|
+
class: normalizeClass(_ctx.$style.labelContainer)
|
|
23855
|
+
}, [
|
|
23856
|
+
createBaseVNode("span", {
|
|
23857
|
+
class: normalizeClass(_ctx.$style.mainLabel),
|
|
23858
|
+
"data-testid": "pay-method-title"
|
|
23859
|
+
}, toDisplayString(_ctx.lg.payLater.title), 3),
|
|
23860
|
+
createBaseVNode("span", {
|
|
23861
|
+
class: normalizeClass(_ctx.$style.subLabel)
|
|
23862
|
+
}, toDisplayString(_ctx.lg.payLater.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 3)
|
|
23863
|
+
], 2),
|
|
23864
|
+
createBaseVNode("span", {
|
|
23865
|
+
class: normalizeClass(_ctx.$style.rightAlign)
|
|
23866
|
+
}, [
|
|
23867
|
+
_ctx.isDisable ? (openBlock(), createBlock(_component_Button, {
|
|
23868
|
+
key: 0,
|
|
23869
|
+
disabled: true,
|
|
23870
|
+
class: normalizeClass(_ctx.$style.invalid),
|
|
23871
|
+
size: "small",
|
|
23872
|
+
type: "default"
|
|
23873
|
+
}, {
|
|
23874
|
+
default: withCtx(() => [
|
|
23875
|
+
createTextVNode(toDisplayString(_ctx.paymentMethodStatusText), 1)
|
|
23876
|
+
]),
|
|
23877
|
+
_: 1
|
|
23878
|
+
}, 8, ["class"])) : createCommentVNode("", true)
|
|
23879
|
+
], 2)
|
|
23880
|
+
], 2),
|
|
23881
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.payMethodDescriptionInfo, (info2, index2) => {
|
|
23882
|
+
return openBlock(), createElementBlock("div", {
|
|
23883
|
+
key: index2,
|
|
23884
|
+
class: normalizeClass(_ctx.$style.maintainanceInfo),
|
|
23885
|
+
style: normalizeStyle(_ctx.getMaintenanceStyle(info2)),
|
|
23886
|
+
onClick: ($event) => _ctx.handleClick($event, info2)
|
|
23887
|
+
}, toDisplayString(info2.text), 15, _hoisted_2$n);
|
|
23888
|
+
}), 128))
|
|
23715
23889
|
], 2)
|
|
23716
23890
|
], 2);
|
|
23717
23891
|
}
|
|
23718
|
-
const cssModules$
|
|
23719
|
-
cssModules$
|
|
23720
|
-
var PayLaterCC = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23892
|
+
const cssModules$1c = {};
|
|
23893
|
+
cssModules$1c["$style"] = style0$1c;
|
|
23894
|
+
var PayLaterCC = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1n], ["__cssModules", cssModules$1c]]);
|
|
23721
23895
|
const PaymentMethod = defineComponent({
|
|
23722
23896
|
props: {
|
|
23723
23897
|
paymentMethod: {
|
|
@@ -23727,29 +23901,37 @@ const PaymentMethod = defineComponent({
|
|
|
23727
23901
|
}
|
|
23728
23902
|
}
|
|
23729
23903
|
},
|
|
23904
|
+
emits: {
|
|
23905
|
+
select: () => true
|
|
23906
|
+
},
|
|
23730
23907
|
render() {
|
|
23731
23908
|
switch (this.paymentMethod.paymentMethodType) {
|
|
23732
23909
|
case PaymentMethodType.WALLET:
|
|
23733
23910
|
return createVNode(Wallet, {
|
|
23734
|
-
"wallet": this.paymentMethod
|
|
23911
|
+
"wallet": this.paymentMethod,
|
|
23912
|
+
"onSelect": () => this.$emit("select")
|
|
23735
23913
|
}, null);
|
|
23736
23914
|
case PaymentMethodType.CREDIT_CARD:
|
|
23737
23915
|
return createVNode(CreditCard, {
|
|
23738
|
-
"credit": this.paymentMethod
|
|
23916
|
+
"credit": this.paymentMethod,
|
|
23917
|
+
"onSelect": () => this.$emit("select")
|
|
23739
23918
|
}, null);
|
|
23740
23919
|
case PaymentMethodType.BANK:
|
|
23741
23920
|
case PaymentMethodType.YMONEY_BANK:
|
|
23742
23921
|
return createVNode(Bank, {
|
|
23743
23922
|
"bank": this.paymentMethod,
|
|
23744
|
-
"round": true
|
|
23923
|
+
"round": true,
|
|
23924
|
+
"onSelect": () => this.$emit("select")
|
|
23745
23925
|
}, null);
|
|
23746
23926
|
case PaymentMethodType.SBID_CARRIER_BILLING:
|
|
23747
23927
|
return createVNode(SbidBank, {
|
|
23748
|
-
"sbid": this.paymentMethod
|
|
23928
|
+
"sbid": this.paymentMethod,
|
|
23929
|
+
"onSelect": () => this.$emit("select")
|
|
23749
23930
|
}, null);
|
|
23750
23931
|
case PaymentMethodType.PAY_LATER_CC:
|
|
23751
23932
|
return createVNode(PayLaterCC, {
|
|
23752
|
-
"payLater": this.paymentMethod
|
|
23933
|
+
"payLater": this.paymentMethod,
|
|
23934
|
+
"onSelect": () => this.$emit("select")
|
|
23753
23935
|
}, null);
|
|
23754
23936
|
case PaymentMethodType.PAY_LATER:
|
|
23755
23937
|
return null;
|
|
@@ -23757,21 +23939,21 @@ const PaymentMethod = defineComponent({
|
|
|
23757
23939
|
return null;
|
|
23758
23940
|
}
|
|
23759
23941
|
});
|
|
23760
|
-
const wrapperClass$
|
|
23942
|
+
const wrapperClass$d = "_wrapperClass_6gcou_1";
|
|
23761
23943
|
const methodItem$1 = "_methodItem_6gcou_1";
|
|
23762
23944
|
const topupMethodItem = "_topupMethodItem_6gcou_14";
|
|
23763
23945
|
const iconContainer$2 = "_iconContainer_6gcou_18";
|
|
23764
23946
|
const iconGreenTick$1 = "_iconGreenTick_6gcou_27";
|
|
23765
23947
|
const iconHidden$1 = "_iconHidden_6gcou_37";
|
|
23766
|
-
var style0$
|
|
23767
|
-
wrapperClass: wrapperClass$
|
|
23948
|
+
var style0$1b = {
|
|
23949
|
+
wrapperClass: wrapperClass$d,
|
|
23768
23950
|
methodItem: methodItem$1,
|
|
23769
23951
|
topupMethodItem,
|
|
23770
23952
|
iconContainer: iconContainer$2,
|
|
23771
23953
|
iconGreenTick: iconGreenTick$1,
|
|
23772
23954
|
iconHidden: iconHidden$1
|
|
23773
23955
|
};
|
|
23774
|
-
const _sfc_main$
|
|
23956
|
+
const _sfc_main$1m = defineComponent({
|
|
23775
23957
|
name: "PaymentMethodList",
|
|
23776
23958
|
components: {
|
|
23777
23959
|
PaymentMethod
|
|
@@ -23807,7 +23989,7 @@ const _sfc_main$1l = defineComponent({
|
|
|
23807
23989
|
};
|
|
23808
23990
|
}
|
|
23809
23991
|
});
|
|
23810
|
-
function _sfc_render$
|
|
23992
|
+
function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23811
23993
|
const _component_PaymentMethod = resolveComponent("PaymentMethod");
|
|
23812
23994
|
return openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.paymentMethods, (paymentMethod2, index2) => {
|
|
23813
23995
|
return openBlock(), createElementBlock("div", {
|
|
@@ -23833,14 +24015,83 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23833
24015
|
createVNode(_component_PaymentMethod, {
|
|
23834
24016
|
"data-testid": "payment-method",
|
|
23835
24017
|
"payment-method": paymentMethod2,
|
|
23836
|
-
|
|
23837
|
-
}, null, 8, ["payment-method", "
|
|
24018
|
+
onSelect: ($event) => _ctx.select(index2)
|
|
24019
|
+
}, null, 8, ["payment-method", "onSelect"])
|
|
23838
24020
|
], 2);
|
|
23839
24021
|
}), 128);
|
|
23840
24022
|
}
|
|
24023
|
+
const cssModules$1b = {};
|
|
24024
|
+
cssModules$1b["$style"] = style0$1b;
|
|
24025
|
+
var PaymentMethodList = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1m], ["__cssModules", cssModules$1b]]);
|
|
24026
|
+
const wrapperClass$c = "_wrapperClass_1lewn_1";
|
|
24027
|
+
const maintenanceContainer = "_maintenanceContainer_1lewn_1";
|
|
24028
|
+
const maintenanceText = "_maintenanceText_1lewn_18";
|
|
24029
|
+
const rightArror = "_rightArror_1lewn_23";
|
|
24030
|
+
var style0$1a = {
|
|
24031
|
+
wrapperClass: wrapperClass$c,
|
|
24032
|
+
maintenanceContainer,
|
|
24033
|
+
maintenanceText,
|
|
24034
|
+
rightArror
|
|
24035
|
+
};
|
|
24036
|
+
const _sfc_main$1l = defineComponent({
|
|
24037
|
+
name: "MaintenanceInfo",
|
|
24038
|
+
props: {
|
|
24039
|
+
maintenanceInfo: {
|
|
24040
|
+
type: Object,
|
|
24041
|
+
default: null
|
|
24042
|
+
}
|
|
24043
|
+
},
|
|
24044
|
+
setup(props) {
|
|
24045
|
+
const handleClick = () => {
|
|
24046
|
+
const { linkUrl } = (props == null ? void 0 : props.maintenanceInfo) || {};
|
|
24047
|
+
if (linkUrl) {
|
|
24048
|
+
openUrl(linkUrl);
|
|
24049
|
+
}
|
|
24050
|
+
};
|
|
24051
|
+
const textStyle = computed(() => {
|
|
24052
|
+
var _a, _b, _c;
|
|
24053
|
+
return {
|
|
24054
|
+
color: (_b = (_a = props == null ? void 0 : props.maintenanceInfo) == null ? void 0 : _a.color) != null ? _b : "#3895FF",
|
|
24055
|
+
"font-weight": ((_c = props == null ? void 0 : props.maintenanceInfo) == null ? void 0 : _c.isBold) ? "bold" : "normal"
|
|
24056
|
+
};
|
|
24057
|
+
});
|
|
24058
|
+
const containerStyle = computed(() => {
|
|
24059
|
+
var _a, _b;
|
|
24060
|
+
return {
|
|
24061
|
+
backgroundColor: (_b = (_a = props == null ? void 0 : props.maintenanceInfo) == null ? void 0 : _a.backgroundColor) != null ? _b : "#E5F1FF"
|
|
24062
|
+
};
|
|
24063
|
+
});
|
|
24064
|
+
return {
|
|
24065
|
+
handleClick,
|
|
24066
|
+
textStyle,
|
|
24067
|
+
containerStyle
|
|
24068
|
+
};
|
|
24069
|
+
}
|
|
24070
|
+
});
|
|
24071
|
+
function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24072
|
+
var _a, _b;
|
|
24073
|
+
return _ctx.maintenanceInfo ? (openBlock(), createElementBlock("div", {
|
|
24074
|
+
key: 0,
|
|
24075
|
+
class: normalizeClass([_ctx.$style.wrapperClass, _ctx.$style.maintenanceContainer]),
|
|
24076
|
+
style: normalizeStyle(_ctx.containerStyle),
|
|
24077
|
+
"data-testid": "maintenance-info",
|
|
24078
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
24079
|
+
}, [
|
|
24080
|
+
createBaseVNode("span", {
|
|
24081
|
+
class: normalizeClass(_ctx.$style.maintenanceText),
|
|
24082
|
+
style: normalizeStyle(_ctx.textStyle),
|
|
24083
|
+
"data-testid": "maintenance-info-text"
|
|
24084
|
+
}, toDisplayString((_a = _ctx.maintenanceInfo) == null ? void 0 : _a.text), 7),
|
|
24085
|
+
((_b = _ctx.maintenanceInfo) == null ? void 0 : _b.linkUrl) ? (openBlock(), createElementBlock("i", {
|
|
24086
|
+
key: 0,
|
|
24087
|
+
class: normalizeClass(_ctx.$style.rightArror),
|
|
24088
|
+
"data-testid": "maintenance-info-link"
|
|
24089
|
+
}, null, 2)) : createCommentVNode("", true)
|
|
24090
|
+
], 6)) : createCommentVNode("", true);
|
|
24091
|
+
}
|
|
23841
24092
|
const cssModules$1a = {};
|
|
23842
24093
|
cssModules$1a["$style"] = style0$1a;
|
|
23843
|
-
var
|
|
24094
|
+
var MaintenanceInfo = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1l], ["__cssModules", cssModules$1a]]);
|
|
23844
24095
|
const wrapperClass$b = "_wrapperClass_1xmid_2";
|
|
23845
24096
|
const paymentContainer$1 = "_paymentContainer_1xmid_2";
|
|
23846
24097
|
const label$4 = "_label_1xmid_11";
|
|
@@ -23868,7 +24119,8 @@ var style0$19 = {
|
|
|
23868
24119
|
const _sfc_main$1k = defineComponent({
|
|
23869
24120
|
components: {
|
|
23870
24121
|
PaymentType,
|
|
23871
|
-
PaymentMethodList
|
|
24122
|
+
PaymentMethodList,
|
|
24123
|
+
MaintenanceInfo
|
|
23872
24124
|
},
|
|
23873
24125
|
props: {
|
|
23874
24126
|
title: {
|
|
@@ -23906,6 +24158,10 @@ const _sfc_main$1k = defineComponent({
|
|
|
23906
24158
|
type: Boolean,
|
|
23907
24159
|
required: false,
|
|
23908
24160
|
default: false
|
|
24161
|
+
},
|
|
24162
|
+
appealDescription: {
|
|
24163
|
+
type: Object,
|
|
24164
|
+
default: null
|
|
23909
24165
|
}
|
|
23910
24166
|
},
|
|
23911
24167
|
emits: {
|
|
@@ -23938,6 +24194,7 @@ const _sfc_main$1k = defineComponent({
|
|
|
23938
24194
|
const _hoisted_1$J = ["src"];
|
|
23939
24195
|
function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23940
24196
|
const _component_PaymentType = resolveComponent("PaymentType");
|
|
24197
|
+
const _component_MaintenanceInfo = resolveComponent("MaintenanceInfo");
|
|
23941
24198
|
const _component_PaymentMethodList = resolveComponent("PaymentMethodList");
|
|
23942
24199
|
const _directive_vertical_scroll = resolveDirective("vertical-scroll");
|
|
23943
24200
|
return openBlock(), createElementBlock("div", {
|
|
@@ -23980,8 +24237,12 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23980
24237
|
"payment-method": _ctx.paymentMethod,
|
|
23981
24238
|
"is-make-payment": true
|
|
23982
24239
|
}, null, 8, ["class", "payment-method"])) : createCommentVNode("", true),
|
|
23983
|
-
_ctx.showPaymentMethodList ?
|
|
24240
|
+
_ctx.showPaymentMethodList ? (openBlock(), createBlock(_component_MaintenanceInfo, {
|
|
23984
24241
|
key: 2,
|
|
24242
|
+
"maintenance-info": _ctx.appealDescription
|
|
24243
|
+
}, null, 8, ["maintenance-info"])) : createCommentVNode("", true),
|
|
24244
|
+
_ctx.showPaymentMethodList ? withDirectives((openBlock(), createElementBlock("div", {
|
|
24245
|
+
key: 3,
|
|
23985
24246
|
class: normalizeClass(_ctx.style.contentContainer)
|
|
23986
24247
|
}, [
|
|
23987
24248
|
createVNode(_component_PaymentMethodList, {
|
|
@@ -26989,6 +27250,10 @@ const _sfc_main$15 = defineComponent({
|
|
|
26989
27250
|
type: Array,
|
|
26990
27251
|
required: true,
|
|
26991
27252
|
default: () => []
|
|
27253
|
+
},
|
|
27254
|
+
appealDescription: {
|
|
27255
|
+
type: Object,
|
|
27256
|
+
default: null
|
|
26992
27257
|
}
|
|
26993
27258
|
},
|
|
26994
27259
|
emits: {
|
|
@@ -27182,9 +27447,10 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27182
27447
|
"payment-methods": _ctx.paymentMethods,
|
|
27183
27448
|
"select-payment-index": _ctx.selectPaymentIndex,
|
|
27184
27449
|
"show-payment-method-list": _ctx.showPaymentMethodList,
|
|
27450
|
+
"appeal-description": _ctx.appealDescription,
|
|
27185
27451
|
onSelectPaymentMethod: _ctx.select,
|
|
27186
27452
|
onShow: _ctx.showPaymentMethod
|
|
27187
|
-
}, null, 8, ["loading", "payment-method", "payment-methods", "select-payment-index", "show-payment-method-list", "onSelectPaymentMethod", "onShow"])) : createCommentVNode("", true),
|
|
27453
|
+
}, null, 8, ["loading", "payment-method", "payment-methods", "select-payment-index", "show-payment-method-list", "appeal-description", "onSelectPaymentMethod", "onShow"])) : createCommentVNode("", true),
|
|
27188
27454
|
_ctx.isSufficient && _ctx.isMobile ? (openBlock(), createElementBlock("div", {
|
|
27189
27455
|
key: 3,
|
|
27190
27456
|
class: normalizeClass(_ctx.style.insufficientAmount)
|
|
@@ -27345,7 +27611,8 @@ var style0$W = {
|
|
|
27345
27611
|
const _sfc_main$14 = defineComponent({
|
|
27346
27612
|
components: {
|
|
27347
27613
|
Header,
|
|
27348
|
-
PaymentMethodList
|
|
27614
|
+
PaymentMethodList,
|
|
27615
|
+
MaintenanceInfo
|
|
27349
27616
|
},
|
|
27350
27617
|
props: {
|
|
27351
27618
|
paymentMethods: {
|
|
@@ -27362,6 +27629,10 @@ const _sfc_main$14 = defineComponent({
|
|
|
27362
27629
|
type: [String, Object],
|
|
27363
27630
|
required: false,
|
|
27364
27631
|
default: ""
|
|
27632
|
+
},
|
|
27633
|
+
appealDescription: {
|
|
27634
|
+
type: Object,
|
|
27635
|
+
default: null
|
|
27365
27636
|
}
|
|
27366
27637
|
},
|
|
27367
27638
|
emits: {
|
|
@@ -27390,6 +27661,7 @@ const _sfc_main$14 = defineComponent({
|
|
|
27390
27661
|
});
|
|
27391
27662
|
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27392
27663
|
const _component_Header = resolveComponent("Header");
|
|
27664
|
+
const _component_MaintenanceInfo = resolveComponent("MaintenanceInfo");
|
|
27393
27665
|
const _component_PaymentMethodList = resolveComponent("PaymentMethodList");
|
|
27394
27666
|
const _directive_vertical_scroll = resolveDirective("vertical-scroll");
|
|
27395
27667
|
return openBlock(), createElementBlock("div", {
|
|
@@ -27406,6 +27678,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27406
27678
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
27407
27679
|
class: normalizeClass(_ctx.style.contentContainer)
|
|
27408
27680
|
}, [
|
|
27681
|
+
createVNode(_component_MaintenanceInfo, { "maintenance-info": _ctx.appealDescription }, null, 8, ["maintenance-info"]),
|
|
27409
27682
|
createVNode(_component_PaymentMethodList, {
|
|
27410
27683
|
"payment-methods": _ctx.paymentMethods,
|
|
27411
27684
|
"select-payment-index": _ctx.selectPaymentIndex,
|
|
@@ -28488,13 +28761,13 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28488
28761
|
const cssModules$R = {};
|
|
28489
28762
|
cssModules$R["$style"] = style0$R;
|
|
28490
28763
|
var CloseConfirmation = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__cssModules", cssModules$R]]);
|
|
28491
|
-
const paymentConsult = "
|
|
28492
|
-
const headerImage = "
|
|
28493
|
-
const content$6 = "
|
|
28494
|
-
const title$g = "
|
|
28495
|
-
const description$a = "
|
|
28764
|
+
const paymentConsult = "_paymentConsult_6be9y_2";
|
|
28765
|
+
const headerImage = "_headerImage_6be9y_12";
|
|
28766
|
+
const content$6 = "_content_6be9y_16";
|
|
28767
|
+
const title$g = "_title_6be9y_20";
|
|
28768
|
+
const description$a = "_description_6be9y_27";
|
|
28496
28769
|
var style0$Q = {
|
|
28497
|
-
"ppmna-default-font": "_ppmna-default-
|
|
28770
|
+
"ppmna-default-font": "_ppmna-default-font_6be9y_1",
|
|
28498
28771
|
paymentConsult,
|
|
28499
28772
|
headerImage,
|
|
28500
28773
|
content: content$6,
|
|
@@ -29999,6 +30272,10 @@ const _sfc_main$Q = defineComponent({
|
|
|
29999
30272
|
type: Array,
|
|
30000
30273
|
default: () => [2e3, 3e3, 5e3, 1e4, 3e4, 5e4, 1e5],
|
|
30001
30274
|
required: false
|
|
30275
|
+
},
|
|
30276
|
+
appealDescription: {
|
|
30277
|
+
type: Object,
|
|
30278
|
+
default: null
|
|
30002
30279
|
}
|
|
30003
30280
|
},
|
|
30004
30281
|
emits: {
|
|
@@ -30195,10 +30472,11 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30195
30472
|
"payment-methods": _ctx.paymentMethods,
|
|
30196
30473
|
"select-payment-index": _ctx.selectIndex,
|
|
30197
30474
|
"show-payment-method-list": _ctx.showPaymentMethodList,
|
|
30475
|
+
"appeal-description": _ctx.appealDescription,
|
|
30198
30476
|
"is-topup-pay": true,
|
|
30199
30477
|
onSelectPaymentMethod: _ctx.select,
|
|
30200
30478
|
onShow: _ctx.openPaymentMethod
|
|
30201
|
-
}, null, 8, ["title", "payment-method", "payment-methods", "select-payment-index", "show-payment-method-list", "onSelectPaymentMethod", "onShow"])), [
|
|
30479
|
+
}, null, 8, ["title", "payment-method", "payment-methods", "select-payment-index", "show-payment-method-list", "appeal-description", "onSelectPaymentMethod", "onShow"])), [
|
|
30202
30480
|
[vShow, !_ctx.done]
|
|
30203
30481
|
]) : createCommentVNode("", true),
|
|
30204
30482
|
_ctx.showUserAddress && _ctx.isDesktop ? (openBlock(), createBlock(_component_GetUserAddressApp, {
|
|
@@ -30304,7 +30582,8 @@ const _sfc_main$P = defineComponent({
|
|
|
30304
30582
|
components: {
|
|
30305
30583
|
Header,
|
|
30306
30584
|
PaymentMethodList,
|
|
30307
|
-
Divider
|
|
30585
|
+
Divider,
|
|
30586
|
+
MaintenanceInfo
|
|
30308
30587
|
},
|
|
30309
30588
|
props: {
|
|
30310
30589
|
paymentMethods: {
|
|
@@ -30331,6 +30610,10 @@ const _sfc_main$P = defineComponent({
|
|
|
30331
30610
|
type: Boolean,
|
|
30332
30611
|
required: false,
|
|
30333
30612
|
default: true
|
|
30613
|
+
},
|
|
30614
|
+
appealDescription: {
|
|
30615
|
+
type: Object,
|
|
30616
|
+
default: null
|
|
30334
30617
|
}
|
|
30335
30618
|
},
|
|
30336
30619
|
emits: {
|
|
@@ -30360,6 +30643,7 @@ const _sfc_main$P = defineComponent({
|
|
|
30360
30643
|
const _hoisted_1$o = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
30361
30644
|
function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30362
30645
|
const _component_Header = resolveComponent("Header");
|
|
30646
|
+
const _component_MaintenanceInfo = resolveComponent("MaintenanceInfo");
|
|
30363
30647
|
const _component_PaymentMethodList = resolveComponent("PaymentMethodList");
|
|
30364
30648
|
const _component_Divider = resolveComponent("Divider");
|
|
30365
30649
|
const _directive_vertical_scroll = resolveDirective("vertical-scroll");
|
|
@@ -30379,6 +30663,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30379
30663
|
class: normalizeClass({ [_ctx.style.paymentList]: true, [_ctx.style.payment]: !_ctx.isTopup }),
|
|
30380
30664
|
"data-testid": "payment-list"
|
|
30381
30665
|
}, [
|
|
30666
|
+
createVNode(_component_MaintenanceInfo, { "maintenance-info": _ctx.appealDescription }, null, 8, ["maintenance-info"]),
|
|
30382
30667
|
createVNode(_component_PaymentMethodList, {
|
|
30383
30668
|
"select-payment-index": _ctx.selectIndex,
|
|
30384
30669
|
"payment-methods": _ctx.paymentMethods,
|
|
@@ -30406,7 +30691,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30406
30691
|
const cssModules$F = {};
|
|
30407
30692
|
cssModules$F["$style"] = style0$F;
|
|
30408
30693
|
var ChoosePaymentMethod = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$P], ["__cssModules", cssModules$F]]);
|
|
30409
|
-
function
|
|
30694
|
+
function isActivatedMethod(paymentMethod2) {
|
|
30410
30695
|
switch (paymentMethod2.paymentMethodType) {
|
|
30411
30696
|
case PaymentMethodType.CREDIT_CARD: {
|
|
30412
30697
|
const creditCard2 = paymentMethod2 == null ? void 0 : paymentMethod2.creditCardInfo;
|
|
@@ -30425,11 +30710,16 @@ function isAvailableTopupMethod(paymentMethod2) {
|
|
|
30425
30710
|
const payLater2 = paymentMethod2.payLaterCcInfo;
|
|
30426
30711
|
return (payLater2 == null ? void 0 : payLater2.paymentMethodStatus) === PaymentMethodStatus.ACTIVATED;
|
|
30427
30712
|
}
|
|
30428
|
-
|
|
30429
|
-
case PaymentMethodType.PAY_LATER:
|
|
30713
|
+
default:
|
|
30430
30714
|
return false;
|
|
30431
30715
|
}
|
|
30432
30716
|
}
|
|
30717
|
+
function isAvailableTopupMethod(paymentMethod2) {
|
|
30718
|
+
if (paymentMethod2.paymentMethodType === PaymentMethodType.WALLET || paymentMethod2.paymentMethodType === PaymentMethodType.PAY_LATER) {
|
|
30719
|
+
return false;
|
|
30720
|
+
}
|
|
30721
|
+
return isActivatedMethod(paymentMethod2);
|
|
30722
|
+
}
|
|
30433
30723
|
function hasAvailableTopupMethod(paymentMethods) {
|
|
30434
30724
|
return paymentMethods.some((paymentMethod2) => isAvailableTopupMethod(paymentMethod2));
|
|
30435
30725
|
}
|
|
@@ -30444,25 +30734,15 @@ function findFirstValidMethod(paymentMethods) {
|
|
|
30444
30734
|
} else
|
|
30445
30735
|
return -1;
|
|
30446
30736
|
}
|
|
30447
|
-
function isValidPaymentMethod(
|
|
30448
|
-
|
|
30449
|
-
|
|
30450
|
-
|
|
30451
|
-
|
|
30452
|
-
|
|
30453
|
-
|
|
30454
|
-
case PaymentMethodType.WALLET:
|
|
30455
|
-
return true;
|
|
30456
|
-
case PaymentMethodType.BANK:
|
|
30457
|
-
case PaymentMethodType.YMONEY_BANK:
|
|
30458
|
-
return ((_c = payMethod.bankInfo) == null ? void 0 : _c.paymentMethodStatus) === "ACTIVATED";
|
|
30459
|
-
case PaymentMethodType.SBID_CARRIER_BILLING:
|
|
30460
|
-
return ((_d = payMethod.sbidCarrierBillingInfo) == null ? void 0 : _d.paymentMethodStatus) === "ACTIVATED";
|
|
30461
|
-
case PaymentMethodType.PAY_LATER_CC:
|
|
30462
|
-
return ((_e = payMethod.payLaterCcInfo) == null ? void 0 : _e.paymentMethodStatus) === "ACTIVATED";
|
|
30463
|
-
default:
|
|
30464
|
-
return false;
|
|
30737
|
+
function isValidPaymentMethod(savedMethodId, paymentMethods) {
|
|
30738
|
+
if (savedMethodId) {
|
|
30739
|
+
const payMethod = paymentMethods.find((method2) => method2.paymentMethodId === savedMethodId);
|
|
30740
|
+
if (!payMethod)
|
|
30741
|
+
return false;
|
|
30742
|
+
if (payMethod.paymentMethodType === PaymentMethodType.WALLET) {
|
|
30743
|
+
return true;
|
|
30465
30744
|
}
|
|
30745
|
+
return isActivatedMethod(payMethod);
|
|
30466
30746
|
}
|
|
30467
30747
|
return false;
|
|
30468
30748
|
}
|
|
@@ -30504,12 +30784,13 @@ const createButtonsAmount = (price2, arr) => {
|
|
|
30504
30784
|
return _arr.filter((_price) => _price >= price2);
|
|
30505
30785
|
};
|
|
30506
30786
|
function useData(props) {
|
|
30507
|
-
var _a, _b, _c, _d, _e;
|
|
30787
|
+
var _a, _b, _c, _d, _e, _f;
|
|
30508
30788
|
const lastUsedMethod = getLastTopupPayMethod();
|
|
30509
30789
|
const state = reactive({
|
|
30510
30790
|
paymentMethods: (_a = props.insufficientBalanceInfo) == null ? void 0 : _a.paymentMethodList,
|
|
30511
|
-
|
|
30512
|
-
|
|
30791
|
+
appealDescription: (_b = props.insufficientBalanceInfo) == null ? void 0 : _b.appealDescription,
|
|
30792
|
+
index: isValidPaymentMethod(lastUsedMethod, (_c = props.insufficientBalanceInfo) == null ? void 0 : _c.paymentMethodList) ? (_d = props.insufficientBalanceInfo) == null ? void 0 : _d.paymentMethodList.findIndex((method2) => method2.paymentMethodId === lastUsedMethod) : findFirstValidMethod((_e = props.insufficientBalanceInfo) == null ? void 0 : _e.paymentMethodList),
|
|
30793
|
+
topupAmount: (_f = props.insufficientBalanceInfo) == null ? void 0 : _f.recommendedTopupAmount,
|
|
30513
30794
|
mount: false,
|
|
30514
30795
|
unmount: false,
|
|
30515
30796
|
showChargeList: false,
|
|
@@ -30545,6 +30826,7 @@ function useData(props) {
|
|
|
30545
30826
|
const setScrollState = (data2) => {
|
|
30546
30827
|
state.isScrollable = data2;
|
|
30547
30828
|
};
|
|
30829
|
+
const appealDescription = computed(() => state.appealDescription);
|
|
30548
30830
|
return {
|
|
30549
30831
|
available,
|
|
30550
30832
|
selectIndex: computed(() => state.index),
|
|
@@ -30566,7 +30848,8 @@ function useData(props) {
|
|
|
30566
30848
|
closeChargeList,
|
|
30567
30849
|
closePaymentList,
|
|
30568
30850
|
isScrollable: computed(() => state.isScrollable),
|
|
30569
|
-
setScrollState
|
|
30851
|
+
setScrollState,
|
|
30852
|
+
appealDescription
|
|
30570
30853
|
};
|
|
30571
30854
|
}
|
|
30572
30855
|
const _sfc_main$O = defineComponent({
|
|
@@ -30652,7 +30935,8 @@ const _sfc_main$O = defineComponent({
|
|
|
30652
30935
|
topupAmount: topupAmount2,
|
|
30653
30936
|
available,
|
|
30654
30937
|
isScrollable,
|
|
30655
|
-
setScrollState
|
|
30938
|
+
setScrollState,
|
|
30939
|
+
appealDescription
|
|
30656
30940
|
} = useData(props);
|
|
30657
30941
|
onMounted(() => {
|
|
30658
30942
|
setMount();
|
|
@@ -30773,7 +31057,8 @@ const _sfc_main$O = defineComponent({
|
|
|
30773
31057
|
selectTopupList,
|
|
30774
31058
|
addressSelect,
|
|
30775
31059
|
updateAddress,
|
|
30776
|
-
handleUpdate
|
|
31060
|
+
handleUpdate,
|
|
31061
|
+
appealDescription
|
|
30777
31062
|
};
|
|
30778
31063
|
}
|
|
30779
31064
|
});
|
|
@@ -30842,6 +31127,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30842
31127
|
"show-user-address": _ctx.showUserAddress,
|
|
30843
31128
|
addresses: _ctx.addresses,
|
|
30844
31129
|
"selected-address": _ctx.selectedAddress,
|
|
31130
|
+
"appeal-description": _ctx.appealDescription,
|
|
30845
31131
|
onSelect: _ctx.selectPaymentList,
|
|
30846
31132
|
onAnimationEnd: _ctx.animationEnd,
|
|
30847
31133
|
onSetMoney: _ctx.setMoney,
|
|
@@ -30854,7 +31140,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30854
31140
|
onChooseAddress: _ctx.addressSelect,
|
|
30855
31141
|
onLayoutUpdate: _ctx.handleUpdate,
|
|
30856
31142
|
onUpdateAddress: _ctx.updateAddress
|
|
30857
|
-
}, null, 8, ["container-class", "payment-method", "topup-amount-text", "banner-info", "done", "paying", "amount-buttons", "halfsheet-amount", "available", "payment-methods", "select-index", "is-scrollable", "show-user-address", "addresses", "selected-address", "onSelect", "onAnimationEnd", "onSetMoney", "onSelectmoremoney", "onShowConsult", "onOpenPaymentMethod", "onCharge", "onClose", "onShowPaymentList", "onChooseAddress", "onLayoutUpdate", "onUpdateAddress"])
|
|
31143
|
+
}, null, 8, ["container-class", "payment-method", "topup-amount-text", "banner-info", "done", "paying", "amount-buttons", "halfsheet-amount", "available", "payment-methods", "select-index", "is-scrollable", "show-user-address", "addresses", "selected-address", "appeal-description", "onSelect", "onAnimationEnd", "onSetMoney", "onSelectmoremoney", "onShowConsult", "onOpenPaymentMethod", "onCharge", "onClose", "onShowPaymentList", "onChooseAddress", "onLayoutUpdate", "onUpdateAddress"])
|
|
30858
31144
|
], 2),
|
|
30859
31145
|
createVNode(Transition, {
|
|
30860
31146
|
"enter-active-class": _ctx.style.slideSecondaryEnterActive,
|
|
@@ -30896,10 +31182,11 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30896
31182
|
key: 0,
|
|
30897
31183
|
class: normalizeClass([_ctx.style.listContainer]),
|
|
30898
31184
|
"payment-methods": _ctx.paymentMethods,
|
|
31185
|
+
"appeal-description": _ctx.appealDescription,
|
|
30899
31186
|
"select-index": _ctx.selectIndex,
|
|
30900
31187
|
onSelectPaymentMethod: _ctx.selectPaymentList,
|
|
30901
31188
|
onBack: _ctx.closePaymentList
|
|
30902
|
-
}, null, 8, ["class", "payment-methods", "select-index", "onSelectPaymentMethod", "onBack"])) : createCommentVNode("", true)
|
|
31189
|
+
}, null, 8, ["class", "payment-methods", "appeal-description", "select-index", "onSelectPaymentMethod", "onBack"])) : createCommentVNode("", true)
|
|
30903
31190
|
]),
|
|
30904
31191
|
_: 1
|
|
30905
31192
|
}, 8, ["enter-active-class", "leave-active-class", "enter-from-class"])
|
|
@@ -31145,13 +31432,14 @@ function usePaymentMethod(props) {
|
|
|
31145
31432
|
paymentMethods: [],
|
|
31146
31433
|
selectPaymentIndex: 0,
|
|
31147
31434
|
bannerInfo: null,
|
|
31148
|
-
showPaymentMethodList: false
|
|
31435
|
+
showPaymentMethodList: false,
|
|
31436
|
+
appealDescription: null
|
|
31149
31437
|
});
|
|
31150
31438
|
const showPaymentMethod = () => {
|
|
31151
31439
|
paymentState.showPaymentMethodList = true;
|
|
31152
31440
|
};
|
|
31153
31441
|
const getPaymentMethods = async (dryRun) => {
|
|
31154
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
31442
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
31155
31443
|
const res = await getPaymentMethods2({
|
|
31156
31444
|
merchant: (_a = props == null ? void 0 : props.paymentParams) == null ? void 0 : _a.merchantAlias,
|
|
31157
31445
|
type: ((_b = props.paymentParams) == null ? void 0 : _b.isAuthorization) ? "PRE_AUTH" : "ACQUIRING",
|
|
@@ -31165,7 +31453,7 @@ function usePaymentMethod(props) {
|
|
|
31165
31453
|
result: false
|
|
31166
31454
|
};
|
|
31167
31455
|
}
|
|
31168
|
-
const paymentMethodList
|
|
31456
|
+
const { paymentMethodList, appealDescription } = ((_g = (_f = (_e = res == null ? void 0 : res.body) == null ? void 0 : _e.unsigned) == null ? void 0 : _f.data) == null ? void 0 : _g.payload) || {};
|
|
31169
31457
|
paymentState.paymentMethods = paymentMethodList;
|
|
31170
31458
|
const walletPaymentMethod = paymentMethodList ? paymentMethodList.find((elem2) => elem2.paymentMethodType === PaymentMethodType.WALLET) || null : null;
|
|
31171
31459
|
if (walletPaymentMethod && walletPaymentMethod.descriptionBannerInfo) {
|
|
@@ -31175,6 +31463,7 @@ function usePaymentMethod(props) {
|
|
|
31175
31463
|
paymentState.paymentMethods = paymentMethodList ? paymentMethodList.filter(function(method2) {
|
|
31176
31464
|
return method2.paymentMethodType !== PaymentMethodType.PAY_LATER;
|
|
31177
31465
|
}) : paymentMethodList;
|
|
31466
|
+
paymentState.appealDescription = appealDescription;
|
|
31178
31467
|
paymentState.selectPaymentIndex = isValidPaymentMethod(lastSavedMethod, paymentState == null ? void 0 : paymentState.paymentMethods) ? paymentState.paymentMethods.findIndex((method2) => method2.paymentMethodId === lastSavedMethod) : findFirstValidMethod(paymentState.paymentMethods);
|
|
31179
31468
|
return {
|
|
31180
31469
|
res,
|
|
@@ -31193,7 +31482,8 @@ function usePaymentMethod(props) {
|
|
|
31193
31482
|
paymentMethods: computed(() => paymentState.paymentMethods),
|
|
31194
31483
|
selectPaymentIndex: computed(() => paymentState.selectPaymentIndex),
|
|
31195
31484
|
bannerInfo: computed(() => paymentState.bannerInfo),
|
|
31196
|
-
showPaymentMethodList: computed(() => paymentState.showPaymentMethodList)
|
|
31485
|
+
showPaymentMethodList: computed(() => paymentState.showPaymentMethodList),
|
|
31486
|
+
appealDescription: computed(() => paymentState.appealDescription)
|
|
31197
31487
|
};
|
|
31198
31488
|
}
|
|
31199
31489
|
function useConsult(props) {
|
|
@@ -31842,7 +32132,8 @@ const _sfc_main$M = defineComponent({
|
|
|
31842
32132
|
selectPaymentIndex,
|
|
31843
32133
|
showPaymentMethod,
|
|
31844
32134
|
bannerInfo: bannerInfo2,
|
|
31845
|
-
showPaymentMethodList
|
|
32135
|
+
showPaymentMethodList,
|
|
32136
|
+
appealDescription
|
|
31846
32137
|
} = usePaymentMethod(props);
|
|
31847
32138
|
const { pay: pay2, paymentId: paymentId2 } = usePayment(props, {
|
|
31848
32139
|
paymentMethod: paymentMethod2,
|
|
@@ -32073,7 +32364,8 @@ const _sfc_main$M = defineComponent({
|
|
|
32073
32364
|
show3DSecureSheet,
|
|
32074
32365
|
selectedTopupMethod,
|
|
32075
32366
|
close3DSecureSheet,
|
|
32076
|
-
selectedCCType
|
|
32367
|
+
selectedCCType,
|
|
32368
|
+
appealDescription
|
|
32077
32369
|
};
|
|
32078
32370
|
}
|
|
32079
32371
|
});
|
|
@@ -32117,6 +32409,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32117
32409
|
"select-payment-index": _ctx.selectPaymentIndex,
|
|
32118
32410
|
"show-payment-method-list": _ctx.showPaymentMethodList,
|
|
32119
32411
|
addresses: _ctx.addressList,
|
|
32412
|
+
"appeal-description": _ctx.appealDescription,
|
|
32120
32413
|
onClose: _ctx.cancelPayment,
|
|
32121
32414
|
onPay: _ctx.pay,
|
|
32122
32415
|
onCharge: _ctx.openCharge,
|
|
@@ -32127,7 +32420,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32127
32420
|
onSelect: _ctx.selectPayment,
|
|
32128
32421
|
onShowPaymentMethod: _ctx.showPaymentMethod,
|
|
32129
32422
|
onUpdateAddress: _ctx.updateAddress
|
|
32130
|
-
}, null, 8, ["payment-method", "price", "done", "paying", "loading", "banner-info", "insufficient-balance-info", "tax-exempt", "payment-methods", "selected-address", "payment-params", "show-user-address", "select-payment-index", "show-payment-method-list", "addresses", "onClose", "onPay", "onCharge", "onChoosePaymentMethods", "onChooseAddress", "onAnimationEnd", "onOpenConsult", "onSelect", "onShowPaymentMethod", "onUpdateAddress"])) : createCommentVNode("", true),
|
|
32423
|
+
}, null, 8, ["payment-method", "price", "done", "paying", "loading", "banner-info", "insufficient-balance-info", "tax-exempt", "payment-methods", "selected-address", "payment-params", "show-user-address", "select-payment-index", "show-payment-method-list", "addresses", "appeal-description", "onClose", "onPay", "onCharge", "onChoosePaymentMethods", "onChooseAddress", "onAnimationEnd", "onOpenConsult", "onSelect", "onShowPaymentMethod", "onUpdateAddress"])) : createCommentVNode("", true),
|
|
32131
32424
|
createVNode(Transition, {
|
|
32132
32425
|
"enter-active-class": _ctx.$style.slideSecondaryEnterActive,
|
|
32133
32426
|
"leave-active-class": _ctx.$style.slideSecondaryLeaveActive,
|
|
@@ -32162,13 +32455,14 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32162
32455
|
_ctx.isVisiblePaymentMethod && _ctx.isMobile ? (openBlock(), createBlock(_component_ChoosePayment, {
|
|
32163
32456
|
key: 0,
|
|
32164
32457
|
"payment-methods": _ctx.paymentMethods,
|
|
32458
|
+
"appeal-description": _ctx.appealDescription,
|
|
32165
32459
|
"root-style": {
|
|
32166
32460
|
[_ctx.$style.longHeightContainer]: _ctx.selectedAddress && _ctx.insufficientBalanceInfo
|
|
32167
32461
|
},
|
|
32168
32462
|
"select-payment-index": _ctx.selectPaymentIndex,
|
|
32169
32463
|
onBack: _ctx.backClick,
|
|
32170
32464
|
onSelect: _ctx.selectPayment
|
|
32171
|
-
}, null, 8, ["payment-methods", "root-style", "select-payment-index", "onBack", "onSelect"])) : createCommentVNode("", true)
|
|
32465
|
+
}, null, 8, ["payment-methods", "appeal-description", "root-style", "select-payment-index", "onBack", "onSelect"])) : createCommentVNode("", true)
|
|
32172
32466
|
]),
|
|
32173
32467
|
_: 1
|
|
32174
32468
|
}, 8, ["enter-active-class", "leave-active-class", "enter-from-class"])
|
|
@@ -32673,6 +32967,8 @@ const Currency = defineComponent({
|
|
|
32673
32967
|
};
|
|
32674
32968
|
watch(() => props.modelValue, (value2) => {
|
|
32675
32969
|
updateValue(value2);
|
|
32970
|
+
}, {
|
|
32971
|
+
immediate: true
|
|
32676
32972
|
});
|
|
32677
32973
|
return () => createVNode("div", {
|
|
32678
32974
|
"class": [styles$1.ppmnaInput, {
|
|
@@ -33009,52 +33305,55 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33009
33305
|
const cssModules$z = {};
|
|
33010
33306
|
cssModules$z["$style"] = style0$z;
|
|
33011
33307
|
var TopupCompletion = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$I], ["__cssModules", cssModules$z]]);
|
|
33012
|
-
const slideSecondaryEnterActive = "
|
|
33013
|
-
const slideSecondaryLeaveActive = "
|
|
33014
|
-
const slideSecondaryEnterFrom = "
|
|
33015
|
-
const wrapperClass$4 = "
|
|
33016
|
-
const topupWrapper = "
|
|
33017
|
-
const noBorder = "
|
|
33018
|
-
const
|
|
33019
|
-
const
|
|
33020
|
-
const
|
|
33021
|
-
const
|
|
33022
|
-
const
|
|
33023
|
-
const
|
|
33024
|
-
const
|
|
33025
|
-
const
|
|
33026
|
-
const
|
|
33027
|
-
const
|
|
33028
|
-
const
|
|
33029
|
-
const
|
|
33030
|
-
const
|
|
33031
|
-
const
|
|
33032
|
-
const
|
|
33033
|
-
const
|
|
33034
|
-
const
|
|
33035
|
-
const
|
|
33036
|
-
const
|
|
33037
|
-
const
|
|
33038
|
-
const
|
|
33039
|
-
const
|
|
33040
|
-
const
|
|
33041
|
-
const
|
|
33042
|
-
const
|
|
33043
|
-
const
|
|
33044
|
-
const
|
|
33045
|
-
const
|
|
33046
|
-
const
|
|
33047
|
-
const
|
|
33048
|
-
const
|
|
33049
|
-
const
|
|
33308
|
+
const slideSecondaryEnterActive = "_slideSecondaryEnterActive_1h3dw_7";
|
|
33309
|
+
const slideSecondaryLeaveActive = "_slideSecondaryLeaveActive_1h3dw_10";
|
|
33310
|
+
const slideSecondaryEnterFrom = "_slideSecondaryEnterFrom_1h3dw_13";
|
|
33311
|
+
const wrapperClass$4 = "_wrapperClass_1h3dw_17";
|
|
33312
|
+
const topupWrapper = "_topupWrapper_1h3dw_17";
|
|
33313
|
+
const noBorder = "_noBorder_1h3dw_23";
|
|
33314
|
+
const dummyInput = "_dummyInput_1h3dw_26";
|
|
33315
|
+
const fullHeight = "_fullHeight_1h3dw_30";
|
|
33316
|
+
const choosePayment$2 = "_choosePayment_1h3dw_34";
|
|
33317
|
+
const topupMoneyLabel = "_topupMoneyLabel_1h3dw_41";
|
|
33318
|
+
const topupCharge = "_topupCharge_1h3dw_49";
|
|
33319
|
+
const fullHeightCharge = "_fullHeightCharge_1h3dw_55";
|
|
33320
|
+
const topup$2 = "_topup_1h3dw_17";
|
|
33321
|
+
const banner = "_banner_1h3dw_67";
|
|
33322
|
+
const bannerText = "_bannerText_1h3dw_70";
|
|
33323
|
+
const bannerMargin = "_bannerMargin_1h3dw_73";
|
|
33324
|
+
const amountList$1 = "_amountList_1h3dw_76";
|
|
33325
|
+
const paymentType = "_paymentType_1h3dw_97";
|
|
33326
|
+
const invalidAmount = "_invalidAmount_1h3dw_101";
|
|
33327
|
+
const loadingText = "_loadingText_1h3dw_106";
|
|
33328
|
+
const fakeInput = "_fakeInput_1h3dw_115";
|
|
33329
|
+
const chargeSelect = "_chargeSelect_1h3dw_122";
|
|
33330
|
+
const blueDivider = "_blueDivider_1h3dw_127";
|
|
33331
|
+
const chargeMoney = "_chargeMoney_1h3dw_134";
|
|
33332
|
+
const unit$2 = "_unit_1h3dw_140";
|
|
33333
|
+
const chargeInput = "_chargeInput_1h3dw_143";
|
|
33334
|
+
const fullHeightInput = "_fullHeightInput_1h3dw_158";
|
|
33335
|
+
const inputLeft = "_inputLeft_1h3dw_161";
|
|
33336
|
+
const inputRight = "_inputRight_1h3dw_168";
|
|
33337
|
+
const noMethod = "_noMethod_1h3dw_175";
|
|
33338
|
+
const topupMoney = "_topupMoney_1h3dw_41";
|
|
33339
|
+
const moneyLabel = "_moneyLabel_1h3dw_188";
|
|
33340
|
+
const btnContainer = "_btnContainer_1h3dw_192";
|
|
33341
|
+
const fullBtnContainer = "_fullBtnContainer_1h3dw_199";
|
|
33342
|
+
const moneyList = "_moneyList_1h3dw_214";
|
|
33343
|
+
const doneContainer = "_doneContainer_1h3dw_221";
|
|
33344
|
+
const fullHeightLottie = "_fullHeightLottie_1h3dw_228";
|
|
33345
|
+
const ppmnaLottie = "_ppmnaLottie_1h3dw_231";
|
|
33346
|
+
const moreMoney = "_moreMoney_1h3dw_236";
|
|
33347
|
+
const fullHeightPayMethod = "_fullHeightPayMethod_1h3dw_241";
|
|
33050
33348
|
var style0$y = {
|
|
33051
|
-
"ppmna-default-font": "_ppmna-default-
|
|
33349
|
+
"ppmna-default-font": "_ppmna-default-font_1h3dw_1",
|
|
33052
33350
|
slideSecondaryEnterActive,
|
|
33053
33351
|
slideSecondaryLeaveActive,
|
|
33054
33352
|
slideSecondaryEnterFrom,
|
|
33055
33353
|
wrapperClass: wrapperClass$4,
|
|
33056
33354
|
topupWrapper,
|
|
33057
33355
|
noBorder,
|
|
33356
|
+
dummyInput,
|
|
33058
33357
|
fullHeight,
|
|
33059
33358
|
choosePayment: choosePayment$2,
|
|
33060
33359
|
topupMoneyLabel,
|
|
@@ -33068,6 +33367,7 @@ var style0$y = {
|
|
|
33068
33367
|
paymentType,
|
|
33069
33368
|
invalidAmount,
|
|
33070
33369
|
loadingText,
|
|
33370
|
+
fakeInput,
|
|
33071
33371
|
chargeSelect,
|
|
33072
33372
|
blueDivider,
|
|
33073
33373
|
chargeMoney,
|
|
@@ -33162,13 +33462,13 @@ const _sfc_main$H = defineComponent({
|
|
|
33162
33462
|
ORDINARY: "\u666E\u901A"
|
|
33163
33463
|
},
|
|
33164
33464
|
lottieAnim: null,
|
|
33165
|
-
footerposition: false,
|
|
33166
33465
|
cashbackData: {},
|
|
33167
33466
|
lg: getLanguage(),
|
|
33168
33467
|
images: getImages(),
|
|
33169
33468
|
isFirstLoad: false,
|
|
33170
33469
|
show3DSecureSheet: false,
|
|
33171
|
-
topupMinAmount: 100
|
|
33470
|
+
topupMinAmount: 100,
|
|
33471
|
+
appealDescription: null
|
|
33172
33472
|
};
|
|
33173
33473
|
},
|
|
33174
33474
|
computed: {
|
|
@@ -33215,7 +33515,7 @@ const _sfc_main$H = defineComponent({
|
|
|
33215
33515
|
methods: {
|
|
33216
33516
|
numberWithCommas,
|
|
33217
33517
|
async init() {
|
|
33218
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l
|
|
33518
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
33219
33519
|
this.loading = true;
|
|
33220
33520
|
this.isFirstLoad = true;
|
|
33221
33521
|
const paymentIDParams = __spreadProps(__spreadValues({}, ((_a = this.topupParams) == null ? void 0 : _a.merchant) && {
|
|
@@ -33244,14 +33544,15 @@ const _sfc_main$H = defineComponent({
|
|
|
33244
33544
|
this.errorShow = true;
|
|
33245
33545
|
return;
|
|
33246
33546
|
}
|
|
33247
|
-
|
|
33547
|
+
const { paymentMethodList, appealDescription } = (_g = (_f = paymentIdResponse.body.unsigned) == null ? void 0 : _f.data) == null ? void 0 : _g.payload;
|
|
33548
|
+
this.paymentMethodList = paymentMethodList;
|
|
33549
|
+
this.appealDescription = appealDescription;
|
|
33248
33550
|
this.findFirstValidMethodTopup();
|
|
33249
33551
|
const config2 = getAppConfig();
|
|
33250
33552
|
if (config2) {
|
|
33251
|
-
this.
|
|
33252
|
-
this.
|
|
33253
|
-
this.
|
|
33254
|
-
this.topupMinAmount = (_n = (_m = (_l = config2 == null ? void 0 : config2.topupMinAmount) == null ? void 0 : _l[0]) == null ? void 0 : _m.value) != null ? _n : this.topupMinAmount;
|
|
33553
|
+
this.topupHalfSheetAmount = (_h = config2 == null ? void 0 : config2.topupHalfSheetAmount[0]) == null ? void 0 : _h.value;
|
|
33554
|
+
this.topupButtonsAmount = (_i = config2 == null ? void 0 : config2.topupButtonsAmount[0]) == null ? void 0 : _i.value;
|
|
33555
|
+
this.topupMinAmount = (_l = (_k = (_j = config2 == null ? void 0 : config2.topupMinAmount) == null ? void 0 : _j[0]) == null ? void 0 : _k.value) != null ? _l : this.topupMinAmount;
|
|
33255
33556
|
}
|
|
33256
33557
|
this.loading = false;
|
|
33257
33558
|
this.isFirstLoad = false;
|
|
@@ -33267,22 +33568,23 @@ const _sfc_main$H = defineComponent({
|
|
|
33267
33568
|
}
|
|
33268
33569
|
},
|
|
33269
33570
|
async switchInput() {
|
|
33270
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
33571
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
33271
33572
|
this.isInput = true;
|
|
33573
|
+
(_a = document.getElementById("fake_input")) == null ? void 0 : _a.focus();
|
|
33272
33574
|
const cashbackInfo2 = await getCashBackInfo();
|
|
33273
33575
|
if (!cashbackInfo2 || (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) !== "success") {
|
|
33274
33576
|
this.errorCode = (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) === "notAuthorized" ? MiniAppErrorType.notAuthorized : (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) === "timeout" ? MiniAppErrorType.timeOut : MiniAppErrorType.serverError;
|
|
33275
33577
|
this.showError();
|
|
33276
33578
|
return;
|
|
33277
33579
|
}
|
|
33278
|
-
this.cashbackData = (
|
|
33580
|
+
this.cashbackData = (_c = (_b = cashbackInfo2 == null ? void 0 : cashbackInfo2.body) == null ? void 0 : _b.data) == null ? void 0 : _c.payload;
|
|
33279
33581
|
this.inputMoney = 0;
|
|
33280
33582
|
this.minAmountUnmet = false;
|
|
33281
33583
|
this.maxAmountExceeded = false;
|
|
33282
|
-
this.fixBalMoney = (_h = (_g = (_f = (_e = (_d =
|
|
33584
|
+
this.fixBalMoney = (_i = (_h = (_g = (_f = (_e = (_d = cashbackInfo2 == null ? void 0 : cashbackInfo2.body) == null ? void 0 : _d.data) == null ? void 0 : _e.payload) == null ? void 0 : _f.walletSummary) == null ? void 0 : _g.totalBalanceInfo) == null ? void 0 : _h.balance) != null ? _i : 0;
|
|
33283
33585
|
this.balMoney = formatCurrency(this.inputMoney + this.fixBalMoney, 0);
|
|
33284
|
-
this.fixCashbackBalance = (_n = (_m = (_l = (_k = (_j =
|
|
33285
|
-
this.totalCashbackBalance = (
|
|
33586
|
+
this.fixCashbackBalance = (_o = (_n = (_m = (_l = (_k = (_j = cashbackInfo2 == null ? void 0 : cashbackInfo2.body) == null ? void 0 : _j.data) == null ? void 0 : _k.payload) == null ? void 0 : _l.walletSummary) == null ? void 0 : _m.allTotalBalanceInfo) == null ? void 0 : _n.balance) != null ? _o : 0;
|
|
33587
|
+
this.totalCashbackBalance = (_p = formatCurrency(this.inputMoney + this.fixCashbackBalance, 0)) != null ? _p : "0";
|
|
33286
33588
|
setTimeout(() => {
|
|
33287
33589
|
var _a2;
|
|
33288
33590
|
(_a2 = document.getElementById("inputmoney")) == null ? void 0 : _a2.focus();
|
|
@@ -33307,9 +33609,6 @@ const _sfc_main$H = defineComponent({
|
|
|
33307
33609
|
this.$emit("click");
|
|
33308
33610
|
}
|
|
33309
33611
|
},
|
|
33310
|
-
togglePosition(toggle) {
|
|
33311
|
-
this.footerposition = toggle;
|
|
33312
|
-
},
|
|
33313
33612
|
checkValidAmount() {
|
|
33314
33613
|
var _a;
|
|
33315
33614
|
const inputVal = Number(String(this.inputMoney).replace(/,/g, ""));
|
|
@@ -33535,25 +33834,29 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33535
33834
|
}, toDisplayString(_ctx.lg.topup.charge), 3)) : createCommentVNode("", true),
|
|
33536
33835
|
!_ctx.isInput ? (openBlock(), createElementBlock("div", {
|
|
33537
33836
|
key: 1,
|
|
33538
|
-
class: normalizeClass(_ctx.$style.
|
|
33539
|
-
|
|
33837
|
+
class: normalizeClass(_ctx.$style.dummyInput),
|
|
33838
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.switchInput(), ["prevent"]))
|
|
33540
33839
|
}, [
|
|
33541
|
-
|
|
33542
|
-
|
|
33543
|
-
|
|
33544
|
-
},
|
|
33545
|
-
|
|
33546
|
-
|
|
33840
|
+
createBaseVNode("div", {
|
|
33841
|
+
class: normalizeClass(_ctx.$style.chargeMoney),
|
|
33842
|
+
"data-testid": "money-text"
|
|
33843
|
+
}, [
|
|
33844
|
+
createTextVNode(toDisplayString(_ctx.numberWithCommas(_ctx.inputMoney)), 1),
|
|
33845
|
+
createBaseVNode("span", {
|
|
33846
|
+
class: normalizeClass(_ctx.$style.unit)
|
|
33847
|
+
}, "\u5186", 2)
|
|
33848
|
+
], 2),
|
|
33849
|
+
createBaseVNode("div", {
|
|
33850
|
+
class: normalizeClass(_ctx.$style.blueDivider)
|
|
33851
|
+
}, null, 2)
|
|
33852
|
+
], 2)) : (openBlock(), createElementBlock("div", {
|
|
33547
33853
|
key: 2,
|
|
33548
|
-
class: normalizeClass(_ctx.$style.blueDivider)
|
|
33549
|
-
}, null, 2)) : (openBlock(), createElementBlock("div", {
|
|
33550
|
-
key: 3,
|
|
33551
33854
|
class: normalizeClass([_ctx.$style.chargeInput, _ctx.$style.chargeMoney])
|
|
33552
33855
|
}, [
|
|
33553
33856
|
createVNode(_component_Currency, {
|
|
33554
33857
|
id: "inputmoney",
|
|
33555
33858
|
modelValue: _ctx.inputMoney,
|
|
33556
|
-
"onUpdate:modelValue": _cache[
|
|
33859
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.inputMoney = $event),
|
|
33557
33860
|
"input-mode": "numeric",
|
|
33558
33861
|
"tab-index": 0,
|
|
33559
33862
|
maxlength: "12",
|
|
@@ -33561,9 +33864,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33561
33864
|
autofocus: false,
|
|
33562
33865
|
class: normalizeClass({ [_ctx.$style.fullHeightInput]: _ctx.isInput }),
|
|
33563
33866
|
"data-testid": "input-money",
|
|
33564
|
-
onInput: _ctx.checkValidAmount
|
|
33565
|
-
onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.togglePosition(true)),
|
|
33566
|
-
onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.togglePosition(false))
|
|
33867
|
+
onInput: _ctx.checkValidAmount
|
|
33567
33868
|
}, null, 8, ["modelValue", "class", "onInput"]),
|
|
33568
33869
|
createBaseVNode("span", {
|
|
33569
33870
|
class: normalizeClass(_ctx.$style.inputLeft)
|
|
@@ -33609,7 +33910,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33609
33910
|
}),
|
|
33610
33911
|
"data-test": "toggle-payment-method",
|
|
33611
33912
|
"data-testid": "toggle-payment-method",
|
|
33612
|
-
onClick: _cache[
|
|
33913
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.togglePaymentMethod(true))
|
|
33613
33914
|
}, [
|
|
33614
33915
|
createBaseVNode("span", {
|
|
33615
33916
|
class: normalizeClass(_ctx.$style.moneyLabel)
|
|
@@ -33658,7 +33959,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33658
33959
|
loading: _ctx.loading,
|
|
33659
33960
|
"data-test": "click-topup",
|
|
33660
33961
|
"data-testid": "click-topup",
|
|
33661
|
-
onClick: _cache[
|
|
33962
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.clickTopup(false))
|
|
33662
33963
|
}, {
|
|
33663
33964
|
default: withCtx(() => [
|
|
33664
33965
|
createTextVNode(toDisplayString(_ctx.numberWithCommas(_ctx.inputMoney)) + " " + toDisplayString(_ctx.lg.topup.payBtn), 1)
|
|
@@ -33678,7 +33979,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33678
33979
|
[_ctx.$style.fullHeightLottie]: _ctx.isInput,
|
|
33679
33980
|
[_ctx.$style.ppmnaLottie]: true
|
|
33680
33981
|
}),
|
|
33681
|
-
onCreateLottie: _cache[
|
|
33982
|
+
onCreateLottie: _cache[4] || (_cache[4] = ($event) => _ctx.createAnime($event))
|
|
33682
33983
|
}, null, 8, ["path", "class"])
|
|
33683
33984
|
], 2)) : createCommentVNode("", true)
|
|
33684
33985
|
], 6)) : createCommentVNode("", true),
|
|
@@ -33726,6 +34027,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33726
34027
|
_ctx.isSelectPaymentMethod ? (openBlock(), createBlock(_component_ChoosePaymentMethod, {
|
|
33727
34028
|
key: 0,
|
|
33728
34029
|
"payment-methods": _ctx.paymentMethodList,
|
|
34030
|
+
"appeal-description": _ctx.appealDescription,
|
|
33729
34031
|
"select-index": _ctx.selectPaymentIndex,
|
|
33730
34032
|
class: normalizeClass({
|
|
33731
34033
|
[_ctx.$style.fullHeight]: _ctx.isInput,
|
|
@@ -33735,7 +34037,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33735
34037
|
style: normalizeStyle(_ctx.getTopHeight),
|
|
33736
34038
|
onBack: _ctx.togglePaymentMethod,
|
|
33737
34039
|
onSelectPaymentMethod: _ctx.selectPaymentMethod
|
|
33738
|
-
}, null, 8, ["payment-methods", "select-index", "class", "style", "onBack", "onSelectPaymentMethod"])) : createCommentVNode("", true)
|
|
34040
|
+
}, null, 8, ["payment-methods", "appeal-description", "select-index", "class", "style", "onBack", "onSelectPaymentMethod"])) : createCommentVNode("", true)
|
|
33739
34041
|
]),
|
|
33740
34042
|
_: 1
|
|
33741
34043
|
}, 8, ["enter-active-class", "leave-active-class", "enter-from-class"])
|
|
@@ -33751,7 +34053,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33751
34053
|
createVNode(_component_DuplicatePayment, {
|
|
33752
34054
|
mode: "topup",
|
|
33753
34055
|
onCancel: _ctx.duplicateCancel,
|
|
33754
|
-
onProceed: _cache[
|
|
34056
|
+
onProceed: _cache[5] || (_cache[5] = ($event) => _ctx.clickTopup(true))
|
|
33755
34057
|
}, null, 8, ["onCancel"])
|
|
33756
34058
|
]),
|
|
33757
34059
|
_: 1
|
|
@@ -33759,7 +34061,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33759
34061
|
createVNode(_component_ActionSheet, {
|
|
33760
34062
|
show: _ctx.bannerInfoVisible,
|
|
33761
34063
|
type: "alert",
|
|
33762
|
-
onClose: _cache[
|
|
34064
|
+
onClose: _cache[6] || (_cache[6] = ($event) => _ctx.bannerBtnClick())
|
|
33763
34065
|
}, {
|
|
33764
34066
|
default: withCtx(() => [
|
|
33765
34067
|
createVNode(_component_BannerInfo, {
|
|
@@ -33787,13 +34089,19 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33787
34089
|
"error-text": _ctx.errorInfo.desc,
|
|
33788
34090
|
"button-list": _ctx.errorInfo.buttonList,
|
|
33789
34091
|
show: _ctx.errorShow || _ctx.errorOverlay,
|
|
33790
|
-
onCloseClick: _cache[
|
|
34092
|
+
onCloseClick: _cache[7] || (_cache[7] = ($event) => _ctx.closeErrorSheet())
|
|
33791
34093
|
}, null, 8, ["error-title", "icon-url", "error-text", "button-list", "show"]),
|
|
33792
34094
|
createVNode(_component_ThreeDSecureSheet, {
|
|
33793
34095
|
show: _ctx.show3DSecureSheet,
|
|
33794
34096
|
"cc-type": _ctx.selectedCCType,
|
|
33795
34097
|
onClose: _ctx.close3DSecureSheet
|
|
33796
|
-
}, null, 8, ["show", "cc-type", "onClose"])
|
|
34098
|
+
}, null, 8, ["show", "cc-type", "onClose"]),
|
|
34099
|
+
createBaseVNode("input", {
|
|
34100
|
+
id: "fake_input",
|
|
34101
|
+
type: "text",
|
|
34102
|
+
readonly: "",
|
|
34103
|
+
class: normalizeClass(_ctx.$style.fakeInput)
|
|
34104
|
+
}, null, 2)
|
|
33797
34105
|
], 64);
|
|
33798
34106
|
}
|
|
33799
34107
|
const cssModules$y = {};
|
|
@@ -34926,7 +35234,7 @@ function debug(params) {
|
|
|
34926
35234
|
function execute$5(params) {
|
|
34927
35235
|
var _a;
|
|
34928
35236
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
|
|
34929
|
-
v: "1.
|
|
35237
|
+
v: "1.48.0"
|
|
34930
35238
|
});
|
|
34931
35239
|
}
|
|
34932
35240
|
function useCallBack(props, ctx) {
|
|
@@ -38818,19 +39126,19 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38818
39126
|
const cssModules$f = {};
|
|
38819
39127
|
cssModules$f["$style"] = style0$f;
|
|
38820
39128
|
var SkeletonLoader = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__cssModules", cssModules$f]]);
|
|
38821
|
-
const wrapperClass$1 = "
|
|
38822
|
-
const paymentMethodContainer = "
|
|
38823
|
-
const imageWrapper = "
|
|
38824
|
-
const imageContainer = "
|
|
38825
|
-
const roundStylePaymentMethod = "
|
|
38826
|
-
const label$1 = "
|
|
38827
|
-
const mainLabel = "
|
|
38828
|
-
const subLabel = "
|
|
38829
|
-
const invalid = "
|
|
38830
|
-
const rightAlign = "
|
|
38831
|
-
const paymentMethodDisabled = "
|
|
38832
|
-
const img = "
|
|
38833
|
-
const branchNumber = "
|
|
39129
|
+
const wrapperClass$1 = "_wrapperClass_wy5sc_1";
|
|
39130
|
+
const paymentMethodContainer = "_paymentMethodContainer_wy5sc_1";
|
|
39131
|
+
const imageWrapper = "_imageWrapper_wy5sc_6";
|
|
39132
|
+
const imageContainer = "_imageContainer_wy5sc_10";
|
|
39133
|
+
const roundStylePaymentMethod = "_roundStylePaymentMethod_wy5sc_19";
|
|
39134
|
+
const label$1 = "_label_wy5sc_23";
|
|
39135
|
+
const mainLabel = "_mainLabel_wy5sc_30";
|
|
39136
|
+
const subLabel = "_subLabel_wy5sc_37";
|
|
39137
|
+
const invalid = "_invalid_wy5sc_46";
|
|
39138
|
+
const rightAlign = "_rightAlign_wy5sc_58";
|
|
39139
|
+
const paymentMethodDisabled = "_paymentMethodDisabled_wy5sc_63";
|
|
39140
|
+
const img = "_img_wy5sc_68";
|
|
39141
|
+
const branchNumber = "_branchNumber_wy5sc_72";
|
|
38834
39142
|
var style0$e = {
|
|
38835
39143
|
wrapperClass: wrapperClass$1,
|
|
38836
39144
|
paymentMethodContainer,
|
|
@@ -40005,23 +40313,23 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40005
40313
|
const cssModules$8 = {};
|
|
40006
40314
|
cssModules$8["$style"] = style0$8;
|
|
40007
40315
|
var AutoTopupMethod = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__cssModules", cssModules$8]]);
|
|
40008
|
-
const container = "
|
|
40009
|
-
const mainContents = "
|
|
40010
|
-
const section = "
|
|
40011
|
-
const main = "
|
|
40012
|
-
const icon$5 = "
|
|
40013
|
-
const title$5 = "
|
|
40014
|
-
const description$5 = "
|
|
40015
|
-
const config = "
|
|
40016
|
-
const item = "
|
|
40017
|
-
const label = "
|
|
40018
|
-
const contents$5 = "
|
|
40019
|
-
const inner$5 = "
|
|
40020
|
-
const price = "
|
|
40021
|
-
const amount = "
|
|
40022
|
-
const unit$1 = "
|
|
40023
|
-
const notice = "
|
|
40024
|
-
const updateMessage = "
|
|
40316
|
+
const container = "_container_1ehx9_1";
|
|
40317
|
+
const mainContents = "_mainContents_1ehx9_7";
|
|
40318
|
+
const section = "_section_1ehx9_13";
|
|
40319
|
+
const main = "_main_1ehx9_7";
|
|
40320
|
+
const icon$5 = "_icon_1ehx9_21";
|
|
40321
|
+
const title$5 = "_title_1ehx9_25";
|
|
40322
|
+
const description$5 = "_description_1ehx9_32";
|
|
40323
|
+
const config = "_config_1ehx9_39";
|
|
40324
|
+
const item = "_item_1ehx9_44";
|
|
40325
|
+
const label = "_label_1ehx9_54";
|
|
40326
|
+
const contents$5 = "_contents_1ehx9_58";
|
|
40327
|
+
const inner$5 = "_inner_1ehx9_58";
|
|
40328
|
+
const price = "_price_1ehx9_61";
|
|
40329
|
+
const amount = "_amount_1ehx9_66";
|
|
40330
|
+
const unit$1 = "_unit_1ehx9_71";
|
|
40331
|
+
const notice = "_notice_1ehx9_76";
|
|
40332
|
+
const updateMessage = "_updateMessage_1ehx9_91";
|
|
40025
40333
|
var style0$7 = {
|
|
40026
40334
|
container,
|
|
40027
40335
|
mainContents,
|