@paypay/mini-app-js-sdk 1.37.0 → 1.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jsbridge-core/lib/reconstructParams.d.ts +4 -1
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +952 -770
- package/dist/model/bridge/checkPaymentMethod.d.ts +1 -1
- package/dist/model/bridge/closeApp.d.ts +1 -1
- package/dist/model/bridge/copyToClipboard.d.ts +1 -1
- package/dist/model/bridge/getSessionData.d.ts +1 -1
- package/dist/model/bridge/getStorageData.d.ts +1 -1
- package/dist/model/bridge/getUserLocation.d.ts +1 -1
- package/dist/model/bridge/openApp.d.ts +1 -1
- package/dist/model/bridge/openMiniApp.d.ts +1 -1
- package/dist/model/bridge/openWebview.d.ts +1 -1
- package/dist/model/bridge/request.d.ts +1 -1
- package/dist/model/bridge/requestInternal.d.ts +1 -1
- package/dist/model/bridge/scanCode.d.ts +1 -1
- package/dist/model/bridge/setSessionData.d.ts +1 -1
- package/dist/model/bridge/setStorageData.d.ts +1 -1
- package/dist/model/bridge/setTitle.d.ts +1 -1
- package/dist/model/bridge/share.d.ts +1 -1
- package/dist/model/bridge/showAlert.d.ts +1 -1
- package/dist/model/bridge/showErrorSheet.d.ts +1 -1
- package/dist/model/bridge/takePhoto.d.ts +1 -1
- package/dist/package/action-sheet/index.d.ts +51 -27
- package/dist/package/banner-header/index.vue.d.ts +29 -14
- package/dist/package/button/LoadingIndicator.vue.d.ts +1 -1
- package/dist/package/button/index.d.ts +42 -26
- package/dist/package/charge-amount-list/index.vue.d.ts +38 -19
- package/dist/package/charge-amount-more-list/index.vue.d.ts +7 -5
- package/dist/package/date-button/index.vue.d.ts +7 -5
- package/dist/package/desktop-header/index.d.ts +12 -7
- package/dist/package/divider/index.d.ts +10 -7
- package/dist/package/header/index.d.ts +42 -19
- package/dist/package/input/index.d.ts +124 -53
- package/dist/package/lottie/index.d.ts +35 -16
- package/dist/package/overlay/index.d.ts +20 -13
- package/dist/package/payment-method/Bank.vue.d.ts +11 -7
- package/dist/package/payment-method/CreditCard.vue.d.ts +11 -7
- package/dist/package/payment-method/PayLaterCC.vue.d.ts +6 -5
- package/dist/package/payment-method/SbidBank.vue.d.ts +6 -5
- package/dist/package/payment-method/Wallet.vue.d.ts +6 -5
- package/dist/package/payment-method/index.d.ts +7 -5
- package/dist/package/payment-method-list/index.vue.d.ts +17 -9
- package/dist/package/payment-type/Bank.vue.d.ts +16 -9
- package/dist/package/payment-type/CreditCard.vue.d.ts +11 -7
- package/dist/package/payment-type/PayLaterCC.vue.d.ts +11 -7
- package/dist/package/payment-type/Sbid.vue.d.ts +11 -7
- package/dist/package/payment-type/Wallet.vue.d.ts +11 -7
- package/dist/package/payment-type/index.d.ts +12 -7
- package/dist/package/select-list/Components.d.ts +50 -25
- package/dist/package/select-list/index.d.ts +49 -22
- package/dist/package/skeleton-loader/SkeletonLoader.vue.d.ts +7 -5
- package/dist/package/switch/index.d.ts +11 -10
- package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +6 -5
- package/dist/types.d.ts +8 -3
- package/dist/utils/api.d.ts +3 -3
- package/dist/utils/fetch.d.ts +5 -1
- package/dist/views/email-registration/App.vue.d.ts +13 -11
- package/dist/views/email-registration/parts/AuthMailNotFoundSheet.vue.d.ts +11 -8
- package/dist/views/email-registration/parts/RegisterEmail.vue.d.ts +17 -11
- package/dist/views/email-registration/parts/SentEmailAuthDoneSheet.vue.d.ts +6 -5
- package/dist/views/email-registration/parts/SentEmailSheet.vue.d.ts +10 -7
- package/dist/views/error-sheet/Index.vue.d.ts +33 -17
- package/dist/views/get-bank-info/GetBankInfoWrapper.vue.d.ts +12 -8
- package/dist/views/get-bank-info/components/GetBankInfoPopup.vue.d.ts +17 -9
- package/dist/views/get-bank-info/components/PayoutMethodList.vue.d.ts +12 -7
- package/dist/views/get-bank-info/components/PayoutMethodView.vue.d.ts +6 -5
- package/dist/views/get-user-address/App.vue.d.ts +27 -13
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +44 -19
- package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +12 -7
- package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +34 -16
- package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +15 -8
- package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +36 -19
- package/dist/views/get-user-address/Sheet/App.vue.d.ts +22 -14
- package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +22 -11
- package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +12 -7
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +17 -9
- package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +6 -5
- package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +12 -7
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +12 -7
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +12 -7
- package/dist/views/input-address/App.vue.d.ts +14 -9
- package/dist/views/input-address/hook/app.d.ts +2 -2
- package/dist/views/make-payment/App.vue.d.ts +21 -13
- package/dist/views/make-payment/Main.vue.d.ts +27 -17
- package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +7 -5
- package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +10 -6
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +7 -5
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +6 -5
- package/dist/views/make-payment/Sheets/CashBackDetails/FloatingButton.vue.d.ts +12 -7
- package/dist/views/make-payment/Sheets/CashBackDetails/hooks.d.ts +1 -1
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +11 -8
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +17 -9
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +74 -33
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +22 -12
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +79 -59
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +22 -11
- package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +1 -1
- package/dist/views/make-payment/Sheets/Consult.vue.d.ts +7 -5
- package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +12 -7
- package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +37 -17
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +76 -33
- package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +12 -7
- package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +41 -20
- package/dist/views/make-payment/hooks/app-hooks.d.ts +18 -18
- package/dist/views/open-app/App.vue.d.ts +10 -8
- package/dist/views/open-map/App.vue.d.ts +11 -9
- package/dist/views/register-user-info/RegisterUserInfoCancelConfirmationSheet.vue.d.ts +1 -1
- package/dist/views/register-user-info/RegisterUserInfoCategoryView.vue.d.ts +6 -5
- package/dist/views/register-user-info/RegisterUserInfoDataPointGroup.vue.d.ts +6 -5
- package/dist/views/register-user-info/RegisterUserInfoErrorSheet.vue.d.ts +1 -1
- package/dist/views/register-user-info/RegisterUserInfoFooterView.vue.d.ts +1 -1
- package/dist/views/register-user-info/RegisterUserInfoKycInfoSheet.vue.d.ts +1 -1
- package/dist/views/register-user-info/RegisterUserInfoMailInfoSheet.vue.d.ts +1 -1
- package/dist/views/register-user-info/RegisterUserInfoProgressView.vue.d.ts +1 -1
- package/dist/views/register-user-info/RegisterUserInfoRootView.vue.d.ts +6 -5
- package/dist/views/register-user-info/RegisterUserInfoUneditableDataView.vue.d.ts +6 -5
- package/dist/views/register-user-info/input/RegisterUserInfoEmailInput.vue.d.ts +6 -5
- package/dist/views/register-user-info/input/RegisterUserInfoSelectionButtonInput.vue.d.ts +6 -5
- package/dist/views/register-user-info/input/RegisterUserInfoSimpleInput.vue.d.ts +6 -5
- package/dist/views/show-alert/App.vue.d.ts +18 -12
- package/dist/views/show-update-warning/App.vue.d.ts +7 -7
- package/dist/views/smart-button/App.vue.d.ts +39 -23
- package/dist/views/take-photo/App.vue.d.ts +10 -8
- package/dist/views/three-d-secure-sheet/ThreeDSecureSheet.vue.d.ts +10 -7
- package/dist/views/topup/App.vue.d.ts +13 -11
- package/dist/views/topup/BannerInfo.vue.d.ts +11 -6
- package/dist/views/topup/CashbackInfo.vue.d.ts +25 -12
- package/dist/views/topup/TopupCompletion.vue.d.ts +9 -6
- package/package.json +4 -6
- package/dist/views/register-user-info/RegisterUserInfoFormView.vue.d.ts +0 -11
|
@@ -65,8 +65,8 @@ function normalizeNativeResponseData(data2) {
|
|
|
65
65
|
}
|
|
66
66
|
class JsBridge {
|
|
67
67
|
constructor(global2) {
|
|
68
|
-
this.version = "1.
|
|
69
|
-
this.revision = "
|
|
68
|
+
this.version = "1.38.0";
|
|
69
|
+
this.revision = "8081651";
|
|
70
70
|
this.messageHandlers = new Map();
|
|
71
71
|
this.responseCallbacks = new Map();
|
|
72
72
|
this.global = global2;
|
|
@@ -1728,7 +1728,7 @@ const opaUrl = () => {
|
|
|
1728
1728
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
1729
1729
|
let headers = new Headers(__spreadValues({
|
|
1730
1730
|
"Content-Type": "application/json",
|
|
1731
|
-
"Client-Version": "1.
|
|
1731
|
+
"Client-Version": "1.38.0",
|
|
1732
1732
|
"Client-OS-Type": getRuntime()
|
|
1733
1733
|
}, customHeaders));
|
|
1734
1734
|
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") {
|
|
@@ -1784,7 +1784,7 @@ function ppFetchPrepare(options) {
|
|
|
1784
1784
|
async function ppFetch(options) {
|
|
1785
1785
|
const fetchParams = ppFetchPrepare(options);
|
|
1786
1786
|
if (!fetchParams) {
|
|
1787
|
-
const msg = "PayPay Mini App JS SDK is not
|
|
1787
|
+
const msg = "PayPay Mini App JS SDK is not authorized";
|
|
1788
1788
|
console.warn(msg);
|
|
1789
1789
|
return Promise.resolve({
|
|
1790
1790
|
error: {
|
|
@@ -1815,10 +1815,10 @@ async function ppFetch2(options) {
|
|
|
1815
1815
|
var _a, _b, _c, _d, _e;
|
|
1816
1816
|
const fetchParams = ppFetchPrepare(options);
|
|
1817
1817
|
if (!fetchParams) {
|
|
1818
|
-
const msg = "PayPay Mini App JS SDK is not
|
|
1818
|
+
const msg = "PayPay Mini App JS SDK is not authorized";
|
|
1819
1819
|
console.warn(msg);
|
|
1820
1820
|
return Promise.resolve({
|
|
1821
|
-
ppFetchResult: "
|
|
1821
|
+
ppFetchResult: "notAuthorized",
|
|
1822
1822
|
body: null
|
|
1823
1823
|
});
|
|
1824
1824
|
}
|
|
@@ -1827,9 +1827,15 @@ async function ppFetch2(options) {
|
|
|
1827
1827
|
const response = await fetch(requestInfo, requestInit);
|
|
1828
1828
|
const res = await response.json();
|
|
1829
1829
|
const tokenResponse = res;
|
|
1830
|
-
if (tokenResponse.error === "invalid_token"
|
|
1831
|
-
if (await refreshToken()) {
|
|
1830
|
+
if ((tokenResponse == null ? void 0 : tokenResponse.error) === "invalid_token") {
|
|
1831
|
+
if (!options.suppressRefresh && await refreshToken()) {
|
|
1832
1832
|
return ppFetch2(__spreadProps(__spreadValues({}, options), { suppressRefresh: true }));
|
|
1833
|
+
} else {
|
|
1834
|
+
return {
|
|
1835
|
+
ppFetchResult: "tokenExpired",
|
|
1836
|
+
statusCode: response.status,
|
|
1837
|
+
body: null
|
|
1838
|
+
};
|
|
1833
1839
|
}
|
|
1834
1840
|
}
|
|
1835
1841
|
const opaResponse = res;
|
|
@@ -1946,24 +1952,26 @@ function getAppConfig() {
|
|
|
1946
1952
|
}
|
|
1947
1953
|
function reconstructParams(params) {
|
|
1948
1954
|
if (!params)
|
|
1949
|
-
return;
|
|
1950
|
-
const { success: success2, complete, fail } =
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1955
|
+
return params;
|
|
1956
|
+
const _a = params, { success: success2, complete, fail } = _a, data2 = __objRest(_a, ["success", "complete", "fail"]);
|
|
1957
|
+
return __spreadProps(__spreadValues({}, data2), {
|
|
1958
|
+
success: (result2) => {
|
|
1959
|
+
setTimeout(() => {
|
|
1960
|
+
success2 == null ? void 0 : success2(result2);
|
|
1961
|
+
}, 0);
|
|
1962
|
+
setTimeout(() => {
|
|
1963
|
+
complete == null ? void 0 : complete();
|
|
1964
|
+
}, 0);
|
|
1965
|
+
},
|
|
1966
|
+
fail: (result2) => {
|
|
1967
|
+
setTimeout(() => {
|
|
1968
|
+
fail == null ? void 0 : fail(result2);
|
|
1969
|
+
}, 0);
|
|
1970
|
+
setTimeout(() => {
|
|
1971
|
+
complete == null ? void 0 : complete();
|
|
1972
|
+
}, 0);
|
|
1973
|
+
}
|
|
1974
|
+
});
|
|
1967
1975
|
}
|
|
1968
1976
|
var MiniAppStatusType;
|
|
1969
1977
|
(function(MiniAppStatusType2) {
|
|
@@ -1976,8 +1984,8 @@ var MiniAppStatusType;
|
|
|
1976
1984
|
MiniAppStatusType2["connected"] = "CONNECTED";
|
|
1977
1985
|
})(MiniAppStatusType || (MiniAppStatusType = {}));
|
|
1978
1986
|
function getUAID(params) {
|
|
1979
|
-
reconstructParams(params);
|
|
1980
|
-
execute$f(
|
|
1987
|
+
const newParams = reconstructParams(params);
|
|
1988
|
+
execute$f(newParams).catch(() => {
|
|
1981
1989
|
});
|
|
1982
1990
|
}
|
|
1983
1991
|
async function execute$f(params) {
|
|
@@ -1993,8 +2001,8 @@ async function execute$f(params) {
|
|
|
1993
2001
|
(userId == null ? void 0 : userId.length) ? (_c = params == null ? void 0 : params.success) == null ? void 0 : _c.call(params, { jws: userId }) : (_d = params == null ? void 0 : params.fail) == null ? void 0 : _d.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
1994
2002
|
}
|
|
1995
2003
|
function checkAccessToken(params) {
|
|
1996
|
-
reconstructParams(params);
|
|
1997
|
-
execute$e(
|
|
2004
|
+
const newParams = reconstructParams(params);
|
|
2005
|
+
execute$e(newParams);
|
|
1998
2006
|
}
|
|
1999
2007
|
function execute$e(params) {
|
|
2000
2008
|
var _a, _b;
|
|
@@ -2020,8 +2028,8 @@ function execute$e(params) {
|
|
|
2020
2028
|
}
|
|
2021
2029
|
}
|
|
2022
2030
|
async function getUserProfile(params) {
|
|
2023
|
-
reconstructParams(params);
|
|
2024
|
-
await execute$d(
|
|
2031
|
+
const newParams = reconstructParams(params);
|
|
2032
|
+
await execute$d(newParams);
|
|
2025
2033
|
}
|
|
2026
2034
|
async function execute$d(params) {
|
|
2027
2035
|
var _a, _b;
|
|
@@ -2149,7 +2157,7 @@ function looseIndexOf(arr, val2) {
|
|
|
2149
2157
|
return arr.findIndex((item) => looseEqual(item, val2));
|
|
2150
2158
|
}
|
|
2151
2159
|
const toDisplayString = (val2) => {
|
|
2152
|
-
return val2 == null ? "" : isArray(val2) || isObject(val2) && (val2.toString === objectToString || !isFunction(val2.toString)) ? JSON.stringify(val2, replacer, 2) : String(val2);
|
|
2160
|
+
return isString(val2) ? val2 : val2 == null ? "" : isArray(val2) || isObject(val2) && (val2.toString === objectToString || !isFunction(val2.toString)) ? JSON.stringify(val2, replacer, 2) : String(val2);
|
|
2153
2161
|
};
|
|
2154
2162
|
const replacer = (_key, val2) => {
|
|
2155
2163
|
if (val2 && val2.__v_isRef) {
|
|
@@ -2205,7 +2213,7 @@ const toRawType = (value2) => {
|
|
|
2205
2213
|
};
|
|
2206
2214
|
const isPlainObject$1 = (val2) => toTypeString(val2) === "[object Object]";
|
|
2207
2215
|
const isIntegerKey = (key2) => isString(key2) && key2 !== "NaN" && key2[0] !== "-" && "" + parseInt(key2, 10) === key2;
|
|
2208
|
-
const isReservedProp = /* @__PURE__ */ makeMap(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");
|
|
2216
|
+
const isReservedProp = /* @__PURE__ */ makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");
|
|
2209
2217
|
const cacheStringFunction = (fn) => {
|
|
2210
2218
|
const cache = Object.create(null);
|
|
2211
2219
|
return (str) => {
|
|
@@ -2243,7 +2251,6 @@ const getGlobalThis = () => {
|
|
|
2243
2251
|
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
2244
2252
|
};
|
|
2245
2253
|
let activeEffectScope;
|
|
2246
|
-
const effectScopeStack = [];
|
|
2247
2254
|
class EffectScope {
|
|
2248
2255
|
constructor(detached = false) {
|
|
2249
2256
|
this.active = true;
|
|
@@ -2256,32 +2263,34 @@ class EffectScope {
|
|
|
2256
2263
|
}
|
|
2257
2264
|
run(fn) {
|
|
2258
2265
|
if (this.active) {
|
|
2266
|
+
const currentEffectScope = activeEffectScope;
|
|
2259
2267
|
try {
|
|
2260
|
-
this
|
|
2268
|
+
activeEffectScope = this;
|
|
2261
2269
|
return fn();
|
|
2262
2270
|
} finally {
|
|
2263
|
-
|
|
2271
|
+
activeEffectScope = currentEffectScope;
|
|
2264
2272
|
}
|
|
2265
2273
|
}
|
|
2266
2274
|
}
|
|
2267
2275
|
on() {
|
|
2268
|
-
|
|
2269
|
-
effectScopeStack.push(this);
|
|
2270
|
-
activeEffectScope = this;
|
|
2271
|
-
}
|
|
2276
|
+
activeEffectScope = this;
|
|
2272
2277
|
}
|
|
2273
2278
|
off() {
|
|
2274
|
-
|
|
2275
|
-
effectScopeStack.pop();
|
|
2276
|
-
activeEffectScope = effectScopeStack[effectScopeStack.length - 1];
|
|
2277
|
-
}
|
|
2279
|
+
activeEffectScope = this.parent;
|
|
2278
2280
|
}
|
|
2279
2281
|
stop(fromParent) {
|
|
2280
2282
|
if (this.active) {
|
|
2281
|
-
|
|
2282
|
-
this.
|
|
2283
|
+
let i2, l;
|
|
2284
|
+
for (i2 = 0, l = this.effects.length; i2 < l; i2++) {
|
|
2285
|
+
this.effects[i2].stop();
|
|
2286
|
+
}
|
|
2287
|
+
for (i2 = 0, l = this.cleanups.length; i2 < l; i2++) {
|
|
2288
|
+
this.cleanups[i2]();
|
|
2289
|
+
}
|
|
2283
2290
|
if (this.scopes) {
|
|
2284
|
-
this.scopes.
|
|
2291
|
+
for (i2 = 0, l = this.scopes.length; i2 < l; i2++) {
|
|
2292
|
+
this.scopes[i2].stop(true);
|
|
2293
|
+
}
|
|
2285
2294
|
}
|
|
2286
2295
|
if (this.parent && !fromParent) {
|
|
2287
2296
|
const last = this.parent.scopes.pop();
|
|
@@ -2297,8 +2306,7 @@ class EffectScope {
|
|
|
2297
2306
|
function effectScope(detached) {
|
|
2298
2307
|
return new EffectScope(detached);
|
|
2299
2308
|
}
|
|
2300
|
-
function recordEffectScope(effect2, scope) {
|
|
2301
|
-
scope = scope || activeEffectScope;
|
|
2309
|
+
function recordEffectScope(effect2, scope = activeEffectScope) {
|
|
2302
2310
|
if (scope && scope.active) {
|
|
2303
2311
|
scope.effects.push(effect2);
|
|
2304
2312
|
}
|
|
@@ -2339,7 +2347,6 @@ const targetMap = new WeakMap();
|
|
|
2339
2347
|
let effectTrackDepth = 0;
|
|
2340
2348
|
let trackOpBit = 1;
|
|
2341
2349
|
const maxMarkerBits = 30;
|
|
2342
|
-
const effectStack = [];
|
|
2343
2350
|
let activeEffect;
|
|
2344
2351
|
const ITERATE_KEY = Symbol("");
|
|
2345
2352
|
const MAP_KEY_ITERATE_KEY = Symbol("");
|
|
@@ -2349,37 +2356,49 @@ class ReactiveEffect {
|
|
|
2349
2356
|
this.scheduler = scheduler;
|
|
2350
2357
|
this.active = true;
|
|
2351
2358
|
this.deps = [];
|
|
2359
|
+
this.parent = void 0;
|
|
2352
2360
|
recordEffectScope(this, scope);
|
|
2353
2361
|
}
|
|
2354
2362
|
run() {
|
|
2355
2363
|
if (!this.active) {
|
|
2356
2364
|
return this.fn();
|
|
2357
2365
|
}
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2366
|
+
let parent2 = activeEffect;
|
|
2367
|
+
let lastShouldTrack = shouldTrack;
|
|
2368
|
+
while (parent2) {
|
|
2369
|
+
if (parent2 === this) {
|
|
2370
|
+
return;
|
|
2371
|
+
}
|
|
2372
|
+
parent2 = parent2.parent;
|
|
2373
|
+
}
|
|
2374
|
+
try {
|
|
2375
|
+
this.parent = activeEffect;
|
|
2376
|
+
activeEffect = this;
|
|
2377
|
+
shouldTrack = true;
|
|
2378
|
+
trackOpBit = 1 << ++effectTrackDepth;
|
|
2379
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
2380
|
+
initDepMarkers(this);
|
|
2381
|
+
} else {
|
|
2382
|
+
cleanupEffect(this);
|
|
2383
|
+
}
|
|
2384
|
+
return this.fn();
|
|
2385
|
+
} finally {
|
|
2386
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
2387
|
+
finalizeDepMarkers(this);
|
|
2388
|
+
}
|
|
2389
|
+
trackOpBit = 1 << --effectTrackDepth;
|
|
2390
|
+
activeEffect = this.parent;
|
|
2391
|
+
shouldTrack = lastShouldTrack;
|
|
2392
|
+
this.parent = void 0;
|
|
2393
|
+
if (this.deferStop) {
|
|
2394
|
+
this.stop();
|
|
2378
2395
|
}
|
|
2379
2396
|
}
|
|
2380
2397
|
}
|
|
2381
2398
|
stop() {
|
|
2382
|
-
if (this
|
|
2399
|
+
if (activeEffect === this) {
|
|
2400
|
+
this.deferStop = true;
|
|
2401
|
+
} else if (this.active) {
|
|
2383
2402
|
cleanupEffect(this);
|
|
2384
2403
|
if (this.onStop) {
|
|
2385
2404
|
this.onStop();
|
|
@@ -2403,30 +2422,22 @@ function pauseTracking() {
|
|
|
2403
2422
|
trackStack.push(shouldTrack);
|
|
2404
2423
|
shouldTrack = false;
|
|
2405
2424
|
}
|
|
2406
|
-
function enableTracking() {
|
|
2407
|
-
trackStack.push(shouldTrack);
|
|
2408
|
-
shouldTrack = true;
|
|
2409
|
-
}
|
|
2410
2425
|
function resetTracking() {
|
|
2411
2426
|
const last = trackStack.pop();
|
|
2412
2427
|
shouldTrack = last === void 0 ? true : last;
|
|
2413
2428
|
}
|
|
2414
2429
|
function track(target, type, key2) {
|
|
2415
|
-
if (
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2430
|
+
if (shouldTrack && activeEffect) {
|
|
2431
|
+
let depsMap = targetMap.get(target);
|
|
2432
|
+
if (!depsMap) {
|
|
2433
|
+
targetMap.set(target, depsMap = new Map());
|
|
2434
|
+
}
|
|
2435
|
+
let dep = depsMap.get(key2);
|
|
2436
|
+
if (!dep) {
|
|
2437
|
+
depsMap.set(key2, dep = createDep());
|
|
2438
|
+
}
|
|
2439
|
+
trackEffects(dep);
|
|
2425
2440
|
}
|
|
2426
|
-
trackEffects(dep);
|
|
2427
|
-
}
|
|
2428
|
-
function isTracking() {
|
|
2429
|
-
return shouldTrack && activeEffect !== void 0;
|
|
2430
2441
|
}
|
|
2431
2442
|
function trackEffects(dep, debuggerEventExtraInfo) {
|
|
2432
2443
|
let shouldTrack2 = false;
|
|
@@ -2517,7 +2528,7 @@ function triggerEffects(dep, debuggerEventExtraInfo) {
|
|
|
2517
2528
|
}
|
|
2518
2529
|
}
|
|
2519
2530
|
const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
|
|
2520
|
-
const builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol).map((key2) => Symbol[key2]).filter(isSymbol));
|
|
2531
|
+
const builtInSymbols = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).map((key2) => Symbol[key2]).filter(isSymbol));
|
|
2521
2532
|
const get = /* @__PURE__ */ createGetter();
|
|
2522
2533
|
const shallowGet = /* @__PURE__ */ createGetter(false, true);
|
|
2523
2534
|
const readonlyGet = /* @__PURE__ */ createGetter(true);
|
|
@@ -2554,6 +2565,8 @@ function createGetter(isReadonly2 = false, shallow = false) {
|
|
|
2554
2565
|
return !isReadonly2;
|
|
2555
2566
|
} else if (key2 === "__v_isReadonly") {
|
|
2556
2567
|
return isReadonly2;
|
|
2568
|
+
} else if (key2 === "__v_isShallow") {
|
|
2569
|
+
return shallow;
|
|
2557
2570
|
} else if (key2 === "__v_raw" && receiver2 === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {
|
|
2558
2571
|
return target;
|
|
2559
2572
|
}
|
|
@@ -2586,9 +2599,14 @@ const shallowSet = /* @__PURE__ */ createSetter(true);
|
|
|
2586
2599
|
function createSetter(shallow = false) {
|
|
2587
2600
|
return function set2(target, key2, value2, receiver2) {
|
|
2588
2601
|
let oldValue = target[key2];
|
|
2602
|
+
if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value2)) {
|
|
2603
|
+
return false;
|
|
2604
|
+
}
|
|
2589
2605
|
if (!shallow && !isReadonly(value2)) {
|
|
2590
|
-
|
|
2591
|
-
|
|
2606
|
+
if (!isShallow(value2)) {
|
|
2607
|
+
value2 = toRaw(value2);
|
|
2608
|
+
oldValue = toRaw(oldValue);
|
|
2609
|
+
}
|
|
2592
2610
|
if (!isArray(target) && isRef(oldValue) && !isRef(value2)) {
|
|
2593
2611
|
oldValue.value = value2;
|
|
2594
2612
|
return true;
|
|
@@ -2648,7 +2666,7 @@ const shallowReactiveHandlers = /* @__PURE__ */ extend({}, mutableHandlers, {
|
|
|
2648
2666
|
});
|
|
2649
2667
|
const toShallow = (value2) => value2;
|
|
2650
2668
|
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
2651
|
-
function get$1(target, key2, isReadonly2 = false,
|
|
2669
|
+
function get$1(target, key2, isReadonly2 = false, isShallow2 = false) {
|
|
2652
2670
|
target = target["__v_raw"];
|
|
2653
2671
|
const rawTarget = toRaw(target);
|
|
2654
2672
|
const rawKey = toRaw(key2);
|
|
@@ -2657,7 +2675,7 @@ function get$1(target, key2, isReadonly2 = false, isShallow = false) {
|
|
|
2657
2675
|
}
|
|
2658
2676
|
!isReadonly2 && track(rawTarget, "get", rawKey);
|
|
2659
2677
|
const { has: has2 } = getProto(rawTarget);
|
|
2660
|
-
const wrap =
|
|
2678
|
+
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
2661
2679
|
if (has2.call(rawTarget, key2)) {
|
|
2662
2680
|
return wrap(target.get(key2));
|
|
2663
2681
|
} else if (has2.call(rawTarget, rawKey)) {
|
|
@@ -2734,19 +2752,19 @@ function clear() {
|
|
|
2734
2752
|
}
|
|
2735
2753
|
return result2;
|
|
2736
2754
|
}
|
|
2737
|
-
function createForEach(isReadonly2,
|
|
2755
|
+
function createForEach(isReadonly2, isShallow2) {
|
|
2738
2756
|
return function forEach(callback, thisArg) {
|
|
2739
2757
|
const observed = this;
|
|
2740
2758
|
const target = observed["__v_raw"];
|
|
2741
2759
|
const rawTarget = toRaw(target);
|
|
2742
|
-
const wrap =
|
|
2760
|
+
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
2743
2761
|
!isReadonly2 && track(rawTarget, "iterate", ITERATE_KEY);
|
|
2744
2762
|
return target.forEach((value2, key2) => {
|
|
2745
2763
|
return callback.call(thisArg, wrap(value2), wrap(key2), observed);
|
|
2746
2764
|
});
|
|
2747
2765
|
};
|
|
2748
2766
|
}
|
|
2749
|
-
function createIterableMethod(method, isReadonly2,
|
|
2767
|
+
function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
2750
2768
|
return function(...args) {
|
|
2751
2769
|
const target = this["__v_raw"];
|
|
2752
2770
|
const rawTarget = toRaw(target);
|
|
@@ -2754,7 +2772,7 @@ function createIterableMethod(method, isReadonly2, isShallow) {
|
|
|
2754
2772
|
const isPair = method === "entries" || method === Symbol.iterator && targetIsMap;
|
|
2755
2773
|
const isKeyOnly = method === "keys" && targetIsMap;
|
|
2756
2774
|
const innerIterator = target[method](...args);
|
|
2757
|
-
const wrap =
|
|
2775
|
+
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
2758
2776
|
!isReadonly2 && track(rawTarget, "iterate", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
|
|
2759
2777
|
return {
|
|
2760
2778
|
next() {
|
|
@@ -2895,7 +2913,7 @@ function getTargetType(value2) {
|
|
|
2895
2913
|
return value2["__v_skip"] || !Object.isExtensible(value2) ? 0 : targetTypeMap(toRawType(value2));
|
|
2896
2914
|
}
|
|
2897
2915
|
function reactive(target) {
|
|
2898
|
-
if (target
|
|
2916
|
+
if (isReadonly(target)) {
|
|
2899
2917
|
return target;
|
|
2900
2918
|
}
|
|
2901
2919
|
return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
|
|
@@ -2934,6 +2952,9 @@ function isReactive(value2) {
|
|
|
2934
2952
|
function isReadonly(value2) {
|
|
2935
2953
|
return !!(value2 && value2["__v_isReadonly"]);
|
|
2936
2954
|
}
|
|
2955
|
+
function isShallow(value2) {
|
|
2956
|
+
return !!(value2 && value2["__v_isShallow"]);
|
|
2957
|
+
}
|
|
2937
2958
|
function isProxy(value2) {
|
|
2938
2959
|
return isReactive(value2) || isReadonly(value2);
|
|
2939
2960
|
}
|
|
@@ -2948,13 +2969,10 @@ function markRaw(value2) {
|
|
|
2948
2969
|
const toReactive = (value2) => isObject(value2) ? reactive(value2) : value2;
|
|
2949
2970
|
const toReadonly = (value2) => isObject(value2) ? readonly(value2) : value2;
|
|
2950
2971
|
function trackRefValue(ref2) {
|
|
2951
|
-
if (
|
|
2972
|
+
if (shouldTrack && activeEffect) {
|
|
2952
2973
|
ref2 = toRaw(ref2);
|
|
2953
|
-
if (!ref2.dep) {
|
|
2954
|
-
ref2.dep = createDep();
|
|
2955
|
-
}
|
|
2956
2974
|
{
|
|
2957
|
-
trackEffects(ref2.dep);
|
|
2975
|
+
trackEffects(ref2.dep || (ref2.dep = createDep()));
|
|
2958
2976
|
}
|
|
2959
2977
|
}
|
|
2960
2978
|
}
|
|
@@ -2967,7 +2985,7 @@ function triggerRefValue(ref2, newVal) {
|
|
|
2967
2985
|
}
|
|
2968
2986
|
}
|
|
2969
2987
|
function isRef(r) {
|
|
2970
|
-
return
|
|
2988
|
+
return !!(r && r.__v_isRef === true);
|
|
2971
2989
|
}
|
|
2972
2990
|
function ref(value2) {
|
|
2973
2991
|
return createRef(value2, false);
|
|
@@ -2979,22 +2997,22 @@ function createRef(rawValue, shallow) {
|
|
|
2979
2997
|
return new RefImpl(rawValue, shallow);
|
|
2980
2998
|
}
|
|
2981
2999
|
class RefImpl {
|
|
2982
|
-
constructor(value2,
|
|
2983
|
-
this.
|
|
3000
|
+
constructor(value2, __v_isShallow) {
|
|
3001
|
+
this.__v_isShallow = __v_isShallow;
|
|
2984
3002
|
this.dep = void 0;
|
|
2985
3003
|
this.__v_isRef = true;
|
|
2986
|
-
this._rawValue =
|
|
2987
|
-
this._value =
|
|
3004
|
+
this._rawValue = __v_isShallow ? value2 : toRaw(value2);
|
|
3005
|
+
this._value = __v_isShallow ? value2 : toReactive(value2);
|
|
2988
3006
|
}
|
|
2989
3007
|
get value() {
|
|
2990
3008
|
trackRefValue(this);
|
|
2991
3009
|
return this._value;
|
|
2992
3010
|
}
|
|
2993
3011
|
set value(newVal) {
|
|
2994
|
-
newVal = this.
|
|
3012
|
+
newVal = this.__v_isShallow ? newVal : toRaw(newVal);
|
|
2995
3013
|
if (hasChanged(newVal, this._rawValue)) {
|
|
2996
3014
|
this._rawValue = newVal;
|
|
2997
|
-
this._value = this.
|
|
3015
|
+
this._value = this.__v_isShallow ? newVal : toReactive(newVal);
|
|
2998
3016
|
triggerRefValue(this);
|
|
2999
3017
|
}
|
|
3000
3018
|
}
|
|
@@ -3025,40 +3043,44 @@ function toRefs(object) {
|
|
|
3025
3043
|
return ret;
|
|
3026
3044
|
}
|
|
3027
3045
|
class ObjectRefImpl {
|
|
3028
|
-
constructor(_object, _key) {
|
|
3046
|
+
constructor(_object, _key, _defaultValue) {
|
|
3029
3047
|
this._object = _object;
|
|
3030
3048
|
this._key = _key;
|
|
3049
|
+
this._defaultValue = _defaultValue;
|
|
3031
3050
|
this.__v_isRef = true;
|
|
3032
3051
|
}
|
|
3033
3052
|
get value() {
|
|
3034
|
-
|
|
3053
|
+
const val2 = this._object[this._key];
|
|
3054
|
+
return val2 === void 0 ? this._defaultValue : val2;
|
|
3035
3055
|
}
|
|
3036
3056
|
set value(newVal) {
|
|
3037
3057
|
this._object[this._key] = newVal;
|
|
3038
3058
|
}
|
|
3039
3059
|
}
|
|
3040
|
-
function toRef(object, key2) {
|
|
3060
|
+
function toRef(object, key2, defaultValue) {
|
|
3041
3061
|
const val2 = object[key2];
|
|
3042
|
-
return isRef(val2) ? val2 : new ObjectRefImpl(object, key2);
|
|
3062
|
+
return isRef(val2) ? val2 : new ObjectRefImpl(object, key2, defaultValue);
|
|
3043
3063
|
}
|
|
3044
3064
|
class ComputedRefImpl {
|
|
3045
|
-
constructor(getter, _setter, isReadonly2) {
|
|
3065
|
+
constructor(getter, _setter, isReadonly2, isSSR) {
|
|
3046
3066
|
this._setter = _setter;
|
|
3047
3067
|
this.dep = void 0;
|
|
3048
|
-
this._dirty = true;
|
|
3049
3068
|
this.__v_isRef = true;
|
|
3069
|
+
this._dirty = true;
|
|
3050
3070
|
this.effect = new ReactiveEffect(getter, () => {
|
|
3051
3071
|
if (!this._dirty) {
|
|
3052
3072
|
this._dirty = true;
|
|
3053
3073
|
triggerRefValue(this);
|
|
3054
3074
|
}
|
|
3055
3075
|
});
|
|
3076
|
+
this.effect.computed = this;
|
|
3077
|
+
this.effect.active = this._cacheable = !isSSR;
|
|
3056
3078
|
this["__v_isReadonly"] = isReadonly2;
|
|
3057
3079
|
}
|
|
3058
3080
|
get value() {
|
|
3059
3081
|
const self2 = toRaw(this);
|
|
3060
3082
|
trackRefValue(self2);
|
|
3061
|
-
if (self2._dirty) {
|
|
3083
|
+
if (self2._dirty || !self2._cacheable) {
|
|
3062
3084
|
self2._dirty = false;
|
|
3063
3085
|
self2._value = self2.effect.run();
|
|
3064
3086
|
}
|
|
@@ -3068,7 +3090,7 @@ class ComputedRefImpl {
|
|
|
3068
3090
|
this._setter(newValue);
|
|
3069
3091
|
}
|
|
3070
3092
|
}
|
|
3071
|
-
function computed(getterOrOptions, debugOptions) {
|
|
3093
|
+
function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
3072
3094
|
let getter;
|
|
3073
3095
|
let setter;
|
|
3074
3096
|
const onlyGetter = isFunction(getterOrOptions);
|
|
@@ -3079,11 +3101,190 @@ function computed(getterOrOptions, debugOptions) {
|
|
|
3079
3101
|
getter = getterOrOptions.get;
|
|
3080
3102
|
setter = getterOrOptions.set;
|
|
3081
3103
|
}
|
|
3082
|
-
const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter);
|
|
3104
|
+
const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
|
|
3083
3105
|
return cRef;
|
|
3084
3106
|
}
|
|
3085
|
-
|
|
3107
|
+
function callWithErrorHandling(fn, instance, type, args) {
|
|
3108
|
+
let res;
|
|
3109
|
+
try {
|
|
3110
|
+
res = args ? fn(...args) : fn();
|
|
3111
|
+
} catch (err) {
|
|
3112
|
+
handleError(err, instance, type);
|
|
3113
|
+
}
|
|
3114
|
+
return res;
|
|
3115
|
+
}
|
|
3116
|
+
function callWithAsyncErrorHandling(fn, instance, type, args) {
|
|
3117
|
+
if (isFunction(fn)) {
|
|
3118
|
+
const res = callWithErrorHandling(fn, instance, type, args);
|
|
3119
|
+
if (res && isPromise(res)) {
|
|
3120
|
+
res.catch((err) => {
|
|
3121
|
+
handleError(err, instance, type);
|
|
3122
|
+
});
|
|
3123
|
+
}
|
|
3124
|
+
return res;
|
|
3125
|
+
}
|
|
3126
|
+
const values = [];
|
|
3127
|
+
for (let i2 = 0; i2 < fn.length; i2++) {
|
|
3128
|
+
values.push(callWithAsyncErrorHandling(fn[i2], instance, type, args));
|
|
3129
|
+
}
|
|
3130
|
+
return values;
|
|
3131
|
+
}
|
|
3132
|
+
function handleError(err, instance, type, throwInDev = true) {
|
|
3133
|
+
const contextVNode = instance ? instance.vnode : null;
|
|
3134
|
+
if (instance) {
|
|
3135
|
+
let cur = instance.parent;
|
|
3136
|
+
const exposedInstance = instance.proxy;
|
|
3137
|
+
const errorInfo = type;
|
|
3138
|
+
while (cur) {
|
|
3139
|
+
const errorCapturedHooks = cur.ec;
|
|
3140
|
+
if (errorCapturedHooks) {
|
|
3141
|
+
for (let i2 = 0; i2 < errorCapturedHooks.length; i2++) {
|
|
3142
|
+
if (errorCapturedHooks[i2](err, exposedInstance, errorInfo) === false) {
|
|
3143
|
+
return;
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
3146
|
+
}
|
|
3147
|
+
cur = cur.parent;
|
|
3148
|
+
}
|
|
3149
|
+
const appErrorHandler = instance.appContext.config.errorHandler;
|
|
3150
|
+
if (appErrorHandler) {
|
|
3151
|
+
callWithErrorHandling(appErrorHandler, null, 10, [err, exposedInstance, errorInfo]);
|
|
3152
|
+
return;
|
|
3153
|
+
}
|
|
3154
|
+
}
|
|
3155
|
+
logError(err, type, contextVNode, throwInDev);
|
|
3156
|
+
}
|
|
3157
|
+
function logError(err, type, contextVNode, throwInDev = true) {
|
|
3158
|
+
{
|
|
3159
|
+
console.error(err);
|
|
3160
|
+
}
|
|
3161
|
+
}
|
|
3162
|
+
let isFlushing = false;
|
|
3163
|
+
let isFlushPending = false;
|
|
3164
|
+
const queue = [];
|
|
3165
|
+
let flushIndex = 0;
|
|
3166
|
+
const pendingPreFlushCbs = [];
|
|
3167
|
+
let activePreFlushCbs = null;
|
|
3168
|
+
let preFlushIndex = 0;
|
|
3169
|
+
const pendingPostFlushCbs = [];
|
|
3170
|
+
let activePostFlushCbs = null;
|
|
3171
|
+
let postFlushIndex = 0;
|
|
3172
|
+
const resolvedPromise = /* @__PURE__ */ Promise.resolve();
|
|
3173
|
+
let currentFlushPromise = null;
|
|
3174
|
+
let currentPreFlushParentJob = null;
|
|
3175
|
+
function nextTick(fn) {
|
|
3176
|
+
const p2 = currentFlushPromise || resolvedPromise;
|
|
3177
|
+
return fn ? p2.then(this ? fn.bind(this) : fn) : p2;
|
|
3178
|
+
}
|
|
3179
|
+
function findInsertionIndex(id) {
|
|
3180
|
+
let start = flushIndex + 1;
|
|
3181
|
+
let end = queue.length;
|
|
3182
|
+
while (start < end) {
|
|
3183
|
+
const middle = start + end >>> 1;
|
|
3184
|
+
const middleJobId = getId(queue[middle]);
|
|
3185
|
+
middleJobId < id ? start = middle + 1 : end = middle;
|
|
3186
|
+
}
|
|
3187
|
+
return start;
|
|
3188
|
+
}
|
|
3189
|
+
function queueJob(job) {
|
|
3190
|
+
if ((!queue.length || !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) && job !== currentPreFlushParentJob) {
|
|
3191
|
+
if (job.id == null) {
|
|
3192
|
+
queue.push(job);
|
|
3193
|
+
} else {
|
|
3194
|
+
queue.splice(findInsertionIndex(job.id), 0, job);
|
|
3195
|
+
}
|
|
3196
|
+
queueFlush();
|
|
3197
|
+
}
|
|
3198
|
+
}
|
|
3199
|
+
function queueFlush() {
|
|
3200
|
+
if (!isFlushing && !isFlushPending) {
|
|
3201
|
+
isFlushPending = true;
|
|
3202
|
+
currentFlushPromise = resolvedPromise.then(flushJobs);
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
function invalidateJob(job) {
|
|
3206
|
+
const i2 = queue.indexOf(job);
|
|
3207
|
+
if (i2 > flushIndex) {
|
|
3208
|
+
queue.splice(i2, 1);
|
|
3209
|
+
}
|
|
3210
|
+
}
|
|
3211
|
+
function queueCb(cb, activeQueue, pendingQueue, index2) {
|
|
3212
|
+
if (!isArray(cb)) {
|
|
3213
|
+
if (!activeQueue || !activeQueue.includes(cb, cb.allowRecurse ? index2 + 1 : index2)) {
|
|
3214
|
+
pendingQueue.push(cb);
|
|
3215
|
+
}
|
|
3216
|
+
} else {
|
|
3217
|
+
pendingQueue.push(...cb);
|
|
3218
|
+
}
|
|
3219
|
+
queueFlush();
|
|
3220
|
+
}
|
|
3221
|
+
function queuePreFlushCb(cb) {
|
|
3222
|
+
queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex);
|
|
3223
|
+
}
|
|
3224
|
+
function queuePostFlushCb(cb) {
|
|
3225
|
+
queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex);
|
|
3226
|
+
}
|
|
3227
|
+
function flushPreFlushCbs(seen, parentJob = null) {
|
|
3228
|
+
if (pendingPreFlushCbs.length) {
|
|
3229
|
+
currentPreFlushParentJob = parentJob;
|
|
3230
|
+
activePreFlushCbs = [...new Set(pendingPreFlushCbs)];
|
|
3231
|
+
pendingPreFlushCbs.length = 0;
|
|
3232
|
+
for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) {
|
|
3233
|
+
activePreFlushCbs[preFlushIndex]();
|
|
3234
|
+
}
|
|
3235
|
+
activePreFlushCbs = null;
|
|
3236
|
+
preFlushIndex = 0;
|
|
3237
|
+
currentPreFlushParentJob = null;
|
|
3238
|
+
flushPreFlushCbs(seen, parentJob);
|
|
3239
|
+
}
|
|
3240
|
+
}
|
|
3241
|
+
function flushPostFlushCbs(seen) {
|
|
3242
|
+
if (pendingPostFlushCbs.length) {
|
|
3243
|
+
const deduped = [...new Set(pendingPostFlushCbs)];
|
|
3244
|
+
pendingPostFlushCbs.length = 0;
|
|
3245
|
+
if (activePostFlushCbs) {
|
|
3246
|
+
activePostFlushCbs.push(...deduped);
|
|
3247
|
+
return;
|
|
3248
|
+
}
|
|
3249
|
+
activePostFlushCbs = deduped;
|
|
3250
|
+
activePostFlushCbs.sort((a, b) => getId(a) - getId(b));
|
|
3251
|
+
for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
|
|
3252
|
+
activePostFlushCbs[postFlushIndex]();
|
|
3253
|
+
}
|
|
3254
|
+
activePostFlushCbs = null;
|
|
3255
|
+
postFlushIndex = 0;
|
|
3256
|
+
}
|
|
3257
|
+
}
|
|
3258
|
+
const getId = (job) => job.id == null ? Infinity : job.id;
|
|
3259
|
+
function flushJobs(seen) {
|
|
3260
|
+
isFlushPending = false;
|
|
3261
|
+
isFlushing = true;
|
|
3262
|
+
flushPreFlushCbs(seen);
|
|
3263
|
+
queue.sort((a, b) => getId(a) - getId(b));
|
|
3264
|
+
const check = NOOP;
|
|
3265
|
+
try {
|
|
3266
|
+
for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
|
|
3267
|
+
const job = queue[flushIndex];
|
|
3268
|
+
if (job && job.active !== false) {
|
|
3269
|
+
if (false)
|
|
3270
|
+
;
|
|
3271
|
+
callWithErrorHandling(job, null, 14);
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
} finally {
|
|
3275
|
+
flushIndex = 0;
|
|
3276
|
+
queue.length = 0;
|
|
3277
|
+
flushPostFlushCbs();
|
|
3278
|
+
isFlushing = false;
|
|
3279
|
+
currentFlushPromise = null;
|
|
3280
|
+
if (queue.length || pendingPreFlushCbs.length || pendingPostFlushCbs.length) {
|
|
3281
|
+
flushJobs(seen);
|
|
3282
|
+
}
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3086
3285
|
function emit$1(instance, event, ...rawArgs) {
|
|
3286
|
+
if (instance.isUnmounted)
|
|
3287
|
+
return;
|
|
3087
3288
|
const props = instance.vnode.props || EMPTY_OBJ;
|
|
3088
3289
|
let args = rawArgs;
|
|
3089
3290
|
const isModelListener2 = event.startsWith("update:");
|
|
@@ -3366,6 +3567,186 @@ function inject(key2, defaultValue, treatDefaultAsFactory = false) {
|
|
|
3366
3567
|
;
|
|
3367
3568
|
}
|
|
3368
3569
|
}
|
|
3570
|
+
const INITIAL_WATCHER_VALUE = {};
|
|
3571
|
+
function watch(source, cb, options) {
|
|
3572
|
+
return doWatch(source, cb, options);
|
|
3573
|
+
}
|
|
3574
|
+
function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) {
|
|
3575
|
+
const instance = currentInstance;
|
|
3576
|
+
let getter;
|
|
3577
|
+
let forceTrigger = false;
|
|
3578
|
+
let isMultiSource = false;
|
|
3579
|
+
if (isRef(source)) {
|
|
3580
|
+
getter = () => source.value;
|
|
3581
|
+
forceTrigger = isShallow(source);
|
|
3582
|
+
} else if (isReactive(source)) {
|
|
3583
|
+
getter = () => source;
|
|
3584
|
+
deep = true;
|
|
3585
|
+
} else if (isArray(source)) {
|
|
3586
|
+
isMultiSource = true;
|
|
3587
|
+
forceTrigger = source.some(isReactive);
|
|
3588
|
+
getter = () => source.map((s) => {
|
|
3589
|
+
if (isRef(s)) {
|
|
3590
|
+
return s.value;
|
|
3591
|
+
} else if (isReactive(s)) {
|
|
3592
|
+
return traverse(s);
|
|
3593
|
+
} else if (isFunction(s)) {
|
|
3594
|
+
return callWithErrorHandling(s, instance, 2);
|
|
3595
|
+
} else
|
|
3596
|
+
;
|
|
3597
|
+
});
|
|
3598
|
+
} else if (isFunction(source)) {
|
|
3599
|
+
if (cb) {
|
|
3600
|
+
getter = () => callWithErrorHandling(source, instance, 2);
|
|
3601
|
+
} else {
|
|
3602
|
+
getter = () => {
|
|
3603
|
+
if (instance && instance.isUnmounted) {
|
|
3604
|
+
return;
|
|
3605
|
+
}
|
|
3606
|
+
if (cleanup) {
|
|
3607
|
+
cleanup();
|
|
3608
|
+
}
|
|
3609
|
+
return callWithAsyncErrorHandling(source, instance, 3, [onCleanup]);
|
|
3610
|
+
};
|
|
3611
|
+
}
|
|
3612
|
+
} else {
|
|
3613
|
+
getter = NOOP;
|
|
3614
|
+
}
|
|
3615
|
+
if (cb && deep) {
|
|
3616
|
+
const baseGetter = getter;
|
|
3617
|
+
getter = () => traverse(baseGetter());
|
|
3618
|
+
}
|
|
3619
|
+
let cleanup;
|
|
3620
|
+
let onCleanup = (fn) => {
|
|
3621
|
+
cleanup = effect2.onStop = () => {
|
|
3622
|
+
callWithErrorHandling(fn, instance, 4);
|
|
3623
|
+
};
|
|
3624
|
+
};
|
|
3625
|
+
if (isInSSRComponentSetup) {
|
|
3626
|
+
onCleanup = NOOP;
|
|
3627
|
+
if (!cb) {
|
|
3628
|
+
getter();
|
|
3629
|
+
} else if (immediate) {
|
|
3630
|
+
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
3631
|
+
getter(),
|
|
3632
|
+
isMultiSource ? [] : void 0,
|
|
3633
|
+
onCleanup
|
|
3634
|
+
]);
|
|
3635
|
+
}
|
|
3636
|
+
return NOOP;
|
|
3637
|
+
}
|
|
3638
|
+
let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;
|
|
3639
|
+
const job = () => {
|
|
3640
|
+
if (!effect2.active) {
|
|
3641
|
+
return;
|
|
3642
|
+
}
|
|
3643
|
+
if (cb) {
|
|
3644
|
+
const newValue = effect2.run();
|
|
3645
|
+
if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i2) => hasChanged(v, oldValue[i2])) : hasChanged(newValue, oldValue)) || false) {
|
|
3646
|
+
if (cleanup) {
|
|
3647
|
+
cleanup();
|
|
3648
|
+
}
|
|
3649
|
+
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
3650
|
+
newValue,
|
|
3651
|
+
oldValue === INITIAL_WATCHER_VALUE ? void 0 : oldValue,
|
|
3652
|
+
onCleanup
|
|
3653
|
+
]);
|
|
3654
|
+
oldValue = newValue;
|
|
3655
|
+
}
|
|
3656
|
+
} else {
|
|
3657
|
+
effect2.run();
|
|
3658
|
+
}
|
|
3659
|
+
};
|
|
3660
|
+
job.allowRecurse = !!cb;
|
|
3661
|
+
let scheduler;
|
|
3662
|
+
if (flush === "sync") {
|
|
3663
|
+
scheduler = job;
|
|
3664
|
+
} else if (flush === "post") {
|
|
3665
|
+
scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
|
|
3666
|
+
} else {
|
|
3667
|
+
scheduler = () => {
|
|
3668
|
+
if (!instance || instance.isMounted) {
|
|
3669
|
+
queuePreFlushCb(job);
|
|
3670
|
+
} else {
|
|
3671
|
+
job();
|
|
3672
|
+
}
|
|
3673
|
+
};
|
|
3674
|
+
}
|
|
3675
|
+
const effect2 = new ReactiveEffect(getter, scheduler);
|
|
3676
|
+
if (cb) {
|
|
3677
|
+
if (immediate) {
|
|
3678
|
+
job();
|
|
3679
|
+
} else {
|
|
3680
|
+
oldValue = effect2.run();
|
|
3681
|
+
}
|
|
3682
|
+
} else if (flush === "post") {
|
|
3683
|
+
queuePostRenderEffect(effect2.run.bind(effect2), instance && instance.suspense);
|
|
3684
|
+
} else {
|
|
3685
|
+
effect2.run();
|
|
3686
|
+
}
|
|
3687
|
+
return () => {
|
|
3688
|
+
effect2.stop();
|
|
3689
|
+
if (instance && instance.scope) {
|
|
3690
|
+
remove(instance.scope.effects, effect2);
|
|
3691
|
+
}
|
|
3692
|
+
};
|
|
3693
|
+
}
|
|
3694
|
+
function instanceWatch(source, value2, options) {
|
|
3695
|
+
const publicThis = this.proxy;
|
|
3696
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
3697
|
+
let cb;
|
|
3698
|
+
if (isFunction(value2)) {
|
|
3699
|
+
cb = value2;
|
|
3700
|
+
} else {
|
|
3701
|
+
cb = value2.handler;
|
|
3702
|
+
options = value2;
|
|
3703
|
+
}
|
|
3704
|
+
const cur = currentInstance;
|
|
3705
|
+
setCurrentInstance(this);
|
|
3706
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
3707
|
+
if (cur) {
|
|
3708
|
+
setCurrentInstance(cur);
|
|
3709
|
+
} else {
|
|
3710
|
+
unsetCurrentInstance();
|
|
3711
|
+
}
|
|
3712
|
+
return res;
|
|
3713
|
+
}
|
|
3714
|
+
function createPathGetter(ctx, path) {
|
|
3715
|
+
const segments = path.split(".");
|
|
3716
|
+
return () => {
|
|
3717
|
+
let cur = ctx;
|
|
3718
|
+
for (let i2 = 0; i2 < segments.length && cur; i2++) {
|
|
3719
|
+
cur = cur[segments[i2]];
|
|
3720
|
+
}
|
|
3721
|
+
return cur;
|
|
3722
|
+
};
|
|
3723
|
+
}
|
|
3724
|
+
function traverse(value2, seen) {
|
|
3725
|
+
if (!isObject(value2) || value2["__v_skip"]) {
|
|
3726
|
+
return value2;
|
|
3727
|
+
}
|
|
3728
|
+
seen = seen || new Set();
|
|
3729
|
+
if (seen.has(value2)) {
|
|
3730
|
+
return value2;
|
|
3731
|
+
}
|
|
3732
|
+
seen.add(value2);
|
|
3733
|
+
if (isRef(value2)) {
|
|
3734
|
+
traverse(value2.value, seen);
|
|
3735
|
+
} else if (isArray(value2)) {
|
|
3736
|
+
for (let i2 = 0; i2 < value2.length; i2++) {
|
|
3737
|
+
traverse(value2[i2], seen);
|
|
3738
|
+
}
|
|
3739
|
+
} else if (isSet(value2) || isMap(value2)) {
|
|
3740
|
+
value2.forEach((v) => {
|
|
3741
|
+
traverse(v, seen);
|
|
3742
|
+
});
|
|
3743
|
+
} else if (isPlainObject$1(value2)) {
|
|
3744
|
+
for (const key2 in value2) {
|
|
3745
|
+
traverse(value2[key2], seen);
|
|
3746
|
+
}
|
|
3747
|
+
}
|
|
3748
|
+
return value2;
|
|
3749
|
+
}
|
|
3369
3750
|
function useTransitionState() {
|
|
3370
3751
|
const state = {
|
|
3371
3752
|
isMounted: false,
|
|
@@ -3410,9 +3791,17 @@ const BaseTransitionImpl = {
|
|
|
3410
3791
|
if (!children || !children.length) {
|
|
3411
3792
|
return;
|
|
3412
3793
|
}
|
|
3794
|
+
let child = children[0];
|
|
3795
|
+
if (children.length > 1) {
|
|
3796
|
+
for (const c of children) {
|
|
3797
|
+
if (c.type !== Comment) {
|
|
3798
|
+
child = c;
|
|
3799
|
+
break;
|
|
3800
|
+
}
|
|
3801
|
+
}
|
|
3802
|
+
}
|
|
3413
3803
|
const rawProps = toRaw(props);
|
|
3414
3804
|
const { mode } = rawProps;
|
|
3415
|
-
const child = children[0];
|
|
3416
3805
|
if (state.isLeaving) {
|
|
3417
3806
|
return emptyPlaceholder(child);
|
|
3418
3807
|
}
|
|
@@ -3598,17 +3987,18 @@ function setTransitionHooks(vnode, hooks) {
|
|
|
3598
3987
|
vnode.transition = hooks;
|
|
3599
3988
|
}
|
|
3600
3989
|
}
|
|
3601
|
-
function getTransitionRawChildren(children, keepComment = false) {
|
|
3990
|
+
function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
3602
3991
|
let ret = [];
|
|
3603
3992
|
let keyedFragmentCount = 0;
|
|
3604
3993
|
for (let i2 = 0; i2 < children.length; i2++) {
|
|
3605
|
-
|
|
3994
|
+
let child = children[i2];
|
|
3995
|
+
const key2 = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i2);
|
|
3606
3996
|
if (child.type === Fragment) {
|
|
3607
3997
|
if (child.patchFlag & 128)
|
|
3608
3998
|
keyedFragmentCount++;
|
|
3609
|
-
ret = ret.concat(getTransitionRawChildren(child.children, keepComment));
|
|
3999
|
+
ret = ret.concat(getTransitionRawChildren(child.children, keepComment, key2));
|
|
3610
4000
|
} else if (keepComment || child.type !== Comment) {
|
|
3611
|
-
ret.push(child);
|
|
4001
|
+
ret.push(key2 != null ? cloneVNode(child, { key: key2 }) : child);
|
|
3612
4002
|
}
|
|
3613
4003
|
}
|
|
3614
4004
|
if (keyedFragmentCount > 1) {
|
|
@@ -4022,6 +4412,9 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
4022
4412
|
const propsToUpdate = instance.vnode.dynamicProps;
|
|
4023
4413
|
for (let i2 = 0; i2 < propsToUpdate.length; i2++) {
|
|
4024
4414
|
let key2 = propsToUpdate[i2];
|
|
4415
|
+
if (isEmitListener(instance.emitsOptions, key2)) {
|
|
4416
|
+
continue;
|
|
4417
|
+
}
|
|
4025
4418
|
const value2 = rawProps[key2];
|
|
4026
4419
|
if (options) {
|
|
4027
4420
|
if (hasOwn(attrs, key2)) {
|
|
@@ -4059,7 +4452,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
4059
4452
|
}
|
|
4060
4453
|
if (attrs !== rawCurrentProps) {
|
|
4061
4454
|
for (const key2 in attrs) {
|
|
4062
|
-
if (!rawProps || !hasOwn(rawProps, key2)) {
|
|
4455
|
+
if (!rawProps || !hasOwn(rawProps, key2) && true) {
|
|
4063
4456
|
delete attrs[key2];
|
|
4064
4457
|
hasAttrsChanged = true;
|
|
4065
4458
|
}
|
|
@@ -4088,7 +4481,7 @@ function setFullProps(instance, rawProps, props, attrs) {
|
|
|
4088
4481
|
(rawCastValues || (rawCastValues = {}))[camelKey] = value2;
|
|
4089
4482
|
}
|
|
4090
4483
|
} else if (!isEmitListener(instance.emitsOptions, key2)) {
|
|
4091
|
-
if (value2 !== attrs[key2]) {
|
|
4484
|
+
if (!(key2 in attrs) || value2 !== attrs[key2]) {
|
|
4092
4485
|
attrs[key2] = value2;
|
|
4093
4486
|
hasAttrsChanged = true;
|
|
4094
4487
|
}
|
|
@@ -4297,7 +4690,7 @@ function withDirectives(vnode, directives) {
|
|
|
4297
4690
|
if (internalInstance === null) {
|
|
4298
4691
|
return vnode;
|
|
4299
4692
|
}
|
|
4300
|
-
const instance = internalInstance.proxy;
|
|
4693
|
+
const instance = getExposeProxy(internalInstance) || internalInstance.proxy;
|
|
4301
4694
|
const bindings = vnode.dirs || (vnode.dirs = []);
|
|
4302
4695
|
for (let i2 = 0; i2 < directives.length; i2++) {
|
|
4303
4696
|
let [dir, value2, arg, modifiers = EMPTY_OBJ] = directives[i2];
|
|
@@ -4366,6 +4759,9 @@ function createAppContext() {
|
|
|
4366
4759
|
let uid = 0;
|
|
4367
4760
|
function createAppAPI(render2, hydrate) {
|
|
4368
4761
|
return function createApp2(rootComponent, rootProps = null) {
|
|
4762
|
+
if (!isFunction(rootComponent)) {
|
|
4763
|
+
rootComponent = Object.assign({}, rootComponent);
|
|
4764
|
+
}
|
|
4369
4765
|
if (rootProps != null && !isObject(rootProps)) {
|
|
4370
4766
|
rootProps = null;
|
|
4371
4767
|
}
|
|
@@ -4449,6 +4845,78 @@ function createAppAPI(render2, hydrate) {
|
|
|
4449
4845
|
return app;
|
|
4450
4846
|
};
|
|
4451
4847
|
}
|
|
4848
|
+
function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
4849
|
+
if (isArray(rawRef)) {
|
|
4850
|
+
rawRef.forEach((r, i2) => setRef(r, oldRawRef && (isArray(oldRawRef) ? oldRawRef[i2] : oldRawRef), parentSuspense, vnode, isUnmount));
|
|
4851
|
+
return;
|
|
4852
|
+
}
|
|
4853
|
+
if (isAsyncWrapper(vnode) && !isUnmount) {
|
|
4854
|
+
return;
|
|
4855
|
+
}
|
|
4856
|
+
const refValue = vnode.shapeFlag & 4 ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el;
|
|
4857
|
+
const value2 = isUnmount ? null : refValue;
|
|
4858
|
+
const { i: owner, r: ref2 } = rawRef;
|
|
4859
|
+
const oldRef = oldRawRef && oldRawRef.r;
|
|
4860
|
+
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
4861
|
+
const setupState = owner.setupState;
|
|
4862
|
+
if (oldRef != null && oldRef !== ref2) {
|
|
4863
|
+
if (isString(oldRef)) {
|
|
4864
|
+
refs[oldRef] = null;
|
|
4865
|
+
if (hasOwn(setupState, oldRef)) {
|
|
4866
|
+
setupState[oldRef] = null;
|
|
4867
|
+
}
|
|
4868
|
+
} else if (isRef(oldRef)) {
|
|
4869
|
+
oldRef.value = null;
|
|
4870
|
+
}
|
|
4871
|
+
}
|
|
4872
|
+
if (isFunction(ref2)) {
|
|
4873
|
+
callWithErrorHandling(ref2, owner, 12, [value2, refs]);
|
|
4874
|
+
} else {
|
|
4875
|
+
const _isString = isString(ref2);
|
|
4876
|
+
const _isRef = isRef(ref2);
|
|
4877
|
+
if (_isString || _isRef) {
|
|
4878
|
+
const doSet = () => {
|
|
4879
|
+
if (rawRef.f) {
|
|
4880
|
+
const existing = _isString ? refs[ref2] : ref2.value;
|
|
4881
|
+
if (isUnmount) {
|
|
4882
|
+
isArray(existing) && remove(existing, refValue);
|
|
4883
|
+
} else {
|
|
4884
|
+
if (!isArray(existing)) {
|
|
4885
|
+
if (_isString) {
|
|
4886
|
+
refs[ref2] = [refValue];
|
|
4887
|
+
if (hasOwn(setupState, ref2)) {
|
|
4888
|
+
setupState[ref2] = refs[ref2];
|
|
4889
|
+
}
|
|
4890
|
+
} else {
|
|
4891
|
+
ref2.value = [refValue];
|
|
4892
|
+
if (rawRef.k)
|
|
4893
|
+
refs[rawRef.k] = ref2.value;
|
|
4894
|
+
}
|
|
4895
|
+
} else if (!existing.includes(refValue)) {
|
|
4896
|
+
existing.push(refValue);
|
|
4897
|
+
}
|
|
4898
|
+
}
|
|
4899
|
+
} else if (_isString) {
|
|
4900
|
+
refs[ref2] = value2;
|
|
4901
|
+
if (hasOwn(setupState, ref2)) {
|
|
4902
|
+
setupState[ref2] = value2;
|
|
4903
|
+
}
|
|
4904
|
+
} else if (isRef(ref2)) {
|
|
4905
|
+
ref2.value = value2;
|
|
4906
|
+
if (rawRef.k)
|
|
4907
|
+
refs[rawRef.k] = value2;
|
|
4908
|
+
} else
|
|
4909
|
+
;
|
|
4910
|
+
};
|
|
4911
|
+
if (value2) {
|
|
4912
|
+
doSet.id = -1;
|
|
4913
|
+
queuePostRenderEffect(doSet, parentSuspense);
|
|
4914
|
+
} else {
|
|
4915
|
+
doSet();
|
|
4916
|
+
}
|
|
4917
|
+
}
|
|
4918
|
+
}
|
|
4919
|
+
}
|
|
4452
4920
|
const queuePostRenderEffect = queueEffectWithSuspense;
|
|
4453
4921
|
function createRenderer(options) {
|
|
4454
4922
|
return baseCreateRenderer(options);
|
|
@@ -4520,7 +4988,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4520
4988
|
}
|
|
4521
4989
|
};
|
|
4522
4990
|
const mountStaticNode = (n2, container2, anchor, isSVG) => {
|
|
4523
|
-
[n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container2, anchor, isSVG);
|
|
4991
|
+
[n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container2, anchor, isSVG, n2.el, n2.anchor);
|
|
4524
4992
|
};
|
|
4525
4993
|
const moveStaticNode = ({ el, anchor }, container2, nextSibling) => {
|
|
4526
4994
|
let next2;
|
|
@@ -4625,12 +5093,14 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4625
5093
|
const oldProps = n1.props || EMPTY_OBJ;
|
|
4626
5094
|
const newProps = n2.props || EMPTY_OBJ;
|
|
4627
5095
|
let vnodeHook;
|
|
5096
|
+
parentComponent && toggleRecurse(parentComponent, false);
|
|
4628
5097
|
if (vnodeHook = newProps.onVnodeBeforeUpdate) {
|
|
4629
5098
|
invokeVNodeHook(vnodeHook, parentComponent, n2, n1);
|
|
4630
5099
|
}
|
|
4631
5100
|
if (dirs) {
|
|
4632
5101
|
invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate");
|
|
4633
5102
|
}
|
|
5103
|
+
parentComponent && toggleRecurse(parentComponent, true);
|
|
4634
5104
|
const areChildrenSVG = isSVG && n2.type !== "foreignObject";
|
|
4635
5105
|
if (dynamicChildren) {
|
|
4636
5106
|
patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds);
|
|
@@ -4783,14 +5253,14 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4783
5253
|
const { el, props } = initialVNode;
|
|
4784
5254
|
const { bm, m, parent: parent2 } = instance;
|
|
4785
5255
|
const isAsyncWrapperVNode = isAsyncWrapper(initialVNode);
|
|
4786
|
-
|
|
5256
|
+
toggleRecurse(instance, false);
|
|
4787
5257
|
if (bm) {
|
|
4788
5258
|
invokeArrayFns(bm);
|
|
4789
5259
|
}
|
|
4790
5260
|
if (!isAsyncWrapperVNode && (vnodeHook = props && props.onVnodeBeforeMount)) {
|
|
4791
5261
|
invokeVNodeHook(vnodeHook, parent2, initialVNode);
|
|
4792
5262
|
}
|
|
4793
|
-
|
|
5263
|
+
toggleRecurse(instance, true);
|
|
4794
5264
|
if (el && hydrateNode) {
|
|
4795
5265
|
const hydrateSubTree = () => {
|
|
4796
5266
|
instance.subTree = renderComponentRoot(instance);
|
|
@@ -4822,7 +5292,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4822
5292
|
let { next: next2, bu, u, parent: parent2, vnode } = instance;
|
|
4823
5293
|
let originNext = next2;
|
|
4824
5294
|
let vnodeHook;
|
|
4825
|
-
|
|
5295
|
+
toggleRecurse(instance, false);
|
|
4826
5296
|
if (next2) {
|
|
4827
5297
|
next2.el = vnode.el;
|
|
4828
5298
|
updateComponentPreRender(instance, next2, optimized);
|
|
@@ -4835,7 +5305,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4835
5305
|
if (vnodeHook = next2.props && next2.props.onVnodeBeforeUpdate) {
|
|
4836
5306
|
invokeVNodeHook(vnodeHook, parent2, next2, vnode);
|
|
4837
5307
|
}
|
|
4838
|
-
|
|
5308
|
+
toggleRecurse(instance, true);
|
|
4839
5309
|
const nextTree = renderComponentRoot(instance);
|
|
4840
5310
|
const prevTree = instance.subTree;
|
|
4841
5311
|
instance.subTree = nextTree;
|
|
@@ -4852,10 +5322,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4852
5322
|
}
|
|
4853
5323
|
}
|
|
4854
5324
|
};
|
|
4855
|
-
const effect2 = new ReactiveEffect(componentUpdateFn, () => queueJob(instance.update), instance.scope);
|
|
5325
|
+
const effect2 = instance.effect = new ReactiveEffect(componentUpdateFn, () => queueJob(instance.update), instance.scope);
|
|
4856
5326
|
const update = instance.update = effect2.run.bind(effect2);
|
|
4857
5327
|
update.id = instance.uid;
|
|
4858
|
-
|
|
5328
|
+
toggleRecurse(instance, true);
|
|
4859
5329
|
update();
|
|
4860
5330
|
};
|
|
4861
5331
|
const updateComponentPreRender = (instance, nextVNode, optimized) => {
|
|
@@ -5127,7 +5597,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5127
5597
|
const remove2 = (vnode) => {
|
|
5128
5598
|
const { type, el, anchor, transition } = vnode;
|
|
5129
5599
|
if (type === Fragment) {
|
|
5130
|
-
|
|
5600
|
+
{
|
|
5601
|
+
removeFragment(el, anchor);
|
|
5602
|
+
}
|
|
5131
5603
|
return;
|
|
5132
5604
|
}
|
|
5133
5605
|
if (type === Static) {
|
|
@@ -5232,65 +5704,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5232
5704
|
createApp: createAppAPI(render2, hydrate)
|
|
5233
5705
|
};
|
|
5234
5706
|
}
|
|
5235
|
-
function
|
|
5236
|
-
|
|
5237
|
-
rawRef.forEach((r, i2) => setRef(r, oldRawRef && (isArray(oldRawRef) ? oldRawRef[i2] : oldRawRef), parentSuspense, vnode, isUnmount));
|
|
5238
|
-
return;
|
|
5239
|
-
}
|
|
5240
|
-
if (isAsyncWrapper(vnode) && !isUnmount) {
|
|
5241
|
-
return;
|
|
5242
|
-
}
|
|
5243
|
-
const refValue = vnode.shapeFlag & 4 ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el;
|
|
5244
|
-
const value2 = isUnmount ? null : refValue;
|
|
5245
|
-
const { i: owner, r: ref2 } = rawRef;
|
|
5246
|
-
const oldRef = oldRawRef && oldRawRef.r;
|
|
5247
|
-
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
5248
|
-
const setupState = owner.setupState;
|
|
5249
|
-
if (oldRef != null && oldRef !== ref2) {
|
|
5250
|
-
if (isString(oldRef)) {
|
|
5251
|
-
refs[oldRef] = null;
|
|
5252
|
-
if (hasOwn(setupState, oldRef)) {
|
|
5253
|
-
setupState[oldRef] = null;
|
|
5254
|
-
}
|
|
5255
|
-
} else if (isRef(oldRef)) {
|
|
5256
|
-
oldRef.value = null;
|
|
5257
|
-
}
|
|
5258
|
-
}
|
|
5259
|
-
if (isString(ref2)) {
|
|
5260
|
-
const doSet = () => {
|
|
5261
|
-
{
|
|
5262
|
-
refs[ref2] = value2;
|
|
5263
|
-
}
|
|
5264
|
-
if (hasOwn(setupState, ref2)) {
|
|
5265
|
-
setupState[ref2] = value2;
|
|
5266
|
-
}
|
|
5267
|
-
};
|
|
5268
|
-
if (value2) {
|
|
5269
|
-
doSet.id = -1;
|
|
5270
|
-
queuePostRenderEffect(doSet, parentSuspense);
|
|
5271
|
-
} else {
|
|
5272
|
-
doSet();
|
|
5273
|
-
}
|
|
5274
|
-
} else if (isRef(ref2)) {
|
|
5275
|
-
const doSet = () => {
|
|
5276
|
-
ref2.value = value2;
|
|
5277
|
-
};
|
|
5278
|
-
if (value2) {
|
|
5279
|
-
doSet.id = -1;
|
|
5280
|
-
queuePostRenderEffect(doSet, parentSuspense);
|
|
5281
|
-
} else {
|
|
5282
|
-
doSet();
|
|
5283
|
-
}
|
|
5284
|
-
} else if (isFunction(ref2)) {
|
|
5285
|
-
callWithErrorHandling(ref2, owner, 12, [value2, refs]);
|
|
5286
|
-
} else
|
|
5287
|
-
;
|
|
5288
|
-
}
|
|
5289
|
-
function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
5290
|
-
callWithAsyncErrorHandling(hook, instance, 7, [
|
|
5291
|
-
vnode,
|
|
5292
|
-
prevVNode
|
|
5293
|
-
]);
|
|
5707
|
+
function toggleRecurse({ effect: effect2, update }, allowed) {
|
|
5708
|
+
effect2.allowRecurse = update.allowRecurse = allowed;
|
|
5294
5709
|
}
|
|
5295
5710
|
function traverseStaticChildren(n1, n2, shallow = false) {
|
|
5296
5711
|
const ch1 = n1.children;
|
|
@@ -5548,8 +5963,8 @@ function isSameVNodeType(n1, n2) {
|
|
|
5548
5963
|
}
|
|
5549
5964
|
const InternalObjectKey = `__vInternal`;
|
|
5550
5965
|
const normalizeKey = ({ key: key2 }) => key2 != null ? key2 : null;
|
|
5551
|
-
const normalizeRef = ({ ref: ref2 }) => {
|
|
5552
|
-
return ref2 != null ? isString(ref2) || isRef(ref2) || isFunction(ref2) ? { i: currentRenderingInstance, r: ref2 } : ref2 : null;
|
|
5966
|
+
const normalizeRef = ({ ref: ref2, ref_key, ref_for }) => {
|
|
5967
|
+
return ref2 != null ? isString(ref2) || isRef(ref2) || isFunction(ref2) ? { i: currentRenderingInstance, r: ref2, k: ref_key, f: !!ref_for } : ref2 : null;
|
|
5553
5968
|
};
|
|
5554
5969
|
function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1, isBlockNode = false, needFullChildrenNormalization = false) {
|
|
5555
5970
|
const vnode = {
|
|
@@ -5739,7 +6154,7 @@ function mergeProps(...args) {
|
|
|
5739
6154
|
} else if (isOn(key2)) {
|
|
5740
6155
|
const existing = ret[key2];
|
|
5741
6156
|
const incoming = toMerge[key2];
|
|
5742
|
-
if (existing !== incoming && !(isArray(existing) && existing.includes(incoming))) {
|
|
6157
|
+
if (incoming && existing !== incoming && !(isArray(existing) && existing.includes(incoming))) {
|
|
5743
6158
|
ret[key2] = existing ? [].concat(existing, incoming) : incoming;
|
|
5744
6159
|
}
|
|
5745
6160
|
} else if (key2 !== "") {
|
|
@@ -5749,6 +6164,12 @@ function mergeProps(...args) {
|
|
|
5749
6164
|
}
|
|
5750
6165
|
return ret;
|
|
5751
6166
|
}
|
|
6167
|
+
function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
6168
|
+
callWithAsyncErrorHandling(hook, instance, 7, [
|
|
6169
|
+
vnode,
|
|
6170
|
+
prevVNode
|
|
6171
|
+
]);
|
|
6172
|
+
}
|
|
5752
6173
|
function renderList(source, renderItem, cache, index2) {
|
|
5753
6174
|
let ret;
|
|
5754
6175
|
const cached = cache && cache[index2];
|
|
@@ -5782,7 +6203,7 @@ function renderList(source, renderItem, cache, index2) {
|
|
|
5782
6203
|
return ret;
|
|
5783
6204
|
}
|
|
5784
6205
|
function renderSlot(slots, name2, props = {}, fallback, noSlotted) {
|
|
5785
|
-
if (currentRenderingInstance.isCE) {
|
|
6206
|
+
if (currentRenderingInstance.isCE || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.isCE) {
|
|
5786
6207
|
return createVNode("slot", name2 === "default" ? null : { name: name2 }, fallback && fallback());
|
|
5787
6208
|
}
|
|
5788
6209
|
let slot = slots[name2];
|
|
@@ -5818,7 +6239,7 @@ const getPublicInstance = (i2) => {
|
|
|
5818
6239
|
return getExposeProxy(i2) || i2.proxy;
|
|
5819
6240
|
return getPublicInstance(i2.parent);
|
|
5820
6241
|
};
|
|
5821
|
-
const publicPropertiesMap = extend(Object.create(null), {
|
|
6242
|
+
const publicPropertiesMap = /* @__PURE__ */ extend(Object.create(null), {
|
|
5822
6243
|
$: (i2) => i2,
|
|
5823
6244
|
$el: (i2) => i2.vnode.el,
|
|
5824
6245
|
$data: (i2) => i2.data,
|
|
@@ -5890,8 +6311,10 @@ const PublicInstanceProxyHandlers = {
|
|
|
5890
6311
|
const { data: data2, setupState, ctx } = instance;
|
|
5891
6312
|
if (setupState !== EMPTY_OBJ && hasOwn(setupState, key2)) {
|
|
5892
6313
|
setupState[key2] = value2;
|
|
6314
|
+
return true;
|
|
5893
6315
|
} else if (data2 !== EMPTY_OBJ && hasOwn(data2, key2)) {
|
|
5894
6316
|
data2[key2] = value2;
|
|
6317
|
+
return true;
|
|
5895
6318
|
} else if (hasOwn(instance.props, key2)) {
|
|
5896
6319
|
return false;
|
|
5897
6320
|
}
|
|
@@ -5907,6 +6330,14 @@ const PublicInstanceProxyHandlers = {
|
|
|
5907
6330
|
has({ _: { data: data2, setupState, accessCache, ctx, appContext, propsOptions } }, key2) {
|
|
5908
6331
|
let normalizedProps;
|
|
5909
6332
|
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);
|
|
6333
|
+
},
|
|
6334
|
+
defineProperty(target, key2, descriptor) {
|
|
6335
|
+
if (descriptor.get != null) {
|
|
6336
|
+
target._.accessCache[key2] = 0;
|
|
6337
|
+
} else if (hasOwn(descriptor, "value")) {
|
|
6338
|
+
this.set(target, key2, descriptor.value, null);
|
|
6339
|
+
}
|
|
6340
|
+
return Reflect.defineProperty(target, key2, descriptor);
|
|
5910
6341
|
}
|
|
5911
6342
|
};
|
|
5912
6343
|
const emptyAppContext = createAppContext();
|
|
@@ -5923,6 +6354,7 @@ function createComponentInstance(vnode, parent2, suspense) {
|
|
|
5923
6354
|
root: null,
|
|
5924
6355
|
next: null,
|
|
5925
6356
|
subTree: null,
|
|
6357
|
+
effect: null,
|
|
5926
6358
|
update: null,
|
|
5927
6359
|
scope: new EffectScope(true),
|
|
5928
6360
|
render: null,
|
|
@@ -6117,364 +6549,9 @@ function getComponentName(Component) {
|
|
|
6117
6549
|
function isClassComponent(value2) {
|
|
6118
6550
|
return isFunction(value2) && "__vccOpts" in value2;
|
|
6119
6551
|
}
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
res = args ? fn(...args) : fn();
|
|
6124
|
-
} catch (err) {
|
|
6125
|
-
handleError(err, instance, type);
|
|
6126
|
-
}
|
|
6127
|
-
return res;
|
|
6128
|
-
}
|
|
6129
|
-
function callWithAsyncErrorHandling(fn, instance, type, args) {
|
|
6130
|
-
if (isFunction(fn)) {
|
|
6131
|
-
const res = callWithErrorHandling(fn, instance, type, args);
|
|
6132
|
-
if (res && isPromise(res)) {
|
|
6133
|
-
res.catch((err) => {
|
|
6134
|
-
handleError(err, instance, type);
|
|
6135
|
-
});
|
|
6136
|
-
}
|
|
6137
|
-
return res;
|
|
6138
|
-
}
|
|
6139
|
-
const values = [];
|
|
6140
|
-
for (let i2 = 0; i2 < fn.length; i2++) {
|
|
6141
|
-
values.push(callWithAsyncErrorHandling(fn[i2], instance, type, args));
|
|
6142
|
-
}
|
|
6143
|
-
return values;
|
|
6144
|
-
}
|
|
6145
|
-
function handleError(err, instance, type, throwInDev = true) {
|
|
6146
|
-
const contextVNode = instance ? instance.vnode : null;
|
|
6147
|
-
if (instance) {
|
|
6148
|
-
let cur = instance.parent;
|
|
6149
|
-
const exposedInstance = instance.proxy;
|
|
6150
|
-
const errorInfo = type;
|
|
6151
|
-
while (cur) {
|
|
6152
|
-
const errorCapturedHooks = cur.ec;
|
|
6153
|
-
if (errorCapturedHooks) {
|
|
6154
|
-
for (let i2 = 0; i2 < errorCapturedHooks.length; i2++) {
|
|
6155
|
-
if (errorCapturedHooks[i2](err, exposedInstance, errorInfo) === false) {
|
|
6156
|
-
return;
|
|
6157
|
-
}
|
|
6158
|
-
}
|
|
6159
|
-
}
|
|
6160
|
-
cur = cur.parent;
|
|
6161
|
-
}
|
|
6162
|
-
const appErrorHandler = instance.appContext.config.errorHandler;
|
|
6163
|
-
if (appErrorHandler) {
|
|
6164
|
-
callWithErrorHandling(appErrorHandler, null, 10, [err, exposedInstance, errorInfo]);
|
|
6165
|
-
return;
|
|
6166
|
-
}
|
|
6167
|
-
}
|
|
6168
|
-
logError(err, type, contextVNode, throwInDev);
|
|
6169
|
-
}
|
|
6170
|
-
function logError(err, type, contextVNode, throwInDev = true) {
|
|
6171
|
-
{
|
|
6172
|
-
console.error(err);
|
|
6173
|
-
}
|
|
6174
|
-
}
|
|
6175
|
-
let isFlushing = false;
|
|
6176
|
-
let isFlushPending = false;
|
|
6177
|
-
const queue = [];
|
|
6178
|
-
let flushIndex = 0;
|
|
6179
|
-
const pendingPreFlushCbs = [];
|
|
6180
|
-
let activePreFlushCbs = null;
|
|
6181
|
-
let preFlushIndex = 0;
|
|
6182
|
-
const pendingPostFlushCbs = [];
|
|
6183
|
-
let activePostFlushCbs = null;
|
|
6184
|
-
let postFlushIndex = 0;
|
|
6185
|
-
const resolvedPromise = Promise.resolve();
|
|
6186
|
-
let currentFlushPromise = null;
|
|
6187
|
-
let currentPreFlushParentJob = null;
|
|
6188
|
-
function nextTick(fn) {
|
|
6189
|
-
const p2 = currentFlushPromise || resolvedPromise;
|
|
6190
|
-
return fn ? p2.then(this ? fn.bind(this) : fn) : p2;
|
|
6191
|
-
}
|
|
6192
|
-
function findInsertionIndex(id) {
|
|
6193
|
-
let start = flushIndex + 1;
|
|
6194
|
-
let end = queue.length;
|
|
6195
|
-
while (start < end) {
|
|
6196
|
-
const middle = start + end >>> 1;
|
|
6197
|
-
const middleJobId = getId(queue[middle]);
|
|
6198
|
-
middleJobId < id ? start = middle + 1 : end = middle;
|
|
6199
|
-
}
|
|
6200
|
-
return start;
|
|
6201
|
-
}
|
|
6202
|
-
function queueJob(job) {
|
|
6203
|
-
if ((!queue.length || !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) && job !== currentPreFlushParentJob) {
|
|
6204
|
-
if (job.id == null) {
|
|
6205
|
-
queue.push(job);
|
|
6206
|
-
} else {
|
|
6207
|
-
queue.splice(findInsertionIndex(job.id), 0, job);
|
|
6208
|
-
}
|
|
6209
|
-
queueFlush();
|
|
6210
|
-
}
|
|
6211
|
-
}
|
|
6212
|
-
function queueFlush() {
|
|
6213
|
-
if (!isFlushing && !isFlushPending) {
|
|
6214
|
-
isFlushPending = true;
|
|
6215
|
-
currentFlushPromise = resolvedPromise.then(flushJobs);
|
|
6216
|
-
}
|
|
6217
|
-
}
|
|
6218
|
-
function invalidateJob(job) {
|
|
6219
|
-
const i2 = queue.indexOf(job);
|
|
6220
|
-
if (i2 > flushIndex) {
|
|
6221
|
-
queue.splice(i2, 1);
|
|
6222
|
-
}
|
|
6223
|
-
}
|
|
6224
|
-
function queueCb(cb, activeQueue, pendingQueue, index2) {
|
|
6225
|
-
if (!isArray(cb)) {
|
|
6226
|
-
if (!activeQueue || !activeQueue.includes(cb, cb.allowRecurse ? index2 + 1 : index2)) {
|
|
6227
|
-
pendingQueue.push(cb);
|
|
6228
|
-
}
|
|
6229
|
-
} else {
|
|
6230
|
-
pendingQueue.push(...cb);
|
|
6231
|
-
}
|
|
6232
|
-
queueFlush();
|
|
6233
|
-
}
|
|
6234
|
-
function queuePreFlushCb(cb) {
|
|
6235
|
-
queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex);
|
|
6236
|
-
}
|
|
6237
|
-
function queuePostFlushCb(cb) {
|
|
6238
|
-
queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex);
|
|
6239
|
-
}
|
|
6240
|
-
function flushPreFlushCbs(seen, parentJob = null) {
|
|
6241
|
-
if (pendingPreFlushCbs.length) {
|
|
6242
|
-
currentPreFlushParentJob = parentJob;
|
|
6243
|
-
activePreFlushCbs = [...new Set(pendingPreFlushCbs)];
|
|
6244
|
-
pendingPreFlushCbs.length = 0;
|
|
6245
|
-
for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) {
|
|
6246
|
-
activePreFlushCbs[preFlushIndex]();
|
|
6247
|
-
}
|
|
6248
|
-
activePreFlushCbs = null;
|
|
6249
|
-
preFlushIndex = 0;
|
|
6250
|
-
currentPreFlushParentJob = null;
|
|
6251
|
-
flushPreFlushCbs(seen, parentJob);
|
|
6252
|
-
}
|
|
6253
|
-
}
|
|
6254
|
-
function flushPostFlushCbs(seen) {
|
|
6255
|
-
if (pendingPostFlushCbs.length) {
|
|
6256
|
-
const deduped = [...new Set(pendingPostFlushCbs)];
|
|
6257
|
-
pendingPostFlushCbs.length = 0;
|
|
6258
|
-
if (activePostFlushCbs) {
|
|
6259
|
-
activePostFlushCbs.push(...deduped);
|
|
6260
|
-
return;
|
|
6261
|
-
}
|
|
6262
|
-
activePostFlushCbs = deduped;
|
|
6263
|
-
activePostFlushCbs.sort((a, b) => getId(a) - getId(b));
|
|
6264
|
-
for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
|
|
6265
|
-
activePostFlushCbs[postFlushIndex]();
|
|
6266
|
-
}
|
|
6267
|
-
activePostFlushCbs = null;
|
|
6268
|
-
postFlushIndex = 0;
|
|
6269
|
-
}
|
|
6270
|
-
}
|
|
6271
|
-
const getId = (job) => job.id == null ? Infinity : job.id;
|
|
6272
|
-
function flushJobs(seen) {
|
|
6273
|
-
isFlushPending = false;
|
|
6274
|
-
isFlushing = true;
|
|
6275
|
-
flushPreFlushCbs(seen);
|
|
6276
|
-
queue.sort((a, b) => getId(a) - getId(b));
|
|
6277
|
-
const check = NOOP;
|
|
6278
|
-
try {
|
|
6279
|
-
for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
|
|
6280
|
-
const job = queue[flushIndex];
|
|
6281
|
-
if (job && job.active !== false) {
|
|
6282
|
-
if (false)
|
|
6283
|
-
;
|
|
6284
|
-
callWithErrorHandling(job, null, 14);
|
|
6285
|
-
}
|
|
6286
|
-
}
|
|
6287
|
-
} finally {
|
|
6288
|
-
flushIndex = 0;
|
|
6289
|
-
queue.length = 0;
|
|
6290
|
-
flushPostFlushCbs();
|
|
6291
|
-
isFlushing = false;
|
|
6292
|
-
currentFlushPromise = null;
|
|
6293
|
-
if (queue.length || pendingPreFlushCbs.length || pendingPostFlushCbs.length) {
|
|
6294
|
-
flushJobs(seen);
|
|
6295
|
-
}
|
|
6296
|
-
}
|
|
6297
|
-
}
|
|
6298
|
-
const INITIAL_WATCHER_VALUE = {};
|
|
6299
|
-
function watch(source, cb, options) {
|
|
6300
|
-
return doWatch(source, cb, options);
|
|
6301
|
-
}
|
|
6302
|
-
function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) {
|
|
6303
|
-
const instance = currentInstance;
|
|
6304
|
-
let getter;
|
|
6305
|
-
let forceTrigger = false;
|
|
6306
|
-
let isMultiSource = false;
|
|
6307
|
-
if (isRef(source)) {
|
|
6308
|
-
getter = () => source.value;
|
|
6309
|
-
forceTrigger = !!source._shallow;
|
|
6310
|
-
} else if (isReactive(source)) {
|
|
6311
|
-
getter = () => source;
|
|
6312
|
-
deep = true;
|
|
6313
|
-
} else if (isArray(source)) {
|
|
6314
|
-
isMultiSource = true;
|
|
6315
|
-
forceTrigger = source.some(isReactive);
|
|
6316
|
-
getter = () => source.map((s) => {
|
|
6317
|
-
if (isRef(s)) {
|
|
6318
|
-
return s.value;
|
|
6319
|
-
} else if (isReactive(s)) {
|
|
6320
|
-
return traverse(s);
|
|
6321
|
-
} else if (isFunction(s)) {
|
|
6322
|
-
return callWithErrorHandling(s, instance, 2);
|
|
6323
|
-
} else
|
|
6324
|
-
;
|
|
6325
|
-
});
|
|
6326
|
-
} else if (isFunction(source)) {
|
|
6327
|
-
if (cb) {
|
|
6328
|
-
getter = () => callWithErrorHandling(source, instance, 2);
|
|
6329
|
-
} else {
|
|
6330
|
-
getter = () => {
|
|
6331
|
-
if (instance && instance.isUnmounted) {
|
|
6332
|
-
return;
|
|
6333
|
-
}
|
|
6334
|
-
if (cleanup) {
|
|
6335
|
-
cleanup();
|
|
6336
|
-
}
|
|
6337
|
-
return callWithAsyncErrorHandling(source, instance, 3, [onInvalidate]);
|
|
6338
|
-
};
|
|
6339
|
-
}
|
|
6340
|
-
} else {
|
|
6341
|
-
getter = NOOP;
|
|
6342
|
-
}
|
|
6343
|
-
if (cb && deep) {
|
|
6344
|
-
const baseGetter = getter;
|
|
6345
|
-
getter = () => traverse(baseGetter());
|
|
6346
|
-
}
|
|
6347
|
-
let cleanup;
|
|
6348
|
-
let onInvalidate = (fn) => {
|
|
6349
|
-
cleanup = effect2.onStop = () => {
|
|
6350
|
-
callWithErrorHandling(fn, instance, 4);
|
|
6351
|
-
};
|
|
6352
|
-
};
|
|
6353
|
-
if (isInSSRComponentSetup) {
|
|
6354
|
-
onInvalidate = NOOP;
|
|
6355
|
-
if (!cb) {
|
|
6356
|
-
getter();
|
|
6357
|
-
} else if (immediate) {
|
|
6358
|
-
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
6359
|
-
getter(),
|
|
6360
|
-
isMultiSource ? [] : void 0,
|
|
6361
|
-
onInvalidate
|
|
6362
|
-
]);
|
|
6363
|
-
}
|
|
6364
|
-
return NOOP;
|
|
6365
|
-
}
|
|
6366
|
-
let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;
|
|
6367
|
-
const job = () => {
|
|
6368
|
-
if (!effect2.active) {
|
|
6369
|
-
return;
|
|
6370
|
-
}
|
|
6371
|
-
if (cb) {
|
|
6372
|
-
const newValue = effect2.run();
|
|
6373
|
-
if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i2) => hasChanged(v, oldValue[i2])) : hasChanged(newValue, oldValue)) || false) {
|
|
6374
|
-
if (cleanup) {
|
|
6375
|
-
cleanup();
|
|
6376
|
-
}
|
|
6377
|
-
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
6378
|
-
newValue,
|
|
6379
|
-
oldValue === INITIAL_WATCHER_VALUE ? void 0 : oldValue,
|
|
6380
|
-
onInvalidate
|
|
6381
|
-
]);
|
|
6382
|
-
oldValue = newValue;
|
|
6383
|
-
}
|
|
6384
|
-
} else {
|
|
6385
|
-
effect2.run();
|
|
6386
|
-
}
|
|
6387
|
-
};
|
|
6388
|
-
job.allowRecurse = !!cb;
|
|
6389
|
-
let scheduler;
|
|
6390
|
-
if (flush === "sync") {
|
|
6391
|
-
scheduler = job;
|
|
6392
|
-
} else if (flush === "post") {
|
|
6393
|
-
scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
|
|
6394
|
-
} else {
|
|
6395
|
-
scheduler = () => {
|
|
6396
|
-
if (!instance || instance.isMounted) {
|
|
6397
|
-
queuePreFlushCb(job);
|
|
6398
|
-
} else {
|
|
6399
|
-
job();
|
|
6400
|
-
}
|
|
6401
|
-
};
|
|
6402
|
-
}
|
|
6403
|
-
const effect2 = new ReactiveEffect(getter, scheduler);
|
|
6404
|
-
if (cb) {
|
|
6405
|
-
if (immediate) {
|
|
6406
|
-
job();
|
|
6407
|
-
} else {
|
|
6408
|
-
oldValue = effect2.run();
|
|
6409
|
-
}
|
|
6410
|
-
} else if (flush === "post") {
|
|
6411
|
-
queuePostRenderEffect(effect2.run.bind(effect2), instance && instance.suspense);
|
|
6412
|
-
} else {
|
|
6413
|
-
effect2.run();
|
|
6414
|
-
}
|
|
6415
|
-
return () => {
|
|
6416
|
-
effect2.stop();
|
|
6417
|
-
if (instance && instance.scope) {
|
|
6418
|
-
remove(instance.scope.effects, effect2);
|
|
6419
|
-
}
|
|
6420
|
-
};
|
|
6421
|
-
}
|
|
6422
|
-
function instanceWatch(source, value2, options) {
|
|
6423
|
-
const publicThis = this.proxy;
|
|
6424
|
-
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
6425
|
-
let cb;
|
|
6426
|
-
if (isFunction(value2)) {
|
|
6427
|
-
cb = value2;
|
|
6428
|
-
} else {
|
|
6429
|
-
cb = value2.handler;
|
|
6430
|
-
options = value2;
|
|
6431
|
-
}
|
|
6432
|
-
const cur = currentInstance;
|
|
6433
|
-
setCurrentInstance(this);
|
|
6434
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
6435
|
-
if (cur) {
|
|
6436
|
-
setCurrentInstance(cur);
|
|
6437
|
-
} else {
|
|
6438
|
-
unsetCurrentInstance();
|
|
6439
|
-
}
|
|
6440
|
-
return res;
|
|
6441
|
-
}
|
|
6442
|
-
function createPathGetter(ctx, path) {
|
|
6443
|
-
const segments = path.split(".");
|
|
6444
|
-
return () => {
|
|
6445
|
-
let cur = ctx;
|
|
6446
|
-
for (let i2 = 0; i2 < segments.length && cur; i2++) {
|
|
6447
|
-
cur = cur[segments[i2]];
|
|
6448
|
-
}
|
|
6449
|
-
return cur;
|
|
6450
|
-
};
|
|
6451
|
-
}
|
|
6452
|
-
function traverse(value2, seen) {
|
|
6453
|
-
if (!isObject(value2) || value2["__v_skip"]) {
|
|
6454
|
-
return value2;
|
|
6455
|
-
}
|
|
6456
|
-
seen = seen || new Set();
|
|
6457
|
-
if (seen.has(value2)) {
|
|
6458
|
-
return value2;
|
|
6459
|
-
}
|
|
6460
|
-
seen.add(value2);
|
|
6461
|
-
if (isRef(value2)) {
|
|
6462
|
-
traverse(value2.value, seen);
|
|
6463
|
-
} else if (isArray(value2)) {
|
|
6464
|
-
for (let i2 = 0; i2 < value2.length; i2++) {
|
|
6465
|
-
traverse(value2[i2], seen);
|
|
6466
|
-
}
|
|
6467
|
-
} else if (isSet(value2) || isMap(value2)) {
|
|
6468
|
-
value2.forEach((v) => {
|
|
6469
|
-
traverse(v, seen);
|
|
6470
|
-
});
|
|
6471
|
-
} else if (isPlainObject$1(value2)) {
|
|
6472
|
-
for (const key2 in value2) {
|
|
6473
|
-
traverse(value2[key2], seen);
|
|
6474
|
-
}
|
|
6475
|
-
}
|
|
6476
|
-
return value2;
|
|
6477
|
-
}
|
|
6552
|
+
const computed = (getterOrOptions, debugOptions) => {
|
|
6553
|
+
return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
6554
|
+
};
|
|
6478
6555
|
function h(type, propsOrChildren, children) {
|
|
6479
6556
|
const l = arguments.length;
|
|
6480
6557
|
if (l === 2) {
|
|
@@ -6495,10 +6572,10 @@ function h(type, propsOrChildren, children) {
|
|
|
6495
6572
|
return createVNode(type, propsOrChildren, children);
|
|
6496
6573
|
}
|
|
6497
6574
|
}
|
|
6498
|
-
const version = "3.2.
|
|
6575
|
+
const version = "3.2.33";
|
|
6499
6576
|
const svgNS = "http://www.w3.org/2000/svg";
|
|
6500
6577
|
const doc = typeof document !== "undefined" ? document : null;
|
|
6501
|
-
const
|
|
6578
|
+
const templateContainer = doc && /* @__PURE__ */ doc.createElement("template");
|
|
6502
6579
|
const nodeOps = {
|
|
6503
6580
|
insert: (child, parent2, anchor) => {
|
|
6504
6581
|
parent2.insertBefore(child, anchor || null);
|
|
@@ -6537,13 +6614,17 @@ const nodeOps = {
|
|
|
6537
6614
|
}
|
|
6538
6615
|
return cloned;
|
|
6539
6616
|
},
|
|
6540
|
-
insertStaticContent(content2, parent2, anchor, isSVG) {
|
|
6617
|
+
insertStaticContent(content2, parent2, anchor, isSVG, start, end) {
|
|
6541
6618
|
const before = anchor ? anchor.previousSibling : parent2.lastChild;
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6619
|
+
if (start && (start === end || start.nextSibling)) {
|
|
6620
|
+
while (true) {
|
|
6621
|
+
parent2.insertBefore(start.cloneNode(true), anchor);
|
|
6622
|
+
if (start === end || !(start = start.nextSibling))
|
|
6623
|
+
break;
|
|
6624
|
+
}
|
|
6625
|
+
} else {
|
|
6626
|
+
templateContainer.innerHTML = isSVG ? `<svg>${content2}</svg>` : content2;
|
|
6627
|
+
const template = templateContainer.content;
|
|
6547
6628
|
if (isSVG) {
|
|
6548
6629
|
const wrapper = template.firstChild;
|
|
6549
6630
|
while (wrapper.firstChild) {
|
|
@@ -6551,9 +6632,8 @@ const nodeOps = {
|
|
|
6551
6632
|
}
|
|
6552
6633
|
template.removeChild(wrapper);
|
|
6553
6634
|
}
|
|
6554
|
-
|
|
6635
|
+
parent2.insertBefore(template, anchor);
|
|
6555
6636
|
}
|
|
6556
|
-
parent2.insertBefore(template.cloneNode(true), anchor);
|
|
6557
6637
|
return [
|
|
6558
6638
|
before ? before.nextSibling : parent2.firstChild,
|
|
6559
6639
|
anchor ? anchor.previousSibling : parent2.lastChild
|
|
@@ -6606,6 +6686,8 @@ function setStyle(style, name2, val2) {
|
|
|
6606
6686
|
if (isArray(val2)) {
|
|
6607
6687
|
val2.forEach((v) => setStyle(style, name2, v));
|
|
6608
6688
|
} else {
|
|
6689
|
+
if (val2 == null)
|
|
6690
|
+
val2 = "";
|
|
6609
6691
|
if (name2.startsWith("--")) {
|
|
6610
6692
|
style.setProperty(name2, val2);
|
|
6611
6693
|
} else {
|
|
@@ -6674,40 +6756,39 @@ function patchDOMProp(el, key2, value2, prevChildren, parentComponent, parentSus
|
|
|
6674
6756
|
}
|
|
6675
6757
|
return;
|
|
6676
6758
|
}
|
|
6759
|
+
let needRemove = false;
|
|
6677
6760
|
if (value2 === "" || value2 == null) {
|
|
6678
6761
|
const type = typeof el[key2];
|
|
6679
6762
|
if (type === "boolean") {
|
|
6680
|
-
|
|
6681
|
-
return;
|
|
6763
|
+
value2 = includeBooleanAttr(value2);
|
|
6682
6764
|
} else if (value2 == null && type === "string") {
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
return;
|
|
6765
|
+
value2 = "";
|
|
6766
|
+
needRemove = true;
|
|
6686
6767
|
} else if (type === "number") {
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
} catch (_a) {
|
|
6690
|
-
}
|
|
6691
|
-
el.removeAttribute(key2);
|
|
6692
|
-
return;
|
|
6768
|
+
value2 = 0;
|
|
6769
|
+
needRemove = true;
|
|
6693
6770
|
}
|
|
6694
6771
|
}
|
|
6695
6772
|
try {
|
|
6696
6773
|
el[key2] = value2;
|
|
6697
6774
|
} catch (e) {
|
|
6698
6775
|
}
|
|
6776
|
+
needRemove && el.removeAttribute(key2);
|
|
6699
6777
|
}
|
|
6700
|
-
|
|
6701
|
-
let
|
|
6702
|
-
|
|
6703
|
-
if (
|
|
6704
|
-
|
|
6778
|
+
const [_getNow, skipTimestampCheck] = /* @__PURE__ */ (() => {
|
|
6779
|
+
let _getNow2 = Date.now;
|
|
6780
|
+
let skipTimestampCheck2 = false;
|
|
6781
|
+
if (typeof window !== "undefined") {
|
|
6782
|
+
if (Date.now() > document.createEvent("Event").timeStamp) {
|
|
6783
|
+
_getNow2 = () => performance.now();
|
|
6784
|
+
}
|
|
6785
|
+
const ffMatch = navigator.userAgent.match(/firefox\/(\d+)/i);
|
|
6786
|
+
skipTimestampCheck2 = !!(ffMatch && Number(ffMatch[1]) <= 53);
|
|
6705
6787
|
}
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
}
|
|
6788
|
+
return [_getNow2, skipTimestampCheck2];
|
|
6789
|
+
})();
|
|
6709
6790
|
let cachedNow = 0;
|
|
6710
|
-
const p = Promise.resolve();
|
|
6791
|
+
const p = /* @__PURE__ */ Promise.resolve();
|
|
6711
6792
|
const reset$1 = () => {
|
|
6712
6793
|
cachedNow = 0;
|
|
6713
6794
|
};
|
|
@@ -6765,7 +6846,7 @@ function patchStopImmediatePropagation(e, value2) {
|
|
|
6765
6846
|
originalStop.call(e);
|
|
6766
6847
|
e._stopped = true;
|
|
6767
6848
|
};
|
|
6768
|
-
return value2.map((fn) => (e2) => !e2._stopped && fn(e2));
|
|
6849
|
+
return value2.map((fn) => (e2) => !e2._stopped && fn && fn(e2));
|
|
6769
6850
|
} else {
|
|
6770
6851
|
return value2;
|
|
6771
6852
|
}
|
|
@@ -6801,7 +6882,7 @@ function shouldSetAsProp(el, key2, value2, isSVG) {
|
|
|
6801
6882
|
}
|
|
6802
6883
|
return false;
|
|
6803
6884
|
}
|
|
6804
|
-
if (key2 === "spellcheck" || key2 === "draggable") {
|
|
6885
|
+
if (key2 === "spellcheck" || key2 === "draggable" || key2 === "translate") {
|
|
6805
6886
|
return false;
|
|
6806
6887
|
}
|
|
6807
6888
|
if (key2 === "form") {
|
|
@@ -7348,7 +7429,7 @@ const vShow = {
|
|
|
7348
7429
|
function setDisplay(el, value2) {
|
|
7349
7430
|
el.style.display = value2 ? el._vod : "none";
|
|
7350
7431
|
}
|
|
7351
|
-
const rendererOptions = extend({ patchProp }, nodeOps);
|
|
7432
|
+
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
7352
7433
|
let renderer;
|
|
7353
7434
|
function ensureRenderer() {
|
|
7354
7435
|
return renderer || (renderer = createRenderer(rendererOptions));
|
|
@@ -7613,8 +7694,8 @@ const OTTLoginState = reactive({
|
|
|
7613
7694
|
}
|
|
7614
7695
|
});
|
|
7615
7696
|
async function init(params) {
|
|
7616
|
-
reconstructParams(params);
|
|
7617
|
-
await execute$c(
|
|
7697
|
+
const newParams = reconstructParams(params);
|
|
7698
|
+
await execute$c(newParams);
|
|
7618
7699
|
}
|
|
7619
7700
|
async function execute$c(params) {
|
|
7620
7701
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
@@ -7704,9 +7785,9 @@ function saveUserData() {
|
|
|
7704
7785
|
}).catch(() => {
|
|
7705
7786
|
});
|
|
7706
7787
|
}
|
|
7707
|
-
function copyToClipboard(
|
|
7788
|
+
function copyToClipboard(copyTextParams) {
|
|
7708
7789
|
var _a, _b;
|
|
7709
|
-
reconstructParams(
|
|
7790
|
+
const params = reconstructParams(copyTextParams);
|
|
7710
7791
|
let textarea = document.createElement("textarea");
|
|
7711
7792
|
textarea.setAttribute("readonly", "true");
|
|
7712
7793
|
textarea.setAttribute("contenteditable", "true");
|
|
@@ -7762,8 +7843,8 @@ async function getUserGrantedPermission() {
|
|
|
7762
7843
|
return (_c = (_b = (_a = response == null ? void 0 : response.unsigned) == null ? void 0 : _a.data) == null ? void 0 : _b.scopes) != null ? _c : [];
|
|
7763
7844
|
}
|
|
7764
7845
|
async function getBalance(params) {
|
|
7765
|
-
reconstructParams(params);
|
|
7766
|
-
await execute$b(
|
|
7846
|
+
const newParams = reconstructParams(params);
|
|
7847
|
+
await execute$b(newParams);
|
|
7767
7848
|
}
|
|
7768
7849
|
async function execute$b(params) {
|
|
7769
7850
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
@@ -7793,8 +7874,8 @@ async function execute$b(params) {
|
|
|
7793
7874
|
return (_i = params == null ? void 0 : params.fail) == null ? void 0 : _i.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
7794
7875
|
}
|
|
7795
7876
|
async function getKycInformation(params) {
|
|
7796
|
-
reconstructParams(params);
|
|
7797
|
-
await execute$a(
|
|
7877
|
+
const newParams = reconstructParams(params);
|
|
7878
|
+
await execute$a(newParams);
|
|
7798
7879
|
}
|
|
7799
7880
|
async function execute$a(params) {
|
|
7800
7881
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -7826,8 +7907,8 @@ async function execute$a(params) {
|
|
|
7826
7907
|
}
|
|
7827
7908
|
}
|
|
7828
7909
|
async function getPermissionStatus(params) {
|
|
7829
|
-
reconstructParams(params);
|
|
7830
|
-
await execute$9(
|
|
7910
|
+
const newParams = reconstructParams(params);
|
|
7911
|
+
await execute$9(newParams);
|
|
7831
7912
|
}
|
|
7832
7913
|
async function execute$9(params) {
|
|
7833
7914
|
var _a, _b, _c, _d;
|
|
@@ -7909,13 +7990,13 @@ function useGetHeightProperties() {
|
|
|
7909
7990
|
}
|
|
7910
7991
|
function getTopBarHeight(params) {
|
|
7911
7992
|
var _a;
|
|
7912
|
-
reconstructParams(params);
|
|
7993
|
+
const newParams = reconstructParams(params);
|
|
7913
7994
|
const { headerHeight } = useGetHeightProperties();
|
|
7914
|
-
(_a =
|
|
7995
|
+
(_a = newParams == null ? void 0 : newParams.success) == null ? void 0 : _a.call(newParams, { height: headerHeight });
|
|
7915
7996
|
}
|
|
7916
7997
|
async function getPlatformInformation(params) {
|
|
7917
|
-
reconstructParams(params);
|
|
7918
|
-
await execute$8(
|
|
7998
|
+
const newParams = reconstructParams(params);
|
|
7999
|
+
await execute$8(newParams);
|
|
7919
8000
|
}
|
|
7920
8001
|
async function execute$8(params) {
|
|
7921
8002
|
var _a, _b;
|
|
@@ -7945,8 +8026,8 @@ async function execute$8(params) {
|
|
|
7945
8026
|
});
|
|
7946
8027
|
}
|
|
7947
8028
|
function getDeviceInformation(params) {
|
|
7948
|
-
reconstructParams(params);
|
|
7949
|
-
execute$7(
|
|
8029
|
+
const newParams = reconstructParams(params);
|
|
8030
|
+
execute$7(newParams);
|
|
7950
8031
|
}
|
|
7951
8032
|
function execute$7(params) {
|
|
7952
8033
|
var _a;
|
|
@@ -8119,10 +8200,10 @@ const ActionSheet = defineComponent({
|
|
|
8119
8200
|
default: ""
|
|
8120
8201
|
}
|
|
8121
8202
|
},
|
|
8122
|
-
emits:
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8203
|
+
emits: {
|
|
8204
|
+
close: () => true,
|
|
8205
|
+
afterLeave: () => true
|
|
8206
|
+
},
|
|
8126
8207
|
setup(props, {
|
|
8127
8208
|
slots,
|
|
8128
8209
|
emit
|
|
@@ -8343,13 +8424,15 @@ const Button = defineComponent({
|
|
|
8343
8424
|
default: false
|
|
8344
8425
|
}
|
|
8345
8426
|
},
|
|
8346
|
-
emits:
|
|
8427
|
+
emits: {
|
|
8428
|
+
click: () => true
|
|
8429
|
+
},
|
|
8347
8430
|
setup(props, {
|
|
8348
8431
|
emit
|
|
8349
8432
|
}) {
|
|
8350
|
-
const onClick = (
|
|
8433
|
+
const onClick = () => {
|
|
8351
8434
|
if (!props.loading && !props.disabled) {
|
|
8352
|
-
emit("click"
|
|
8435
|
+
emit("click");
|
|
8353
8436
|
}
|
|
8354
8437
|
};
|
|
8355
8438
|
return {
|
|
@@ -8561,7 +8644,13 @@ const Input = defineComponent({
|
|
|
8561
8644
|
default: ""
|
|
8562
8645
|
}
|
|
8563
8646
|
},
|
|
8564
|
-
emits:
|
|
8647
|
+
emits: {
|
|
8648
|
+
"update:modelValue": (_value) => true,
|
|
8649
|
+
blur: (_p) => true,
|
|
8650
|
+
input: (_p) => true,
|
|
8651
|
+
focus: (_p) => true,
|
|
8652
|
+
validate: (_p) => true
|
|
8653
|
+
},
|
|
8565
8654
|
setup(props, {
|
|
8566
8655
|
emit
|
|
8567
8656
|
}) {
|
|
@@ -8774,7 +8863,9 @@ defineComponent({
|
|
|
8774
8863
|
checked: Boolean,
|
|
8775
8864
|
disabled: Boolean
|
|
8776
8865
|
},
|
|
8777
|
-
emits:
|
|
8866
|
+
emits: {
|
|
8867
|
+
toggleSwitch: (_p) => true
|
|
8868
|
+
},
|
|
8778
8869
|
setup(props, {
|
|
8779
8870
|
emit,
|
|
8780
8871
|
slots
|
|
@@ -21511,7 +21602,9 @@ const Lottie = defineComponent({
|
|
|
21511
21602
|
required: false
|
|
21512
21603
|
}
|
|
21513
21604
|
},
|
|
21514
|
-
emits:
|
|
21605
|
+
emits: {
|
|
21606
|
+
"create-lottie": (_p) => true
|
|
21607
|
+
},
|
|
21515
21608
|
setup(props, {
|
|
21516
21609
|
emit
|
|
21517
21610
|
}) {
|
|
@@ -21599,7 +21692,10 @@ const Header = defineComponent({
|
|
|
21599
21692
|
required: false
|
|
21600
21693
|
}
|
|
21601
21694
|
},
|
|
21602
|
-
emits:
|
|
21695
|
+
emits: {
|
|
21696
|
+
click: () => true,
|
|
21697
|
+
"right-click": () => true
|
|
21698
|
+
},
|
|
21603
21699
|
setup(props, {
|
|
21604
21700
|
emit
|
|
21605
21701
|
}) {
|
|
@@ -23663,7 +23759,9 @@ const SelectList = defineComponent({
|
|
|
23663
23759
|
default: false
|
|
23664
23760
|
}
|
|
23665
23761
|
},
|
|
23666
|
-
emits:
|
|
23762
|
+
emits: {
|
|
23763
|
+
"update:modelValue": (_value) => true
|
|
23764
|
+
},
|
|
23667
23765
|
setup(props, {
|
|
23668
23766
|
emit
|
|
23669
23767
|
}) {
|
|
@@ -23722,7 +23820,9 @@ const _sfc_main$1b = defineComponent({
|
|
|
23722
23820
|
default: "1995-01-01"
|
|
23723
23821
|
}
|
|
23724
23822
|
},
|
|
23725
|
-
emits:
|
|
23823
|
+
emits: {
|
|
23824
|
+
selected: (_value) => true
|
|
23825
|
+
},
|
|
23726
23826
|
setup(props, { emit }) {
|
|
23727
23827
|
const value2 = ref(props.defaultValue);
|
|
23728
23828
|
const id = computed(() => `date-label-${Date.now()}`);
|
|
@@ -23808,7 +23908,9 @@ const _sfc_main$1a = defineComponent({
|
|
|
23808
23908
|
default: false
|
|
23809
23909
|
}
|
|
23810
23910
|
},
|
|
23811
|
-
emits:
|
|
23911
|
+
emits: {
|
|
23912
|
+
show: (_p) => true
|
|
23913
|
+
},
|
|
23812
23914
|
setup(props, { emit }) {
|
|
23813
23915
|
const style = useCssModule();
|
|
23814
23916
|
const show2 = () => {
|
|
@@ -23934,7 +24036,11 @@ const _sfc_main$19 = defineComponent({
|
|
|
23934
24036
|
default: false
|
|
23935
24037
|
}
|
|
23936
24038
|
},
|
|
23937
|
-
emits:
|
|
24039
|
+
emits: {
|
|
24040
|
+
setmoney: (_p) => true,
|
|
24041
|
+
switchinput: () => true,
|
|
24042
|
+
selectmoremoney: () => true
|
|
24043
|
+
},
|
|
23938
24044
|
setup(props, { emit }) {
|
|
23939
24045
|
const style = useCssModule();
|
|
23940
24046
|
const { isMobile, isDesktop } = useBreakpoints();
|
|
@@ -24565,7 +24671,10 @@ const _sfc_main$13 = defineComponent({
|
|
|
24565
24671
|
default: false
|
|
24566
24672
|
}
|
|
24567
24673
|
},
|
|
24568
|
-
emits:
|
|
24674
|
+
emits: {
|
|
24675
|
+
edit: (_address) => true,
|
|
24676
|
+
select: () => true
|
|
24677
|
+
},
|
|
24569
24678
|
setup(props, { emit }) {
|
|
24570
24679
|
const lg2 = getLanguage();
|
|
24571
24680
|
const style = useCssModule();
|
|
@@ -24814,7 +24923,10 @@ const _sfc_main$11 = defineComponent({
|
|
|
24814
24923
|
}
|
|
24815
24924
|
}
|
|
24816
24925
|
},
|
|
24817
|
-
emits:
|
|
24926
|
+
emits: {
|
|
24927
|
+
confirm: () => true,
|
|
24928
|
+
close: () => true
|
|
24929
|
+
},
|
|
24818
24930
|
setup() {
|
|
24819
24931
|
const lg2 = getLanguage();
|
|
24820
24932
|
const style = useCssModule();
|
|
@@ -25436,7 +25548,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25436
25548
|
key: 0,
|
|
25437
25549
|
class: normalizeClass(_ctx.style.desktopTitle)
|
|
25438
25550
|
}, toDisplayString(_ctx.lg.userAddress.address), 3)) : createCommentVNode("", true),
|
|
25439
|
-
withDirectives(
|
|
25551
|
+
withDirectives((openBlock(), createElementBlock("div", {
|
|
25440
25552
|
class: normalizeClass({
|
|
25441
25553
|
[_ctx.style.container]: true,
|
|
25442
25554
|
[_ctx.style.contentContainer]: _ctx.addresses.length > 0 && !_ctx.isMakepayment,
|
|
@@ -25460,7 +25572,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25460
25572
|
class: normalizeClass(_ctx.$style.noAddressMessage),
|
|
25461
25573
|
"shows-add-address-button": false
|
|
25462
25574
|
}, null, 8, ["class"])) : createCommentVNode("", true)
|
|
25463
|
-
], 2), [
|
|
25575
|
+
], 2)), [
|
|
25464
25576
|
[_directive_vertical_scroll]
|
|
25465
25577
|
]),
|
|
25466
25578
|
createVNode(_component_Footer, {
|
|
@@ -25552,7 +25664,11 @@ const _sfc_main$Y = defineComponent({
|
|
|
25552
25664
|
default: false
|
|
25553
25665
|
}
|
|
25554
25666
|
},
|
|
25555
|
-
emits:
|
|
25667
|
+
emits: {
|
|
25668
|
+
close: () => true,
|
|
25669
|
+
submit: () => true,
|
|
25670
|
+
openDeleteSheet: () => true
|
|
25671
|
+
},
|
|
25556
25672
|
setup(props) {
|
|
25557
25673
|
const lg2 = getLanguage();
|
|
25558
25674
|
const state = reactive({
|
|
@@ -25684,7 +25800,9 @@ const _sfc_main$X = defineComponent({
|
|
|
25684
25800
|
default: false
|
|
25685
25801
|
}
|
|
25686
25802
|
},
|
|
25687
|
-
emits:
|
|
25803
|
+
emits: {
|
|
25804
|
+
"update:modelValue": (_p) => true
|
|
25805
|
+
},
|
|
25688
25806
|
setup(props, { emit }) {
|
|
25689
25807
|
const style = useCssModule();
|
|
25690
25808
|
const lg2 = getLanguage();
|
|
@@ -25913,7 +26031,11 @@ const _sfc_main$W = defineComponent({
|
|
|
25913
26031
|
required: true
|
|
25914
26032
|
}
|
|
25915
26033
|
},
|
|
25916
|
-
emits:
|
|
26034
|
+
emits: {
|
|
26035
|
+
submit: (_p) => true,
|
|
26036
|
+
close: () => true,
|
|
26037
|
+
openDeleteSheet: () => true
|
|
26038
|
+
},
|
|
25917
26039
|
setup(props, { emit }) {
|
|
25918
26040
|
const style = useCssModule();
|
|
25919
26041
|
const state = reactive(__spreadProps(__spreadValues({}, createInitialState$1(props.address)), {
|
|
@@ -25993,7 +26115,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25993
26115
|
const _component_Footer = resolveComponent("Footer");
|
|
25994
26116
|
const _directive_vertical_scroll = resolveDirective("vertical-scroll");
|
|
25995
26117
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
25996
|
-
withDirectives(
|
|
26118
|
+
withDirectives((openBlock(), createElementBlock("div", {
|
|
25997
26119
|
class: normalizeClass(_ctx.style.root),
|
|
25998
26120
|
style: normalizeStyle(_ctx.rootStyle)
|
|
25999
26121
|
}, [
|
|
@@ -26099,7 +26221,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26099
26221
|
createBaseVNode("div", {
|
|
26100
26222
|
class: normalizeClass(_ctx.style.spacer)
|
|
26101
26223
|
}, null, 2)
|
|
26102
|
-
], 6), [
|
|
26224
|
+
], 6)), [
|
|
26103
26225
|
[_directive_vertical_scroll]
|
|
26104
26226
|
]),
|
|
26105
26227
|
!_ctx.kyc ? (openBlock(), createBlock(_component_Footer, {
|
|
@@ -26141,7 +26263,10 @@ const _sfc_main$V = defineComponent({
|
|
|
26141
26263
|
default: false
|
|
26142
26264
|
}
|
|
26143
26265
|
},
|
|
26144
|
-
emits:
|
|
26266
|
+
emits: {
|
|
26267
|
+
close: () => true,
|
|
26268
|
+
del: () => true
|
|
26269
|
+
},
|
|
26145
26270
|
setup(_, { emit }) {
|
|
26146
26271
|
const lg2 = getLanguage();
|
|
26147
26272
|
const style = useCssModule();
|
|
@@ -26491,7 +26616,11 @@ const _sfc_main$T = defineComponent({
|
|
|
26491
26616
|
default: false
|
|
26492
26617
|
}
|
|
26493
26618
|
},
|
|
26494
|
-
emits:
|
|
26619
|
+
emits: {
|
|
26620
|
+
click: () => true,
|
|
26621
|
+
back: () => true,
|
|
26622
|
+
chooseAddress: () => true
|
|
26623
|
+
},
|
|
26495
26624
|
setup(props) {
|
|
26496
26625
|
const { handleError: handleError2 } = getErrorHandling$1();
|
|
26497
26626
|
const { pageTransition, headerHeight } = useUIControl$1();
|
|
@@ -26619,10 +26748,11 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26619
26748
|
const cssModules$M = {};
|
|
26620
26749
|
cssModules$M["$style"] = style0$M;
|
|
26621
26750
|
var App = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T], ["__cssModules", cssModules$M]]);
|
|
26622
|
-
function closeApp(
|
|
26751
|
+
function closeApp(closeAppParams) {
|
|
26623
26752
|
var _a;
|
|
26624
|
-
|
|
26625
|
-
|
|
26753
|
+
let params = null;
|
|
26754
|
+
if (closeAppParams) {
|
|
26755
|
+
params = reconstructParams(closeAppParams);
|
|
26626
26756
|
}
|
|
26627
26757
|
if (isPayPayMiniApp()) {
|
|
26628
26758
|
if ((_a = params == null ? void 0 : params.options) == null ? void 0 : _a.deeplink) {
|
|
@@ -26636,9 +26766,9 @@ function closeApp(params) {
|
|
|
26636
26766
|
(_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.deeplinkUnavailable });
|
|
26637
26767
|
}, 300);
|
|
26638
26768
|
}
|
|
26639
|
-
function openWebview(
|
|
26769
|
+
function openWebview(openWebviewParams) {
|
|
26640
26770
|
var _a, _b, _c, _d;
|
|
26641
|
-
reconstructParams(
|
|
26771
|
+
const params = reconstructParams(openWebviewParams);
|
|
26642
26772
|
let url;
|
|
26643
26773
|
let openUrl = null;
|
|
26644
26774
|
const appDetail = getAppDetail();
|
|
@@ -26753,11 +26883,13 @@ const _sfc_main$S = defineComponent({
|
|
|
26753
26883
|
type: Object,
|
|
26754
26884
|
default: () => ({
|
|
26755
26885
|
height: "50px",
|
|
26756
|
-
width: "
|
|
26886
|
+
width: "auto"
|
|
26757
26887
|
})
|
|
26758
26888
|
}
|
|
26759
26889
|
},
|
|
26760
|
-
emits:
|
|
26890
|
+
emits: {
|
|
26891
|
+
"close-click": () => true
|
|
26892
|
+
},
|
|
26761
26893
|
setup() {
|
|
26762
26894
|
const style = useCssModule();
|
|
26763
26895
|
return {
|
|
@@ -26795,7 +26927,7 @@ const _sfc_main$S = defineComponent({
|
|
|
26795
26927
|
methods: {
|
|
26796
26928
|
buttonClick(buttonInfo) {
|
|
26797
26929
|
var _a;
|
|
26798
|
-
if (buttonInfo.actionType) {
|
|
26930
|
+
if (buttonInfo == null ? void 0 : buttonInfo.actionType) {
|
|
26799
26931
|
if ((buttonInfo == null ? void 0 : buttonInfo.actionType) === UIComponentsButtonActionType.DEEPLINK) {
|
|
26800
26932
|
if ((buttonInfo == null ? void 0 : buttonInfo.deeplink) && isValidUrl(buttonInfo.deeplink)) {
|
|
26801
26933
|
openWebviewInternal({ url: buttonInfo == null ? void 0 : buttonInfo.deeplink });
|
|
@@ -26813,7 +26945,7 @@ const _sfc_main$S = defineComponent({
|
|
|
26813
26945
|
return;
|
|
26814
26946
|
}
|
|
26815
26947
|
}
|
|
26816
|
-
} else if (buttonInfo.onClick) {
|
|
26948
|
+
} else if (buttonInfo == null ? void 0 : buttonInfo.onClick) {
|
|
26817
26949
|
buttonInfo.onClick();
|
|
26818
26950
|
return;
|
|
26819
26951
|
}
|
|
@@ -26838,7 +26970,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26838
26970
|
return openBlock(), createBlock(_component_ActionSheet, {
|
|
26839
26971
|
show: _ctx.show,
|
|
26840
26972
|
type: "alert",
|
|
26841
|
-
onClose: _cache[
|
|
26973
|
+
onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close-click"))
|
|
26842
26974
|
}, {
|
|
26843
26975
|
default: withCtx(() => [
|
|
26844
26976
|
createBaseVNode("div", {
|
|
@@ -26888,13 +27020,13 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26888
27020
|
"data-test": "error-sheet-close",
|
|
26889
27021
|
class: normalizeClass(_ctx.style.closeBtn),
|
|
26890
27022
|
"data-testid": "error-btn",
|
|
26891
|
-
onClick: _ctx.buttonClick
|
|
27023
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.buttonClick())
|
|
26892
27024
|
}, {
|
|
26893
27025
|
default: withCtx(() => [
|
|
26894
27026
|
createTextVNode(toDisplayString(_ctx.lg.errorSheet.title), 1)
|
|
26895
27027
|
]),
|
|
26896
27028
|
_: 1
|
|
26897
|
-
}, 8, ["class"
|
|
27029
|
+
}, 8, ["class"])
|
|
26898
27030
|
], 2))
|
|
26899
27031
|
], 2)
|
|
26900
27032
|
]),
|
|
@@ -26937,7 +27069,13 @@ const _sfc_main$R = defineComponent({
|
|
|
26937
27069
|
default: null
|
|
26938
27070
|
}
|
|
26939
27071
|
},
|
|
26940
|
-
emits:
|
|
27072
|
+
emits: {
|
|
27073
|
+
click: () => true,
|
|
27074
|
+
back: () => true,
|
|
27075
|
+
chooseAddress: () => true,
|
|
27076
|
+
layoutupdate: () => true,
|
|
27077
|
+
updateAddress: () => true
|
|
27078
|
+
},
|
|
26941
27079
|
setup(props, context) {
|
|
26942
27080
|
initRoot$1(props, context);
|
|
26943
27081
|
const { errorShow, errorDescription, errorIcon: errorIcon2, errorTitle: errorTitle2, closeError } = initErrorHandling$1();
|
|
@@ -27562,7 +27700,10 @@ const _sfc_main$P = defineComponent({
|
|
|
27562
27700
|
default: ""
|
|
27563
27701
|
}
|
|
27564
27702
|
},
|
|
27565
|
-
emits:
|
|
27703
|
+
emits: {
|
|
27704
|
+
back: () => true,
|
|
27705
|
+
select: (_index) => true
|
|
27706
|
+
},
|
|
27566
27707
|
setup(props, { emit }) {
|
|
27567
27708
|
const lg2 = getLanguage();
|
|
27568
27709
|
const openBreakDown = ref(false);
|
|
@@ -27597,7 +27738,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27597
27738
|
fixed: "",
|
|
27598
27739
|
onClick: _ctx.back
|
|
27599
27740
|
}, null, 8, ["title", "onClick"]),
|
|
27600
|
-
withDirectives(
|
|
27741
|
+
withDirectives((openBlock(), createElementBlock("div", {
|
|
27601
27742
|
class: normalizeClass(_ctx.style.contentContainer)
|
|
27602
27743
|
}, [
|
|
27603
27744
|
createVNode(_component_PaymentMethodList, {
|
|
@@ -27605,7 +27746,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27605
27746
|
"select-payment-index": _ctx.selectPaymentIndex,
|
|
27606
27747
|
onSelect: _ctx.select
|
|
27607
27748
|
}, null, 8, ["payment-methods", "select-payment-index", "onSelect"])
|
|
27608
|
-
], 2), [
|
|
27749
|
+
], 2)), [
|
|
27609
27750
|
[_directive_vertical_scroll]
|
|
27610
27751
|
])
|
|
27611
27752
|
], 2);
|
|
@@ -27638,7 +27779,10 @@ const _sfc_main$O = defineComponent({
|
|
|
27638
27779
|
default: "makePayment"
|
|
27639
27780
|
}
|
|
27640
27781
|
},
|
|
27641
|
-
emits:
|
|
27782
|
+
emits: {
|
|
27783
|
+
cancel: () => true,
|
|
27784
|
+
proceed: () => true
|
|
27785
|
+
},
|
|
27642
27786
|
setup(props) {
|
|
27643
27787
|
const lg2 = getLanguage();
|
|
27644
27788
|
const style = useCssModule();
|
|
@@ -27758,7 +27902,9 @@ const _sfc_main$N = defineComponent({
|
|
|
27758
27902
|
default: null
|
|
27759
27903
|
}
|
|
27760
27904
|
},
|
|
27761
|
-
emits:
|
|
27905
|
+
emits: {
|
|
27906
|
+
close: () => true
|
|
27907
|
+
},
|
|
27762
27908
|
setup() {
|
|
27763
27909
|
const lg2 = getLanguage();
|
|
27764
27910
|
const showDeepLink = isPayPayMiniApp();
|
|
@@ -27897,7 +28043,9 @@ const _sfc_main$M = defineComponent({
|
|
|
27897
28043
|
default: false
|
|
27898
28044
|
}
|
|
27899
28045
|
},
|
|
27900
|
-
emits:
|
|
28046
|
+
emits: {
|
|
28047
|
+
click: () => true
|
|
28048
|
+
},
|
|
27901
28049
|
setup(props, { emit }) {
|
|
27902
28050
|
const images2 = getImages();
|
|
27903
28051
|
const click = () => emit("click");
|
|
@@ -28081,7 +28229,9 @@ const _sfc_main$L = defineComponent({
|
|
|
28081
28229
|
default: false
|
|
28082
28230
|
}
|
|
28083
28231
|
},
|
|
28084
|
-
emits:
|
|
28232
|
+
emits: {
|
|
28233
|
+
success: () => true
|
|
28234
|
+
},
|
|
28085
28235
|
setup(props, context) {
|
|
28086
28236
|
var _a;
|
|
28087
28237
|
const { isMobile, isDesktop } = useBreakpoints();
|
|
@@ -28396,7 +28546,10 @@ const _sfc_main$K = defineComponent({
|
|
|
28396
28546
|
components: {
|
|
28397
28547
|
Button
|
|
28398
28548
|
},
|
|
28399
|
-
emits:
|
|
28549
|
+
emits: {
|
|
28550
|
+
confirm: () => true,
|
|
28551
|
+
cancel: () => true
|
|
28552
|
+
},
|
|
28400
28553
|
setup(_, context) {
|
|
28401
28554
|
const confirmAlert = () => {
|
|
28402
28555
|
return context.emit("confirm");
|
|
@@ -28483,7 +28636,9 @@ const _sfc_main$J = defineComponent({
|
|
|
28483
28636
|
default: () => ({})
|
|
28484
28637
|
}
|
|
28485
28638
|
},
|
|
28486
|
-
emits:
|
|
28639
|
+
emits: {
|
|
28640
|
+
close: () => true
|
|
28641
|
+
},
|
|
28487
28642
|
setup(props, context) {
|
|
28488
28643
|
const getButtonType = (type) => {
|
|
28489
28644
|
var _a;
|
|
@@ -28604,7 +28759,9 @@ const _sfc_main$I = defineComponent({
|
|
|
28604
28759
|
default: false
|
|
28605
28760
|
}
|
|
28606
28761
|
},
|
|
28607
|
-
emits:
|
|
28762
|
+
emits: {
|
|
28763
|
+
complete: (_p) => true
|
|
28764
|
+
},
|
|
28608
28765
|
setup(props, { emit }) {
|
|
28609
28766
|
const lg2 = getLanguage();
|
|
28610
28767
|
const images2 = getImages();
|
|
@@ -28758,7 +28915,9 @@ const _sfc_main$H = defineComponent({
|
|
|
28758
28915
|
required: true
|
|
28759
28916
|
}
|
|
28760
28917
|
},
|
|
28761
|
-
emits:
|
|
28918
|
+
emits: {
|
|
28919
|
+
close: () => true
|
|
28920
|
+
},
|
|
28762
28921
|
setup(props, { emit }) {
|
|
28763
28922
|
const lg2 = getLanguage();
|
|
28764
28923
|
const images2 = getImages();
|
|
@@ -29033,7 +29192,9 @@ const _sfc_main$F = defineComponent({
|
|
|
29033
29192
|
default: ""
|
|
29034
29193
|
}
|
|
29035
29194
|
},
|
|
29036
|
-
emits:
|
|
29195
|
+
emits: {
|
|
29196
|
+
close: () => true
|
|
29197
|
+
},
|
|
29037
29198
|
setup(props, { emit }) {
|
|
29038
29199
|
const cashback2 = ref();
|
|
29039
29200
|
const { animation, uiState, type } = useData$1(props);
|
|
@@ -29694,7 +29855,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29694
29855
|
]),
|
|
29695
29856
|
createVNode(_component_Divider)
|
|
29696
29857
|
], 2),
|
|
29697
|
-
withDirectives(
|
|
29858
|
+
withDirectives((openBlock(), createElementBlock("div", {
|
|
29698
29859
|
class: normalizeClass([_ctx.containerClass, _ctx.style.desktopUi])
|
|
29699
29860
|
}, [
|
|
29700
29861
|
_ctx.available && _ctx.isMobile ? (openBlock(), createElementBlock("div", {
|
|
@@ -29817,7 +29978,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29817
29978
|
onCreateLottie: _cache[0] || (_cache[0] = ($event) => _ctx.createAnime($event))
|
|
29818
29979
|
}, null, 8, ["path"])
|
|
29819
29980
|
], 2)) : createCommentVNode("", true)
|
|
29820
|
-
], 2), [
|
|
29981
|
+
], 2)), [
|
|
29821
29982
|
[_directive_vertical_scroll]
|
|
29822
29983
|
])
|
|
29823
29984
|
]);
|
|
@@ -29901,7 +30062,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29901
30062
|
fixed: "",
|
|
29902
30063
|
onClick: _ctx.back
|
|
29903
30064
|
}, null, 8, ["title", "onClick"]),
|
|
29904
|
-
withDirectives(
|
|
30065
|
+
withDirectives((openBlock(), createElementBlock("div", {
|
|
29905
30066
|
class: normalizeClass({ [_ctx.style.paymentList]: true, [_ctx.style.payment]: !_ctx.isTopup })
|
|
29906
30067
|
}, [
|
|
29907
30068
|
createVNode(_component_PaymentMethodList, {
|
|
@@ -29910,7 +30071,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29910
30071
|
"is-topup": _ctx.isTopup,
|
|
29911
30072
|
onSelect: _ctx.select
|
|
29912
30073
|
}, null, 8, ["select-payment-index", "payment-methods", "is-topup", "onSelect"])
|
|
29913
|
-
], 2), [
|
|
30074
|
+
], 2)), [
|
|
29914
30075
|
[_directive_vertical_scroll]
|
|
29915
30076
|
]),
|
|
29916
30077
|
createBaseVNode("div", {
|
|
@@ -30137,15 +30298,15 @@ const _sfc_main$B = defineComponent({
|
|
|
30137
30298
|
}
|
|
30138
30299
|
}
|
|
30139
30300
|
},
|
|
30140
|
-
emits:
|
|
30141
|
-
|
|
30142
|
-
"open-consult",
|
|
30143
|
-
|
|
30144
|
-
|
|
30145
|
-
|
|
30146
|
-
|
|
30147
|
-
|
|
30148
|
-
|
|
30301
|
+
emits: {
|
|
30302
|
+
back: () => true,
|
|
30303
|
+
"open-consult": (_p) => true,
|
|
30304
|
+
charge: (_p) => true,
|
|
30305
|
+
animationEnd: (_p) => true,
|
|
30306
|
+
chooseAddress: (_p) => true,
|
|
30307
|
+
updateAddress: (_p) => true,
|
|
30308
|
+
layoutUpdate: () => true
|
|
30309
|
+
},
|
|
30149
30310
|
setup(props, context) {
|
|
30150
30311
|
var _a, _b;
|
|
30151
30312
|
const { emit } = context;
|
|
@@ -31300,7 +31461,9 @@ const _sfc_main$z = defineComponent({
|
|
|
31300
31461
|
default: false
|
|
31301
31462
|
}
|
|
31302
31463
|
},
|
|
31303
|
-
emits:
|
|
31464
|
+
emits: {
|
|
31465
|
+
click: () => true
|
|
31466
|
+
},
|
|
31304
31467
|
setup(props) {
|
|
31305
31468
|
const {
|
|
31306
31469
|
cancel: cancelRoot,
|
|
@@ -31828,7 +31991,9 @@ const _sfc_main$y = defineComponent({
|
|
|
31828
31991
|
default: false
|
|
31829
31992
|
}
|
|
31830
31993
|
},
|
|
31831
|
-
emits:
|
|
31994
|
+
emits: {
|
|
31995
|
+
click: () => true
|
|
31996
|
+
},
|
|
31832
31997
|
setup(props, context) {
|
|
31833
31998
|
const root2 = initRoot(props, context);
|
|
31834
31999
|
const { endApplication } = root2;
|
|
@@ -31873,7 +32038,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31873
32038
|
createVNode(_component_ActionSheet, {
|
|
31874
32039
|
show: _ctx.showConsultError,
|
|
31875
32040
|
type: "alert",
|
|
31876
|
-
onClose: _ctx.closeError
|
|
32041
|
+
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.closeError(false))
|
|
31877
32042
|
}, {
|
|
31878
32043
|
default: withCtx(() => [
|
|
31879
32044
|
_ctx.consultError ? (openBlock(), createBlock(_component_Consult, {
|
|
@@ -31883,13 +32048,13 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31883
32048
|
}, null, 8, ["consult-info", "onClose"])) : createCommentVNode("", true)
|
|
31884
32049
|
]),
|
|
31885
32050
|
_: 1
|
|
31886
|
-
}, 8, ["show"
|
|
32051
|
+
}, 8, ["show"]),
|
|
31887
32052
|
createVNode(_component_ErrorSheet, {
|
|
31888
32053
|
"error-title": _ctx.errorTitle,
|
|
31889
32054
|
"icon-url": _ctx.errorIcon,
|
|
31890
32055
|
"error-text": _ctx.errorDescription,
|
|
31891
32056
|
show: _ctx.isError || _ctx.isErrorOverlay,
|
|
31892
|
-
onCloseClick: _cache[
|
|
32057
|
+
onCloseClick: _cache[1] || (_cache[1] = ($event) => _ctx.closeError(true))
|
|
31893
32058
|
}, null, 8, ["error-title", "icon-url", "error-text", "show"])
|
|
31894
32059
|
], 64);
|
|
31895
32060
|
}
|
|
@@ -32081,9 +32246,9 @@ const initErrorSheet = (initErrorSheet2) => {
|
|
|
32081
32246
|
app.mount(container2);
|
|
32082
32247
|
document.body.appendChild(container2);
|
|
32083
32248
|
};
|
|
32084
|
-
function showErrorSheet(
|
|
32249
|
+
function showErrorSheet(errorSheetParams) {
|
|
32085
32250
|
var _a;
|
|
32086
|
-
reconstructParams(
|
|
32251
|
+
const params = reconstructParams(errorSheetParams);
|
|
32087
32252
|
try {
|
|
32088
32253
|
initErrorSheet(params);
|
|
32089
32254
|
} catch {
|
|
@@ -32136,7 +32301,9 @@ const _sfc_main$x = defineComponent({
|
|
|
32136
32301
|
default: "Ok"
|
|
32137
32302
|
}
|
|
32138
32303
|
},
|
|
32139
|
-
emits:
|
|
32304
|
+
emits: {
|
|
32305
|
+
"close-click": () => true
|
|
32306
|
+
},
|
|
32140
32307
|
setup(props, { emit }) {
|
|
32141
32308
|
const onClick = () => emit("close-click");
|
|
32142
32309
|
const style = useCssModule();
|
|
@@ -32230,9 +32397,9 @@ const initAlertSheet = (initAlertSheet2) => {
|
|
|
32230
32397
|
app.mount(container2);
|
|
32231
32398
|
document.body.appendChild(container2);
|
|
32232
32399
|
};
|
|
32233
|
-
function showAlert(
|
|
32400
|
+
function showAlert(showAlertParams) {
|
|
32234
32401
|
var _a;
|
|
32235
|
-
reconstructParams(
|
|
32402
|
+
const params = reconstructParams(showAlertParams);
|
|
32236
32403
|
try {
|
|
32237
32404
|
initAlertSheet(params);
|
|
32238
32405
|
} catch {
|
|
@@ -32266,7 +32433,9 @@ const _sfc_main$w = defineComponent({
|
|
|
32266
32433
|
}
|
|
32267
32434
|
}
|
|
32268
32435
|
},
|
|
32269
|
-
emits:
|
|
32436
|
+
emits: {
|
|
32437
|
+
click: (_item, _index) => true
|
|
32438
|
+
},
|
|
32270
32439
|
setup(props, { emit }) {
|
|
32271
32440
|
const style = useCssModule();
|
|
32272
32441
|
const click = (item, index2) => {
|
|
@@ -32368,7 +32537,9 @@ const _sfc_main$v = defineComponent({
|
|
|
32368
32537
|
required: true
|
|
32369
32538
|
}
|
|
32370
32539
|
},
|
|
32371
|
-
emits:
|
|
32540
|
+
emits: {
|
|
32541
|
+
click: () => true
|
|
32542
|
+
},
|
|
32372
32543
|
setup(props) {
|
|
32373
32544
|
const lg2 = getLanguage();
|
|
32374
32545
|
const style = useCssModule();
|
|
@@ -32447,7 +32618,9 @@ const _sfc_main$u = defineComponent({
|
|
|
32447
32618
|
}
|
|
32448
32619
|
}
|
|
32449
32620
|
},
|
|
32450
|
-
emits:
|
|
32621
|
+
emits: {
|
|
32622
|
+
close: () => true
|
|
32623
|
+
},
|
|
32451
32624
|
setup(props) {
|
|
32452
32625
|
const style = useCssModule();
|
|
32453
32626
|
return {
|
|
@@ -32669,7 +32842,9 @@ const _sfc_main$t = defineComponent({
|
|
|
32669
32842
|
default: () => ({})
|
|
32670
32843
|
}
|
|
32671
32844
|
},
|
|
32672
|
-
emits:
|
|
32845
|
+
emits: {
|
|
32846
|
+
click: () => true
|
|
32847
|
+
},
|
|
32673
32848
|
data() {
|
|
32674
32849
|
return {
|
|
32675
32850
|
loading: false,
|
|
@@ -32870,7 +33045,7 @@ const _sfc_main$t = defineComponent({
|
|
|
32870
33045
|
this.bannerInfoVisible = true;
|
|
32871
33046
|
},
|
|
32872
33047
|
bannerBtnClick(item, index2) {
|
|
32873
|
-
if (item == null ? void 0 : item.deeplink) {
|
|
33048
|
+
if ((item == null ? void 0 : item.deeplink) && index2 !== void 0) {
|
|
32874
33049
|
if (isValidUrl(item == null ? void 0 : item.deeplink)) {
|
|
32875
33050
|
openWebviewInternal({ url: item == null ? void 0 : item.deeplink });
|
|
32876
33051
|
document.getElementsByName("listbtn_".concat(String(index2 + 1)))[0].focus();
|
|
@@ -33303,7 +33478,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33303
33478
|
createVNode(_component_ActionSheet, {
|
|
33304
33479
|
show: _ctx.bannerInfoVisible,
|
|
33305
33480
|
type: "alert",
|
|
33306
|
-
onClose: _ctx.bannerBtnClick
|
|
33481
|
+
onClose: _cache[7] || (_cache[7] = ($event) => _ctx.bannerBtnClick())
|
|
33307
33482
|
}, {
|
|
33308
33483
|
default: withCtx(() => [
|
|
33309
33484
|
createVNode(_component_BannerInfo, {
|
|
@@ -33312,7 +33487,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33312
33487
|
}, null, 8, ["selected-payment-method", "onClick"])
|
|
33313
33488
|
]),
|
|
33314
33489
|
_: 1
|
|
33315
|
-
}, 8, ["show"
|
|
33490
|
+
}, 8, ["show"]),
|
|
33316
33491
|
createVNode(_component_ActionSheet, {
|
|
33317
33492
|
show: _ctx.complete,
|
|
33318
33493
|
"no-overlay": ""
|
|
@@ -33331,7 +33506,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33331
33506
|
"error-text": _ctx.errorInfo.desc,
|
|
33332
33507
|
"button-list": _ctx.errorInfo.buttonList,
|
|
33333
33508
|
show: _ctx.errorShow || _ctx.errorOverlay,
|
|
33334
|
-
onCloseClick: _cache[
|
|
33509
|
+
onCloseClick: _cache[8] || (_cache[8] = ($event) => _ctx.closeErrorSheet())
|
|
33335
33510
|
}, null, 8, ["error-title", "icon-url", "error-text", "button-list", "show"]),
|
|
33336
33511
|
createVNode(_component_ThreeDSecureSheet, {
|
|
33337
33512
|
show: _ctx.show3DSecureSheet,
|
|
@@ -33372,8 +33547,8 @@ const initTopup = (topupParams) => {
|
|
|
33372
33547
|
document.body.appendChild(container2);
|
|
33373
33548
|
};
|
|
33374
33549
|
function topup$1(params) {
|
|
33375
|
-
reconstructParams(params);
|
|
33376
|
-
initTopup(
|
|
33550
|
+
const newParams = reconstructParams(params);
|
|
33551
|
+
initTopup(newParams);
|
|
33377
33552
|
}
|
|
33378
33553
|
const showUpdateWarningModal = "_showUpdateWarningModal_ukaz2_2";
|
|
33379
33554
|
const updateBody = "_updateBody_ukaz2_12";
|
|
@@ -33549,11 +33724,10 @@ const initShowUpdateWarning = (params) => {
|
|
|
33549
33724
|
document.body.appendChild(container2);
|
|
33550
33725
|
};
|
|
33551
33726
|
function showUpdateWarning$1(params) {
|
|
33552
|
-
reconstructParams(params);
|
|
33553
|
-
initShowUpdateWarning(
|
|
33727
|
+
const newParams = reconstructParams(params);
|
|
33728
|
+
initShowUpdateWarning(newParams);
|
|
33554
33729
|
}
|
|
33555
|
-
function scanCode(
|
|
33556
|
-
reconstructParams(params);
|
|
33730
|
+
function scanCode(_params) {
|
|
33557
33731
|
if (isPayPayMiniApp()) {
|
|
33558
33732
|
closeApp({
|
|
33559
33733
|
options: {
|
|
@@ -33656,7 +33830,9 @@ const _sfc_main$r = defineComponent({
|
|
|
33656
33830
|
}
|
|
33657
33831
|
}
|
|
33658
33832
|
},
|
|
33659
|
-
emits:
|
|
33833
|
+
emits: {
|
|
33834
|
+
click: () => true
|
|
33835
|
+
},
|
|
33660
33836
|
data() {
|
|
33661
33837
|
return {
|
|
33662
33838
|
lg: getLanguage()
|
|
@@ -33749,9 +33925,9 @@ const initTakePhoto = (initTakePhoto2) => {
|
|
|
33749
33925
|
app.mount(container2);
|
|
33750
33926
|
document.body.appendChild(container2);
|
|
33751
33927
|
};
|
|
33752
|
-
async function takePhoto$1(
|
|
33928
|
+
async function takePhoto$1(takePhotoParams) {
|
|
33753
33929
|
var _a, _b;
|
|
33754
|
-
reconstructParams(
|
|
33930
|
+
const params = reconstructParams(takePhotoParams);
|
|
33755
33931
|
try {
|
|
33756
33932
|
const grantStatus = await checkPermission([
|
|
33757
33933
|
PermissionName.mini_app_user_phone_album,
|
|
@@ -33771,15 +33947,15 @@ async function takePhoto$1(params) {
|
|
|
33771
33947
|
takePhotoInternal(params, TakePhotoMode.album);
|
|
33772
33948
|
}
|
|
33773
33949
|
}
|
|
33774
|
-
function setTitle(
|
|
33950
|
+
function setTitle(setTitleParams) {
|
|
33775
33951
|
var _a;
|
|
33776
|
-
reconstructParams(
|
|
33952
|
+
const params = reconstructParams(setTitleParams);
|
|
33777
33953
|
document.title = (params == null ? void 0 : params.title) || "";
|
|
33778
33954
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params);
|
|
33779
33955
|
}
|
|
33780
|
-
async function getUserLocation(
|
|
33956
|
+
async function getUserLocation(getUserLocationParams) {
|
|
33781
33957
|
var _a, _b, _c;
|
|
33782
|
-
reconstructParams(
|
|
33958
|
+
const params = reconstructParams(getUserLocationParams);
|
|
33783
33959
|
try {
|
|
33784
33960
|
const grantStatus = await checkPermission(PermissionName.mini_app_user_location);
|
|
33785
33961
|
if (grantStatus !== PermissionStatus.granted) {
|
|
@@ -33893,8 +34069,8 @@ const initGetUserAddress = async (params) => {
|
|
|
33893
34069
|
document.body.appendChild(container2);
|
|
33894
34070
|
};
|
|
33895
34071
|
function getUserAddress(params) {
|
|
33896
|
-
reconstructParams(params);
|
|
33897
|
-
initGetUserAddress(
|
|
34072
|
+
const newParams = reconstructParams(params);
|
|
34073
|
+
initGetUserAddress(newParams).catch(() => {
|
|
33898
34074
|
});
|
|
33899
34075
|
}
|
|
33900
34076
|
function useRoot(props, { emit }) {
|
|
@@ -34001,7 +34177,9 @@ const _sfc_main$q = defineComponent({
|
|
|
34001
34177
|
default: false
|
|
34002
34178
|
}
|
|
34003
34179
|
},
|
|
34004
|
-
emits:
|
|
34180
|
+
emits: {
|
|
34181
|
+
click: () => true
|
|
34182
|
+
},
|
|
34005
34183
|
setup(props, context) {
|
|
34006
34184
|
const { cancel: cancel2, success: success2 } = useRoot(props, context);
|
|
34007
34185
|
const {
|
|
@@ -34094,8 +34272,8 @@ const initInputAddress = (params) => {
|
|
|
34094
34272
|
document.body.appendChild(container2);
|
|
34095
34273
|
};
|
|
34096
34274
|
function inputAddress(params) {
|
|
34097
|
-
reconstructParams(params);
|
|
34098
|
-
initInputAddress(
|
|
34275
|
+
const newParams = reconstructParams(params);
|
|
34276
|
+
initInputAddress(newParams);
|
|
34099
34277
|
}
|
|
34100
34278
|
const openMapActionsheetContainer = "_openMapActionsheetContainer_rokvr_2";
|
|
34101
34279
|
const mapList = "_mapList_rokvr_8";
|
|
@@ -34129,7 +34307,9 @@ const _sfc_main$p = defineComponent({
|
|
|
34129
34307
|
}
|
|
34130
34308
|
}
|
|
34131
34309
|
},
|
|
34132
|
-
emits:
|
|
34310
|
+
emits: {
|
|
34311
|
+
click: () => true
|
|
34312
|
+
},
|
|
34133
34313
|
data() {
|
|
34134
34314
|
var _a, _b;
|
|
34135
34315
|
return {
|
|
@@ -34260,8 +34440,8 @@ const initOpenMap = (initOpenMap2) => {
|
|
|
34260
34440
|
document.body.appendChild(container2);
|
|
34261
34441
|
};
|
|
34262
34442
|
function openMap$1(params) {
|
|
34263
|
-
reconstructParams(params);
|
|
34264
|
-
initOpenMap(
|
|
34443
|
+
const newParams = reconstructParams(params);
|
|
34444
|
+
initOpenMap(newParams);
|
|
34265
34445
|
}
|
|
34266
34446
|
const root$1 = "_root_cejvg_2";
|
|
34267
34447
|
const appIcon = "_appIcon_cejvg_11";
|
|
@@ -34291,7 +34471,9 @@ const _sfc_main$o = defineComponent({
|
|
|
34291
34471
|
}
|
|
34292
34472
|
}
|
|
34293
34473
|
},
|
|
34294
|
-
emits:
|
|
34474
|
+
emits: {
|
|
34475
|
+
click: () => true
|
|
34476
|
+
},
|
|
34295
34477
|
setup(props, { emit }) {
|
|
34296
34478
|
const state = reactive({
|
|
34297
34479
|
errorShow: false
|
|
@@ -34424,9 +34606,9 @@ const initOpenApp = (initOpenApp2) => {
|
|
|
34424
34606
|
app.mount(container2);
|
|
34425
34607
|
document.body.appendChild(container2);
|
|
34426
34608
|
};
|
|
34427
|
-
function openApp$1(
|
|
34609
|
+
function openApp$1(openAppParams) {
|
|
34428
34610
|
var _a, _b, _c, _d;
|
|
34429
|
-
reconstructParams(
|
|
34611
|
+
const params = reconstructParams(openAppParams);
|
|
34430
34612
|
let url;
|
|
34431
34613
|
try {
|
|
34432
34614
|
url = new URL((_c = (_b = params == null ? void 0 : params.url) != null ? _b : (_a = params == null ? void 0 : params.ios) == null ? void 0 : _a.link) != null ? _c : "");
|
|
@@ -34438,10 +34620,11 @@ function openApp$1(params) {
|
|
|
34438
34620
|
}
|
|
34439
34621
|
initOpenApp(params);
|
|
34440
34622
|
}
|
|
34441
|
-
function openMiniApp(
|
|
34623
|
+
function openMiniApp(openMiniappParams) {
|
|
34442
34624
|
var _a, _b;
|
|
34443
|
-
|
|
34444
|
-
|
|
34625
|
+
let params = null;
|
|
34626
|
+
if (openMiniappParams) {
|
|
34627
|
+
params = reconstructParams(openMiniappParams);
|
|
34445
34628
|
}
|
|
34446
34629
|
const clientId = getClientId();
|
|
34447
34630
|
if (!clientId) {
|
|
@@ -34451,9 +34634,9 @@ function openMiniApp(params) {
|
|
|
34451
34634
|
window.location.href = appUrl;
|
|
34452
34635
|
(_b = params == null ? void 0 : params.success) == null ? void 0 : _b.call(params);
|
|
34453
34636
|
}
|
|
34454
|
-
async function checkPaymentMethod(
|
|
34637
|
+
async function checkPaymentMethod(checkPayMethodParams) {
|
|
34455
34638
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
34456
|
-
reconstructParams(
|
|
34639
|
+
const params = reconstructParams(checkPayMethodParams);
|
|
34457
34640
|
try {
|
|
34458
34641
|
const grantStatus = await checkPermission(PermissionName.mini_app_check_payment_method);
|
|
34459
34642
|
if (grantStatus !== PermissionStatus.granted) {
|
|
@@ -34483,9 +34666,9 @@ async function checkPaymentMethod(params) {
|
|
|
34483
34666
|
(_h = params == null ? void 0 : params.fail) == null ? void 0 : _h.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
34484
34667
|
}
|
|
34485
34668
|
}
|
|
34486
|
-
async function requestInternal(
|
|
34669
|
+
async function requestInternal(requestInternalParams) {
|
|
34487
34670
|
var _a, _b, _c, _d;
|
|
34488
|
-
reconstructParams(
|
|
34671
|
+
const params = reconstructParams(requestInternalParams);
|
|
34489
34672
|
try {
|
|
34490
34673
|
const appDetail = getAppDetail();
|
|
34491
34674
|
if (!(appDetail == null ? void 0 : appDetail.isInternal)) {
|
|
@@ -34517,13 +34700,13 @@ async function requestInternal(params) {
|
|
|
34517
34700
|
}
|
|
34518
34701
|
}
|
|
34519
34702
|
function debug(params) {
|
|
34520
|
-
reconstructParams(params);
|
|
34521
|
-
execute$6(
|
|
34703
|
+
const newParams = reconstructParams(params);
|
|
34704
|
+
execute$6(newParams);
|
|
34522
34705
|
}
|
|
34523
34706
|
function execute$6(params) {
|
|
34524
34707
|
var _a;
|
|
34525
34708
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
|
|
34526
|
-
v: "1.
|
|
34709
|
+
v: "1.38.0"
|
|
34527
34710
|
});
|
|
34528
34711
|
}
|
|
34529
34712
|
function useCallBack(props, ctx) {
|
|
@@ -35478,13 +35661,13 @@ async function initRegisterEmail(initRegisterEmail2, allowsUpdate) {
|
|
|
35478
35661
|
document.body.appendChild(container2);
|
|
35479
35662
|
}
|
|
35480
35663
|
function registerEmail(params, allowsUpdate = false) {
|
|
35481
|
-
reconstructParams(params);
|
|
35482
|
-
initRegisterEmail(
|
|
35664
|
+
const newParams = reconstructParams(params);
|
|
35665
|
+
initRegisterEmail(newParams, allowsUpdate).catch(() => {
|
|
35483
35666
|
});
|
|
35484
35667
|
}
|
|
35485
35668
|
function registerKyc(params) {
|
|
35486
|
-
reconstructParams(params);
|
|
35487
|
-
execute$5(
|
|
35669
|
+
const newParams = reconstructParams(params);
|
|
35670
|
+
execute$5(newParams);
|
|
35488
35671
|
}
|
|
35489
35672
|
function execute$5(params) {
|
|
35490
35673
|
var _a;
|
|
@@ -35523,8 +35706,8 @@ function execute$5(params) {
|
|
|
35523
35706
|
}
|
|
35524
35707
|
}
|
|
35525
35708
|
async function startMultiFactorAuth(params) {
|
|
35526
|
-
reconstructParams(params);
|
|
35527
|
-
await execute$4(
|
|
35709
|
+
const newParams = reconstructParams(params);
|
|
35710
|
+
await execute$4(newParams);
|
|
35528
35711
|
}
|
|
35529
35712
|
function validType(params) {
|
|
35530
35713
|
const authTypes = ["BIOMETRIC"];
|
|
@@ -35559,8 +35742,8 @@ async function execute$4(params) {
|
|
|
35559
35742
|
}
|
|
35560
35743
|
}
|
|
35561
35744
|
function logout(params) {
|
|
35562
|
-
reconstructParams(params);
|
|
35563
|
-
execute$3(
|
|
35745
|
+
const newParams = reconstructParams(params);
|
|
35746
|
+
execute$3(newParams);
|
|
35564
35747
|
}
|
|
35565
35748
|
function execute$3(params) {
|
|
35566
35749
|
var _a, _b;
|
|
@@ -35576,8 +35759,8 @@ function execute$3(params) {
|
|
|
35576
35759
|
}
|
|
35577
35760
|
}
|
|
35578
35761
|
async function verifyMultiFactorAuthResult(params) {
|
|
35579
|
-
reconstructParams(params);
|
|
35580
|
-
await execute$2(
|
|
35762
|
+
const newParams = reconstructParams(params);
|
|
35763
|
+
await execute$2(newParams);
|
|
35581
35764
|
}
|
|
35582
35765
|
async function execute$2(params) {
|
|
35583
35766
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
@@ -35615,11 +35798,11 @@ async function execute$2(params) {
|
|
|
35615
35798
|
}
|
|
35616
35799
|
}
|
|
35617
35800
|
async function getAuthStatus(params) {
|
|
35618
|
-
reconstructParams(params);
|
|
35619
|
-
await execute$1(
|
|
35801
|
+
const newParams = reconstructParams(params);
|
|
35802
|
+
await execute$1(newParams);
|
|
35620
35803
|
}
|
|
35621
35804
|
async function execute$1(params) {
|
|
35622
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m
|
|
35805
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
35623
35806
|
try {
|
|
35624
35807
|
const clientId = getClientId();
|
|
35625
35808
|
if (!clientId) {
|
|
@@ -35630,31 +35813,30 @@ async function execute$1(params) {
|
|
|
35630
35813
|
url: "/web-api/app/v1/smartpayment/auth/status",
|
|
35631
35814
|
params: {}
|
|
35632
35815
|
});
|
|
35633
|
-
if (res.ppFetchResult === "
|
|
35634
|
-
return (_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, { errorCode: MiniAppErrorType.
|
|
35816
|
+
if (res.ppFetchResult === "notAuthorized") {
|
|
35817
|
+
return (_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, { errorCode: MiniAppErrorType.notAuthorized });
|
|
35635
35818
|
}
|
|
35636
35819
|
if (res.ppFetchResult !== "success") {
|
|
35637
|
-
|
|
35820
|
+
if (res.ppFetchResult === "tokenExpired" && res.statusCode === 401) {
|
|
35821
|
+
return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, { errorCode: MiniAppErrorType.tokenExpired });
|
|
35822
|
+
}
|
|
35823
|
+
return (_d = params == null ? void 0 : params.fail) == null ? void 0 : _d.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
35638
35824
|
}
|
|
35639
|
-
const isSuccess = ((
|
|
35825
|
+
const isSuccess = ((_g = (_f = (_e = res == null ? void 0 : res.body) == null ? void 0 : _e.unsigned) == null ? void 0 : _f.resultInfo) == null ? void 0 : _g.code) === MiniAppStatusType.success;
|
|
35640
35826
|
if (isSuccess) {
|
|
35641
|
-
const data2 = (
|
|
35827
|
+
const data2 = (_i = (_h = res == null ? void 0 : res.body) == null ? void 0 : _h.unsigned) == null ? void 0 : _i.data;
|
|
35642
35828
|
if (!(data2 == null ? void 0 : data2.isActive)) {
|
|
35643
|
-
return (
|
|
35829
|
+
return (_j = params == null ? void 0 : params.fail) == null ? void 0 : _j.call(params, { errorCode: MiniAppErrorType.notAuthorized });
|
|
35644
35830
|
} else if (data2 == null ? void 0 : data2.showPermission) {
|
|
35645
|
-
return (
|
|
35831
|
+
return (_k = params == null ? void 0 : params.fail) == null ? void 0 : _k.call(params, {
|
|
35646
35832
|
errorCode: MiniAppErrorType.permissionRequired
|
|
35647
35833
|
});
|
|
35648
35834
|
} else if ((data2 == null ? void 0 : data2.isActive) && !(data2 == null ? void 0 : data2.showPermission)) {
|
|
35649
|
-
return (
|
|
35835
|
+
return (_l = params == null ? void 0 : params.success) == null ? void 0 : _l.call(params, { statusCode: MiniAppStatusType.connected });
|
|
35650
35836
|
}
|
|
35651
|
-
} else if (((_l = getRefreshToken()) == null ? void 0 : _l.length) > 0) {
|
|
35652
|
-
return (_m = params == null ? void 0 : params.fail) == null ? void 0 : _m.call(params, { errorCode: MiniAppErrorType.tokenExpired });
|
|
35653
|
-
} else {
|
|
35654
|
-
return (_n = params == null ? void 0 : params.fail) == null ? void 0 : _n.call(params, { errorCode: MiniAppErrorType.notAuthorized });
|
|
35655
35837
|
}
|
|
35656
35838
|
} catch (e) {
|
|
35657
|
-
return (
|
|
35839
|
+
return (_m = params == null ? void 0 : params.fail) == null ? void 0 : _m.call(params, {
|
|
35658
35840
|
errorCode: (e == null ? void 0 : e.message) || MiniAppErrorType.serverError
|
|
35659
35841
|
});
|
|
35660
35842
|
}
|
|
@@ -36329,35 +36511,35 @@ function callbackHandler(params, callback) {
|
|
|
36329
36511
|
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.unknown });
|
|
36330
36512
|
}
|
|
36331
36513
|
}
|
|
36332
|
-
function setSessionData(
|
|
36514
|
+
function setSessionData(setDataParams) {
|
|
36333
36515
|
var _a, _b;
|
|
36334
|
-
reconstructParams(
|
|
36516
|
+
const params = reconstructParams(setDataParams);
|
|
36335
36517
|
sessionStorage.setItem(params == null ? void 0 : params.key, (_a = params == null ? void 0 : params.value) != null ? _a : "");
|
|
36336
36518
|
(_b = params == null ? void 0 : params.success) == null ? void 0 : _b.call(params);
|
|
36337
36519
|
}
|
|
36338
|
-
function getSessionData(
|
|
36520
|
+
function getSessionData(getDataParams) {
|
|
36339
36521
|
var _a;
|
|
36340
|
-
reconstructParams(
|
|
36522
|
+
const params = reconstructParams(getDataParams);
|
|
36341
36523
|
const value2 = sessionStorage.getItem(params == null ? void 0 : params.key);
|
|
36342
36524
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, { [params == null ? void 0 : params.key]: value2 != null ? value2 : "" });
|
|
36343
36525
|
}
|
|
36344
|
-
function setStorageData(
|
|
36526
|
+
function setStorageData(setDataParams) {
|
|
36345
36527
|
var _a, _b;
|
|
36346
|
-
reconstructParams(
|
|
36528
|
+
const params = reconstructParams(setDataParams);
|
|
36347
36529
|
localStorage.setItem(params == null ? void 0 : params.key, (_a = params == null ? void 0 : params.value) != null ? _a : "");
|
|
36348
36530
|
(_b = params == null ? void 0 : params.success) == null ? void 0 : _b.call(params);
|
|
36349
36531
|
}
|
|
36350
|
-
function getStorageData(
|
|
36532
|
+
function getStorageData(getDataParams) {
|
|
36351
36533
|
var _a;
|
|
36352
|
-
reconstructParams(
|
|
36534
|
+
const params = reconstructParams(getDataParams);
|
|
36353
36535
|
const value2 = localStorage.getItem(params == null ? void 0 : params.key);
|
|
36354
36536
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, { [params == null ? void 0 : params.key]: value2 != null ? value2 : "" });
|
|
36355
36537
|
}
|
|
36356
36538
|
function removeStorageData(params) {
|
|
36357
36539
|
var _a;
|
|
36358
|
-
reconstructParams(params);
|
|
36359
|
-
localStorage.removeItem(
|
|
36360
|
-
(_a =
|
|
36540
|
+
const newParams = reconstructParams(params);
|
|
36541
|
+
localStorage.removeItem(newParams == null ? void 0 : newParams.key);
|
|
36542
|
+
(_a = newParams == null ? void 0 : newParams.success) == null ? void 0 : _a.call(newParams);
|
|
36361
36543
|
}
|
|
36362
36544
|
const errorCodes = new Map();
|
|
36363
36545
|
errorCodes.set(414, MiniAppErrorType.invalidUrl);
|
|
@@ -36365,9 +36547,9 @@ errorCodes.set(413, MiniAppErrorType.invalidData);
|
|
|
36365
36547
|
errorCodes.set(400, MiniAppErrorType.invalidHeader);
|
|
36366
36548
|
errorCodes.set(405, MiniAppErrorType.invalidMethod);
|
|
36367
36549
|
errorCodes.set(502, MiniAppErrorType.invalidResponse);
|
|
36368
|
-
async function request(
|
|
36550
|
+
async function request(requestParams) {
|
|
36369
36551
|
var _a, _b, _c, _d;
|
|
36370
|
-
reconstructParams(
|
|
36552
|
+
const params = reconstructParams(requestParams);
|
|
36371
36553
|
try {
|
|
36372
36554
|
const response = await fetch(params == null ? void 0 : params.url, {
|
|
36373
36555
|
method: params == null ? void 0 : params.method,
|
|
@@ -36398,9 +36580,9 @@ function handleResponse(response) {
|
|
|
36398
36580
|
return { error: { message: "Request failed due to server error" } };
|
|
36399
36581
|
}
|
|
36400
36582
|
}
|
|
36401
|
-
async function share(
|
|
36583
|
+
async function share(shareParams) {
|
|
36402
36584
|
var _a, _b;
|
|
36403
|
-
reconstructParams(
|
|
36585
|
+
const params = reconstructParams(shareParams);
|
|
36404
36586
|
if (!(navigator == null ? void 0 : navigator.share)) {
|
|
36405
36587
|
console.warn("navigator object is not supported in this environment.");
|
|
36406
36588
|
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.notAvailable });
|
|
@@ -38587,7 +38769,7 @@ const _sfc_main = defineComponent({
|
|
|
38587
38769
|
url: "web-api/app/v1/users/payout/methods"
|
|
38588
38770
|
});
|
|
38589
38771
|
if (result2.ppFetchResult !== "success") {
|
|
38590
|
-
const errorCode = (_c = (_b = (_a = result2
|
|
38772
|
+
const errorCode = (_c = (_b = (_a = result2.body) == null ? void 0 : _a.unsigned) == null ? void 0 : _b.resultInfo) == null ? void 0 : _c.code;
|
|
38591
38773
|
handleError2(errorCode);
|
|
38592
38774
|
return;
|
|
38593
38775
|
}
|
|
@@ -38660,8 +38842,8 @@ const cssModules = {};
|
|
|
38660
38842
|
cssModules["$style"] = style0;
|
|
38661
38843
|
var GetBankInfoWrapper = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__cssModules", cssModules]]);
|
|
38662
38844
|
function getBankInfo(params) {
|
|
38663
|
-
reconstructParams(params);
|
|
38664
|
-
execute(
|
|
38845
|
+
const newParams = reconstructParams(params);
|
|
38846
|
+
execute(newParams);
|
|
38665
38847
|
}
|
|
38666
38848
|
function execute(params) {
|
|
38667
38849
|
var _a;
|
|
@@ -38792,7 +38974,7 @@ class MiniAppModule extends JsBridgeModule {
|
|
|
38792
38974
|
});
|
|
38793
38975
|
}
|
|
38794
38976
|
scanCode(params) {
|
|
38795
|
-
scanCode(
|
|
38977
|
+
scanCode();
|
|
38796
38978
|
}
|
|
38797
38979
|
showAlert(params) {
|
|
38798
38980
|
this.detectMode() === RuntimeEnv.JS ? showAlert(params) : this.jsBridge.callNative("showAlert", params);
|