@paypay/mini-app-js-sdk 1.41.0 → 1.42.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 +1233 -881
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/getConfigure.d.ts +6 -0
- package/dist/model/makePayment.d.ts +14 -10
- package/dist/package/action-sheet/index.d.ts +1 -1
- package/dist/package/banner-header/index.vue.d.ts +1 -1
- package/dist/package/input/currency/index.d.ts +124 -0
- package/dist/package/input/email/index.d.ts +137 -0
- package/dist/package/input/{index.d.ts → text/index.d.ts} +0 -113
- package/dist/package/input/zip/index.d.ts +107 -0
- package/dist/package/payment-method/PayLaterCC.vue.d.ts +3 -3
- package/dist/package/payment-type/CreditCard.vue.d.ts +11 -0
- package/dist/package/payment-type/PayLaterCC.vue.d.ts +14 -3
- package/dist/package/payment-type/Wallet.vue.d.ts +11 -0
- package/dist/package/payment-type/index.d.ts +11 -0
- package/dist/package/select-list/index.d.ts +2 -2
- package/dist/utils/fetch.d.ts +1 -0
- package/dist/views/email-registration/parts/AuthMailNotFoundSheet.vue.d.ts +1 -1
- package/dist/views/email-registration/parts/SentEmailSheet.vue.d.ts +1 -1
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +1 -1
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +1 -2
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +130 -88
- package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +8 -9
- package/dist/views/make-payment/hooks/app-hooks.d.ts +65 -44
- package/dist/views/make-payment/utils/paymentMethod.d.ts +4 -5
- package/dist/views/register-user-info/RegisterUserInfoCancelConfirmationSheet.vue.d.ts +252 -70
- package/dist/views/register-user-info/RegisterUserInfoCategoryView.vue.d.ts +252 -70
- package/dist/views/register-user-info/RegisterUserInfoFooterView.vue.d.ts +252 -70
- package/dist/views/register-user-info/RegisterUserInfoKycInfoSheet.vue.d.ts +252 -70
- package/dist/views/register-user-info/RegisterUserInfoMailInfoSheet.vue.d.ts +252 -70
- package/dist/views/register-user-info/RegisterUserInfoRootView.vue.d.ts +252 -70
- package/dist/views/register-user-info/store.d.ts +28 -70
- package/dist/views/topup/App.vue.d.ts +2 -0
- package/package.json +2 -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.42.0";
|
|
89
|
+
this.revision = "a24a698";
|
|
90
90
|
this.messageHandlers = new Map();
|
|
91
91
|
this.responseCallbacks = new Map();
|
|
92
92
|
this.global = global2;
|
|
@@ -909,7 +909,7 @@ const topup$4 = {
|
|
|
909
909
|
title: "\u30C1\u30E3\u30FC\u30B8",
|
|
910
910
|
balMoney: "\u30C1\u30E3\u30FC\u30B8\u5F8C\u306E\u6B8B\u9AD8",
|
|
911
911
|
charge: "\u30C1\u30E3\u30FC\u30B8\u91D1\u984D\u3092\u9078\u629E",
|
|
912
|
-
minAmount: "
|
|
912
|
+
minAmount: "{amount}\u5186\u304B\u3089\u30C1\u30E3\u30FC\u30B8\u3067\u304D\u307E\u3059",
|
|
913
913
|
maxAmount: "\u30C1\u30E3\u30FC\u30B8\u9650\u5EA6\u984D\u3092\u8D85\u904E\u3057\u3066\u3044\u307E\u3059",
|
|
914
914
|
moneyLabel: "\u30C1\u30E3\u30FC\u30B8\u65B9\u6CD5",
|
|
915
915
|
noMethod: "\u5229\u7528\u53EF\u80FD\u306A\u30C1\u30E3\u30FC\u30B8\u65B9\u6CD5\u304C\u3042\u308A\u307E\u305B\u3093\n\u300C\u652F\u6255\u3044\u65B9\u6CD5\u306E\u7BA1\u7406\u300D\u3088\u308A\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
@@ -1264,11 +1264,6 @@ var PaymentMethodType;
|
|
|
1264
1264
|
PaymentMethodType2["PAY_LATER"] = "PAY_LATER";
|
|
1265
1265
|
PaymentMethodType2["PAY_LATER_CC"] = "PAY_LATER_CC";
|
|
1266
1266
|
})(PaymentMethodType || (PaymentMethodType = {}));
|
|
1267
|
-
var PaymentOpType;
|
|
1268
|
-
(function(PaymentOpType2) {
|
|
1269
|
-
PaymentOpType2["PAY"] = "PAY";
|
|
1270
|
-
PaymentOpType2["TOPUP"] = "TOPUP";
|
|
1271
|
-
})(PaymentOpType || (PaymentOpType = {}));
|
|
1272
1267
|
var CreditTypes;
|
|
1273
1268
|
(function(CreditTypes2) {
|
|
1274
1269
|
CreditTypes2["VISA"] = "VISA";
|
|
@@ -1496,30 +1491,6 @@ function isDef(val2) {
|
|
|
1496
1491
|
function isFunction$1(val2) {
|
|
1497
1492
|
return typeof val2 === "function";
|
|
1498
1493
|
}
|
|
1499
|
-
function trimExtraChar(value2, char, regExp) {
|
|
1500
|
-
const index2 = value2.indexOf(char);
|
|
1501
|
-
if (index2 === -1) {
|
|
1502
|
-
return value2;
|
|
1503
|
-
}
|
|
1504
|
-
if (char === "-" && index2 !== 0) {
|
|
1505
|
-
return value2.slice(0, index2);
|
|
1506
|
-
}
|
|
1507
|
-
return value2.slice(0, index2 + 1) + value2.slice(index2).replace(regExp, "");
|
|
1508
|
-
}
|
|
1509
|
-
function formatNumber(value2, options) {
|
|
1510
|
-
if (options == null ? void 0 : options.allowDot) {
|
|
1511
|
-
value2 = trimExtraChar(value2, ".", /\./g);
|
|
1512
|
-
} else {
|
|
1513
|
-
value2 = value2.split(".")[0];
|
|
1514
|
-
}
|
|
1515
|
-
if (options == null ? void 0 : options.allowMinus) {
|
|
1516
|
-
value2 = trimExtraChar(value2, "-", /-/g);
|
|
1517
|
-
} else {
|
|
1518
|
-
value2 = value2.replace(/-/, "");
|
|
1519
|
-
}
|
|
1520
|
-
const regExp = (options == null ? void 0 : options.allowDot) ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
1521
|
-
return value2.replace(regExp, "");
|
|
1522
|
-
}
|
|
1523
1494
|
const numberWithCommas = (x = 0) => {
|
|
1524
1495
|
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
1525
1496
|
};
|
|
@@ -1530,7 +1501,7 @@ function formatCurrency(val2, n) {
|
|
|
1530
1501
|
const re = `\\d(?=(\\d{3})+${n > 0 ? "\\." : "$"})`;
|
|
1531
1502
|
return val2 == null ? void 0 : val2.toFixed(Math.max(0, ~~n)).replace(new RegExp(re, "g"), "$&,");
|
|
1532
1503
|
}
|
|
1533
|
-
function trigger$
|
|
1504
|
+
function trigger$1(target, type) {
|
|
1534
1505
|
const inputEvent = document.createEvent("HTMLEvents");
|
|
1535
1506
|
inputEvent.initEvent(type, true, true);
|
|
1536
1507
|
target.dispatchEvent(inputEvent);
|
|
@@ -1722,6 +1693,8 @@ const opaUrl = () => {
|
|
|
1722
1693
|
return "https://localhost/";
|
|
1723
1694
|
case "canary":
|
|
1724
1695
|
return "https://app-prod-canary.paypay.ne.jp/opa-mini-app/";
|
|
1696
|
+
case "qa":
|
|
1697
|
+
return "https://qa.stg.paypay.ne.jp/opa-mini-app/";
|
|
1725
1698
|
case "production":
|
|
1726
1699
|
default:
|
|
1727
1700
|
return "https://app.paypay.ne.jp/opa-mini-app/";
|
|
@@ -1730,7 +1703,7 @@ const opaUrl = () => {
|
|
|
1730
1703
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
1731
1704
|
let headers = new Headers(__spreadValues({
|
|
1732
1705
|
"Content-Type": "application/json",
|
|
1733
|
-
"Client-Version": "1.
|
|
1706
|
+
"Client-Version": "1.42.0",
|
|
1734
1707
|
"Client-OS-Type": getRuntime()
|
|
1735
1708
|
}, customHeaders));
|
|
1736
1709
|
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") {
|
|
@@ -1810,7 +1783,13 @@ async function ppFetch2(options) {
|
|
|
1810
1783
|
};
|
|
1811
1784
|
}
|
|
1812
1785
|
}
|
|
1813
|
-
if (options.skipResultCodeCheck &&
|
|
1786
|
+
if (options.skipResultCodeCheck && options.skipStatusCodeCheck) {
|
|
1787
|
+
return {
|
|
1788
|
+
ppFetchResult: "success",
|
|
1789
|
+
statusCode: response.status,
|
|
1790
|
+
body: res
|
|
1791
|
+
};
|
|
1792
|
+
} else if (options.skipResultCodeCheck && response.status >= 200 && response.status < 300) {
|
|
1814
1793
|
return {
|
|
1815
1794
|
ppFetchResult: "success",
|
|
1816
1795
|
statusCode: response.status,
|
|
@@ -1907,7 +1886,7 @@ function getAppDetail() {
|
|
|
1907
1886
|
return null;
|
|
1908
1887
|
}
|
|
1909
1888
|
async function initAppConfiguration() {
|
|
1910
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1889
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
1911
1890
|
const res = await ppFetch2({
|
|
1912
1891
|
method: "GET",
|
|
1913
1892
|
url: "web-api/app/platform/v1/configuration",
|
|
@@ -1920,7 +1899,8 @@ async function initAppConfiguration() {
|
|
|
1920
1899
|
saveAppConfig(JSON.stringify({
|
|
1921
1900
|
topupButtonsAmount: (_c = (_b = res == null ? void 0 : res.body) == null ? void 0 : _b.variables) == null ? void 0 : _c.topupButtonsAmount,
|
|
1922
1901
|
topupHalfSheetAmount: (_e = (_d = res == null ? void 0 : res.body) == null ? void 0 : _d.variables) == null ? void 0 : _e.topupHalfSheetAmount,
|
|
1923
|
-
topupHalfSheetRecommendedAmount: (_g = (_f = res == null ? void 0 : res.body) == null ? void 0 : _f.variables) == null ? void 0 : _g.topupHalfSheetRecommendedAmount
|
|
1902
|
+
topupHalfSheetRecommendedAmount: (_g = (_f = res == null ? void 0 : res.body) == null ? void 0 : _f.variables) == null ? void 0 : _g.topupHalfSheetRecommendedAmount,
|
|
1903
|
+
topupMinAmount: (_i = (_h = res == null ? void 0 : res.body) == null ? void 0 : _h.variables) == null ? void 0 : _i.topupMinAmount
|
|
1924
1904
|
}));
|
|
1925
1905
|
return true;
|
|
1926
1906
|
}
|
|
@@ -2107,6 +2087,11 @@ function looseEqual(a, b) {
|
|
|
2107
2087
|
if (aValidType || bValidType) {
|
|
2108
2088
|
return aValidType && bValidType ? a.getTime() === b.getTime() : false;
|
|
2109
2089
|
}
|
|
2090
|
+
aValidType = isSymbol(a);
|
|
2091
|
+
bValidType = isSymbol(b);
|
|
2092
|
+
if (aValidType || bValidType) {
|
|
2093
|
+
return a === b;
|
|
2094
|
+
}
|
|
2110
2095
|
aValidType = isArray(a);
|
|
2111
2096
|
bValidType = isArray(b);
|
|
2112
2097
|
if (aValidType || bValidType) {
|
|
@@ -2178,7 +2163,7 @@ const hasOwn = (val2, key2) => hasOwnProperty.call(val2, key2);
|
|
|
2178
2163
|
const isArray = Array.isArray;
|
|
2179
2164
|
const isMap = (val2) => toTypeString(val2) === "[object Map]";
|
|
2180
2165
|
const isSet = (val2) => toTypeString(val2) === "[object Set]";
|
|
2181
|
-
const isDate = (val2) => val2
|
|
2166
|
+
const isDate = (val2) => toTypeString(val2) === "[object Date]";
|
|
2182
2167
|
const isFunction = (val2) => typeof val2 === "function";
|
|
2183
2168
|
const isString = (val2) => typeof val2 === "string";
|
|
2184
2169
|
const isSymbol = (val2) => typeof val2 === "symbol";
|
|
@@ -2434,7 +2419,7 @@ function trackEffects(dep, debuggerEventExtraInfo) {
|
|
|
2434
2419
|
activeEffect.deps.push(dep);
|
|
2435
2420
|
}
|
|
2436
2421
|
}
|
|
2437
|
-
function trigger
|
|
2422
|
+
function trigger(target, type, key2, newValue, oldValue, oldTarget) {
|
|
2438
2423
|
const depsMap = targetMap.get(target);
|
|
2439
2424
|
if (!depsMap) {
|
|
2440
2425
|
return;
|
|
@@ -2497,18 +2482,29 @@ function trigger$1(target, type, key2, newValue, oldValue, oldTarget) {
|
|
|
2497
2482
|
}
|
|
2498
2483
|
}
|
|
2499
2484
|
function triggerEffects(dep, debuggerEventExtraInfo) {
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2485
|
+
const effects = isArray(dep) ? dep : [...dep];
|
|
2486
|
+
for (const effect2 of effects) {
|
|
2487
|
+
if (effect2.computed) {
|
|
2488
|
+
triggerEffect(effect2);
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
for (const effect2 of effects) {
|
|
2492
|
+
if (!effect2.computed) {
|
|
2493
|
+
triggerEffect(effect2);
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
function triggerEffect(effect2, debuggerEventExtraInfo) {
|
|
2498
|
+
if (effect2 !== activeEffect || effect2.allowRecurse) {
|
|
2499
|
+
if (effect2.scheduler) {
|
|
2500
|
+
effect2.scheduler();
|
|
2501
|
+
} else {
|
|
2502
|
+
effect2.run();
|
|
2507
2503
|
}
|
|
2508
2504
|
}
|
|
2509
2505
|
}
|
|
2510
2506
|
const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
|
|
2511
|
-
const builtInSymbols = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).map((key2) => Symbol[key2]).filter(isSymbol));
|
|
2507
|
+
const builtInSymbols = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key2) => key2 !== "arguments" && key2 !== "caller").map((key2) => Symbol[key2]).filter(isSymbol));
|
|
2512
2508
|
const get = /* @__PURE__ */ createGetter();
|
|
2513
2509
|
const shallowGet = /* @__PURE__ */ createGetter(false, true);
|
|
2514
2510
|
const readonlyGet = /* @__PURE__ */ createGetter(true);
|
|
@@ -2565,8 +2561,7 @@ function createGetter(isReadonly2 = false, shallow = false) {
|
|
|
2565
2561
|
return res;
|
|
2566
2562
|
}
|
|
2567
2563
|
if (isRef(res)) {
|
|
2568
|
-
|
|
2569
|
-
return shouldUnwrap ? res.value : res;
|
|
2564
|
+
return targetIsArray && isIntegerKey(key2) ? res : res.value;
|
|
2570
2565
|
}
|
|
2571
2566
|
if (isObject(res)) {
|
|
2572
2567
|
return isReadonly2 ? readonly(res) : reactive(res);
|
|
@@ -2596,9 +2591,9 @@ function createSetter(shallow = false) {
|
|
|
2596
2591
|
const result2 = Reflect.set(target, key2, value2, receiver2);
|
|
2597
2592
|
if (target === toRaw(receiver2)) {
|
|
2598
2593
|
if (!hadKey) {
|
|
2599
|
-
trigger
|
|
2594
|
+
trigger(target, "add", key2, value2);
|
|
2600
2595
|
} else if (hasChanged(value2, oldValue)) {
|
|
2601
|
-
trigger
|
|
2596
|
+
trigger(target, "set", key2, value2);
|
|
2602
2597
|
}
|
|
2603
2598
|
}
|
|
2604
2599
|
return result2;
|
|
@@ -2609,7 +2604,7 @@ function deleteProperty(target, key2) {
|
|
|
2609
2604
|
target[key2];
|
|
2610
2605
|
const result2 = Reflect.deleteProperty(target, key2);
|
|
2611
2606
|
if (result2 && hadKey) {
|
|
2612
|
-
trigger
|
|
2607
|
+
trigger(target, "delete", key2, void 0);
|
|
2613
2608
|
}
|
|
2614
2609
|
return result2;
|
|
2615
2610
|
}
|
|
@@ -2650,10 +2645,12 @@ function get$1(target, key2, isReadonly2 = false, isShallow2 = false) {
|
|
|
2650
2645
|
target = target["__v_raw"];
|
|
2651
2646
|
const rawTarget = toRaw(target);
|
|
2652
2647
|
const rawKey = toRaw(key2);
|
|
2653
|
-
if (
|
|
2654
|
-
|
|
2648
|
+
if (!isReadonly2) {
|
|
2649
|
+
if (key2 !== rawKey) {
|
|
2650
|
+
track(rawTarget, "get", key2);
|
|
2651
|
+
}
|
|
2652
|
+
track(rawTarget, "get", rawKey);
|
|
2655
2653
|
}
|
|
2656
|
-
!isReadonly2 && track(rawTarget, "get", rawKey);
|
|
2657
2654
|
const { has: has2 } = getProto(rawTarget);
|
|
2658
2655
|
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
2659
2656
|
if (has2.call(rawTarget, key2)) {
|
|
@@ -2668,10 +2665,12 @@ function has$1(key2, isReadonly2 = false) {
|
|
|
2668
2665
|
const target = this["__v_raw"];
|
|
2669
2666
|
const rawTarget = toRaw(target);
|
|
2670
2667
|
const rawKey = toRaw(key2);
|
|
2671
|
-
if (
|
|
2672
|
-
|
|
2668
|
+
if (!isReadonly2) {
|
|
2669
|
+
if (key2 !== rawKey) {
|
|
2670
|
+
track(rawTarget, "has", key2);
|
|
2671
|
+
}
|
|
2672
|
+
track(rawTarget, "has", rawKey);
|
|
2673
2673
|
}
|
|
2674
|
-
!isReadonly2 && track(rawTarget, "has", rawKey);
|
|
2675
2674
|
return key2 === rawKey ? target.has(key2) : target.has(key2) || target.has(rawKey);
|
|
2676
2675
|
}
|
|
2677
2676
|
function size(target, isReadonly2 = false) {
|
|
@@ -2686,7 +2685,7 @@ function add(value2) {
|
|
|
2686
2685
|
const hadKey = proto.has.call(target, value2);
|
|
2687
2686
|
if (!hadKey) {
|
|
2688
2687
|
target.add(value2);
|
|
2689
|
-
trigger
|
|
2688
|
+
trigger(target, "add", value2, value2);
|
|
2690
2689
|
}
|
|
2691
2690
|
return this;
|
|
2692
2691
|
}
|
|
@@ -2702,9 +2701,9 @@ function set$1(key2, value2) {
|
|
|
2702
2701
|
const oldValue = get2.call(target, key2);
|
|
2703
2702
|
target.set(key2, value2);
|
|
2704
2703
|
if (!hadKey) {
|
|
2705
|
-
trigger
|
|
2704
|
+
trigger(target, "add", key2, value2);
|
|
2706
2705
|
} else if (hasChanged(value2, oldValue)) {
|
|
2707
|
-
trigger
|
|
2706
|
+
trigger(target, "set", key2, value2);
|
|
2708
2707
|
}
|
|
2709
2708
|
return this;
|
|
2710
2709
|
}
|
|
@@ -2719,7 +2718,7 @@ function deleteEntry(key2) {
|
|
|
2719
2718
|
get2 ? get2.call(target, key2) : void 0;
|
|
2720
2719
|
const result2 = target.delete(key2);
|
|
2721
2720
|
if (hadKey) {
|
|
2722
|
-
trigger
|
|
2721
|
+
trigger(target, "delete", key2, void 0);
|
|
2723
2722
|
}
|
|
2724
2723
|
return result2;
|
|
2725
2724
|
}
|
|
@@ -2728,7 +2727,7 @@ function clear() {
|
|
|
2728
2727
|
const hadItems = target.size !== 0;
|
|
2729
2728
|
const result2 = target.clear();
|
|
2730
2729
|
if (hadItems) {
|
|
2731
|
-
trigger
|
|
2730
|
+
trigger(target, "clear", void 0, void 0);
|
|
2732
2731
|
}
|
|
2733
2732
|
return result2;
|
|
2734
2733
|
}
|
|
@@ -3219,6 +3218,7 @@ function flushPreFlushCbs(seen, parentJob = null) {
|
|
|
3219
3218
|
}
|
|
3220
3219
|
}
|
|
3221
3220
|
function flushPostFlushCbs(seen) {
|
|
3221
|
+
flushPreFlushCbs();
|
|
3222
3222
|
if (pendingPostFlushCbs.length) {
|
|
3223
3223
|
const deduped = [...new Set(pendingPostFlushCbs)];
|
|
3224
3224
|
pendingPostFlushCbs.length = 0;
|
|
@@ -3274,7 +3274,8 @@ function emit$1(instance, event, ...rawArgs) {
|
|
|
3274
3274
|
const { number, trim } = props[modifiersKey] || EMPTY_OBJ;
|
|
3275
3275
|
if (trim) {
|
|
3276
3276
|
args = rawArgs.map((a) => a.trim());
|
|
3277
|
-
}
|
|
3277
|
+
}
|
|
3278
|
+
if (number) {
|
|
3278
3279
|
args = rawArgs.map(toNumber);
|
|
3279
3280
|
}
|
|
3280
3281
|
}
|
|
@@ -3419,6 +3420,7 @@ function renderComponentRoot(instance) {
|
|
|
3419
3420
|
}
|
|
3420
3421
|
}
|
|
3421
3422
|
if (vnode.dirs) {
|
|
3423
|
+
root2 = cloneVNode(root2);
|
|
3422
3424
|
root2.dirs = root2.dirs ? root2.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
3423
3425
|
}
|
|
3424
3426
|
if (vnode.transition) {
|
|
@@ -3564,7 +3566,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3564
3566
|
deep = true;
|
|
3565
3567
|
} else if (isArray(source)) {
|
|
3566
3568
|
isMultiSource = true;
|
|
3567
|
-
forceTrigger = source.some(isReactive);
|
|
3569
|
+
forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
|
|
3568
3570
|
getter = () => source.map((s) => {
|
|
3569
3571
|
if (isRef(s)) {
|
|
3570
3572
|
return s.value;
|
|
@@ -3644,13 +3646,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3644
3646
|
} else if (flush === "post") {
|
|
3645
3647
|
scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
|
|
3646
3648
|
} else {
|
|
3647
|
-
scheduler = () =>
|
|
3648
|
-
if (!instance || instance.isMounted) {
|
|
3649
|
-
queuePreFlushCb(job);
|
|
3650
|
-
} else {
|
|
3651
|
-
job();
|
|
3652
|
-
}
|
|
3653
|
-
};
|
|
3649
|
+
scheduler = () => queuePreFlushCb(job);
|
|
3654
3650
|
}
|
|
3655
3651
|
const effect2 = new ReactiveEffect(getter, scheduler);
|
|
3656
3652
|
if (cb) {
|
|
@@ -3848,6 +3844,16 @@ function resolveTransitionHooks(vnode, props, state, instance) {
|
|
|
3848
3844
|
const callHook2 = (hook, args) => {
|
|
3849
3845
|
hook && callWithAsyncErrorHandling(hook, instance, 9, args);
|
|
3850
3846
|
};
|
|
3847
|
+
const callAsyncHook = (hook, args) => {
|
|
3848
|
+
const done = args[1];
|
|
3849
|
+
callHook2(hook, args);
|
|
3850
|
+
if (isArray(hook)) {
|
|
3851
|
+
if (hook.every((hook2) => hook2.length <= 1))
|
|
3852
|
+
done();
|
|
3853
|
+
} else if (hook.length <= 1) {
|
|
3854
|
+
done();
|
|
3855
|
+
}
|
|
3856
|
+
};
|
|
3851
3857
|
const hooks = {
|
|
3852
3858
|
mode,
|
|
3853
3859
|
persisted,
|
|
@@ -3898,10 +3904,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
|
|
|
3898
3904
|
el._enterCb = void 0;
|
|
3899
3905
|
};
|
|
3900
3906
|
if (hook) {
|
|
3901
|
-
hook
|
|
3902
|
-
if (hook.length <= 1) {
|
|
3903
|
-
done();
|
|
3904
|
-
}
|
|
3907
|
+
callAsyncHook(hook, [el, done]);
|
|
3905
3908
|
} else {
|
|
3906
3909
|
done();
|
|
3907
3910
|
}
|
|
@@ -3933,10 +3936,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
|
|
|
3933
3936
|
};
|
|
3934
3937
|
leavingVNodesCache[key3] = vnode;
|
|
3935
3938
|
if (onLeave) {
|
|
3936
|
-
onLeave
|
|
3937
|
-
if (onLeave.length <= 1) {
|
|
3938
|
-
done();
|
|
3939
|
-
}
|
|
3939
|
+
callAsyncHook(onLeave, [el, done]);
|
|
3940
3940
|
} else {
|
|
3941
3941
|
done();
|
|
3942
3942
|
}
|
|
@@ -4062,6 +4062,255 @@ const onRenderTracked = createHook("rtc");
|
|
|
4062
4062
|
function onErrorCaptured(hook, target = currentInstance) {
|
|
4063
4063
|
injectHook("ec", hook, target);
|
|
4064
4064
|
}
|
|
4065
|
+
function withDirectives(vnode, directives) {
|
|
4066
|
+
const internalInstance = currentRenderingInstance;
|
|
4067
|
+
if (internalInstance === null) {
|
|
4068
|
+
return vnode;
|
|
4069
|
+
}
|
|
4070
|
+
const instance = getExposeProxy(internalInstance) || internalInstance.proxy;
|
|
4071
|
+
const bindings = vnode.dirs || (vnode.dirs = []);
|
|
4072
|
+
for (let i2 = 0; i2 < directives.length; i2++) {
|
|
4073
|
+
let [dir, value2, arg, modifiers = EMPTY_OBJ] = directives[i2];
|
|
4074
|
+
if (isFunction(dir)) {
|
|
4075
|
+
dir = {
|
|
4076
|
+
mounted: dir,
|
|
4077
|
+
updated: dir
|
|
4078
|
+
};
|
|
4079
|
+
}
|
|
4080
|
+
if (dir.deep) {
|
|
4081
|
+
traverse(value2);
|
|
4082
|
+
}
|
|
4083
|
+
bindings.push({
|
|
4084
|
+
dir,
|
|
4085
|
+
instance,
|
|
4086
|
+
value: value2,
|
|
4087
|
+
oldValue: void 0,
|
|
4088
|
+
arg,
|
|
4089
|
+
modifiers
|
|
4090
|
+
});
|
|
4091
|
+
}
|
|
4092
|
+
return vnode;
|
|
4093
|
+
}
|
|
4094
|
+
function invokeDirectiveHook(vnode, prevVNode, instance, name2) {
|
|
4095
|
+
const bindings = vnode.dirs;
|
|
4096
|
+
const oldBindings = prevVNode && prevVNode.dirs;
|
|
4097
|
+
for (let i2 = 0; i2 < bindings.length; i2++) {
|
|
4098
|
+
const binding = bindings[i2];
|
|
4099
|
+
if (oldBindings) {
|
|
4100
|
+
binding.oldValue = oldBindings[i2].value;
|
|
4101
|
+
}
|
|
4102
|
+
let hook = binding.dir[name2];
|
|
4103
|
+
if (hook) {
|
|
4104
|
+
pauseTracking();
|
|
4105
|
+
callWithAsyncErrorHandling(hook, instance, 8, [
|
|
4106
|
+
vnode.el,
|
|
4107
|
+
binding,
|
|
4108
|
+
vnode,
|
|
4109
|
+
prevVNode
|
|
4110
|
+
]);
|
|
4111
|
+
resetTracking();
|
|
4112
|
+
}
|
|
4113
|
+
}
|
|
4114
|
+
}
|
|
4115
|
+
const COMPONENTS = "components";
|
|
4116
|
+
const DIRECTIVES = "directives";
|
|
4117
|
+
function resolveComponent(name2, maybeSelfReference) {
|
|
4118
|
+
return resolveAsset(COMPONENTS, name2, true, maybeSelfReference) || name2;
|
|
4119
|
+
}
|
|
4120
|
+
const NULL_DYNAMIC_COMPONENT = Symbol();
|
|
4121
|
+
function resolveDirective(name2) {
|
|
4122
|
+
return resolveAsset(DIRECTIVES, name2);
|
|
4123
|
+
}
|
|
4124
|
+
function resolveAsset(type, name2, warnMissing = true, maybeSelfReference = false) {
|
|
4125
|
+
const instance = currentRenderingInstance || currentInstance;
|
|
4126
|
+
if (instance) {
|
|
4127
|
+
const Component = instance.type;
|
|
4128
|
+
if (type === COMPONENTS) {
|
|
4129
|
+
const selfName = getComponentName(Component, false);
|
|
4130
|
+
if (selfName && (selfName === name2 || selfName === camelize(name2) || selfName === capitalize(camelize(name2)))) {
|
|
4131
|
+
return Component;
|
|
4132
|
+
}
|
|
4133
|
+
}
|
|
4134
|
+
const res = resolve(instance[type] || Component[type], name2) || resolve(instance.appContext[type], name2);
|
|
4135
|
+
if (!res && maybeSelfReference) {
|
|
4136
|
+
return Component;
|
|
4137
|
+
}
|
|
4138
|
+
return res;
|
|
4139
|
+
}
|
|
4140
|
+
}
|
|
4141
|
+
function resolve(registry, name2) {
|
|
4142
|
+
return registry && (registry[name2] || registry[camelize(name2)] || registry[capitalize(camelize(name2))]);
|
|
4143
|
+
}
|
|
4144
|
+
function renderList(source, renderItem, cache, index2) {
|
|
4145
|
+
let ret;
|
|
4146
|
+
const cached = cache && cache[index2];
|
|
4147
|
+
if (isArray(source) || isString(source)) {
|
|
4148
|
+
ret = new Array(source.length);
|
|
4149
|
+
for (let i2 = 0, l = source.length; i2 < l; i2++) {
|
|
4150
|
+
ret[i2] = renderItem(source[i2], i2, void 0, cached && cached[i2]);
|
|
4151
|
+
}
|
|
4152
|
+
} else if (typeof source === "number") {
|
|
4153
|
+
ret = new Array(source);
|
|
4154
|
+
for (let i2 = 0; i2 < source; i2++) {
|
|
4155
|
+
ret[i2] = renderItem(i2 + 1, i2, void 0, cached && cached[i2]);
|
|
4156
|
+
}
|
|
4157
|
+
} else if (isObject(source)) {
|
|
4158
|
+
if (source[Symbol.iterator]) {
|
|
4159
|
+
ret = Array.from(source, (item, i2) => renderItem(item, i2, void 0, cached && cached[i2]));
|
|
4160
|
+
} else {
|
|
4161
|
+
const keys = Object.keys(source);
|
|
4162
|
+
ret = new Array(keys.length);
|
|
4163
|
+
for (let i2 = 0, l = keys.length; i2 < l; i2++) {
|
|
4164
|
+
const key2 = keys[i2];
|
|
4165
|
+
ret[i2] = renderItem(source[key2], key2, i2, cached && cached[i2]);
|
|
4166
|
+
}
|
|
4167
|
+
}
|
|
4168
|
+
} else {
|
|
4169
|
+
ret = [];
|
|
4170
|
+
}
|
|
4171
|
+
if (cache) {
|
|
4172
|
+
cache[index2] = ret;
|
|
4173
|
+
}
|
|
4174
|
+
return ret;
|
|
4175
|
+
}
|
|
4176
|
+
function renderSlot(slots, name2, props = {}, fallback, noSlotted) {
|
|
4177
|
+
if (currentRenderingInstance.isCE || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.isCE) {
|
|
4178
|
+
return createVNode("slot", name2 === "default" ? null : { name: name2 }, fallback && fallback());
|
|
4179
|
+
}
|
|
4180
|
+
let slot = slots[name2];
|
|
4181
|
+
if (slot && slot._c) {
|
|
4182
|
+
slot._d = false;
|
|
4183
|
+
}
|
|
4184
|
+
openBlock();
|
|
4185
|
+
const validSlotContent = slot && ensureValidVNode(slot(props));
|
|
4186
|
+
const rendered = createBlock(Fragment, { key: props.key || `_${name2}` }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 ? 64 : -2);
|
|
4187
|
+
if (!noSlotted && rendered.scopeId) {
|
|
4188
|
+
rendered.slotScopeIds = [rendered.scopeId + "-s"];
|
|
4189
|
+
}
|
|
4190
|
+
if (slot && slot._c) {
|
|
4191
|
+
slot._d = true;
|
|
4192
|
+
}
|
|
4193
|
+
return rendered;
|
|
4194
|
+
}
|
|
4195
|
+
function ensureValidVNode(vnodes) {
|
|
4196
|
+
return vnodes.some((child) => {
|
|
4197
|
+
if (!isVNode(child))
|
|
4198
|
+
return true;
|
|
4199
|
+
if (child.type === Comment)
|
|
4200
|
+
return false;
|
|
4201
|
+
if (child.type === Fragment && !ensureValidVNode(child.children))
|
|
4202
|
+
return false;
|
|
4203
|
+
return true;
|
|
4204
|
+
}) ? vnodes : null;
|
|
4205
|
+
}
|
|
4206
|
+
const getPublicInstance = (i2) => {
|
|
4207
|
+
if (!i2)
|
|
4208
|
+
return null;
|
|
4209
|
+
if (isStatefulComponent(i2))
|
|
4210
|
+
return getExposeProxy(i2) || i2.proxy;
|
|
4211
|
+
return getPublicInstance(i2.parent);
|
|
4212
|
+
};
|
|
4213
|
+
const publicPropertiesMap = /* @__PURE__ */ extend(Object.create(null), {
|
|
4214
|
+
$: (i2) => i2,
|
|
4215
|
+
$el: (i2) => i2.vnode.el,
|
|
4216
|
+
$data: (i2) => i2.data,
|
|
4217
|
+
$props: (i2) => i2.props,
|
|
4218
|
+
$attrs: (i2) => i2.attrs,
|
|
4219
|
+
$slots: (i2) => i2.slots,
|
|
4220
|
+
$refs: (i2) => i2.refs,
|
|
4221
|
+
$parent: (i2) => getPublicInstance(i2.parent),
|
|
4222
|
+
$root: (i2) => getPublicInstance(i2.root),
|
|
4223
|
+
$emit: (i2) => i2.emit,
|
|
4224
|
+
$options: (i2) => resolveMergedOptions(i2),
|
|
4225
|
+
$forceUpdate: (i2) => i2.f || (i2.f = () => queueJob(i2.update)),
|
|
4226
|
+
$nextTick: (i2) => i2.n || (i2.n = nextTick.bind(i2.proxy)),
|
|
4227
|
+
$watch: (i2) => instanceWatch.bind(i2)
|
|
4228
|
+
});
|
|
4229
|
+
const PublicInstanceProxyHandlers = {
|
|
4230
|
+
get({ _: instance }, key2) {
|
|
4231
|
+
const { ctx, setupState, data: data2, props, accessCache, type, appContext } = instance;
|
|
4232
|
+
let normalizedProps;
|
|
4233
|
+
if (key2[0] !== "$") {
|
|
4234
|
+
const n = accessCache[key2];
|
|
4235
|
+
if (n !== void 0) {
|
|
4236
|
+
switch (n) {
|
|
4237
|
+
case 1:
|
|
4238
|
+
return setupState[key2];
|
|
4239
|
+
case 2:
|
|
4240
|
+
return data2[key2];
|
|
4241
|
+
case 4:
|
|
4242
|
+
return ctx[key2];
|
|
4243
|
+
case 3:
|
|
4244
|
+
return props[key2];
|
|
4245
|
+
}
|
|
4246
|
+
} else if (setupState !== EMPTY_OBJ && hasOwn(setupState, key2)) {
|
|
4247
|
+
accessCache[key2] = 1;
|
|
4248
|
+
return setupState[key2];
|
|
4249
|
+
} else if (data2 !== EMPTY_OBJ && hasOwn(data2, key2)) {
|
|
4250
|
+
accessCache[key2] = 2;
|
|
4251
|
+
return data2[key2];
|
|
4252
|
+
} else if ((normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key2)) {
|
|
4253
|
+
accessCache[key2] = 3;
|
|
4254
|
+
return props[key2];
|
|
4255
|
+
} else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key2)) {
|
|
4256
|
+
accessCache[key2] = 4;
|
|
4257
|
+
return ctx[key2];
|
|
4258
|
+
} else if (shouldCacheAccess) {
|
|
4259
|
+
accessCache[key2] = 0;
|
|
4260
|
+
}
|
|
4261
|
+
}
|
|
4262
|
+
const publicGetter = publicPropertiesMap[key2];
|
|
4263
|
+
let cssModule, globalProperties;
|
|
4264
|
+
if (publicGetter) {
|
|
4265
|
+
if (key2 === "$attrs") {
|
|
4266
|
+
track(instance, "get", key2);
|
|
4267
|
+
}
|
|
4268
|
+
return publicGetter(instance);
|
|
4269
|
+
} else if ((cssModule = type.__cssModules) && (cssModule = cssModule[key2])) {
|
|
4270
|
+
return cssModule;
|
|
4271
|
+
} else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key2)) {
|
|
4272
|
+
accessCache[key2] = 4;
|
|
4273
|
+
return ctx[key2];
|
|
4274
|
+
} else if (globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key2)) {
|
|
4275
|
+
{
|
|
4276
|
+
return globalProperties[key2];
|
|
4277
|
+
}
|
|
4278
|
+
} else
|
|
4279
|
+
;
|
|
4280
|
+
},
|
|
4281
|
+
set({ _: instance }, key2, value2) {
|
|
4282
|
+
const { data: data2, setupState, ctx } = instance;
|
|
4283
|
+
if (setupState !== EMPTY_OBJ && hasOwn(setupState, key2)) {
|
|
4284
|
+
setupState[key2] = value2;
|
|
4285
|
+
return true;
|
|
4286
|
+
} else if (data2 !== EMPTY_OBJ && hasOwn(data2, key2)) {
|
|
4287
|
+
data2[key2] = value2;
|
|
4288
|
+
return true;
|
|
4289
|
+
} else if (hasOwn(instance.props, key2)) {
|
|
4290
|
+
return false;
|
|
4291
|
+
}
|
|
4292
|
+
if (key2[0] === "$" && key2.slice(1) in instance) {
|
|
4293
|
+
return false;
|
|
4294
|
+
} else {
|
|
4295
|
+
{
|
|
4296
|
+
ctx[key2] = value2;
|
|
4297
|
+
}
|
|
4298
|
+
}
|
|
4299
|
+
return true;
|
|
4300
|
+
},
|
|
4301
|
+
has({ _: { data: data2, setupState, accessCache, ctx, appContext, propsOptions } }, key2) {
|
|
4302
|
+
let normalizedProps;
|
|
4303
|
+
return !!accessCache[key2] || data2 !== EMPTY_OBJ && hasOwn(data2, key2) || setupState !== EMPTY_OBJ && hasOwn(setupState, key2) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key2) || hasOwn(ctx, key2) || hasOwn(publicPropertiesMap, key2) || hasOwn(appContext.config.globalProperties, key2);
|
|
4304
|
+
},
|
|
4305
|
+
defineProperty(target, key2, descriptor) {
|
|
4306
|
+
if (descriptor.get != null) {
|
|
4307
|
+
target._.accessCache[key2] = 0;
|
|
4308
|
+
} else if (hasOwn(descriptor, "value")) {
|
|
4309
|
+
this.set(target, key2, descriptor.value, null);
|
|
4310
|
+
}
|
|
4311
|
+
return Reflect.defineProperty(target, key2, descriptor);
|
|
4312
|
+
}
|
|
4313
|
+
};
|
|
4065
4314
|
let shouldCacheAccess = true;
|
|
4066
4315
|
function applyOptions(instance) {
|
|
4067
4316
|
const options = resolveMergedOptions(instance);
|
|
@@ -4440,7 +4689,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
4440
4689
|
}
|
|
4441
4690
|
}
|
|
4442
4691
|
if (hasAttrsChanged) {
|
|
4443
|
-
trigger
|
|
4692
|
+
trigger(instance, "set", "$attrs");
|
|
4444
4693
|
}
|
|
4445
4694
|
}
|
|
4446
4695
|
function setFullProps(instance, rawProps, props, attrs) {
|
|
@@ -4592,6 +4841,9 @@ function getTypeIndex(type, expectedTypes) {
|
|
|
4592
4841
|
const isInternalKey = (key2) => key2[0] === "_" || key2 === "$stable";
|
|
4593
4842
|
const normalizeSlotValue = (value2) => isArray(value2) ? value2.map(normalizeVNode) : [normalizeVNode(value2)];
|
|
4594
4843
|
const normalizeSlot = (key2, rawSlot, ctx) => {
|
|
4844
|
+
if (rawSlot._n) {
|
|
4845
|
+
return rawSlot;
|
|
4846
|
+
}
|
|
4595
4847
|
const normalized = withCtx((...args) => {
|
|
4596
4848
|
return normalizeSlotValue(rawSlot(...args));
|
|
4597
4849
|
}, ctx);
|
|
@@ -4665,56 +4917,6 @@ const updateSlots = (instance, children, optimized) => {
|
|
|
4665
4917
|
}
|
|
4666
4918
|
}
|
|
4667
4919
|
};
|
|
4668
|
-
function withDirectives(vnode, directives) {
|
|
4669
|
-
const internalInstance = currentRenderingInstance;
|
|
4670
|
-
if (internalInstance === null) {
|
|
4671
|
-
return vnode;
|
|
4672
|
-
}
|
|
4673
|
-
const instance = getExposeProxy(internalInstance) || internalInstance.proxy;
|
|
4674
|
-
const bindings = vnode.dirs || (vnode.dirs = []);
|
|
4675
|
-
for (let i2 = 0; i2 < directives.length; i2++) {
|
|
4676
|
-
let [dir, value2, arg, modifiers = EMPTY_OBJ] = directives[i2];
|
|
4677
|
-
if (isFunction(dir)) {
|
|
4678
|
-
dir = {
|
|
4679
|
-
mounted: dir,
|
|
4680
|
-
updated: dir
|
|
4681
|
-
};
|
|
4682
|
-
}
|
|
4683
|
-
if (dir.deep) {
|
|
4684
|
-
traverse(value2);
|
|
4685
|
-
}
|
|
4686
|
-
bindings.push({
|
|
4687
|
-
dir,
|
|
4688
|
-
instance,
|
|
4689
|
-
value: value2,
|
|
4690
|
-
oldValue: void 0,
|
|
4691
|
-
arg,
|
|
4692
|
-
modifiers
|
|
4693
|
-
});
|
|
4694
|
-
}
|
|
4695
|
-
return vnode;
|
|
4696
|
-
}
|
|
4697
|
-
function invokeDirectiveHook(vnode, prevVNode, instance, name2) {
|
|
4698
|
-
const bindings = vnode.dirs;
|
|
4699
|
-
const oldBindings = prevVNode && prevVNode.dirs;
|
|
4700
|
-
for (let i2 = 0; i2 < bindings.length; i2++) {
|
|
4701
|
-
const binding = bindings[i2];
|
|
4702
|
-
if (oldBindings) {
|
|
4703
|
-
binding.oldValue = oldBindings[i2].value;
|
|
4704
|
-
}
|
|
4705
|
-
let hook = binding.dir[name2];
|
|
4706
|
-
if (hook) {
|
|
4707
|
-
pauseTracking();
|
|
4708
|
-
callWithAsyncErrorHandling(hook, instance, 8, [
|
|
4709
|
-
vnode.el,
|
|
4710
|
-
binding,
|
|
4711
|
-
vnode,
|
|
4712
|
-
prevVNode
|
|
4713
|
-
]);
|
|
4714
|
-
resetTracking();
|
|
4715
|
-
}
|
|
4716
|
-
}
|
|
4717
|
-
}
|
|
4718
4920
|
function createAppContext() {
|
|
4719
4921
|
return {
|
|
4720
4922
|
app: null,
|
|
@@ -4881,7 +5083,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4881
5083
|
if (hasOwn(setupState, ref2)) {
|
|
4882
5084
|
setupState[ref2] = value2;
|
|
4883
5085
|
}
|
|
4884
|
-
} else if (
|
|
5086
|
+
} else if (_isRef) {
|
|
4885
5087
|
ref2.value = value2;
|
|
4886
5088
|
if (rawRef.k)
|
|
4887
5089
|
refs[rawRef.k] = value2;
|
|
@@ -5221,7 +5423,6 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5221
5423
|
instance.update();
|
|
5222
5424
|
}
|
|
5223
5425
|
} else {
|
|
5224
|
-
n2.component = n1.component;
|
|
5225
5426
|
n2.el = n1.el;
|
|
5226
5427
|
instance.vnode = n2;
|
|
5227
5428
|
}
|
|
@@ -5263,7 +5464,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5263
5464
|
const scopedInitialVNode = initialVNode;
|
|
5264
5465
|
queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent2, scopedInitialVNode), parentSuspense);
|
|
5265
5466
|
}
|
|
5266
|
-
if (initialVNode.shapeFlag & 256) {
|
|
5467
|
+
if (initialVNode.shapeFlag & 256 || parent2 && isAsyncWrapper(parent2.vnode) && parent2.vnode.shapeFlag & 256) {
|
|
5267
5468
|
instance.a && queuePostRenderEffect(instance.a, parentSuspense);
|
|
5268
5469
|
}
|
|
5269
5470
|
instance.isMounted = true;
|
|
@@ -5302,8 +5503,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5302
5503
|
}
|
|
5303
5504
|
}
|
|
5304
5505
|
};
|
|
5305
|
-
const effect2 = instance.effect = new ReactiveEffect(componentUpdateFn, () => queueJob(
|
|
5306
|
-
const update = instance.update = effect2.run
|
|
5506
|
+
const effect2 = instance.effect = new ReactiveEffect(componentUpdateFn, () => queueJob(update), instance.scope);
|
|
5507
|
+
const update = instance.update = () => effect2.run();
|
|
5307
5508
|
update.id = instance.uid;
|
|
5308
5509
|
toggleRecurse(instance, true);
|
|
5309
5510
|
update();
|
|
@@ -5867,43 +6068,22 @@ function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScope
|
|
|
5867
6068
|
vnode.targetAnchor = targetNode;
|
|
5868
6069
|
} else {
|
|
5869
6070
|
vnode.anchor = nextSibling(node);
|
|
5870
|
-
|
|
6071
|
+
let targetAnchor = targetNode;
|
|
6072
|
+
while (targetAnchor) {
|
|
6073
|
+
targetAnchor = nextSibling(targetAnchor);
|
|
6074
|
+
if (targetAnchor && targetAnchor.nodeType === 8 && targetAnchor.data === "teleport anchor") {
|
|
6075
|
+
vnode.targetAnchor = targetAnchor;
|
|
6076
|
+
target._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor);
|
|
6077
|
+
break;
|
|
6078
|
+
}
|
|
6079
|
+
}
|
|
6080
|
+
hydrateChildren(targetNode, vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized);
|
|
5871
6081
|
}
|
|
5872
|
-
target._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor);
|
|
5873
6082
|
}
|
|
5874
6083
|
}
|
|
5875
6084
|
return vnode.anchor && nextSibling(vnode.anchor);
|
|
5876
6085
|
}
|
|
5877
6086
|
const Teleport = TeleportImpl;
|
|
5878
|
-
const COMPONENTS = "components";
|
|
5879
|
-
const DIRECTIVES = "directives";
|
|
5880
|
-
function resolveComponent(name2, maybeSelfReference) {
|
|
5881
|
-
return resolveAsset(COMPONENTS, name2, true, maybeSelfReference) || name2;
|
|
5882
|
-
}
|
|
5883
|
-
const NULL_DYNAMIC_COMPONENT = Symbol();
|
|
5884
|
-
function resolveDirective(name2) {
|
|
5885
|
-
return resolveAsset(DIRECTIVES, name2);
|
|
5886
|
-
}
|
|
5887
|
-
function resolveAsset(type, name2, warnMissing = true, maybeSelfReference = false) {
|
|
5888
|
-
const instance = currentRenderingInstance || currentInstance;
|
|
5889
|
-
if (instance) {
|
|
5890
|
-
const Component = instance.type;
|
|
5891
|
-
if (type === COMPONENTS) {
|
|
5892
|
-
const selfName = getComponentName(Component);
|
|
5893
|
-
if (selfName && (selfName === name2 || selfName === camelize(name2) || selfName === capitalize(camelize(name2)))) {
|
|
5894
|
-
return Component;
|
|
5895
|
-
}
|
|
5896
|
-
}
|
|
5897
|
-
const res = resolve(instance[type] || Component[type], name2) || resolve(instance.appContext[type], name2);
|
|
5898
|
-
if (!res && maybeSelfReference) {
|
|
5899
|
-
return Component;
|
|
5900
|
-
}
|
|
5901
|
-
return res;
|
|
5902
|
-
}
|
|
5903
|
-
}
|
|
5904
|
-
function resolve(registry, name2) {
|
|
5905
|
-
return registry && (registry[name2] || registry[camelize(name2)] || registry[capitalize(camelize(name2))]);
|
|
5906
|
-
}
|
|
5907
6087
|
const Fragment = Symbol(void 0);
|
|
5908
6088
|
const Text = Symbol(void 0);
|
|
5909
6089
|
const Comment = Symbol(void 0);
|
|
@@ -5997,6 +6177,14 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
|
|
|
5997
6177
|
if (children) {
|
|
5998
6178
|
normalizeChildren(cloned, children);
|
|
5999
6179
|
}
|
|
6180
|
+
if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) {
|
|
6181
|
+
if (cloned.shapeFlag & 6) {
|
|
6182
|
+
currentBlock[currentBlock.indexOf(type)] = cloned;
|
|
6183
|
+
} else {
|
|
6184
|
+
currentBlock.push(cloned);
|
|
6185
|
+
}
|
|
6186
|
+
}
|
|
6187
|
+
cloned.patchFlag |= -2;
|
|
6000
6188
|
return cloned;
|
|
6001
6189
|
}
|
|
6002
6190
|
if (isClassComponent(type)) {
|
|
@@ -6150,176 +6338,6 @@ function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
|
6150
6338
|
prevVNode
|
|
6151
6339
|
]);
|
|
6152
6340
|
}
|
|
6153
|
-
function renderList(source, renderItem, cache, index2) {
|
|
6154
|
-
let ret;
|
|
6155
|
-
const cached = cache && cache[index2];
|
|
6156
|
-
if (isArray(source) || isString(source)) {
|
|
6157
|
-
ret = new Array(source.length);
|
|
6158
|
-
for (let i2 = 0, l = source.length; i2 < l; i2++) {
|
|
6159
|
-
ret[i2] = renderItem(source[i2], i2, void 0, cached && cached[i2]);
|
|
6160
|
-
}
|
|
6161
|
-
} else if (typeof source === "number") {
|
|
6162
|
-
ret = new Array(source);
|
|
6163
|
-
for (let i2 = 0; i2 < source; i2++) {
|
|
6164
|
-
ret[i2] = renderItem(i2 + 1, i2, void 0, cached && cached[i2]);
|
|
6165
|
-
}
|
|
6166
|
-
} else if (isObject(source)) {
|
|
6167
|
-
if (source[Symbol.iterator]) {
|
|
6168
|
-
ret = Array.from(source, (item, i2) => renderItem(item, i2, void 0, cached && cached[i2]));
|
|
6169
|
-
} else {
|
|
6170
|
-
const keys = Object.keys(source);
|
|
6171
|
-
ret = new Array(keys.length);
|
|
6172
|
-
for (let i2 = 0, l = keys.length; i2 < l; i2++) {
|
|
6173
|
-
const key2 = keys[i2];
|
|
6174
|
-
ret[i2] = renderItem(source[key2], key2, i2, cached && cached[i2]);
|
|
6175
|
-
}
|
|
6176
|
-
}
|
|
6177
|
-
} else {
|
|
6178
|
-
ret = [];
|
|
6179
|
-
}
|
|
6180
|
-
if (cache) {
|
|
6181
|
-
cache[index2] = ret;
|
|
6182
|
-
}
|
|
6183
|
-
return ret;
|
|
6184
|
-
}
|
|
6185
|
-
function renderSlot(slots, name2, props = {}, fallback, noSlotted) {
|
|
6186
|
-
if (currentRenderingInstance.isCE || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.isCE) {
|
|
6187
|
-
return createVNode("slot", name2 === "default" ? null : { name: name2 }, fallback && fallback());
|
|
6188
|
-
}
|
|
6189
|
-
let slot = slots[name2];
|
|
6190
|
-
if (slot && slot._c) {
|
|
6191
|
-
slot._d = false;
|
|
6192
|
-
}
|
|
6193
|
-
openBlock();
|
|
6194
|
-
const validSlotContent = slot && ensureValidVNode(slot(props));
|
|
6195
|
-
const rendered = createBlock(Fragment, { key: props.key || `_${name2}` }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 ? 64 : -2);
|
|
6196
|
-
if (!noSlotted && rendered.scopeId) {
|
|
6197
|
-
rendered.slotScopeIds = [rendered.scopeId + "-s"];
|
|
6198
|
-
}
|
|
6199
|
-
if (slot && slot._c) {
|
|
6200
|
-
slot._d = true;
|
|
6201
|
-
}
|
|
6202
|
-
return rendered;
|
|
6203
|
-
}
|
|
6204
|
-
function ensureValidVNode(vnodes) {
|
|
6205
|
-
return vnodes.some((child) => {
|
|
6206
|
-
if (!isVNode(child))
|
|
6207
|
-
return true;
|
|
6208
|
-
if (child.type === Comment)
|
|
6209
|
-
return false;
|
|
6210
|
-
if (child.type === Fragment && !ensureValidVNode(child.children))
|
|
6211
|
-
return false;
|
|
6212
|
-
return true;
|
|
6213
|
-
}) ? vnodes : null;
|
|
6214
|
-
}
|
|
6215
|
-
const getPublicInstance = (i2) => {
|
|
6216
|
-
if (!i2)
|
|
6217
|
-
return null;
|
|
6218
|
-
if (isStatefulComponent(i2))
|
|
6219
|
-
return getExposeProxy(i2) || i2.proxy;
|
|
6220
|
-
return getPublicInstance(i2.parent);
|
|
6221
|
-
};
|
|
6222
|
-
const publicPropertiesMap = /* @__PURE__ */ extend(Object.create(null), {
|
|
6223
|
-
$: (i2) => i2,
|
|
6224
|
-
$el: (i2) => i2.vnode.el,
|
|
6225
|
-
$data: (i2) => i2.data,
|
|
6226
|
-
$props: (i2) => i2.props,
|
|
6227
|
-
$attrs: (i2) => i2.attrs,
|
|
6228
|
-
$slots: (i2) => i2.slots,
|
|
6229
|
-
$refs: (i2) => i2.refs,
|
|
6230
|
-
$parent: (i2) => getPublicInstance(i2.parent),
|
|
6231
|
-
$root: (i2) => getPublicInstance(i2.root),
|
|
6232
|
-
$emit: (i2) => i2.emit,
|
|
6233
|
-
$options: (i2) => resolveMergedOptions(i2),
|
|
6234
|
-
$forceUpdate: (i2) => () => queueJob(i2.update),
|
|
6235
|
-
$nextTick: (i2) => nextTick.bind(i2.proxy),
|
|
6236
|
-
$watch: (i2) => instanceWatch.bind(i2)
|
|
6237
|
-
});
|
|
6238
|
-
const PublicInstanceProxyHandlers = {
|
|
6239
|
-
get({ _: instance }, key2) {
|
|
6240
|
-
const { ctx, setupState, data: data2, props, accessCache, type, appContext } = instance;
|
|
6241
|
-
let normalizedProps;
|
|
6242
|
-
if (key2[0] !== "$") {
|
|
6243
|
-
const n = accessCache[key2];
|
|
6244
|
-
if (n !== void 0) {
|
|
6245
|
-
switch (n) {
|
|
6246
|
-
case 1:
|
|
6247
|
-
return setupState[key2];
|
|
6248
|
-
case 2:
|
|
6249
|
-
return data2[key2];
|
|
6250
|
-
case 4:
|
|
6251
|
-
return ctx[key2];
|
|
6252
|
-
case 3:
|
|
6253
|
-
return props[key2];
|
|
6254
|
-
}
|
|
6255
|
-
} else if (setupState !== EMPTY_OBJ && hasOwn(setupState, key2)) {
|
|
6256
|
-
accessCache[key2] = 1;
|
|
6257
|
-
return setupState[key2];
|
|
6258
|
-
} else if (data2 !== EMPTY_OBJ && hasOwn(data2, key2)) {
|
|
6259
|
-
accessCache[key2] = 2;
|
|
6260
|
-
return data2[key2];
|
|
6261
|
-
} else if ((normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key2)) {
|
|
6262
|
-
accessCache[key2] = 3;
|
|
6263
|
-
return props[key2];
|
|
6264
|
-
} else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key2)) {
|
|
6265
|
-
accessCache[key2] = 4;
|
|
6266
|
-
return ctx[key2];
|
|
6267
|
-
} else if (shouldCacheAccess) {
|
|
6268
|
-
accessCache[key2] = 0;
|
|
6269
|
-
}
|
|
6270
|
-
}
|
|
6271
|
-
const publicGetter = publicPropertiesMap[key2];
|
|
6272
|
-
let cssModule, globalProperties;
|
|
6273
|
-
if (publicGetter) {
|
|
6274
|
-
if (key2 === "$attrs") {
|
|
6275
|
-
track(instance, "get", key2);
|
|
6276
|
-
}
|
|
6277
|
-
return publicGetter(instance);
|
|
6278
|
-
} else if ((cssModule = type.__cssModules) && (cssModule = cssModule[key2])) {
|
|
6279
|
-
return cssModule;
|
|
6280
|
-
} else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key2)) {
|
|
6281
|
-
accessCache[key2] = 4;
|
|
6282
|
-
return ctx[key2];
|
|
6283
|
-
} else if (globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key2)) {
|
|
6284
|
-
{
|
|
6285
|
-
return globalProperties[key2];
|
|
6286
|
-
}
|
|
6287
|
-
} else
|
|
6288
|
-
;
|
|
6289
|
-
},
|
|
6290
|
-
set({ _: instance }, key2, value2) {
|
|
6291
|
-
const { data: data2, setupState, ctx } = instance;
|
|
6292
|
-
if (setupState !== EMPTY_OBJ && hasOwn(setupState, key2)) {
|
|
6293
|
-
setupState[key2] = value2;
|
|
6294
|
-
return true;
|
|
6295
|
-
} else if (data2 !== EMPTY_OBJ && hasOwn(data2, key2)) {
|
|
6296
|
-
data2[key2] = value2;
|
|
6297
|
-
return true;
|
|
6298
|
-
} else if (hasOwn(instance.props, key2)) {
|
|
6299
|
-
return false;
|
|
6300
|
-
}
|
|
6301
|
-
if (key2[0] === "$" && key2.slice(1) in instance) {
|
|
6302
|
-
return false;
|
|
6303
|
-
} else {
|
|
6304
|
-
{
|
|
6305
|
-
ctx[key2] = value2;
|
|
6306
|
-
}
|
|
6307
|
-
}
|
|
6308
|
-
return true;
|
|
6309
|
-
},
|
|
6310
|
-
has({ _: { data: data2, setupState, accessCache, ctx, appContext, propsOptions } }, key2) {
|
|
6311
|
-
let normalizedProps;
|
|
6312
|
-
return !!accessCache[key2] || data2 !== EMPTY_OBJ && hasOwn(data2, key2) || setupState !== EMPTY_OBJ && hasOwn(setupState, key2) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key2) || hasOwn(ctx, key2) || hasOwn(publicPropertiesMap, key2) || hasOwn(appContext.config.globalProperties, key2);
|
|
6313
|
-
},
|
|
6314
|
-
defineProperty(target, key2, descriptor) {
|
|
6315
|
-
if (descriptor.get != null) {
|
|
6316
|
-
target._.accessCache[key2] = 0;
|
|
6317
|
-
} else if (hasOwn(descriptor, "value")) {
|
|
6318
|
-
this.set(target, key2, descriptor.value, null);
|
|
6319
|
-
}
|
|
6320
|
-
return Reflect.defineProperty(target, key2, descriptor);
|
|
6321
|
-
}
|
|
6322
|
-
};
|
|
6323
6341
|
const emptyAppContext = createAppContext();
|
|
6324
6342
|
let uid$1 = 0;
|
|
6325
6343
|
function createComponentInstance(vnode, parent2, suspense) {
|
|
@@ -6523,8 +6541,8 @@ function getExposeProxy(instance) {
|
|
|
6523
6541
|
}));
|
|
6524
6542
|
}
|
|
6525
6543
|
}
|
|
6526
|
-
function getComponentName(Component) {
|
|
6527
|
-
return isFunction(Component) ? Component.displayName || Component.name : Component.name;
|
|
6544
|
+
function getComponentName(Component, includeInferred = true) {
|
|
6545
|
+
return isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name;
|
|
6528
6546
|
}
|
|
6529
6547
|
function isClassComponent(value2) {
|
|
6530
6548
|
return isFunction(value2) && "__vccOpts" in value2;
|
|
@@ -6552,7 +6570,7 @@ function h(type, propsOrChildren, children) {
|
|
|
6552
6570
|
return createVNode(type, propsOrChildren, children);
|
|
6553
6571
|
}
|
|
6554
6572
|
}
|
|
6555
|
-
const version = "3.2.
|
|
6573
|
+
const version = "3.2.37";
|
|
6556
6574
|
const svgNS = "http://www.w3.org/2000/svg";
|
|
6557
6575
|
const doc = typeof document !== "undefined" ? document : null;
|
|
6558
6576
|
const templateContainer = doc && /* @__PURE__ */ doc.createElement("template");
|
|
@@ -6760,7 +6778,7 @@ const [_getNow, skipTimestampCheck] = /* @__PURE__ */ (() => {
|
|
|
6760
6778
|
let skipTimestampCheck2 = false;
|
|
6761
6779
|
if (typeof window !== "undefined") {
|
|
6762
6780
|
if (Date.now() > document.createEvent("Event").timeStamp) {
|
|
6763
|
-
_getNow2 =
|
|
6781
|
+
_getNow2 = performance.now.bind(performance);
|
|
6764
6782
|
}
|
|
6765
6783
|
const ffMatch = navigator.userAgent.match(/firefox\/(\d+)/i);
|
|
6766
6784
|
skipTimestampCheck2 = !!(ffMatch && Number(ffMatch[1]) <= 53);
|
|
@@ -6950,6 +6968,8 @@ function resolveTransitionProps(rawProps) {
|
|
|
6950
6968
|
done && done();
|
|
6951
6969
|
};
|
|
6952
6970
|
const finishLeave = (el, done) => {
|
|
6971
|
+
el._isLeaving = false;
|
|
6972
|
+
removeTransitionClass(el, leaveFromClass);
|
|
6953
6973
|
removeTransitionClass(el, leaveToClass);
|
|
6954
6974
|
removeTransitionClass(el, leaveActiveClass);
|
|
6955
6975
|
done && done();
|
|
@@ -6982,11 +7002,15 @@ function resolveTransitionProps(rawProps) {
|
|
|
6982
7002
|
onEnter: makeEnterHook(false),
|
|
6983
7003
|
onAppear: makeEnterHook(true),
|
|
6984
7004
|
onLeave(el, done) {
|
|
7005
|
+
el._isLeaving = true;
|
|
6985
7006
|
const resolve2 = () => finishLeave(el, done);
|
|
6986
7007
|
addTransitionClass(el, leaveFromClass);
|
|
6987
7008
|
forceReflow();
|
|
6988
7009
|
addTransitionClass(el, leaveActiveClass);
|
|
6989
7010
|
nextFrame(() => {
|
|
7011
|
+
if (!el._isLeaving) {
|
|
7012
|
+
return;
|
|
7013
|
+
}
|
|
6990
7014
|
removeTransitionClass(el, leaveFromClass);
|
|
6991
7015
|
addTransitionClass(el, leaveToClass);
|
|
6992
7016
|
if (!hasExplicitCallback(onLeave)) {
|
|
@@ -7125,7 +7149,7 @@ function forceReflow() {
|
|
|
7125
7149
|
return document.body.offsetHeight;
|
|
7126
7150
|
}
|
|
7127
7151
|
const getModelAssigner = (vnode) => {
|
|
7128
|
-
const fn = vnode.props["onUpdate:modelValue"];
|
|
7152
|
+
const fn = vnode.props["onUpdate:modelValue"] || false;
|
|
7129
7153
|
return isArray(fn) ? (value2) => invokeArrayFns(fn, value2) : fn;
|
|
7130
7154
|
};
|
|
7131
7155
|
function onCompositionStart(e) {
|
|
@@ -7135,14 +7159,9 @@ function onCompositionEnd(e) {
|
|
|
7135
7159
|
const target = e.target;
|
|
7136
7160
|
if (target.composing) {
|
|
7137
7161
|
target.composing = false;
|
|
7138
|
-
|
|
7162
|
+
target.dispatchEvent(new Event("input"));
|
|
7139
7163
|
}
|
|
7140
7164
|
}
|
|
7141
|
-
function trigger(el, type) {
|
|
7142
|
-
const e = document.createEvent("HTMLEvents");
|
|
7143
|
-
e.initEvent(type, true, true);
|
|
7144
|
-
el.dispatchEvent(e);
|
|
7145
|
-
}
|
|
7146
7165
|
const vModelText = {
|
|
7147
7166
|
created(el, { modifiers: { lazy, trim, number } }, vnode) {
|
|
7148
7167
|
el._assign = getModelAssigner(vnode);
|
|
@@ -7153,7 +7172,8 @@ const vModelText = {
|
|
|
7153
7172
|
let domValue = el.value;
|
|
7154
7173
|
if (trim) {
|
|
7155
7174
|
domValue = domValue.trim();
|
|
7156
|
-
}
|
|
7175
|
+
}
|
|
7176
|
+
if (castToNumber) {
|
|
7157
7177
|
domValue = toNumber(domValue);
|
|
7158
7178
|
}
|
|
7159
7179
|
el._assign(domValue);
|
|
@@ -7176,7 +7196,7 @@ const vModelText = {
|
|
|
7176
7196
|
el._assign = getModelAssigner(vnode);
|
|
7177
7197
|
if (el.composing)
|
|
7178
7198
|
return;
|
|
7179
|
-
if (document.activeElement === el) {
|
|
7199
|
+
if (document.activeElement === el && el.type !== "range") {
|
|
7180
7200
|
if (lazy) {
|
|
7181
7201
|
return;
|
|
7182
7202
|
}
|
|
@@ -7323,27 +7343,25 @@ const vModelDynamic = {
|
|
|
7323
7343
|
callModelHook(el, binding, vnode, prevVNode, "updated");
|
|
7324
7344
|
}
|
|
7325
7345
|
};
|
|
7326
|
-
function
|
|
7327
|
-
|
|
7328
|
-
switch (el.tagName) {
|
|
7346
|
+
function resolveDynamicModel(tagName, type) {
|
|
7347
|
+
switch (tagName) {
|
|
7329
7348
|
case "SELECT":
|
|
7330
|
-
|
|
7331
|
-
break;
|
|
7349
|
+
return vModelSelect;
|
|
7332
7350
|
case "TEXTAREA":
|
|
7333
|
-
|
|
7334
|
-
break;
|
|
7351
|
+
return vModelText;
|
|
7335
7352
|
default:
|
|
7336
|
-
switch (
|
|
7353
|
+
switch (type) {
|
|
7337
7354
|
case "checkbox":
|
|
7338
|
-
|
|
7339
|
-
break;
|
|
7355
|
+
return vModelCheckbox;
|
|
7340
7356
|
case "radio":
|
|
7341
|
-
|
|
7342
|
-
break;
|
|
7357
|
+
return vModelRadio;
|
|
7343
7358
|
default:
|
|
7344
|
-
|
|
7359
|
+
return vModelText;
|
|
7345
7360
|
}
|
|
7346
7361
|
}
|
|
7362
|
+
}
|
|
7363
|
+
function callModelHook(el, binding, vnode, prevVNode, hook) {
|
|
7364
|
+
const modelToUse = resolveDynamicModel(el.tagName, vnode.props && vnode.props.type);
|
|
7347
7365
|
const fn = modelToUse[hook];
|
|
7348
7366
|
fn && fn(el, binding, vnode, prevVNode);
|
|
7349
7367
|
}
|
|
@@ -7618,6 +7636,9 @@ function getAuthUrl(redirectUrl) {
|
|
|
7618
7636
|
case "canary":
|
|
7619
7637
|
authUrl = "https://www-prod-canary.paypay.ne.jp";
|
|
7620
7638
|
break;
|
|
7639
|
+
case "qa":
|
|
7640
|
+
authUrl = "https://www.qa.stg.paypay.ne.jp";
|
|
7641
|
+
break;
|
|
7621
7642
|
case "production":
|
|
7622
7643
|
default:
|
|
7623
7644
|
authUrl = "https://www.paypay.ne.jp";
|
|
@@ -7663,7 +7684,7 @@ const cssModules$1e = {};
|
|
|
7663
7684
|
cssModules$1e["$style"] = style0$1e;
|
|
7664
7685
|
var LoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1n], ["__cssModules", cssModules$1e]]);
|
|
7665
7686
|
const buttonWrapper = "_buttonWrapper_ozqo6_2";
|
|
7666
|
-
const container$
|
|
7687
|
+
const container$x = "_container_ozqo6_2";
|
|
7667
7688
|
const primary = "_primary_ozqo6_24";
|
|
7668
7689
|
const focus = "_focus_ozqo6_35";
|
|
7669
7690
|
const disabled$3 = "_disabled_ozqo6_41";
|
|
@@ -7680,7 +7701,7 @@ const block = "_block_ozqo6_210";
|
|
|
7680
7701
|
var styles$8 = {
|
|
7681
7702
|
"ppmna-default-font": "_ppmna-default-font_ozqo6_1",
|
|
7682
7703
|
buttonWrapper,
|
|
7683
|
-
container: container$
|
|
7704
|
+
container: container$x,
|
|
7684
7705
|
primary,
|
|
7685
7706
|
focus,
|
|
7686
7707
|
disabled: disabled$3,
|
|
@@ -8250,7 +8271,7 @@ const errorContainer = "_errorContainer_2xnz7_2";
|
|
|
8250
8271
|
const errorIcon = "_errorIcon_2xnz7_15";
|
|
8251
8272
|
const unit$4 = "_unit_2xnz7_22";
|
|
8252
8273
|
const errorTitle = "_errorTitle_2xnz7_25";
|
|
8253
|
-
const subTitle = "_subTitle_2xnz7_33";
|
|
8274
|
+
const subTitle$2 = "_subTitle_2xnz7_33";
|
|
8254
8275
|
const btnContainer$2 = "_btnContainer_2xnz7_41";
|
|
8255
8276
|
const closeBtn$3 = "_closeBtn_2xnz7_45";
|
|
8256
8277
|
var style0$1d = {
|
|
@@ -8259,7 +8280,7 @@ var style0$1d = {
|
|
|
8259
8280
|
errorIcon,
|
|
8260
8281
|
unit: unit$4,
|
|
8261
8282
|
errorTitle,
|
|
8262
|
-
subTitle,
|
|
8283
|
+
subTitle: subTitle$2,
|
|
8263
8284
|
btnContainer: btnContainer$2,
|
|
8264
8285
|
closeBtn: closeBtn$3
|
|
8265
8286
|
};
|
|
@@ -8700,7 +8721,7 @@ function handleResponse(response) {
|
|
|
8700
8721
|
}
|
|
8701
8722
|
}
|
|
8702
8723
|
async function requestInternal(requestInternalParams) {
|
|
8703
|
-
var _a, _b, _c, _d
|
|
8724
|
+
var _a, _b, _c, _d;
|
|
8704
8725
|
const params = reconstructParams(requestInternalParams);
|
|
8705
8726
|
try {
|
|
8706
8727
|
const appDetail = getAppDetail();
|
|
@@ -8716,21 +8737,21 @@ async function requestInternal(requestInternalParams) {
|
|
|
8716
8737
|
endpoint: params == null ? void 0 : params.path,
|
|
8717
8738
|
requestBody: params == null ? void 0 : params.data
|
|
8718
8739
|
},
|
|
8719
|
-
headers: params == null ? void 0 : params.header
|
|
8740
|
+
headers: params == null ? void 0 : params.header,
|
|
8741
|
+
skipResultCodeCheck: true,
|
|
8742
|
+
skipStatusCodeCheck: true
|
|
8720
8743
|
});
|
|
8721
|
-
if (response.ppFetchResult !== "success") {
|
|
8744
|
+
if ((response == null ? void 0 : response.ppFetchResult) !== "success") {
|
|
8722
8745
|
return (_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, {
|
|
8723
8746
|
errorCode: getFailErrorCode(response.ppFetchResult)
|
|
8724
8747
|
});
|
|
8725
8748
|
}
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
return (_e = params == null ? void 0 : params.success) == null ? void 0 : _e.call(params, {
|
|
8729
|
-
statusCode,
|
|
8749
|
+
return (_c = params == null ? void 0 : params.success) == null ? void 0 : _c.call(params, {
|
|
8750
|
+
statusCode: response == null ? void 0 : response.statusCode,
|
|
8730
8751
|
data: JSON.stringify(response == null ? void 0 : response.body)
|
|
8731
8752
|
});
|
|
8732
8753
|
} catch (error2) {
|
|
8733
|
-
return (
|
|
8754
|
+
return (_d = params == null ? void 0 : params.fail) == null ? void 0 : _d.call(params, { errorCode: MiniAppErrorType.statusCodeError });
|
|
8734
8755
|
}
|
|
8735
8756
|
}
|
|
8736
8757
|
var PermissionStatus;
|
|
@@ -8938,7 +8959,8 @@ const Header = defineComponent({
|
|
|
8938
8959
|
}, [createVNode("i", {
|
|
8939
8960
|
"class": `${styles$4.icon} ${styles$4[props.icon]}`
|
|
8940
8961
|
}, null)]), createVNode("div", {
|
|
8941
|
-
"class": `${styles$4.text} ${props.titleClassName} ${props.rightIcon ? styles$4.iconRightText : ""}
|
|
8962
|
+
"class": `${styles$4.text} ${props.titleClassName} ${props.rightIcon ? styles$4.iconRightText : ""}`,
|
|
8963
|
+
"data-testid": "header-text"
|
|
8942
8964
|
}, [props.title]), props.rightIcon && createVNode("div", null, [createVNode("i", {
|
|
8943
8965
|
"class": `${styles$4.iconRight} ${styles$4[props.rightIcon]}`,
|
|
8944
8966
|
"data-testid": "header-right-button",
|
|
@@ -8948,7 +8970,7 @@ const Header = defineComponent({
|
|
|
8948
8970
|
});
|
|
8949
8971
|
const headerWrapper = "_headerWrapper_1yfy5_1";
|
|
8950
8972
|
const header$b = "_header_1yfy5_1";
|
|
8951
|
-
const container$
|
|
8973
|
+
const container$w = "_container_1yfy5_11";
|
|
8952
8974
|
const paypayIcon = "_paypayIcon_1yfy5_19";
|
|
8953
8975
|
const rightAlign$6 = "_rightAlign_1yfy5_30";
|
|
8954
8976
|
const storeName = "_storeName_1yfy5_38";
|
|
@@ -8957,7 +8979,7 @@ const title$g = "_title_1yfy5_56";
|
|
|
8957
8979
|
var styles$3 = {
|
|
8958
8980
|
headerWrapper,
|
|
8959
8981
|
header: header$b,
|
|
8960
|
-
container: container$
|
|
8982
|
+
container: container$w,
|
|
8961
8983
|
paypayIcon,
|
|
8962
8984
|
rightAlign: rightAlign$6,
|
|
8963
8985
|
storeName,
|
|
@@ -9190,21 +9212,24 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9190
9212
|
const cssModules$1b = {};
|
|
9191
9213
|
cssModules$1b["$style"] = style0$1b;
|
|
9192
9214
|
var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1k], ["__cssModules", cssModules$1b]]);
|
|
9193
|
-
const wrapperClass$n = "
|
|
9194
|
-
const ppmnaPaymentTypeContainer$4 = "
|
|
9195
|
-
const img$e = "
|
|
9196
|
-
const imgContainer$5 = "
|
|
9197
|
-
const roundStylePaymentType$4 = "
|
|
9198
|
-
const main$4 = "
|
|
9199
|
-
const sub$4 = "
|
|
9200
|
-
const
|
|
9201
|
-
const
|
|
9202
|
-
const
|
|
9203
|
-
const
|
|
9204
|
-
const
|
|
9205
|
-
const
|
|
9206
|
-
const
|
|
9207
|
-
const
|
|
9215
|
+
const wrapperClass$n = "_wrapperClass_1xs7l_1";
|
|
9216
|
+
const ppmnaPaymentTypeContainer$4 = "_ppmnaPaymentTypeContainer_1xs7l_1";
|
|
9217
|
+
const img$e = "_img_1xs7l_5";
|
|
9218
|
+
const imgContainer$5 = "_imgContainer_1xs7l_18";
|
|
9219
|
+
const roundStylePaymentType$4 = "_roundStylePaymentType_1xs7l_26";
|
|
9220
|
+
const main$4 = "_main_1xs7l_32";
|
|
9221
|
+
const sub$4 = "_sub_1xs7l_48";
|
|
9222
|
+
const makePayWithAddress$4 = "_makePayWithAddress_1xs7l_58";
|
|
9223
|
+
const makePaymentTypeContainer$4 = "_makePaymentTypeContainer_1xs7l_63";
|
|
9224
|
+
const arrowContainer$6 = "_arrowContainer_1xs7l_68";
|
|
9225
|
+
const arrowRight$4 = "_arrowRight_1xs7l_71";
|
|
9226
|
+
const makePaymentArrowContainer$4 = "_makePaymentArrowContainer_1xs7l_81";
|
|
9227
|
+
const walletContainer = "_walletContainer_1xs7l_86";
|
|
9228
|
+
const subTitle$1 = "_subTitle_1xs7l_91";
|
|
9229
|
+
const chargeContainer = "_chargeContainer_1xs7l_96";
|
|
9230
|
+
const greenTick = "_greenTick_1xs7l_106";
|
|
9231
|
+
const autoCharge = "_autoCharge_1xs7l_119";
|
|
9232
|
+
const makePaymentRightAlign = "_makePaymentRightAlign_1xs7l_126";
|
|
9208
9233
|
var style0$1a = {
|
|
9209
9234
|
wrapperClass: wrapperClass$n,
|
|
9210
9235
|
ppmnaPaymentTypeContainer: ppmnaPaymentTypeContainer$4,
|
|
@@ -9213,10 +9238,13 @@ var style0$1a = {
|
|
|
9213
9238
|
roundStylePaymentType: roundStylePaymentType$4,
|
|
9214
9239
|
main: main$4,
|
|
9215
9240
|
sub: sub$4,
|
|
9241
|
+
makePayWithAddress: makePayWithAddress$4,
|
|
9216
9242
|
makePaymentTypeContainer: makePaymentTypeContainer$4,
|
|
9217
9243
|
arrowContainer: arrowContainer$6,
|
|
9218
9244
|
arrowRight: arrowRight$4,
|
|
9219
9245
|
makePaymentArrowContainer: makePaymentArrowContainer$4,
|
|
9246
|
+
walletContainer,
|
|
9247
|
+
subTitle: subTitle$1,
|
|
9220
9248
|
chargeContainer,
|
|
9221
9249
|
greenTick,
|
|
9222
9250
|
autoCharge,
|
|
@@ -9235,6 +9263,11 @@ const _sfc_main$1j = defineComponent({
|
|
|
9235
9263
|
type: Boolean,
|
|
9236
9264
|
required: false,
|
|
9237
9265
|
default: false
|
|
9266
|
+
},
|
|
9267
|
+
isMakepaymentWithAddress: {
|
|
9268
|
+
type: Boolean,
|
|
9269
|
+
required: false,
|
|
9270
|
+
default: false
|
|
9238
9271
|
}
|
|
9239
9272
|
},
|
|
9240
9273
|
setup(props) {
|
|
@@ -9266,7 +9299,8 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9266
9299
|
_ctx.$style.ppmnaPaymentTypeContainer,
|
|
9267
9300
|
{
|
|
9268
9301
|
[_ctx.$style.makePaymentRightAlign]: _ctx.isMakePayment,
|
|
9269
|
-
[_ctx.$style.makePaymentTypeContainer]: _ctx.isMakePayment
|
|
9302
|
+
[_ctx.$style.makePaymentTypeContainer]: _ctx.isMakePayment,
|
|
9303
|
+
[_ctx.$style.makePayWithAddress]: _ctx.isMakepaymentWithAddress
|
|
9270
9304
|
}
|
|
9271
9305
|
]),
|
|
9272
9306
|
"data-testid": "wallet-method"
|
|
@@ -9277,13 +9311,15 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9277
9311
|
class: normalizeClass(_ctx.$style.img)
|
|
9278
9312
|
}, null, 10, _hoisted_1$M)
|
|
9279
9313
|
]),
|
|
9280
|
-
createBaseVNode("div",
|
|
9314
|
+
createBaseVNode("div", {
|
|
9315
|
+
class: normalizeClass(_ctx.$style.walletContainer)
|
|
9316
|
+
}, [
|
|
9281
9317
|
createBaseVNode("div", {
|
|
9282
9318
|
class: normalizeClass(_ctx.$style.main),
|
|
9283
9319
|
"data-testid": "wallet-type-title"
|
|
9284
9320
|
}, toDisplayString(_ctx.lg.wallet.title), 3),
|
|
9285
9321
|
createBaseVNode("div", {
|
|
9286
|
-
class: normalizeClass(_ctx.$style.
|
|
9322
|
+
class: normalizeClass(_ctx.$style.subTitle)
|
|
9287
9323
|
}, toDisplayString(_ctx.lg.wallet.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 3),
|
|
9288
9324
|
_ctx.isPreTransactionAutoChargeEnabled ? (openBlock(), createElementBlock("div", {
|
|
9289
9325
|
key: 0,
|
|
@@ -9302,7 +9338,7 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9302
9338
|
key: 1,
|
|
9303
9339
|
wallet: _ctx.wallet
|
|
9304
9340
|
}, null, 8, ["wallet"])) : createCommentVNode("", true)
|
|
9305
|
-
]),
|
|
9341
|
+
], 2),
|
|
9306
9342
|
createBaseVNode("div", {
|
|
9307
9343
|
class: normalizeClass([
|
|
9308
9344
|
_ctx.$style.arrowContainer,
|
|
@@ -9320,28 +9356,29 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9320
9356
|
const cssModules$1a = {};
|
|
9321
9357
|
cssModules$1a["$style"] = style0$1a;
|
|
9322
9358
|
var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["render", _sfc_render$1j], ["__cssModules", cssModules$1a]]);
|
|
9323
|
-
const wrapperClass$m = "
|
|
9324
|
-
const ppmnaPaymentTypeContainer$3 = "
|
|
9325
|
-
const img$d = "
|
|
9326
|
-
const imgContainer$4 = "
|
|
9327
|
-
const roundStylePaymentType$3 = "
|
|
9328
|
-
const main$3 = "
|
|
9329
|
-
const sub$3 = "
|
|
9330
|
-
const
|
|
9331
|
-
const
|
|
9332
|
-
const
|
|
9333
|
-
const
|
|
9334
|
-
const
|
|
9335
|
-
const
|
|
9336
|
-
const
|
|
9337
|
-
const
|
|
9338
|
-
const
|
|
9339
|
-
const
|
|
9340
|
-
const
|
|
9341
|
-
const
|
|
9342
|
-
const
|
|
9343
|
-
const
|
|
9344
|
-
const
|
|
9359
|
+
const wrapperClass$m = "_wrapperClass_15nx0_1";
|
|
9360
|
+
const ppmnaPaymentTypeContainer$3 = "_ppmnaPaymentTypeContainer_15nx0_1";
|
|
9361
|
+
const img$d = "_img_15nx0_5";
|
|
9362
|
+
const imgContainer$4 = "_imgContainer_15nx0_18";
|
|
9363
|
+
const roundStylePaymentType$3 = "_roundStylePaymentType_15nx0_26";
|
|
9364
|
+
const main$3 = "_main_15nx0_32";
|
|
9365
|
+
const sub$3 = "_sub_15nx0_48";
|
|
9366
|
+
const makePayWithAddress$3 = "_makePayWithAddress_15nx0_58";
|
|
9367
|
+
const makePaymentTypeContainer$3 = "_makePaymentTypeContainer_15nx0_63";
|
|
9368
|
+
const arrowContainer$5 = "_arrowContainer_15nx0_68";
|
|
9369
|
+
const arrowRight$3 = "_arrowRight_15nx0_71";
|
|
9370
|
+
const makePaymentArrowContainer$3 = "_makePaymentArrowContainer_15nx0_81";
|
|
9371
|
+
const mainLabel$5 = "_mainLabel_15nx0_85";
|
|
9372
|
+
const auth = "_auth_15nx0_90";
|
|
9373
|
+
const authText = "_authText_15nx0_100";
|
|
9374
|
+
const cardImageContainer = "_cardImageContainer_15nx0_104";
|
|
9375
|
+
const cardImg = "_cardImg_15nx0_107";
|
|
9376
|
+
const content$g = "_content_15nx0_111";
|
|
9377
|
+
const authenticated = "_authenticated_15nx0_121";
|
|
9378
|
+
const notAuthenticated = "_notAuthenticated_15nx0_124";
|
|
9379
|
+
const authorizedImg$1 = "_authorizedImg_15nx0_127";
|
|
9380
|
+
const unAuthorizedImg$1 = "_unAuthorizedImg_15nx0_136";
|
|
9381
|
+
const creditCard$1 = "_creditCard_15nx0_144";
|
|
9345
9382
|
var style0$19 = {
|
|
9346
9383
|
wrapperClass: wrapperClass$m,
|
|
9347
9384
|
ppmnaPaymentTypeContainer: ppmnaPaymentTypeContainer$3,
|
|
@@ -9350,6 +9387,7 @@ var style0$19 = {
|
|
|
9350
9387
|
roundStylePaymentType: roundStylePaymentType$3,
|
|
9351
9388
|
main: main$3,
|
|
9352
9389
|
sub: sub$3,
|
|
9390
|
+
makePayWithAddress: makePayWithAddress$3,
|
|
9353
9391
|
makePaymentTypeContainer: makePaymentTypeContainer$3,
|
|
9354
9392
|
arrowContainer: arrowContainer$5,
|
|
9355
9393
|
arrowRight: arrowRight$3,
|
|
@@ -9384,6 +9422,11 @@ const _sfc_main$1i = defineComponent({
|
|
|
9384
9422
|
type: Boolean,
|
|
9385
9423
|
required: false,
|
|
9386
9424
|
default: false
|
|
9425
|
+
},
|
|
9426
|
+
isMakepaymentWithAddress: {
|
|
9427
|
+
type: Boolean,
|
|
9428
|
+
required: false,
|
|
9429
|
+
default: false
|
|
9387
9430
|
}
|
|
9388
9431
|
},
|
|
9389
9432
|
setup(props) {
|
|
@@ -9452,7 +9495,8 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9452
9495
|
_ctx.style.wrapperClass,
|
|
9453
9496
|
_ctx.style.ppmnaPaymentTypeContainer,
|
|
9454
9497
|
{
|
|
9455
|
-
[_ctx.style.makePaymentTypeContainer]: _ctx.isMakePayment
|
|
9498
|
+
[_ctx.style.makePaymentTypeContainer]: _ctx.isMakePayment,
|
|
9499
|
+
[_ctx.style.makePayWithAddress]: _ctx.isMakepaymentWithAddress
|
|
9456
9500
|
}
|
|
9457
9501
|
]),
|
|
9458
9502
|
"data-testid": "credit-card-method"
|
|
@@ -9506,23 +9550,24 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9506
9550
|
const cssModules$19 = {};
|
|
9507
9551
|
cssModules$19["$style"] = style0$19;
|
|
9508
9552
|
var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1i], ["__cssModules", cssModules$19]]);
|
|
9509
|
-
const wrapperClass$l = "
|
|
9510
|
-
const ppmnaPaymentTypeContainer$2 = "
|
|
9511
|
-
const img$b = "
|
|
9512
|
-
const imgContainer$3 = "
|
|
9513
|
-
const roundStylePaymentType$2 = "
|
|
9514
|
-
const main$2 = "
|
|
9515
|
-
const sub$2 = "
|
|
9516
|
-
const
|
|
9517
|
-
const
|
|
9518
|
-
const
|
|
9519
|
-
const
|
|
9520
|
-
const
|
|
9521
|
-
const
|
|
9522
|
-
const
|
|
9523
|
-
const
|
|
9524
|
-
const
|
|
9525
|
-
const
|
|
9553
|
+
const wrapperClass$l = "_wrapperClass_990vk_1";
|
|
9554
|
+
const ppmnaPaymentTypeContainer$2 = "_ppmnaPaymentTypeContainer_990vk_1";
|
|
9555
|
+
const img$b = "_img_990vk_5";
|
|
9556
|
+
const imgContainer$3 = "_imgContainer_990vk_18";
|
|
9557
|
+
const roundStylePaymentType$2 = "_roundStylePaymentType_990vk_26";
|
|
9558
|
+
const main$2 = "_main_990vk_32";
|
|
9559
|
+
const sub$2 = "_sub_990vk_48";
|
|
9560
|
+
const makePayWithAddress$2 = "_makePayWithAddress_990vk_58";
|
|
9561
|
+
const makePaymentTypeContainer$2 = "_makePaymentTypeContainer_990vk_63";
|
|
9562
|
+
const arrowContainer$4 = "_arrowContainer_990vk_68";
|
|
9563
|
+
const arrowRight$2 = "_arrowRight_990vk_71";
|
|
9564
|
+
const makePaymentArrowContainer$2 = "_makePaymentArrowContainer_990vk_81";
|
|
9565
|
+
const bankImg = "_bankImg_990vk_85";
|
|
9566
|
+
const branchCode = "_branchCode_990vk_89";
|
|
9567
|
+
const content$f = "_content_990vk_92";
|
|
9568
|
+
const roundContainer = "_roundContainer_990vk_96";
|
|
9569
|
+
const round$2 = "_round_990vk_26";
|
|
9570
|
+
const bankName = "_bankName_990vk_102";
|
|
9526
9571
|
var style0$18 = {
|
|
9527
9572
|
wrapperClass: wrapperClass$l,
|
|
9528
9573
|
ppmnaPaymentTypeContainer: ppmnaPaymentTypeContainer$2,
|
|
@@ -9531,6 +9576,7 @@ var style0$18 = {
|
|
|
9531
9576
|
roundStylePaymentType: roundStylePaymentType$2,
|
|
9532
9577
|
main: main$2,
|
|
9533
9578
|
sub: sub$2,
|
|
9579
|
+
makePayWithAddress: makePayWithAddress$2,
|
|
9534
9580
|
makePaymentTypeContainer: makePaymentTypeContainer$2,
|
|
9535
9581
|
arrowContainer: arrowContainer$4,
|
|
9536
9582
|
arrowRight: arrowRight$2,
|
|
@@ -9653,23 +9699,23 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9653
9699
|
const cssModules$18 = {};
|
|
9654
9700
|
cssModules$18["$style"] = style0$18;
|
|
9655
9701
|
var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1h], ["__cssModules", cssModules$18]]);
|
|
9656
|
-
const wrapperClass$k = "
|
|
9657
|
-
const ppmnaPaymentTypeContainer$1 = "
|
|
9658
|
-
const img$a = "
|
|
9659
|
-
const imgContainer$2 = "
|
|
9660
|
-
const roundStylePaymentType$1 = "
|
|
9661
|
-
const main$1 = "
|
|
9662
|
-
const sub$1 = "
|
|
9663
|
-
const
|
|
9664
|
-
const
|
|
9665
|
-
const
|
|
9666
|
-
const
|
|
9667
|
-
const
|
|
9668
|
-
const
|
|
9669
|
-
const sbidImg = "
|
|
9670
|
-
const content$e = "
|
|
9671
|
-
const desc1 = "
|
|
9672
|
-
const desc2 = "
|
|
9702
|
+
const wrapperClass$k = "_wrapperClass_ehgh6_1";
|
|
9703
|
+
const ppmnaPaymentTypeContainer$1 = "_ppmnaPaymentTypeContainer_ehgh6_1";
|
|
9704
|
+
const img$a = "_img_ehgh6_5";
|
|
9705
|
+
const imgContainer$2 = "_imgContainer_ehgh6_18";
|
|
9706
|
+
const roundStylePaymentType$1 = "_roundStylePaymentType_ehgh6_26";
|
|
9707
|
+
const main$1 = "_main_ehgh6_32";
|
|
9708
|
+
const sub$1 = "_sub_ehgh6_48";
|
|
9709
|
+
const makePayWithAddress$1 = "_makePayWithAddress_ehgh6_58";
|
|
9710
|
+
const makePaymentTypeContainer$1 = "_makePaymentTypeContainer_ehgh6_63";
|
|
9711
|
+
const arrowContainer$3 = "_arrowContainer_ehgh6_68";
|
|
9712
|
+
const arrowRight$1 = "_arrowRight_ehgh6_71";
|
|
9713
|
+
const makePaymentArrowContainer$1 = "_makePaymentArrowContainer_ehgh6_81";
|
|
9714
|
+
const container$v = "_container_ehgh6_85";
|
|
9715
|
+
const sbidImg = "_sbidImg_ehgh6_97";
|
|
9716
|
+
const content$e = "_content_ehgh6_105";
|
|
9717
|
+
const desc1 = "_desc1_ehgh6_118";
|
|
9718
|
+
const desc2 = "_desc2_ehgh6_122";
|
|
9673
9719
|
var style0$17 = {
|
|
9674
9720
|
wrapperClass: wrapperClass$k,
|
|
9675
9721
|
ppmnaPaymentTypeContainer: ppmnaPaymentTypeContainer$1,
|
|
@@ -9678,12 +9724,12 @@ var style0$17 = {
|
|
|
9678
9724
|
roundStylePaymentType: roundStylePaymentType$1,
|
|
9679
9725
|
main: main$1,
|
|
9680
9726
|
sub: sub$1,
|
|
9727
|
+
makePayWithAddress: makePayWithAddress$1,
|
|
9681
9728
|
makePaymentTypeContainer: makePaymentTypeContainer$1,
|
|
9682
9729
|
arrowContainer: arrowContainer$3,
|
|
9683
9730
|
arrowRight: arrowRight$1,
|
|
9684
9731
|
makePaymentArrowContainer: makePaymentArrowContainer$1,
|
|
9685
|
-
container: container$
|
|
9686
|
-
imageContainer: imageContainer$6,
|
|
9732
|
+
container: container$v,
|
|
9687
9733
|
sbidImg,
|
|
9688
9734
|
content: content$e,
|
|
9689
9735
|
desc1,
|
|
@@ -9721,14 +9767,12 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9721
9767
|
return openBlock(), createElementBlock("div", {
|
|
9722
9768
|
class: normalizeClass([_ctx.$style.wrapperClass, _ctx.$style.container])
|
|
9723
9769
|
}, [
|
|
9724
|
-
createBaseVNode("div",
|
|
9725
|
-
class: normalizeClass(_ctx.$style.imageContainer)
|
|
9726
|
-
}, [
|
|
9770
|
+
createBaseVNode("div", null, [
|
|
9727
9771
|
createBaseVNode("img", {
|
|
9728
9772
|
class: normalizeClass(_ctx.$style.sbidImg),
|
|
9729
9773
|
src: _ctx.images.softbank
|
|
9730
9774
|
}, null, 10, _hoisted_1$J)
|
|
9731
|
-
]
|
|
9775
|
+
]),
|
|
9732
9776
|
createBaseVNode("span", {
|
|
9733
9777
|
class: normalizeClass(_ctx.$style.content)
|
|
9734
9778
|
}, [
|
|
@@ -9756,18 +9800,21 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9756
9800
|
const cssModules$17 = {};
|
|
9757
9801
|
cssModules$17["$style"] = style0$17;
|
|
9758
9802
|
var SbidType = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$1g], ["__cssModules", cssModules$17]]);
|
|
9759
|
-
const wrapperClass$j = "
|
|
9760
|
-
const ppmnaPaymentTypeContainer = "
|
|
9761
|
-
const img$9 = "
|
|
9762
|
-
const imgContainer$1 = "
|
|
9763
|
-
const roundStylePaymentType = "
|
|
9764
|
-
const main = "
|
|
9765
|
-
const sub = "
|
|
9766
|
-
const
|
|
9767
|
-
const
|
|
9768
|
-
const
|
|
9769
|
-
const
|
|
9770
|
-
const
|
|
9803
|
+
const wrapperClass$j = "_wrapperClass_1wbwi_1";
|
|
9804
|
+
const ppmnaPaymentTypeContainer = "_ppmnaPaymentTypeContainer_1wbwi_1";
|
|
9805
|
+
const img$9 = "_img_1wbwi_5";
|
|
9806
|
+
const imgContainer$1 = "_imgContainer_1wbwi_18";
|
|
9807
|
+
const roundStylePaymentType = "_roundStylePaymentType_1wbwi_26";
|
|
9808
|
+
const main = "_main_1wbwi_32";
|
|
9809
|
+
const sub = "_sub_1wbwi_48";
|
|
9810
|
+
const makePayWithAddress = "_makePayWithAddress_1wbwi_58";
|
|
9811
|
+
const makePaymentTypeContainer = "_makePaymentTypeContainer_1wbwi_63";
|
|
9812
|
+
const arrowContainer$2 = "_arrowContainer_1wbwi_68";
|
|
9813
|
+
const arrowRight = "_arrowRight_1wbwi_71";
|
|
9814
|
+
const makePaymentArrowContainer = "_makePaymentArrowContainer_1wbwi_81";
|
|
9815
|
+
const container$u = "_container_1wbwi_86";
|
|
9816
|
+
const subTitle = "_subTitle_1wbwi_91";
|
|
9817
|
+
const imageContainer$5 = "_imageContainer_1wbwi_96";
|
|
9771
9818
|
var style0$16 = {
|
|
9772
9819
|
wrapperClass: wrapperClass$j,
|
|
9773
9820
|
ppmnaPaymentTypeContainer,
|
|
@@ -9776,10 +9823,13 @@ var style0$16 = {
|
|
|
9776
9823
|
roundStylePaymentType,
|
|
9777
9824
|
main,
|
|
9778
9825
|
sub,
|
|
9826
|
+
makePayWithAddress,
|
|
9779
9827
|
makePaymentTypeContainer,
|
|
9780
9828
|
arrowContainer: arrowContainer$2,
|
|
9781
9829
|
arrowRight,
|
|
9782
9830
|
makePaymentArrowContainer,
|
|
9831
|
+
container: container$u,
|
|
9832
|
+
subTitle,
|
|
9783
9833
|
imageContainer: imageContainer$5
|
|
9784
9834
|
};
|
|
9785
9835
|
const _sfc_main$1f = defineComponent({
|
|
@@ -9792,6 +9842,11 @@ const _sfc_main$1f = defineComponent({
|
|
|
9792
9842
|
type: Boolean,
|
|
9793
9843
|
required: false,
|
|
9794
9844
|
default: false
|
|
9845
|
+
},
|
|
9846
|
+
isMakepaymentWithAddress: {
|
|
9847
|
+
type: Boolean,
|
|
9848
|
+
required: false,
|
|
9849
|
+
default: false
|
|
9795
9850
|
}
|
|
9796
9851
|
},
|
|
9797
9852
|
setup(props) {
|
|
@@ -9812,7 +9867,8 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9812
9867
|
_ctx.$style.wrapperClass,
|
|
9813
9868
|
_ctx.$style.ppmnaPaymentTypeContainer,
|
|
9814
9869
|
{
|
|
9815
|
-
[_ctx.$style.makePaymentTypeContainer]: _ctx.isMakePayment
|
|
9870
|
+
[_ctx.$style.makePaymentTypeContainer]: _ctx.isMakePayment,
|
|
9871
|
+
[_ctx.$style.makePayWithAddress]: _ctx.isMakepaymentWithAddress
|
|
9816
9872
|
}
|
|
9817
9873
|
])
|
|
9818
9874
|
}, [
|
|
@@ -9822,14 +9878,16 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9822
9878
|
class: normalizeClass(_ctx.$style.imageContainer)
|
|
9823
9879
|
}, null, 10, _hoisted_1$I)
|
|
9824
9880
|
]),
|
|
9825
|
-
createBaseVNode("div",
|
|
9881
|
+
createBaseVNode("div", {
|
|
9882
|
+
class: normalizeClass(_ctx.$style.container)
|
|
9883
|
+
}, [
|
|
9826
9884
|
createBaseVNode("div", {
|
|
9827
9885
|
class: normalizeClass(_ctx.$style.main)
|
|
9828
9886
|
}, toDisplayString(_ctx.lg.payLater.title), 3),
|
|
9829
9887
|
createBaseVNode("div", {
|
|
9830
|
-
class: normalizeClass(_ctx.$style.
|
|
9888
|
+
class: normalizeClass(_ctx.$style.subTitle)
|
|
9831
9889
|
}, toDisplayString(_ctx.lg.payLater.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 3)
|
|
9832
|
-
]),
|
|
9890
|
+
], 2),
|
|
9833
9891
|
createBaseVNode("div", {
|
|
9834
9892
|
class: normalizeClass([
|
|
9835
9893
|
_ctx.$style.arrowContainer,
|
|
@@ -9860,41 +9918,51 @@ const PaymentType = defineComponent({
|
|
|
9860
9918
|
type: Boolean,
|
|
9861
9919
|
required: false,
|
|
9862
9920
|
default: false
|
|
9921
|
+
},
|
|
9922
|
+
isMakepaymentWithAddress: {
|
|
9923
|
+
type: Boolean,
|
|
9924
|
+
required: false,
|
|
9925
|
+
default: false
|
|
9863
9926
|
}
|
|
9864
9927
|
},
|
|
9865
9928
|
render() {
|
|
9866
|
-
var _a;
|
|
9867
9929
|
const paymentMethod2 = this.paymentMethod;
|
|
9868
|
-
if (
|
|
9869
|
-
return
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
|
|
9886
|
-
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
|
|
9930
|
+
if (!paymentMethod2) {
|
|
9931
|
+
return null;
|
|
9932
|
+
}
|
|
9933
|
+
switch (paymentMethod2.paymentMethodType) {
|
|
9934
|
+
case PaymentMethodType.WALLET:
|
|
9935
|
+
return createVNode(WalletType, {
|
|
9936
|
+
"wallet": paymentMethod2,
|
|
9937
|
+
"isMakePayment": this.isMakePayment,
|
|
9938
|
+
"isMakepaymentWithAddress": this.isMakepaymentWithAddress
|
|
9939
|
+
}, null);
|
|
9940
|
+
case PaymentMethodType.CREDIT_CARD:
|
|
9941
|
+
return createVNode(CreditCardType, {
|
|
9942
|
+
"credit": paymentMethod2,
|
|
9943
|
+
"isMakePayment": this.isMakePayment,
|
|
9944
|
+
"isMakepaymentWithAddress": this.isMakepaymentWithAddress
|
|
9945
|
+
}, null);
|
|
9946
|
+
case PaymentMethodType.BANK:
|
|
9947
|
+
case PaymentMethodType.YMONEY_BANK:
|
|
9948
|
+
return createVNode(BankType, {
|
|
9949
|
+
"bank": paymentMethod2,
|
|
9950
|
+
"round": true,
|
|
9951
|
+
"isMakePayment": this.isMakePayment
|
|
9952
|
+
}, null);
|
|
9953
|
+
case PaymentMethodType.SBID_CARRIER_BILLING:
|
|
9954
|
+
return createVNode(SbidType, {
|
|
9955
|
+
"sbid": paymentMethod2,
|
|
9956
|
+
"isMakePayment": this.isMakePayment
|
|
9957
|
+
}, null);
|
|
9958
|
+
case PaymentMethodType.PAY_LATER_CC:
|
|
9959
|
+
return createVNode(PayLaterType, {
|
|
9960
|
+
"payLater": paymentMethod2,
|
|
9961
|
+
"isMakePayment": this.isMakePayment,
|
|
9962
|
+
"isMakepaymentWithAddress": this.isMakepaymentWithAddress
|
|
9963
|
+
}, null);
|
|
9964
|
+
case PaymentMethodType.PAY_LATER:
|
|
9965
|
+
return null;
|
|
9898
9966
|
}
|
|
9899
9967
|
return null;
|
|
9900
9968
|
}
|
|
@@ -22645,15 +22713,15 @@ const Lottie = defineComponent({
|
|
|
22645
22713
|
}, null);
|
|
22646
22714
|
}
|
|
22647
22715
|
});
|
|
22648
|
-
const wrapperClass$i = "
|
|
22649
|
-
const container$t = "
|
|
22650
|
-
const header$a = "
|
|
22651
|
-
const arrow$2 = "
|
|
22652
|
-
const address$1 = "
|
|
22653
|
-
const arrowContainer$1 = "
|
|
22654
|
-
const text$6 = "
|
|
22716
|
+
const wrapperClass$i = "_wrapperClass_1bgvu_7";
|
|
22717
|
+
const container$t = "_container_1bgvu_7";
|
|
22718
|
+
const header$a = "_header_1bgvu_21";
|
|
22719
|
+
const arrow$2 = "_arrow_1bgvu_28";
|
|
22720
|
+
const address$1 = "_address_1bgvu_37";
|
|
22721
|
+
const arrowContainer$1 = "_arrowContainer_1bgvu_46";
|
|
22722
|
+
const text$6 = "_text_1bgvu_57";
|
|
22655
22723
|
var style0$15 = {
|
|
22656
|
-
"ppmna-default-font": "_ppmna-default-
|
|
22724
|
+
"ppmna-default-font": "_ppmna-default-font_1bgvu_1",
|
|
22657
22725
|
wrapperClass: wrapperClass$i,
|
|
22658
22726
|
container: container$t,
|
|
22659
22727
|
header: header$a,
|
|
@@ -23483,32 +23551,31 @@ const PaymentMethod = defineComponent({
|
|
|
23483
23551
|
}
|
|
23484
23552
|
},
|
|
23485
23553
|
render() {
|
|
23486
|
-
|
|
23487
|
-
|
|
23488
|
-
|
|
23489
|
-
|
|
23490
|
-
|
|
23491
|
-
|
|
23492
|
-
|
|
23493
|
-
|
|
23494
|
-
|
|
23495
|
-
|
|
23496
|
-
|
|
23497
|
-
|
|
23498
|
-
|
|
23499
|
-
|
|
23500
|
-
|
|
23501
|
-
|
|
23502
|
-
|
|
23503
|
-
|
|
23504
|
-
|
|
23505
|
-
|
|
23506
|
-
|
|
23507
|
-
|
|
23508
|
-
|
|
23509
|
-
|
|
23510
|
-
|
|
23511
|
-
}, null);
|
|
23554
|
+
switch (this.paymentMethod.paymentMethodType) {
|
|
23555
|
+
case PaymentMethodType.WALLET:
|
|
23556
|
+
return createVNode(Wallet, {
|
|
23557
|
+
"wallet": this.paymentMethod
|
|
23558
|
+
}, null);
|
|
23559
|
+
case PaymentMethodType.CREDIT_CARD:
|
|
23560
|
+
return createVNode(CreditCard, {
|
|
23561
|
+
"credit": this.paymentMethod
|
|
23562
|
+
}, null);
|
|
23563
|
+
case PaymentMethodType.BANK:
|
|
23564
|
+
case PaymentMethodType.YMONEY_BANK:
|
|
23565
|
+
return createVNode(Bank, {
|
|
23566
|
+
"bank": this.paymentMethod,
|
|
23567
|
+
"round": true
|
|
23568
|
+
}, null);
|
|
23569
|
+
case PaymentMethodType.SBID_CARRIER_BILLING:
|
|
23570
|
+
return createVNode(Sbid, {
|
|
23571
|
+
"sbid": this.paymentMethod
|
|
23572
|
+
}, null);
|
|
23573
|
+
case PaymentMethodType.PAY_LATER_CC:
|
|
23574
|
+
return createVNode(PayLaterCC, {
|
|
23575
|
+
"payLater": this.paymentMethod
|
|
23576
|
+
}, null);
|
|
23577
|
+
case PaymentMethodType.PAY_LATER:
|
|
23578
|
+
return null;
|
|
23512
23579
|
}
|
|
23513
23580
|
return null;
|
|
23514
23581
|
}
|
|
@@ -23658,10 +23725,10 @@ const _sfc_main$17 = defineComponent({
|
|
|
23658
23725
|
required: true,
|
|
23659
23726
|
default: false
|
|
23660
23727
|
},
|
|
23661
|
-
|
|
23662
|
-
type:
|
|
23728
|
+
isTopupPay: {
|
|
23729
|
+
type: Boolean,
|
|
23663
23730
|
required: false,
|
|
23664
|
-
default:
|
|
23731
|
+
default: false
|
|
23665
23732
|
}
|
|
23666
23733
|
},
|
|
23667
23734
|
emits: {
|
|
@@ -23687,8 +23754,7 @@ const _sfc_main$17 = defineComponent({
|
|
|
23687
23754
|
select: select2,
|
|
23688
23755
|
style,
|
|
23689
23756
|
lg: lg2,
|
|
23690
|
-
images: images2
|
|
23691
|
-
isTopupPay: computed(() => props.type === PaymentOpType.TOPUP)
|
|
23757
|
+
images: images2
|
|
23692
23758
|
};
|
|
23693
23759
|
}
|
|
23694
23760
|
});
|
|
@@ -24769,31 +24835,20 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24769
24835
|
const cssModules$T = {};
|
|
24770
24836
|
cssModules$T["$style"] = style0$T;
|
|
24771
24837
|
var DisplaySheet = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__cssModules", cssModules$T]]);
|
|
24772
|
-
|
|
24773
|
-
|
|
24774
|
-
|
|
24775
|
-
|
|
24776
|
-
|
|
24777
|
-
|
|
24778
|
-
const
|
|
24779
|
-
const
|
|
24780
|
-
const
|
|
24781
|
-
const
|
|
24782
|
-
const
|
|
24783
|
-
const
|
|
24784
|
-
const errorMessage = "_errorMessage_wc3r3_62";
|
|
24785
|
-
const inputInner = "_inputInner_wc3r3_68";
|
|
24786
|
-
const inputGroupPrepend = "_inputGroupPrepend_wc3r3_103";
|
|
24787
|
-
const inputGroupAppend = "_inputGroupAppend_wc3r3_104";
|
|
24788
|
-
const required$2 = "_required_wc3r3_119";
|
|
24789
|
-
const btn = "_btn_wc3r3_124";
|
|
24790
|
-
const sm$1 = "_sm_wc3r3_138";
|
|
24791
|
-
const smErrorMessage = "_smErrorMessage_wc3r3_145";
|
|
24792
|
-
const mdErrorMessage = "_mdErrorMessage_wc3r3_148";
|
|
24793
|
-
const lg$2 = "_lg_wc3r3_151";
|
|
24794
|
-
const lgErrorMessage = "_lgErrorMessage_wc3r3_158";
|
|
24838
|
+
const ppmnaInput = "_ppmnaInput_jwu71_2";
|
|
24839
|
+
const border$1 = "_border_jwu71_24";
|
|
24840
|
+
const error$4 = "_error_jwu71_43";
|
|
24841
|
+
const inputAlignLeft = "_inputAlignLeft_jwu71_47";
|
|
24842
|
+
const inputAlignRight = "_inputAlignRight_jwu71_53";
|
|
24843
|
+
const body = "_body_jwu71_59";
|
|
24844
|
+
const errorMessage = "_errorMessage_jwu71_62";
|
|
24845
|
+
const inputInner = "_inputInner_jwu71_68";
|
|
24846
|
+
const inputGroupPrepend = "_inputGroupPrepend_jwu71_103";
|
|
24847
|
+
const inputGroupAppend = "_inputGroupAppend_jwu71_104";
|
|
24848
|
+
const required$2 = "_required_jwu71_119";
|
|
24849
|
+
const btn = "_btn_jwu71_124";
|
|
24795
24850
|
var styles$1 = {
|
|
24796
|
-
"ppmna-default-font": "_ppmna-default-
|
|
24851
|
+
"ppmna-default-font": "_ppmna-default-font_jwu71_1",
|
|
24797
24852
|
ppmnaInput,
|
|
24798
24853
|
border: border$1,
|
|
24799
24854
|
error: error$4,
|
|
@@ -24802,17 +24857,12 @@ var styles$1 = {
|
|
|
24802
24857
|
body,
|
|
24803
24858
|
errorMessage,
|
|
24804
24859
|
inputInner,
|
|
24805
|
-
"icon-wrapper": "_icon-
|
|
24860
|
+
"icon-wrapper": "_icon-wrapper_jwu71_100",
|
|
24806
24861
|
inputGroupPrepend,
|
|
24807
24862
|
inputGroupAppend,
|
|
24808
24863
|
required: required$2,
|
|
24809
24864
|
btn,
|
|
24810
|
-
"input-group": "_input-
|
|
24811
|
-
sm: sm$1,
|
|
24812
|
-
smErrorMessage,
|
|
24813
|
-
mdErrorMessage,
|
|
24814
|
-
lg: lg$2,
|
|
24815
|
-
lgErrorMessage
|
|
24865
|
+
"input-group": "_input-group_jwu71_128"
|
|
24816
24866
|
};
|
|
24817
24867
|
const Input = defineComponent({
|
|
24818
24868
|
props: {
|
|
@@ -24831,11 +24881,6 @@ const Input = defineComponent({
|
|
|
24831
24881
|
required: false,
|
|
24832
24882
|
default: false
|
|
24833
24883
|
},
|
|
24834
|
-
size: {
|
|
24835
|
-
type: String,
|
|
24836
|
-
required: false,
|
|
24837
|
-
default: "sm"
|
|
24838
|
-
},
|
|
24839
24884
|
autofocus: {
|
|
24840
24885
|
type: Boolean,
|
|
24841
24886
|
required: false,
|
|
@@ -24846,26 +24891,11 @@ const Input = defineComponent({
|
|
|
24846
24891
|
required: false,
|
|
24847
24892
|
default: ""
|
|
24848
24893
|
},
|
|
24849
|
-
append: {
|
|
24850
|
-
type: String,
|
|
24851
|
-
required: false,
|
|
24852
|
-
default: ""
|
|
24853
|
-
},
|
|
24854
24894
|
modelValue: {
|
|
24855
24895
|
type: [String, Number],
|
|
24856
24896
|
required: false,
|
|
24857
24897
|
default: ""
|
|
24858
24898
|
},
|
|
24859
|
-
type: {
|
|
24860
|
-
type: String,
|
|
24861
|
-
required: false,
|
|
24862
|
-
default: "text"
|
|
24863
|
-
},
|
|
24864
|
-
inputMode: {
|
|
24865
|
-
type: String,
|
|
24866
|
-
required: false,
|
|
24867
|
-
default: "text"
|
|
24868
|
-
},
|
|
24869
24899
|
placeholder: {
|
|
24870
24900
|
type: String,
|
|
24871
24901
|
required: false,
|
|
@@ -24881,21 +24911,6 @@ const Input = defineComponent({
|
|
|
24881
24911
|
required: false,
|
|
24882
24912
|
default: "left"
|
|
24883
24913
|
},
|
|
24884
|
-
errorMessage: {
|
|
24885
|
-
type: String,
|
|
24886
|
-
required: false,
|
|
24887
|
-
default: ""
|
|
24888
|
-
},
|
|
24889
|
-
rules: {
|
|
24890
|
-
type: Array,
|
|
24891
|
-
required: false,
|
|
24892
|
-
default: () => [{}]
|
|
24893
|
-
},
|
|
24894
|
-
validateTrigger: {
|
|
24895
|
-
type: String,
|
|
24896
|
-
required: false,
|
|
24897
|
-
default: "onBlur"
|
|
24898
|
-
},
|
|
24899
24914
|
id: {
|
|
24900
24915
|
type: String,
|
|
24901
24916
|
required: false,
|
|
@@ -24906,16 +24921,6 @@ const Input = defineComponent({
|
|
|
24906
24921
|
required: false,
|
|
24907
24922
|
default: ""
|
|
24908
24923
|
},
|
|
24909
|
-
appendClassName: {
|
|
24910
|
-
type: String,
|
|
24911
|
-
required: false,
|
|
24912
|
-
default: ""
|
|
24913
|
-
},
|
|
24914
|
-
autoCapitalize: {
|
|
24915
|
-
type: String,
|
|
24916
|
-
required: false,
|
|
24917
|
-
default: "off"
|
|
24918
|
-
},
|
|
24919
24924
|
required: {
|
|
24920
24925
|
type: Boolean,
|
|
24921
24926
|
required: false,
|
|
@@ -24928,11 +24933,7 @@ const Input = defineComponent({
|
|
|
24928
24933
|
}
|
|
24929
24934
|
},
|
|
24930
24935
|
emits: {
|
|
24931
|
-
"update:modelValue": (_value) => true
|
|
24932
|
-
blur: (_p) => true,
|
|
24933
|
-
input: (_p) => true,
|
|
24934
|
-
focus: (_p) => true,
|
|
24935
|
-
validate: (_p) => true
|
|
24936
|
+
"update:modelValue": (_value) => true
|
|
24936
24937
|
},
|
|
24937
24938
|
setup(props, {
|
|
24938
24939
|
emit
|
|
@@ -24940,8 +24941,6 @@ const Input = defineComponent({
|
|
|
24940
24941
|
const inputRef = ref();
|
|
24941
24942
|
const state = reactive({
|
|
24942
24943
|
focused: false,
|
|
24943
|
-
validateFailed: false,
|
|
24944
|
-
validateMessage: "",
|
|
24945
24944
|
isComposing: false
|
|
24946
24945
|
});
|
|
24947
24946
|
const updateValue = (_value) => {
|
|
@@ -24953,23 +24952,6 @@ const Input = defineComponent({
|
|
|
24953
24952
|
if (isDef(maxlength) && value2.length > maxlength) {
|
|
24954
24953
|
value2 = value2.slice(0, +maxlength);
|
|
24955
24954
|
}
|
|
24956
|
-
if (props.type === "zipCode") {
|
|
24957
|
-
value2 = value2.replace(/-/g, "").slice(0, 7);
|
|
24958
|
-
if (value2.length >= 4) {
|
|
24959
|
-
value2 = `${value2.slice(0, 3)}-${value2.slice(3)}`;
|
|
24960
|
-
}
|
|
24961
|
-
}
|
|
24962
|
-
if (props.type === "currency") {
|
|
24963
|
-
value2 = String(value2).replace(/,/g, "");
|
|
24964
|
-
value2 = isNaN(Number(value2)) ? "0" : formatCurrency(Number(value2), 0);
|
|
24965
|
-
}
|
|
24966
|
-
if (props.type === "number" || props.type === "digit") {
|
|
24967
|
-
const isNumber = props.type === "number";
|
|
24968
|
-
value2 = formatNumber(value2, {
|
|
24969
|
-
allowDot: isNumber,
|
|
24970
|
-
allowMinus: isNumber
|
|
24971
|
-
});
|
|
24972
|
-
}
|
|
24973
24955
|
if ((inputRef == null ? void 0 : inputRef.value) && value2 !== ((_a = inputRef == null ? void 0 : inputRef.value) == null ? void 0 : _a.value)) {
|
|
24974
24956
|
inputRef.value.value = value2;
|
|
24975
24957
|
}
|
|
@@ -24979,26 +24961,12 @@ const Input = defineComponent({
|
|
|
24979
24961
|
};
|
|
24980
24962
|
const onInput = (event) => {
|
|
24981
24963
|
const target = event.target;
|
|
24982
|
-
const cursorPosition = target.selectionStart;
|
|
24983
24964
|
if (!state.isComposing) {
|
|
24984
24965
|
updateValue(target.value);
|
|
24985
|
-
emit("input", event);
|
|
24986
24966
|
}
|
|
24987
|
-
if (props.type === "zipCode") {
|
|
24988
|
-
if (target.value.length >= 5 && cursorPosition === 4 && event.inputType === "insertText") {
|
|
24989
|
-
target.selectionStart = target.selectionEnd = cursorPosition + 1;
|
|
24990
|
-
} else {
|
|
24991
|
-
target.selectionEnd = cursorPosition;
|
|
24992
|
-
}
|
|
24993
|
-
}
|
|
24994
|
-
};
|
|
24995
|
-
const onFocus = (event) => {
|
|
24996
|
-
emit("focus", event);
|
|
24997
24967
|
};
|
|
24998
|
-
const onBlur = (
|
|
24968
|
+
const onBlur = () => {
|
|
24999
24969
|
updateValue(props.modelValue);
|
|
25000
|
-
emit("blur", event);
|
|
25001
|
-
props.validateTrigger === "onBlur" && validateWithTrigger("onBlur");
|
|
25002
24970
|
};
|
|
25003
24971
|
const onCompositionStart2 = () => {
|
|
25004
24972
|
state.isComposing = true;
|
|
@@ -25006,131 +24974,155 @@ const Input = defineComponent({
|
|
|
25006
24974
|
const onCompositionEnd2 = (event) => {
|
|
25007
24975
|
if (state.isComposing) {
|
|
25008
24976
|
state.isComposing = false;
|
|
25009
|
-
trigger$
|
|
24977
|
+
trigger$1(event.target, "input");
|
|
25010
24978
|
}
|
|
25011
24979
|
};
|
|
25012
|
-
const
|
|
25013
|
-
|
|
25014
|
-
state.validateFailed = false;
|
|
25015
|
-
state.validateMessage = "";
|
|
25016
|
-
}
|
|
25017
|
-
};
|
|
25018
|
-
const validate2 = (rules = props.rules) => new Promise((resolve2) => {
|
|
25019
|
-
if (!rules) {
|
|
25020
|
-
resolve2(null);
|
|
25021
|
-
}
|
|
25022
|
-
resetValidation();
|
|
25023
|
-
void runRules(rules).then(() => {
|
|
25024
|
-
if (state.validateFailed) {
|
|
25025
|
-
emit("validate", false);
|
|
25026
|
-
resolve2({
|
|
25027
|
-
name: props.name,
|
|
25028
|
-
message: state.validateMessage
|
|
25029
|
-
});
|
|
25030
|
-
} else {
|
|
25031
|
-
emit("validate", true);
|
|
25032
|
-
resolve2(null);
|
|
25033
|
-
}
|
|
25034
|
-
});
|
|
24980
|
+
const requiredClass = computed(() => {
|
|
24981
|
+
return (props == null ? void 0 : props.required) ? styles$1.required : "";
|
|
25035
24982
|
});
|
|
25036
|
-
const
|
|
25037
|
-
|
|
25038
|
-
|
|
25039
|
-
|
|
25040
|
-
|
|
25041
|
-
|
|
25042
|
-
|
|
25043
|
-
|
|
24983
|
+
const renderInput = () => {
|
|
24984
|
+
return createVNode("input", mergeProps(props.id && {
|
|
24985
|
+
id: props.id
|
|
24986
|
+
}, {
|
|
24987
|
+
"ref": inputRef,
|
|
24988
|
+
"class": [styles$1.inputInner],
|
|
24989
|
+
"autofocus": props.autofocus,
|
|
24990
|
+
"disabled": props.disabled,
|
|
24991
|
+
"value": props.modelValue,
|
|
24992
|
+
"placeholder": props.placeholder,
|
|
24993
|
+
"onInput": onInput,
|
|
24994
|
+
"onChange": onCompositionEnd2,
|
|
24995
|
+
"onBlur": onBlur,
|
|
24996
|
+
"type": "text",
|
|
24997
|
+
"inputmode": "text",
|
|
24998
|
+
"onCompositionend": onCompositionEnd2,
|
|
24999
|
+
"onCompositionstart": onCompositionStart2
|
|
25000
|
+
}), null);
|
|
25044
25001
|
};
|
|
25045
|
-
|
|
25046
|
-
|
|
25047
|
-
|
|
25002
|
+
watch(() => props.modelValue, (value2) => {
|
|
25003
|
+
updateValue(value2);
|
|
25004
|
+
});
|
|
25005
|
+
return () => createVNode("div", {
|
|
25006
|
+
"class": [styles$1.ppmnaInput, {
|
|
25007
|
+
[styles$1.border]: props.border,
|
|
25008
|
+
[styles$1.disabled]: props.disabled
|
|
25009
|
+
}, props.inputAlign === "right" ? styles$1.inputAlignRight : styles$1.inputAlignLeft, props.class]
|
|
25010
|
+
}, [createVNode("div", {
|
|
25011
|
+
"class": [styles$1.body]
|
|
25012
|
+
}, [props.prepend && createVNode("div", {
|
|
25013
|
+
"class": [styles$1.inputGroupPrepend, props.prependClassName, requiredClass.value]
|
|
25014
|
+
}, [props.prepend]), renderInput()])]);
|
|
25015
|
+
}
|
|
25016
|
+
});
|
|
25017
|
+
const Zip = defineComponent({
|
|
25018
|
+
props: {
|
|
25019
|
+
name: {
|
|
25020
|
+
type: String,
|
|
25021
|
+
required: false,
|
|
25022
|
+
default: ""
|
|
25023
|
+
},
|
|
25024
|
+
disabled: {
|
|
25025
|
+
type: Boolean,
|
|
25026
|
+
required: false,
|
|
25027
|
+
default: false
|
|
25028
|
+
},
|
|
25029
|
+
prepend: {
|
|
25030
|
+
type: String,
|
|
25031
|
+
required: false,
|
|
25032
|
+
default: ""
|
|
25033
|
+
},
|
|
25034
|
+
modelValue: {
|
|
25035
|
+
type: [String, Number],
|
|
25036
|
+
required: false,
|
|
25037
|
+
default: ""
|
|
25038
|
+
},
|
|
25039
|
+
placeholder: {
|
|
25040
|
+
type: String,
|
|
25041
|
+
required: false,
|
|
25042
|
+
default: ""
|
|
25043
|
+
},
|
|
25044
|
+
id: {
|
|
25045
|
+
type: String,
|
|
25046
|
+
required: false,
|
|
25047
|
+
default: ""
|
|
25048
|
+
},
|
|
25049
|
+
prependClassName: {
|
|
25050
|
+
type: String,
|
|
25051
|
+
required: false,
|
|
25052
|
+
default: ""
|
|
25053
|
+
},
|
|
25054
|
+
required: {
|
|
25055
|
+
type: Boolean,
|
|
25056
|
+
required: false,
|
|
25057
|
+
default: false
|
|
25058
|
+
},
|
|
25059
|
+
class: {
|
|
25060
|
+
type: [String, Object],
|
|
25061
|
+
required: false,
|
|
25062
|
+
default: ""
|
|
25063
|
+
}
|
|
25064
|
+
},
|
|
25065
|
+
emits: {
|
|
25066
|
+
"update:modelValue": (_value) => true
|
|
25067
|
+
},
|
|
25068
|
+
setup(props, {
|
|
25069
|
+
emit
|
|
25070
|
+
}) {
|
|
25071
|
+
const inputRef = ref();
|
|
25072
|
+
const updateValue = (_value) => {
|
|
25073
|
+
var _a;
|
|
25074
|
+
let value2 = isDef(_value) ? String(_value) : "";
|
|
25075
|
+
value2 = value2.replace(/-/g, "").slice(0, 7);
|
|
25076
|
+
if (value2.length >= 4) {
|
|
25077
|
+
value2 = `${value2.slice(0, 3)}-${value2.slice(3)}`;
|
|
25048
25078
|
}
|
|
25049
|
-
|
|
25050
|
-
|
|
25051
|
-
state.validateFailed = true;
|
|
25052
|
-
state.validateMessage = getRuleMessage(value2, rule);
|
|
25053
|
-
return;
|
|
25079
|
+
if ((inputRef == null ? void 0 : inputRef.value) && value2 !== ((_a = inputRef == null ? void 0 : inputRef.value) == null ? void 0 : _a.value)) {
|
|
25080
|
+
inputRef.value.value = value2;
|
|
25054
25081
|
}
|
|
25055
|
-
|
|
25056
|
-
|
|
25057
|
-
const message = props.errorMessage || state.validateMessage;
|
|
25058
|
-
if (message) {
|
|
25059
|
-
return createVNode("div", {
|
|
25060
|
-
"class": [styles$1.errorMessage, {
|
|
25061
|
-
[styles$1.mdErrorMessage]: props.size === "md",
|
|
25062
|
-
[styles$1.smErrorMessage]: props.size === "sm",
|
|
25063
|
-
[styles$1.lgErrorMessage]: props.size === "lg"
|
|
25064
|
-
}]
|
|
25065
|
-
}, [message]);
|
|
25082
|
+
if (value2 !== props.modelValue) {
|
|
25083
|
+
emit("update:modelValue", value2);
|
|
25066
25084
|
}
|
|
25067
25085
|
};
|
|
25068
|
-
const
|
|
25069
|
-
const
|
|
25070
|
-
|
|
25071
|
-
|
|
25072
|
-
if (
|
|
25073
|
-
|
|
25086
|
+
const onInput = (event) => {
|
|
25087
|
+
const target = event.target;
|
|
25088
|
+
const cursorPosition = target.selectionStart;
|
|
25089
|
+
updateValue(target.value);
|
|
25090
|
+
if (target.value.length >= 5 && cursorPosition === 4 && event.inputType === "insertText") {
|
|
25091
|
+
target.selectionStart = target.selectionEnd = cursorPosition + 1;
|
|
25092
|
+
} else {
|
|
25093
|
+
target.selectionEnd = cursorPosition;
|
|
25074
25094
|
}
|
|
25075
|
-
return message;
|
|
25076
25095
|
};
|
|
25077
|
-
const showError = computed(() => {
|
|
25078
|
-
if (state.validateFailed) {
|
|
25079
|
-
return true;
|
|
25080
|
-
}
|
|
25081
|
-
return false;
|
|
25082
|
-
});
|
|
25083
25096
|
const requiredClass = computed(() => {
|
|
25084
25097
|
return (props == null ? void 0 : props.required) ? styles$1.required : "";
|
|
25085
25098
|
});
|
|
25086
25099
|
const renderInput = () => {
|
|
25087
|
-
let inputMode = props.inputMode;
|
|
25088
|
-
let type;
|
|
25089
|
-
if (props.type === "zipCode") {
|
|
25090
|
-
type = "text";
|
|
25091
|
-
inputMode = "numeric";
|
|
25092
|
-
} else {
|
|
25093
|
-
type = props.type;
|
|
25094
|
-
}
|
|
25095
25100
|
return createVNode("input", mergeProps(props.id && {
|
|
25096
25101
|
id: props.id
|
|
25097
|
-
}, props.autoCapitalize && {
|
|
25098
|
-
autocapitalize: props.autoCapitalize
|
|
25099
25102
|
}, {
|
|
25100
25103
|
"ref": inputRef,
|
|
25101
25104
|
"class": [styles$1.inputInner],
|
|
25102
|
-
"autofocus": props.autofocus,
|
|
25103
25105
|
"disabled": props.disabled,
|
|
25104
25106
|
"value": props.modelValue,
|
|
25105
25107
|
"placeholder": props.placeholder,
|
|
25106
|
-
"onFocus": onFocus,
|
|
25107
25108
|
"onInput": onInput,
|
|
25108
|
-
"
|
|
25109
|
-
"
|
|
25110
|
-
"type": type,
|
|
25111
|
-
"inputmode": inputMode,
|
|
25112
|
-
"onCompositionend": onCompositionEnd2,
|
|
25113
|
-
"onCompositionstart": onCompositionStart2
|
|
25109
|
+
"type": "text",
|
|
25110
|
+
"inputmode": "numeric"
|
|
25114
25111
|
}), null);
|
|
25115
25112
|
};
|
|
25116
25113
|
watch(() => props.modelValue, (value2) => {
|
|
25117
25114
|
updateValue(value2);
|
|
25118
|
-
resetValidation();
|
|
25119
|
-
validateWithTrigger("onChange");
|
|
25120
25115
|
});
|
|
25121
25116
|
return () => createVNode("div", {
|
|
25122
|
-
"class": [styles$1.ppmnaInput,
|
|
25123
|
-
[styles$1.border]:
|
|
25124
|
-
[styles$1.disabled]: props.disabled
|
|
25125
|
-
|
|
25126
|
-
}, props.inputAlign === "right" ? styles$1.inputAlignRight : styles$1.inputAlignLeft, props.class]
|
|
25117
|
+
"class": [styles$1.ppmnaInput, {
|
|
25118
|
+
[styles$1.border]: true,
|
|
25119
|
+
[styles$1.disabled]: props.disabled
|
|
25120
|
+
}, props.class]
|
|
25127
25121
|
}, [createVNode("div", {
|
|
25128
25122
|
"class": [styles$1.body]
|
|
25129
25123
|
}, [props.prepend && createVNode("div", {
|
|
25130
25124
|
"class": [styles$1.inputGroupPrepend, props.prependClassName, requiredClass.value]
|
|
25131
|
-
}, [props.prepend]), renderInput()
|
|
25132
|
-
"class": [styles$1.inputGroupAppend, props.appendClassName]
|
|
25133
|
-
}, [props.append])]), renderMessage()]);
|
|
25125
|
+
}, [props.prepend]), renderInput()])]);
|
|
25134
25126
|
}
|
|
25135
25127
|
});
|
|
25136
25128
|
const container$o = "_container_aragh_1";
|
|
@@ -25809,7 +25801,8 @@ const _sfc_main$Z = defineComponent({
|
|
|
25809
25801
|
Input,
|
|
25810
25802
|
SelectList,
|
|
25811
25803
|
TagForm,
|
|
25812
|
-
Footer
|
|
25804
|
+
Footer,
|
|
25805
|
+
Zip
|
|
25813
25806
|
},
|
|
25814
25807
|
props: {
|
|
25815
25808
|
loading: {
|
|
@@ -25920,6 +25913,7 @@ const _sfc_main$Z = defineComponent({
|
|
|
25920
25913
|
});
|
|
25921
25914
|
function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25922
25915
|
const _component_Input = resolveComponent("Input");
|
|
25916
|
+
const _component_Zip = resolveComponent("Zip");
|
|
25923
25917
|
const _component_SelectList = resolveComponent("SelectList");
|
|
25924
25918
|
const _component_TagForm = resolveComponent("TagForm");
|
|
25925
25919
|
const _component_Footer = resolveComponent("Footer");
|
|
@@ -25957,14 +25951,13 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25957
25951
|
placeholder: _ctx.lg.userAddress.receiverPlace,
|
|
25958
25952
|
required: ""
|
|
25959
25953
|
}, null, 8, ["modelValue", "disabled", "prepend", "prepend-class-name", "class", "placeholder"])) : createCommentVNode("", true),
|
|
25960
|
-
_ctx.state.visibilities.zip ? (openBlock(), createBlock(
|
|
25954
|
+
_ctx.state.visibilities.zip ? (openBlock(), createBlock(_component_Zip, {
|
|
25961
25955
|
key: 2,
|
|
25962
25956
|
id: "content-zip",
|
|
25963
25957
|
modelValue: _ctx.state.zip,
|
|
25964
25958
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.state.zip = $event),
|
|
25965
25959
|
"data-testid": "content-zip",
|
|
25966
25960
|
disabled: _ctx.kyc,
|
|
25967
|
-
type: "zipCode",
|
|
25968
25961
|
prepend: _ctx.lg.userAddress.inputPre,
|
|
25969
25962
|
"prepend-class-name": _ctx.style.prepend,
|
|
25970
25963
|
class: normalizeClass([_ctx.style.input, { [_ctx.style.borderDel]: !_ctx.state.zip }]),
|
|
@@ -26634,42 +26627,42 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26634
26627
|
], 64);
|
|
26635
26628
|
}
|
|
26636
26629
|
var AppVue$8 = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V]]);
|
|
26637
|
-
const container$k = "
|
|
26638
|
-
const addContainer = "
|
|
26639
|
-
const addContainerInsufficient = "
|
|
26640
|
-
const noAddContainer = "
|
|
26641
|
-
const addContainerTopup = "
|
|
26642
|
-
const addAddress = "
|
|
26643
|
-
const label$2 = "
|
|
26644
|
-
const change$2 = "
|
|
26645
|
-
const noaddmsgContainer = "
|
|
26646
|
-
const addressInfoContainer = "
|
|
26647
|
-
const priceContainer$1 = "
|
|
26648
|
-
const priceNumber = "
|
|
26649
|
-
const priceUnit = "
|
|
26650
|
-
const successContainer$1 = "
|
|
26651
|
-
const loadingText$2 = "
|
|
26652
|
-
const payBtn = "
|
|
26653
|
-
const payButton = "
|
|
26654
|
-
const cancel$1 = "
|
|
26655
|
-
const cancelBtn$1 = "
|
|
26656
|
-
const chargeCancel = "
|
|
26657
|
-
const payBtnSticky = "
|
|
26658
|
-
const payWrapper = "
|
|
26659
|
-
const bannerInfo$1 = "
|
|
26660
|
-
const bannerIcon = "
|
|
26661
|
-
const bannerTitle$2 = "
|
|
26662
|
-
const price$2 = "
|
|
26663
|
-
const paymentContainer = "
|
|
26664
|
-
const addressContainer = "
|
|
26665
|
-
const noAddressContainer = "
|
|
26666
|
-
const payment$2 = "
|
|
26667
|
-
const insufficientAmount = "
|
|
26668
|
-
const arrow = "
|
|
26669
|
-
const defaultContainer = "
|
|
26670
|
-
const payContainer = "
|
|
26630
|
+
const container$k = "_container_20u17_7";
|
|
26631
|
+
const addContainer = "_addContainer_20u17_16";
|
|
26632
|
+
const addContainerInsufficient = "_addContainerInsufficient_20u17_25";
|
|
26633
|
+
const noAddContainer = "_noAddContainer_20u17_29";
|
|
26634
|
+
const addContainerTopup = "_addContainerTopup_20u17_34";
|
|
26635
|
+
const addAddress = "_addAddress_20u17_44";
|
|
26636
|
+
const label$2 = "_label_20u17_54";
|
|
26637
|
+
const change$2 = "_change_20u17_72";
|
|
26638
|
+
const noaddmsgContainer = "_noaddmsgContainer_20u17_87";
|
|
26639
|
+
const addressInfoContainer = "_addressInfoContainer_20u17_96";
|
|
26640
|
+
const priceContainer$1 = "_priceContainer_20u17_100";
|
|
26641
|
+
const priceNumber = "_priceNumber_20u17_111";
|
|
26642
|
+
const priceUnit = "_priceUnit_20u17_130";
|
|
26643
|
+
const successContainer$1 = "_successContainer_20u17_141";
|
|
26644
|
+
const loadingText$2 = "_loadingText_20u17_148";
|
|
26645
|
+
const payBtn = "_payBtn_20u17_166";
|
|
26646
|
+
const payButton = "_payButton_20u17_185";
|
|
26647
|
+
const cancel$1 = "_cancel_20u17_189";
|
|
26648
|
+
const cancelBtn$1 = "_cancelBtn_20u17_198";
|
|
26649
|
+
const chargeCancel = "_chargeCancel_20u17_206";
|
|
26650
|
+
const payBtnSticky = "_payBtnSticky_20u17_210";
|
|
26651
|
+
const payWrapper = "_payWrapper_20u17_223";
|
|
26652
|
+
const bannerInfo$1 = "_bannerInfo_20u17_228";
|
|
26653
|
+
const bannerIcon = "_bannerIcon_20u17_242";
|
|
26654
|
+
const bannerTitle$2 = "_bannerTitle_20u17_246";
|
|
26655
|
+
const price$2 = "_price_20u17_100";
|
|
26656
|
+
const paymentContainer = "_paymentContainer_20u17_255";
|
|
26657
|
+
const addressContainer = "_addressContainer_20u17_278";
|
|
26658
|
+
const noAddressContainer = "_noAddressContainer_20u17_301";
|
|
26659
|
+
const payment$2 = "_payment_20u17_255";
|
|
26660
|
+
const insufficientAmount = "_insufficientAmount_20u17_328";
|
|
26661
|
+
const arrow = "_arrow_20u17_346";
|
|
26662
|
+
const defaultContainer = "_defaultContainer_20u17_360";
|
|
26663
|
+
const payContainer = "_payContainer_20u17_379";
|
|
26671
26664
|
var style0$M = {
|
|
26672
|
-
"ppmna-default-font": "_ppmna-default-
|
|
26665
|
+
"ppmna-default-font": "_ppmna-default-font_20u17_1",
|
|
26673
26666
|
container: container$k,
|
|
26674
26667
|
addContainer,
|
|
26675
26668
|
addContainerInsufficient,
|
|
@@ -27002,8 +26995,9 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27002
26995
|
_ctx.paymentMethod ? (openBlock(), createBlock(_component_PaymentType, {
|
|
27003
26996
|
key: 0,
|
|
27004
26997
|
"payment-method": _ctx.paymentMethod,
|
|
27005
|
-
"is-make-payment": true
|
|
27006
|
-
|
|
26998
|
+
"is-make-payment": true,
|
|
26999
|
+
"is-makepayment-with-address": _ctx.showUserAddress
|
|
27000
|
+
}, null, 8, ["payment-method", "is-makepayment-with-address"])) : createCommentVNode("", true)
|
|
27007
27001
|
], 2)) : createCommentVNode("", true),
|
|
27008
27002
|
_ctx.isDesktop ? (openBlock(), createBlock(_component_PayMethod, {
|
|
27009
27003
|
key: 2,
|
|
@@ -29184,7 +29178,8 @@ const _sfc_main$H = defineComponent({
|
|
|
29184
29178
|
const _hoisted_1$m = ["onClick"];
|
|
29185
29179
|
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
29186
29180
|
return openBlock(), createElementBlock("ul", {
|
|
29187
|
-
class: normalizeClass(_ctx.style.container)
|
|
29181
|
+
class: normalizeClass(_ctx.style.container),
|
|
29182
|
+
"data-testid": "more-list"
|
|
29188
29183
|
}, [
|
|
29189
29184
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data, (value2, index2) => {
|
|
29190
29185
|
return openBlock(), createElementBlock("li", {
|
|
@@ -29849,7 +29844,6 @@ const _sfc_main$D = defineComponent({
|
|
|
29849
29844
|
isMobile,
|
|
29850
29845
|
isDesktop,
|
|
29851
29846
|
showPaymentMethodList: computed(() => state.showPaymentMethodList),
|
|
29852
|
-
paymentOpType: computed(() => PaymentOpType),
|
|
29853
29847
|
addressSelect,
|
|
29854
29848
|
updateAddress,
|
|
29855
29849
|
layoutUpdate
|
|
@@ -29961,10 +29955,10 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29961
29955
|
"payment-methods": _ctx.paymentMethods,
|
|
29962
29956
|
"select-payment-index": _ctx.selectIndex,
|
|
29963
29957
|
"show-payment-method-list": _ctx.showPaymentMethodList,
|
|
29964
|
-
|
|
29958
|
+
"is-topup-pay": true,
|
|
29965
29959
|
onSelectPaymentMethod: _ctx.select,
|
|
29966
29960
|
onShow: _ctx.openPaymentMethod
|
|
29967
|
-
}, null, 8, ["title", "payment-method", "payment-methods", "select-payment-index", "show-payment-method-list", "
|
|
29961
|
+
}, null, 8, ["title", "payment-method", "payment-methods", "select-payment-index", "show-payment-method-list", "onSelectPaymentMethod", "onShow"])), [
|
|
29968
29962
|
[vShow, !_ctx.done]
|
|
29969
29963
|
]) : createCommentVNode("", true),
|
|
29970
29964
|
_ctx.showUserAddress && _ctx.isDesktop ? (openBlock(), createBlock(_component_GetUserAddressApp, {
|
|
@@ -30130,7 +30124,8 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30130
30124
|
onClick: _ctx.back
|
|
30131
30125
|
}, null, 8, ["title", "onClick"]),
|
|
30132
30126
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
30133
|
-
class: normalizeClass({ [_ctx.style.paymentList]: true, [_ctx.style.payment]: !_ctx.isTopup })
|
|
30127
|
+
class: normalizeClass({ [_ctx.style.paymentList]: true, [_ctx.style.payment]: !_ctx.isTopup }),
|
|
30128
|
+
"data-testid": "payment-list"
|
|
30134
30129
|
}, [
|
|
30135
30130
|
createVNode(_component_PaymentMethodList, {
|
|
30136
30131
|
"select-payment-index": _ctx.selectIndex,
|
|
@@ -30159,32 +30154,37 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30159
30154
|
const cssModules$u = {};
|
|
30160
30155
|
cssModules$u["$style"] = style0$u;
|
|
30161
30156
|
var ChoosePaymentMethod = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C], ["__cssModules", cssModules$u]]);
|
|
30162
|
-
function
|
|
30163
|
-
|
|
30164
|
-
|
|
30165
|
-
|
|
30166
|
-
|
|
30167
|
-
|
|
30168
|
-
|
|
30169
|
-
|
|
30170
|
-
|
|
30171
|
-
|
|
30172
|
-
|
|
30173
|
-
|
|
30174
|
-
|
|
30175
|
-
|
|
30176
|
-
|
|
30177
|
-
|
|
30157
|
+
function isAvailableTopupMethod(paymentMethod2) {
|
|
30158
|
+
switch (paymentMethod2.paymentMethodType) {
|
|
30159
|
+
case PaymentMethodType.CREDIT_CARD: {
|
|
30160
|
+
const creditCard2 = paymentMethod2 == null ? void 0 : paymentMethod2.creditCardInfo;
|
|
30161
|
+
return !(creditCard2 == null ? void 0 : creditCard2.isExpired) && (creditCard2 == null ? void 0 : creditCard2.paymentMethodStatus) === PaymentMethodStatus.ACTIVATED;
|
|
30162
|
+
}
|
|
30163
|
+
case PaymentMethodType.BANK:
|
|
30164
|
+
case PaymentMethodType.YMONEY_BANK: {
|
|
30165
|
+
const bankInfo = paymentMethod2 == null ? void 0 : paymentMethod2.bankInfo;
|
|
30166
|
+
return (bankInfo == null ? void 0 : bankInfo.paymentMethodStatus) === PaymentMethodStatus.ACTIVATED;
|
|
30167
|
+
}
|
|
30168
|
+
case PaymentMethodType.SBID_CARRIER_BILLING: {
|
|
30169
|
+
const sbid = paymentMethod2.sbidCarrierBillingInfo;
|
|
30170
|
+
return (sbid == null ? void 0 : sbid.paymentMethodStatus) === PaymentMethodStatus.ACTIVATED;
|
|
30171
|
+
}
|
|
30172
|
+
case PaymentMethodType.PAY_LATER_CC: {
|
|
30173
|
+
const payLater2 = paymentMethod2.payLaterCcInfo;
|
|
30174
|
+
return (payLater2 == null ? void 0 : payLater2.paymentMethodStatus) === PaymentMethodStatus.ACTIVATED;
|
|
30175
|
+
}
|
|
30176
|
+
case PaymentMethodType.WALLET:
|
|
30177
|
+
case PaymentMethodType.PAY_LATER:
|
|
30178
|
+
return false;
|
|
30178
30179
|
}
|
|
30179
|
-
return false;
|
|
30180
30180
|
}
|
|
30181
|
-
function
|
|
30182
|
-
return paymentMethods.some((paymentMethod2) =>
|
|
30181
|
+
function hasAvailableTopupMethod(paymentMethods) {
|
|
30182
|
+
return paymentMethods.some((paymentMethod2) => isAvailableTopupMethod(paymentMethod2));
|
|
30183
30183
|
}
|
|
30184
|
-
function findFirstValidMethod(paymentMethods
|
|
30184
|
+
function findFirstValidMethod(paymentMethods) {
|
|
30185
30185
|
if ((paymentMethods == null ? void 0 : paymentMethods.length) > 0) {
|
|
30186
30186
|
for (let index2 = 0; index2 < paymentMethods.length; index2++) {
|
|
30187
|
-
if (isValidPaymentMethod(paymentMethods[index2].paymentMethodId, paymentMethods
|
|
30187
|
+
if (isValidPaymentMethod(paymentMethods[index2].paymentMethodId, paymentMethods)) {
|
|
30188
30188
|
return index2;
|
|
30189
30189
|
}
|
|
30190
30190
|
}
|
|
@@ -30192,7 +30192,7 @@ function findFirstValidMethod(paymentMethods, type) {
|
|
|
30192
30192
|
} else
|
|
30193
30193
|
return -1;
|
|
30194
30194
|
}
|
|
30195
|
-
function isValidPaymentMethod(savedMethod, paymentMethods
|
|
30195
|
+
function isValidPaymentMethod(savedMethod, paymentMethods) {
|
|
30196
30196
|
var _a, _b, _c, _d, _e;
|
|
30197
30197
|
if (savedMethod) {
|
|
30198
30198
|
const payMethod = paymentMethods.find((method) => method.paymentMethodId === savedMethod);
|
|
@@ -30201,7 +30201,8 @@ function isValidPaymentMethod(savedMethod, paymentMethods, type) {
|
|
|
30201
30201
|
return ((_a = payMethod.creditCardInfo) == null ? void 0 : _a.paymentMethodStatus) === "ACTIVATED" && !((_b = payMethod.creditCardInfo) == null ? void 0 : _b.isExpired);
|
|
30202
30202
|
case PaymentMethodType.WALLET:
|
|
30203
30203
|
return true;
|
|
30204
|
-
case
|
|
30204
|
+
case PaymentMethodType.BANK:
|
|
30205
|
+
case PaymentMethodType.YMONEY_BANK:
|
|
30205
30206
|
return ((_c = payMethod.bankInfo) == null ? void 0 : _c.paymentMethodStatus) === "ACTIVATED";
|
|
30206
30207
|
case PaymentMethodType.SBID_CARRIER_BILLING:
|
|
30207
30208
|
return ((_d = payMethod.sbidCarrierBillingInfo) == null ? void 0 : _d.paymentMethodStatus) === "ACTIVATED";
|
|
@@ -30255,7 +30256,7 @@ function useData(props) {
|
|
|
30255
30256
|
const lastUsedMethod = getLastTopupPayMethod();
|
|
30256
30257
|
const state = reactive({
|
|
30257
30258
|
paymentMethods: (_a = props.insufficientBalanceInfo) == null ? void 0 : _a.paymentMethodList,
|
|
30258
|
-
index: isValidPaymentMethod(lastUsedMethod, (_b = props.insufficientBalanceInfo) == null ? void 0 : _b.paymentMethodList
|
|
30259
|
+
index: isValidPaymentMethod(lastUsedMethod, (_b = props.insufficientBalanceInfo) == null ? void 0 : _b.paymentMethodList) ? (_c = props.insufficientBalanceInfo) == null ? void 0 : _c.paymentMethodList.findIndex((method) => method.paymentMethodId === lastUsedMethod) : findFirstValidMethod((_d = props.insufficientBalanceInfo) == null ? void 0 : _d.paymentMethodList),
|
|
30259
30260
|
topupAmount: (_e = props.insufficientBalanceInfo) == null ? void 0 : _e.recommendedTopupAmount,
|
|
30260
30261
|
mount: false,
|
|
30261
30262
|
unmount: false,
|
|
@@ -30288,7 +30289,7 @@ function useData(props) {
|
|
|
30288
30289
|
state.index = index2;
|
|
30289
30290
|
};
|
|
30290
30291
|
const paymentMethods = computed(() => state.paymentMethods);
|
|
30291
|
-
const available = computed(() =>
|
|
30292
|
+
const available = computed(() => hasAvailableTopupMethod(paymentMethods.value));
|
|
30292
30293
|
const setScrollState = (data2) => {
|
|
30293
30294
|
state.isScrollable = data2;
|
|
30294
30295
|
};
|
|
@@ -30920,7 +30921,7 @@ function usePaymentMethod(props) {
|
|
|
30920
30921
|
}
|
|
30921
30922
|
const lastSavedMethod = getLastPaymentMethod();
|
|
30922
30923
|
paymentState.paymentMethods = paymentMethodList;
|
|
30923
|
-
paymentState.selectPaymentIndex = isValidPaymentMethod(lastSavedMethod, paymentState == null ? void 0 : paymentState.paymentMethods
|
|
30924
|
+
paymentState.selectPaymentIndex = isValidPaymentMethod(lastSavedMethod, paymentState == null ? void 0 : paymentState.paymentMethods) ? paymentState.paymentMethods.findIndex((method) => method.paymentMethodId === lastSavedMethod) : findFirstValidMethod(paymentState.paymentMethods);
|
|
30924
30925
|
return {
|
|
30925
30926
|
res,
|
|
30926
30927
|
result: true
|
|
@@ -32300,6 +32301,129 @@ const makePayment = async (params) => {
|
|
|
32300
32301
|
initMakePayment(params).catch(() => {
|
|
32301
32302
|
});
|
|
32302
32303
|
};
|
|
32304
|
+
const Currency = defineComponent({
|
|
32305
|
+
props: {
|
|
32306
|
+
name: {
|
|
32307
|
+
type: String,
|
|
32308
|
+
required: false,
|
|
32309
|
+
default: ""
|
|
32310
|
+
},
|
|
32311
|
+
border: {
|
|
32312
|
+
type: Boolean,
|
|
32313
|
+
required: false,
|
|
32314
|
+
default: true
|
|
32315
|
+
},
|
|
32316
|
+
disabled: {
|
|
32317
|
+
type: Boolean,
|
|
32318
|
+
required: false,
|
|
32319
|
+
default: false
|
|
32320
|
+
},
|
|
32321
|
+
autofocus: {
|
|
32322
|
+
type: Boolean,
|
|
32323
|
+
required: false,
|
|
32324
|
+
default: false
|
|
32325
|
+
},
|
|
32326
|
+
modelValue: {
|
|
32327
|
+
type: [String, Number],
|
|
32328
|
+
required: false,
|
|
32329
|
+
default: ""
|
|
32330
|
+
},
|
|
32331
|
+
placeholder: {
|
|
32332
|
+
type: String,
|
|
32333
|
+
required: false,
|
|
32334
|
+
default: ""
|
|
32335
|
+
},
|
|
32336
|
+
maxlength: {
|
|
32337
|
+
type: [Number, String],
|
|
32338
|
+
required: false,
|
|
32339
|
+
default: null
|
|
32340
|
+
},
|
|
32341
|
+
inputAlign: {
|
|
32342
|
+
type: String,
|
|
32343
|
+
required: false,
|
|
32344
|
+
default: "left"
|
|
32345
|
+
},
|
|
32346
|
+
id: {
|
|
32347
|
+
type: String,
|
|
32348
|
+
required: false,
|
|
32349
|
+
default: ""
|
|
32350
|
+
},
|
|
32351
|
+
class: {
|
|
32352
|
+
type: [String, Object],
|
|
32353
|
+
required: false,
|
|
32354
|
+
default: ""
|
|
32355
|
+
}
|
|
32356
|
+
},
|
|
32357
|
+
emits: {
|
|
32358
|
+
"update:modelValue": (_value) => true,
|
|
32359
|
+
blur: (_p) => true,
|
|
32360
|
+
input: (_p) => true,
|
|
32361
|
+
focus: (_p) => true
|
|
32362
|
+
},
|
|
32363
|
+
setup(props, {
|
|
32364
|
+
emit
|
|
32365
|
+
}) {
|
|
32366
|
+
const inputRef = ref();
|
|
32367
|
+
const updateValue = (_value) => {
|
|
32368
|
+
var _a;
|
|
32369
|
+
let value2 = isDef(_value) ? String(_value) : "";
|
|
32370
|
+
const {
|
|
32371
|
+
maxlength
|
|
32372
|
+
} = props;
|
|
32373
|
+
if (isDef(maxlength) && value2.length > maxlength) {
|
|
32374
|
+
value2 = value2.slice(0, +maxlength);
|
|
32375
|
+
}
|
|
32376
|
+
value2 = String(value2).replace(/,/g, "");
|
|
32377
|
+
value2 = isNaN(Number(value2)) ? "0" : formatCurrency(Number(value2), 0);
|
|
32378
|
+
if ((inputRef == null ? void 0 : inputRef.value) && value2 !== ((_a = inputRef == null ? void 0 : inputRef.value) == null ? void 0 : _a.value)) {
|
|
32379
|
+
inputRef.value.value = value2;
|
|
32380
|
+
}
|
|
32381
|
+
if (value2 !== props.modelValue) {
|
|
32382
|
+
emit("update:modelValue", value2);
|
|
32383
|
+
}
|
|
32384
|
+
};
|
|
32385
|
+
const onInput = (event) => {
|
|
32386
|
+
const target = event.target;
|
|
32387
|
+
updateValue(target.value);
|
|
32388
|
+
emit("input", event);
|
|
32389
|
+
};
|
|
32390
|
+
const onFocus = (event) => {
|
|
32391
|
+
emit("focus", event);
|
|
32392
|
+
};
|
|
32393
|
+
const onBlur = (event) => {
|
|
32394
|
+
updateValue(props.modelValue);
|
|
32395
|
+
emit("blur", event);
|
|
32396
|
+
};
|
|
32397
|
+
const renderInput = () => {
|
|
32398
|
+
return createVNode("input", mergeProps(props.id && {
|
|
32399
|
+
id: props.id
|
|
32400
|
+
}, {
|
|
32401
|
+
"ref": inputRef,
|
|
32402
|
+
"class": [styles$1.inputInner, props.inputAlign === "right" ? styles$1.inputAlignRight : styles$1.inputAlignLeft],
|
|
32403
|
+
"autofocus": props.autofocus,
|
|
32404
|
+
"disabled": props.disabled,
|
|
32405
|
+
"value": props.modelValue,
|
|
32406
|
+
"placeholder": props.placeholder,
|
|
32407
|
+
"onFocus": onFocus,
|
|
32408
|
+
"onInput": onInput,
|
|
32409
|
+
"onBlur": onBlur,
|
|
32410
|
+
"type": "currency",
|
|
32411
|
+
"inputmode": "numeric"
|
|
32412
|
+
}), null);
|
|
32413
|
+
};
|
|
32414
|
+
watch(() => props.modelValue, (value2) => {
|
|
32415
|
+
updateValue(value2);
|
|
32416
|
+
});
|
|
32417
|
+
return () => createVNode("div", {
|
|
32418
|
+
"class": [styles$1.ppmnaInput, {
|
|
32419
|
+
[styles$1.border]: props.border,
|
|
32420
|
+
[styles$1.disabled]: props.disabled
|
|
32421
|
+
}, props.class]
|
|
32422
|
+
}, [createVNode("div", {
|
|
32423
|
+
"class": [styles$1.body]
|
|
32424
|
+
}, [renderInput()])]);
|
|
32425
|
+
}
|
|
32426
|
+
});
|
|
32303
32427
|
const bannerInfoContainer = "_bannerInfoContainer_1u2dr_2";
|
|
32304
32428
|
const bannerInfoIcon = "_bannerInfoIcon_1u2dr_16";
|
|
32305
32429
|
const bannerDesc = "_bannerDesc_1u2dr_20";
|
|
@@ -32612,6 +32736,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32612
32736
|
block: "",
|
|
32613
32737
|
type: "primary",
|
|
32614
32738
|
"data-test": "close-popup",
|
|
32739
|
+
"data-testid": "close-popup",
|
|
32615
32740
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
32616
32741
|
}, {
|
|
32617
32742
|
default: withCtx(() => [
|
|
@@ -32624,46 +32749,46 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32624
32749
|
const cssModules$o = {};
|
|
32625
32750
|
cssModules$o["$style"] = style0$o;
|
|
32626
32751
|
var TopupCompletion = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$v], ["__cssModules", cssModules$o]]);
|
|
32627
|
-
const slideSecondaryEnterActive = "
|
|
32628
|
-
const slideSecondaryLeaveActive = "
|
|
32629
|
-
const slideSecondaryEnterFrom = "
|
|
32630
|
-
const wrapperClass$4 = "
|
|
32631
|
-
const topupWrapper = "
|
|
32632
|
-
const noBorder = "
|
|
32633
|
-
const fullHeight = "
|
|
32634
|
-
const choosePayment$1 = "
|
|
32635
|
-
const topupMoneyLabel = "
|
|
32636
|
-
const topupCharge = "
|
|
32637
|
-
const fullHeightCharge = "
|
|
32638
|
-
const topup$2 = "
|
|
32639
|
-
const banner = "
|
|
32640
|
-
const bannerText = "
|
|
32641
|
-
const bannerMargin = "
|
|
32642
|
-
const amountList = "
|
|
32643
|
-
const paymentType = "
|
|
32644
|
-
const invalidAmount = "
|
|
32645
|
-
const loadingText = "
|
|
32646
|
-
const chargeSelect = "
|
|
32647
|
-
const blueDivider = "
|
|
32648
|
-
const chargeMoney = "
|
|
32649
|
-
const unit = "
|
|
32650
|
-
const chargeInput = "
|
|
32651
|
-
const fullHeightInput = "
|
|
32652
|
-
const inputLeft = "
|
|
32653
|
-
const inputRight = "
|
|
32654
|
-
const noMethod = "
|
|
32655
|
-
const topupMoney = "
|
|
32656
|
-
const moneyLabel = "
|
|
32657
|
-
const btnContainer = "
|
|
32658
|
-
const fullBtnContainer = "
|
|
32659
|
-
const moneyList = "
|
|
32660
|
-
const doneContainer = "
|
|
32661
|
-
const fullHeightLottie = "
|
|
32662
|
-
const ppmnaLottie = "
|
|
32663
|
-
const moreMoney = "
|
|
32664
|
-
const fullHeightPayMethod = "
|
|
32752
|
+
const slideSecondaryEnterActive = "_slideSecondaryEnterActive_iqtvj_7";
|
|
32753
|
+
const slideSecondaryLeaveActive = "_slideSecondaryLeaveActive_iqtvj_10";
|
|
32754
|
+
const slideSecondaryEnterFrom = "_slideSecondaryEnterFrom_iqtvj_13";
|
|
32755
|
+
const wrapperClass$4 = "_wrapperClass_iqtvj_17";
|
|
32756
|
+
const topupWrapper = "_topupWrapper_iqtvj_17";
|
|
32757
|
+
const noBorder = "_noBorder_iqtvj_23";
|
|
32758
|
+
const fullHeight = "_fullHeight_iqtvj_26";
|
|
32759
|
+
const choosePayment$1 = "_choosePayment_iqtvj_30";
|
|
32760
|
+
const topupMoneyLabel = "_topupMoneyLabel_iqtvj_37";
|
|
32761
|
+
const topupCharge = "_topupCharge_iqtvj_45";
|
|
32762
|
+
const fullHeightCharge = "_fullHeightCharge_iqtvj_51";
|
|
32763
|
+
const topup$2 = "_topup_iqtvj_17";
|
|
32764
|
+
const banner = "_banner_iqtvj_63";
|
|
32765
|
+
const bannerText = "_bannerText_iqtvj_66";
|
|
32766
|
+
const bannerMargin = "_bannerMargin_iqtvj_69";
|
|
32767
|
+
const amountList = "_amountList_iqtvj_72";
|
|
32768
|
+
const paymentType = "_paymentType_iqtvj_93";
|
|
32769
|
+
const invalidAmount = "_invalidAmount_iqtvj_97";
|
|
32770
|
+
const loadingText = "_loadingText_iqtvj_102";
|
|
32771
|
+
const chargeSelect = "_chargeSelect_iqtvj_111";
|
|
32772
|
+
const blueDivider = "_blueDivider_iqtvj_116";
|
|
32773
|
+
const chargeMoney = "_chargeMoney_iqtvj_123";
|
|
32774
|
+
const unit = "_unit_iqtvj_129";
|
|
32775
|
+
const chargeInput = "_chargeInput_iqtvj_132";
|
|
32776
|
+
const fullHeightInput = "_fullHeightInput_iqtvj_147";
|
|
32777
|
+
const inputLeft = "_inputLeft_iqtvj_150";
|
|
32778
|
+
const inputRight = "_inputRight_iqtvj_157";
|
|
32779
|
+
const noMethod = "_noMethod_iqtvj_164";
|
|
32780
|
+
const topupMoney = "_topupMoney_iqtvj_37";
|
|
32781
|
+
const moneyLabel = "_moneyLabel_iqtvj_177";
|
|
32782
|
+
const btnContainer = "_btnContainer_iqtvj_181";
|
|
32783
|
+
const fullBtnContainer = "_fullBtnContainer_iqtvj_188";
|
|
32784
|
+
const moneyList = "_moneyList_iqtvj_203";
|
|
32785
|
+
const doneContainer = "_doneContainer_iqtvj_210";
|
|
32786
|
+
const fullHeightLottie = "_fullHeightLottie_iqtvj_217";
|
|
32787
|
+
const ppmnaLottie = "_ppmnaLottie_iqtvj_220";
|
|
32788
|
+
const moreMoney = "_moreMoney_iqtvj_225";
|
|
32789
|
+
const fullHeightPayMethod = "_fullHeightPayMethod_iqtvj_230";
|
|
32665
32790
|
var style0$n = {
|
|
32666
|
-
"ppmna-default-font": "_ppmna-default-
|
|
32791
|
+
"ppmna-default-font": "_ppmna-default-font_iqtvj_1",
|
|
32667
32792
|
slideSecondaryEnterActive,
|
|
32668
32793
|
slideSecondaryLeaveActive,
|
|
32669
32794
|
slideSecondaryEnterFrom,
|
|
@@ -32709,6 +32834,7 @@ const components = {
|
|
|
32709
32834
|
Button,
|
|
32710
32835
|
Divider,
|
|
32711
32836
|
Input,
|
|
32837
|
+
Currency,
|
|
32712
32838
|
ErrorSheet,
|
|
32713
32839
|
Lottie,
|
|
32714
32840
|
BannerInfo,
|
|
@@ -32781,7 +32907,8 @@ const _sfc_main$u = defineComponent({
|
|
|
32781
32907
|
lg: getLanguage(),
|
|
32782
32908
|
images: getImages(),
|
|
32783
32909
|
isFirstLoad: false,
|
|
32784
|
-
show3DSecureSheet: false
|
|
32910
|
+
show3DSecureSheet: false,
|
|
32911
|
+
topupMinAmount: 100
|
|
32785
32912
|
};
|
|
32786
32913
|
},
|
|
32787
32914
|
computed: {
|
|
@@ -32791,7 +32918,7 @@ const _sfc_main$u = defineComponent({
|
|
|
32791
32918
|
},
|
|
32792
32919
|
disablePaymentBtn() {
|
|
32793
32920
|
var _a;
|
|
32794
|
-
return !this.paymentMethodList || this.paymentMethodList.length === 0 || !
|
|
32921
|
+
return !this.paymentMethodList || this.paymentMethodList.length === 0 || !hasAvailableTopupMethod(this.paymentMethodList) || !((_a = this.selectedPaymentMethod) == null ? void 0 : _a.paymentMethodType);
|
|
32795
32922
|
},
|
|
32796
32923
|
getTopHeight() {
|
|
32797
32924
|
const { innerHeightProperty } = useGetHeightProperties();
|
|
@@ -32810,6 +32937,9 @@ const _sfc_main$u = defineComponent({
|
|
|
32810
32937
|
selectedCCType() {
|
|
32811
32938
|
var _a, _b;
|
|
32812
32939
|
return (_b = (_a = this.selectedCardMethod) == null ? void 0 : _a.creditCardInfo) == null ? void 0 : _b.ccType;
|
|
32940
|
+
},
|
|
32941
|
+
minAMountErrorMessage() {
|
|
32942
|
+
return updateLocalisedString(this.lg.topup.minAmount, "{amount}", numberWithCommas(this.topupMinAmount));
|
|
32813
32943
|
}
|
|
32814
32944
|
},
|
|
32815
32945
|
watch: {
|
|
@@ -32825,7 +32955,7 @@ const _sfc_main$u = defineComponent({
|
|
|
32825
32955
|
methods: {
|
|
32826
32956
|
numberWithCommas,
|
|
32827
32957
|
async init() {
|
|
32828
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
32958
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
32829
32959
|
this.loading = true;
|
|
32830
32960
|
this.isFirstLoad = true;
|
|
32831
32961
|
const paymentIDParams = __spreadProps(__spreadValues({}, ((_a = this.topupParams) == null ? void 0 : _a.merchant) && {
|
|
@@ -32861,6 +32991,7 @@ const _sfc_main$u = defineComponent({
|
|
|
32861
32991
|
this.inputMoney = (_i = config == null ? void 0 : config.topupHalfSheetRecommendedAmount[0]) == null ? void 0 : _i.value;
|
|
32862
32992
|
this.topupHalfSheetAmount = (_j = config == null ? void 0 : config.topupHalfSheetAmount[0]) == null ? void 0 : _j.value;
|
|
32863
32993
|
this.topupButtonsAmount = (_k = config == null ? void 0 : config.topupButtonsAmount[0]) == null ? void 0 : _k.value;
|
|
32994
|
+
this.topupMinAmount = (_n = (_m = (_l = config == null ? void 0 : config.topupMinAmount) == null ? void 0 : _l[0]) == null ? void 0 : _m.value) != null ? _n : this.topupMinAmount;
|
|
32864
32995
|
}
|
|
32865
32996
|
this.loading = false;
|
|
32866
32997
|
this.isFirstLoad = false;
|
|
@@ -32871,7 +33002,7 @@ const _sfc_main$u = defineComponent({
|
|
|
32871
33002
|
findFirstValidMethodTopup() {
|
|
32872
33003
|
var _a;
|
|
32873
33004
|
if (((_a = this.paymentMethodList) == null ? void 0 : _a.length) > 0) {
|
|
32874
|
-
this.selectPaymentIndex = findFirstValidMethod(this.paymentMethodList
|
|
33005
|
+
this.selectPaymentIndex = findFirstValidMethod(this.paymentMethodList);
|
|
32875
33006
|
this.selectedPaymentMethod = this.paymentMethodList[this.selectPaymentIndex];
|
|
32876
33007
|
}
|
|
32877
33008
|
},
|
|
@@ -32922,7 +33053,7 @@ const _sfc_main$u = defineComponent({
|
|
|
32922
33053
|
checkValidAmount() {
|
|
32923
33054
|
var _a;
|
|
32924
33055
|
const inputVal = Number(String(this.inputMoney).replace(/,/g, ""));
|
|
32925
|
-
this.minAmountUnmet = inputVal <
|
|
33056
|
+
this.minAmountUnmet = inputVal < this.topupMinAmount;
|
|
32926
33057
|
this.maxAmountExceeded = inputVal > 5e5;
|
|
32927
33058
|
this.balMoney = formatCurrency(this.fixBalMoney + inputVal, 0);
|
|
32928
33059
|
this.totalCashbackBalance = (_a = formatCurrency(this.fixCashbackBalance + inputVal, 0)) != null ? _a : "0";
|
|
@@ -33087,7 +33218,7 @@ const _hoisted_2$6 = { key: 1 };
|
|
|
33087
33218
|
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33088
33219
|
const _component_Header = resolveComponent("Header");
|
|
33089
33220
|
const _component_BannerHeader = resolveComponent("BannerHeader");
|
|
33090
|
-
const
|
|
33221
|
+
const _component_Currency = resolveComponent("Currency");
|
|
33091
33222
|
const _component_ChargeAmountList = resolveComponent("ChargeAmountList");
|
|
33092
33223
|
const _component_Divider = resolveComponent("Divider");
|
|
33093
33224
|
const _component_PaymentType = resolveComponent("PaymentType");
|
|
@@ -33144,7 +33275,8 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33144
33275
|
}, toDisplayString(_ctx.lg.topup.charge), 3)) : createCommentVNode("", true),
|
|
33145
33276
|
!_ctx.isInput ? (openBlock(), createElementBlock("div", {
|
|
33146
33277
|
key: 1,
|
|
33147
|
-
class: normalizeClass(_ctx.$style.chargeMoney)
|
|
33278
|
+
class: normalizeClass(_ctx.$style.chargeMoney),
|
|
33279
|
+
"data-testid": "money-text"
|
|
33148
33280
|
}, [
|
|
33149
33281
|
createTextVNode(toDisplayString(_ctx.numberWithCommas(_ctx.inputMoney)), 1),
|
|
33150
33282
|
createBaseVNode("span", {
|
|
@@ -33158,17 +33290,17 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33158
33290
|
key: 3,
|
|
33159
33291
|
class: normalizeClass([_ctx.$style.chargeInput, _ctx.$style.chargeMoney])
|
|
33160
33292
|
}, [
|
|
33161
|
-
createVNode(
|
|
33293
|
+
createVNode(_component_Currency, {
|
|
33162
33294
|
id: "inputmoney",
|
|
33163
33295
|
modelValue: _ctx.inputMoney,
|
|
33164
33296
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.inputMoney = $event),
|
|
33165
|
-
type: "currency",
|
|
33166
33297
|
"input-mode": "numeric",
|
|
33167
33298
|
"tab-index": 0,
|
|
33168
33299
|
maxlength: "12",
|
|
33169
33300
|
"input-align": "right",
|
|
33170
33301
|
autofocus: false,
|
|
33171
33302
|
class: normalizeClass({ [_ctx.$style.fullHeightInput]: _ctx.isInput }),
|
|
33303
|
+
"data-testid": "input-money",
|
|
33172
33304
|
onInput: _ctx.checkValidAmount,
|
|
33173
33305
|
onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.togglePosition(true)),
|
|
33174
33306
|
onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.togglePosition(false))
|
|
@@ -33183,7 +33315,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33183
33315
|
createBaseVNode("div", {
|
|
33184
33316
|
class: normalizeClass(_ctx.$style.invalidAmount)
|
|
33185
33317
|
}, [
|
|
33186
|
-
_ctx.minAmountUnmet ? (openBlock(), createElementBlock("span", _hoisted_1$d, toDisplayString(_ctx.
|
|
33318
|
+
_ctx.minAmountUnmet ? (openBlock(), createElementBlock("span", _hoisted_1$d, toDisplayString(_ctx.minAMountErrorMessage), 1)) : createCommentVNode("", true),
|
|
33187
33319
|
_ctx.maxAmountExceeded ? (openBlock(), createElementBlock("span", _hoisted_2$6, toDisplayString(_ctx.lg.topup.maxAmount), 1)) : createCommentVNode("", true)
|
|
33188
33320
|
], 2)
|
|
33189
33321
|
], 2),
|
|
@@ -33195,6 +33327,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33195
33327
|
small: true,
|
|
33196
33328
|
class: normalizeClass(_ctx.$style.amountList),
|
|
33197
33329
|
"is-topup": true,
|
|
33330
|
+
"data-testid": "amount-list",
|
|
33198
33331
|
onSetmoney: _ctx.setMoney,
|
|
33199
33332
|
onSelectmoremoney: _ctx.selectMoreMoney,
|
|
33200
33333
|
onSwitchinput: _ctx.switchInput
|
|
@@ -33215,6 +33348,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33215
33348
|
[_ctx.$style.fullHeightPayMethod]: _ctx.isInput
|
|
33216
33349
|
}),
|
|
33217
33350
|
"data-test": "toggle-payment-method",
|
|
33351
|
+
"data-testid": "toggle-payment-method",
|
|
33218
33352
|
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.togglePaymentMethod(true))
|
|
33219
33353
|
}, [
|
|
33220
33354
|
createBaseVNode("span", {
|
|
@@ -33260,9 +33394,10 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33260
33394
|
createVNode(_component_Button, {
|
|
33261
33395
|
type: "primary",
|
|
33262
33396
|
block: "",
|
|
33263
|
-
disabled: _ctx.disablePaymentBtn || _ctx.loading || _ctx.inputMoney == 0,
|
|
33397
|
+
disabled: _ctx.disablePaymentBtn || _ctx.loading || _ctx.inputMoney == 0 || _ctx.minAmountUnmet || _ctx.maxAmountExceeded,
|
|
33264
33398
|
loading: _ctx.loading,
|
|
33265
33399
|
"data-test": "click-topup",
|
|
33400
|
+
"data-testid": "click-topup",
|
|
33266
33401
|
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.clickTopup(false))
|
|
33267
33402
|
}, {
|
|
33268
33403
|
default: withCtx(() => [
|
|
@@ -34741,7 +34876,7 @@ function debug(params) {
|
|
|
34741
34876
|
function execute$5(params) {
|
|
34742
34877
|
var _a;
|
|
34743
34878
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
|
|
34744
|
-
v: "1.
|
|
34879
|
+
v: "1.42.0"
|
|
34745
34880
|
});
|
|
34746
34881
|
}
|
|
34747
34882
|
function useCallBack(props, ctx) {
|
|
@@ -34843,6 +34978,224 @@ function calculateStyles() {
|
|
|
34843
34978
|
containerStyle
|
|
34844
34979
|
};
|
|
34845
34980
|
}
|
|
34981
|
+
function runSyncRule(value2, rule) {
|
|
34982
|
+
if (rule.pattern && !rule.pattern.test(String(value2))) {
|
|
34983
|
+
return false;
|
|
34984
|
+
}
|
|
34985
|
+
return true;
|
|
34986
|
+
}
|
|
34987
|
+
const Email = defineComponent({
|
|
34988
|
+
props: {
|
|
34989
|
+
name: {
|
|
34990
|
+
type: String,
|
|
34991
|
+
required: false,
|
|
34992
|
+
default: ""
|
|
34993
|
+
},
|
|
34994
|
+
border: {
|
|
34995
|
+
type: Boolean,
|
|
34996
|
+
required: false,
|
|
34997
|
+
default: true
|
|
34998
|
+
},
|
|
34999
|
+
disabled: {
|
|
35000
|
+
type: Boolean,
|
|
35001
|
+
required: false,
|
|
35002
|
+
default: false
|
|
35003
|
+
},
|
|
35004
|
+
modelValue: {
|
|
35005
|
+
type: [String, Number],
|
|
35006
|
+
required: false,
|
|
35007
|
+
default: ""
|
|
35008
|
+
},
|
|
35009
|
+
placeholder: {
|
|
35010
|
+
type: String,
|
|
35011
|
+
required: false,
|
|
35012
|
+
default: ""
|
|
35013
|
+
},
|
|
35014
|
+
maxlength: {
|
|
35015
|
+
type: [Number, String],
|
|
35016
|
+
required: false,
|
|
35017
|
+
default: null
|
|
35018
|
+
},
|
|
35019
|
+
errorMessage: {
|
|
35020
|
+
type: String,
|
|
35021
|
+
required: false,
|
|
35022
|
+
default: ""
|
|
35023
|
+
},
|
|
35024
|
+
rules: {
|
|
35025
|
+
type: Array,
|
|
35026
|
+
required: false,
|
|
35027
|
+
default: () => [{}]
|
|
35028
|
+
},
|
|
35029
|
+
validateTrigger: {
|
|
35030
|
+
type: String,
|
|
35031
|
+
required: false,
|
|
35032
|
+
default: "onBlur"
|
|
35033
|
+
},
|
|
35034
|
+
id: {
|
|
35035
|
+
type: String,
|
|
35036
|
+
required: false,
|
|
35037
|
+
default: ""
|
|
35038
|
+
},
|
|
35039
|
+
class: {
|
|
35040
|
+
type: [String, Object],
|
|
35041
|
+
required: false,
|
|
35042
|
+
default: ""
|
|
35043
|
+
}
|
|
35044
|
+
},
|
|
35045
|
+
emits: {
|
|
35046
|
+
"update:modelValue": (_value) => true,
|
|
35047
|
+
blur: (_p) => true,
|
|
35048
|
+
input: (_p) => true,
|
|
35049
|
+
validate: (_p) => true
|
|
35050
|
+
},
|
|
35051
|
+
setup(props, {
|
|
35052
|
+
emit
|
|
35053
|
+
}) {
|
|
35054
|
+
const inputRef = ref();
|
|
35055
|
+
const state = reactive({
|
|
35056
|
+
focused: false,
|
|
35057
|
+
validateFailed: false,
|
|
35058
|
+
validateMessage: "",
|
|
35059
|
+
isComposing: false
|
|
35060
|
+
});
|
|
35061
|
+
const updateValue = (_value) => {
|
|
35062
|
+
var _a;
|
|
35063
|
+
let value2 = isDef(_value) ? String(_value) : "";
|
|
35064
|
+
const {
|
|
35065
|
+
maxlength
|
|
35066
|
+
} = props;
|
|
35067
|
+
if (isDef(maxlength) && value2.length > maxlength) {
|
|
35068
|
+
value2 = value2.slice(0, +maxlength);
|
|
35069
|
+
}
|
|
35070
|
+
if ((inputRef == null ? void 0 : inputRef.value) && value2 !== ((_a = inputRef == null ? void 0 : inputRef.value) == null ? void 0 : _a.value)) {
|
|
35071
|
+
inputRef.value.value = value2;
|
|
35072
|
+
}
|
|
35073
|
+
if (value2 !== props.modelValue) {
|
|
35074
|
+
emit("update:modelValue", value2);
|
|
35075
|
+
}
|
|
35076
|
+
};
|
|
35077
|
+
const onInput = (event) => {
|
|
35078
|
+
const target = event.target;
|
|
35079
|
+
if (!state.isComposing) {
|
|
35080
|
+
updateValue(target.value);
|
|
35081
|
+
emit("input", event);
|
|
35082
|
+
}
|
|
35083
|
+
};
|
|
35084
|
+
const onBlur = (event) => {
|
|
35085
|
+
updateValue(props.modelValue);
|
|
35086
|
+
emit("blur", event);
|
|
35087
|
+
props.validateTrigger === "onBlur" && validateWithTrigger("onBlur");
|
|
35088
|
+
};
|
|
35089
|
+
const onCompositionStart2 = () => {
|
|
35090
|
+
state.isComposing = true;
|
|
35091
|
+
};
|
|
35092
|
+
const onCompositionEnd2 = (event) => {
|
|
35093
|
+
if (state.isComposing) {
|
|
35094
|
+
state.isComposing = false;
|
|
35095
|
+
trigger$1(event.target, "input");
|
|
35096
|
+
}
|
|
35097
|
+
};
|
|
35098
|
+
const resetValidation = () => {
|
|
35099
|
+
if (state.validateFailed) {
|
|
35100
|
+
state.validateFailed = false;
|
|
35101
|
+
state.validateMessage = "";
|
|
35102
|
+
}
|
|
35103
|
+
};
|
|
35104
|
+
const validate2 = (rules = props.rules) => new Promise((resolve2) => {
|
|
35105
|
+
if (!rules) {
|
|
35106
|
+
resolve2(null);
|
|
35107
|
+
}
|
|
35108
|
+
resetValidation();
|
|
35109
|
+
void runRules(rules).then(() => {
|
|
35110
|
+
if (state.validateFailed) {
|
|
35111
|
+
emit("validate", false);
|
|
35112
|
+
resolve2({
|
|
35113
|
+
name: props.name,
|
|
35114
|
+
message: state.validateMessage
|
|
35115
|
+
});
|
|
35116
|
+
} else {
|
|
35117
|
+
emit("validate", true);
|
|
35118
|
+
resolve2(null);
|
|
35119
|
+
}
|
|
35120
|
+
});
|
|
35121
|
+
});
|
|
35122
|
+
const validateWithTrigger = (trigger2) => {
|
|
35123
|
+
if (props.rules) {
|
|
35124
|
+
const defaultTrigger = props.validateTrigger === trigger2;
|
|
35125
|
+
const rules = props.rules.filter(() => {
|
|
35126
|
+
return defaultTrigger;
|
|
35127
|
+
});
|
|
35128
|
+
void validate2(rules);
|
|
35129
|
+
}
|
|
35130
|
+
};
|
|
35131
|
+
const runRules = (rules) => rules.reduce((promise, rule) => promise.then(() => {
|
|
35132
|
+
if (state.validateFailed) {
|
|
35133
|
+
return;
|
|
35134
|
+
}
|
|
35135
|
+
let value2 = String(props.modelValue);
|
|
35136
|
+
if (!runSyncRule(value2, rule) && value2) {
|
|
35137
|
+
state.validateFailed = true;
|
|
35138
|
+
state.validateMessage = getRuleMessage(value2, rule);
|
|
35139
|
+
return;
|
|
35140
|
+
}
|
|
35141
|
+
}), Promise.resolve());
|
|
35142
|
+
const renderMessage = () => {
|
|
35143
|
+
const message = props.errorMessage || state.validateMessage;
|
|
35144
|
+
if (message) {
|
|
35145
|
+
return createVNode("div", {
|
|
35146
|
+
"class": [styles$1.errorMessage]
|
|
35147
|
+
}, [message]);
|
|
35148
|
+
}
|
|
35149
|
+
};
|
|
35150
|
+
const getRuleMessage = (value2, rule) => {
|
|
35151
|
+
const {
|
|
35152
|
+
message
|
|
35153
|
+
} = rule;
|
|
35154
|
+
if (isFunction$1(message)) {
|
|
35155
|
+
return message(value2, rule);
|
|
35156
|
+
}
|
|
35157
|
+
return message;
|
|
35158
|
+
};
|
|
35159
|
+
const showError = computed(() => {
|
|
35160
|
+
if (state.validateFailed) {
|
|
35161
|
+
return true;
|
|
35162
|
+
}
|
|
35163
|
+
return false;
|
|
35164
|
+
});
|
|
35165
|
+
const renderInput = () => {
|
|
35166
|
+
return createVNode("input", mergeProps(props.id && {
|
|
35167
|
+
id: props.id
|
|
35168
|
+
}, {
|
|
35169
|
+
"ref": inputRef,
|
|
35170
|
+
"class": [styles$1.inputInner],
|
|
35171
|
+
"disabled": props.disabled,
|
|
35172
|
+
"value": props.modelValue,
|
|
35173
|
+
"placeholder": props.placeholder,
|
|
35174
|
+
"onInput": onInput,
|
|
35175
|
+
"onChange": onCompositionEnd2,
|
|
35176
|
+
"onBlur": onBlur,
|
|
35177
|
+
"type": "email",
|
|
35178
|
+
"inputmode": "email",
|
|
35179
|
+
"onCompositionend": onCompositionEnd2,
|
|
35180
|
+
"onCompositionstart": onCompositionStart2
|
|
35181
|
+
}), null);
|
|
35182
|
+
};
|
|
35183
|
+
watch(() => props.modelValue, (value2) => {
|
|
35184
|
+
updateValue(value2);
|
|
35185
|
+
resetValidation();
|
|
35186
|
+
validateWithTrigger("onChange");
|
|
35187
|
+
});
|
|
35188
|
+
return () => createVNode("div", {
|
|
35189
|
+
"class": [styles$1.ppmnaInput, {
|
|
35190
|
+
[styles$1.border]: props.border,
|
|
35191
|
+
[styles$1.disabled]: props.disabled,
|
|
35192
|
+
[styles$1.error]: showError.value
|
|
35193
|
+
}, props.class]
|
|
35194
|
+
}, [createVNode("div", {
|
|
35195
|
+
"class": [styles$1.body]
|
|
35196
|
+
}, [renderInput()]), renderMessage()]);
|
|
35197
|
+
}
|
|
35198
|
+
});
|
|
34846
35199
|
const EmailRegx = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
34847
35200
|
const content$2 = "_content_1vmy1_1";
|
|
34848
35201
|
const icon$2 = "_icon_1vmy1_12";
|
|
@@ -35349,8 +35702,8 @@ const _sfc_main$l = defineComponent({
|
|
|
35349
35702
|
components: {
|
|
35350
35703
|
ActionSheet,
|
|
35351
35704
|
Button,
|
|
35352
|
-
|
|
35353
|
-
|
|
35705
|
+
SentEmailSheet,
|
|
35706
|
+
Email
|
|
35354
35707
|
},
|
|
35355
35708
|
props: {
|
|
35356
35709
|
isVisible: {
|
|
@@ -35463,7 +35816,7 @@ const _hoisted_5 = /* @__PURE__ */ createTextVNode(" \u8A8D\u8A3C\u30E1\u30FC\u3
|
|
|
35463
35816
|
const _hoisted_6 = /* @__PURE__ */ createTextVNode(" \u524D\u306E\u753B\u9762\u306B\u623B\u308B ");
|
|
35464
35817
|
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
35465
35818
|
var _a;
|
|
35466
|
-
const
|
|
35819
|
+
const _component_Email = resolveComponent("Email");
|
|
35467
35820
|
const _component_Button = resolveComponent("Button");
|
|
35468
35821
|
const _component_ActionSheet = resolveComponent("ActionSheet");
|
|
35469
35822
|
const _component_sent_email_sheet = resolveComponent("sent-email-sheet");
|
|
@@ -35488,13 +35841,12 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35488
35841
|
createBaseVNode("span", {
|
|
35489
35842
|
class: normalizeClass(_ctx.$style.inputLabel)
|
|
35490
35843
|
}, "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9", 2),
|
|
35491
|
-
createVNode(
|
|
35844
|
+
createVNode(_component_Email, {
|
|
35492
35845
|
ref: "inputRef",
|
|
35493
35846
|
modelValue: _ctx.state.email,
|
|
35494
35847
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.state.email = $event),
|
|
35495
35848
|
placeholder: "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B",
|
|
35496
35849
|
"validate-trigger": "onChange",
|
|
35497
|
-
type: "email",
|
|
35498
35850
|
rules: [
|
|
35499
35851
|
{
|
|
35500
35852
|
pattern: _ctx.EmailRegx,
|
|
@@ -36096,7 +36448,7 @@ const topup = {
|
|
|
36096
36448
|
title: "Charge",
|
|
36097
36449
|
balMoney: "Balance after charging",
|
|
36098
36450
|
charge: "Select charge amount",
|
|
36099
|
-
minAmount: "You can charge from
|
|
36451
|
+
minAmount: "You can charge from {amount} yen",
|
|
36100
36452
|
maxAmount: "The charge limit has been exceeded",
|
|
36101
36453
|
moneyLabel: "Charging method",
|
|
36102
36454
|
noMethod: "There is no charge method available \nPlease add from Manage payment methods ",
|