decord/source/modules/parent_tools/native/showSpendingLimitReachedAlert.tsx

50 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 6199
2026-07-27 11:26:19 +00:00
// Function ID: 55607
2026-07-20 16:05:17 +00:00
// Name: isSpendingLimitError
2026-07-25 08:10:48 +00:00
// Dependencies: [4030, 3799, 6200, 4472, 1212, 5817, 4141, 2]
2026-07-20 16:05:17 +00:00
// Exports: isSpendingLimitError, showSpendingLimitReachedAlert
2026-07-25 08:10:48 +00:00
// Module 6199 (isSpendingLimitError)
2026-07-23 10:11:24 +00:00
const result = require("useUserIdsForLinkStatus").fileFinishedImporting("modules/parent_tools/native/showSpendingLimitReachedAlert.tsx");
2026-07-20 16:05:17 +00:00
export const isSpendingLimitError = function isSpendingLimitError(billingError) {
2026-07-25 08:10:48 +00:00
let tmp = billingError instanceof require(4030) /* V6OrEarlierAPIError */.BillingError;
2026-07-20 16:05:17 +00:00
if (tmp) {
2026-07-25 08:10:48 +00:00
let tmp4 = billingError.code === require(3799) /* _isNativeReflectConstruct */.ErrorCodes.BILLING_SPENDING_LIMIT_REACHED;
2026-07-20 16:05:17 +00:00
if (!tmp4) {
2026-07-25 08:10:48 +00:00
tmp4 = billingError.code === require(3799) /* _isNativeReflectConstruct */.ErrorCodes.BILLING_SPENDING_LIMIT_WILL_EXCEED;
2026-07-20 16:05:17 +00:00
}
tmp = tmp4;
}
return tmp;
};
export const showSpendingLimitReachedAlert = function showSpendingLimitReachedAlert() {
2026-07-25 08:10:48 +00:00
let obj = activeLinkUserIds(6200);
2026-07-23 10:11:24 +00:00
activeLinkUserIds = obj.getActiveLinkUserIds();
2026-07-25 08:10:48 +00:00
let obj1 = importDefault(4472);
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-23 10:11:24 +00:00
const intl = activeLinkUserIds(1212).intl;
obj.title = intl.string(activeLinkUserIds(1212).t.QJKKrT);
const intl2 = activeLinkUserIds(1212).intl;
obj.body = intl2.string(activeLinkUserIds(1212).t["73Islf"]);
2026-07-20 16:05:17 +00:00
obj.isDismissable = true;
if (activeLinkUserIds.length > 0) {
obj = {};
2026-07-23 10:11:24 +00:00
const intl3 = activeLinkUserIds(1212).intl;
obj.confirmText = intl3.string(activeLinkUserIds(1212).t.GF9RCX);
2026-07-20 16:05:17 +00:00
obj.onConfirm = function onConfirm() {
2026-07-23 10:11:24 +00:00
let obj = activeLinkUserIds(outer1_2[5]);
2026-07-20 16:05:17 +00:00
obj.popLayer();
obj = { recipientIds: activeLinkUserIds };
2026-07-23 10:11:24 +00:00
outer1_1(outer1_2[6]).openPrivateChannel(obj);
2026-07-20 16:05:17 +00:00
};
2026-07-23 10:11:24 +00:00
const intl4 = activeLinkUserIds(1212).intl;
obj.cancelText = intl4.string(activeLinkUserIds(1212).t.L5eIZ2);
2026-07-20 16:05:17 +00:00
obj1 = obj;
} else {
obj1 = {};
}
const merged = Object.assign(obj1);
obj1.show(obj);
};