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

50 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 7121
// Function ID: 57233
2026-07-20 16:05:17 +00:00
// Name: isSpendingLimitError
2026-07-24 07:16:23 +00:00
// Dependencies: [4029, 3798, 7122, 4471, 1212, 6821, 4140, 2]
2026-07-20 16:05:17 +00:00
// Exports: isSpendingLimitError, showSpendingLimitReachedAlert
2026-07-24 07:16:23 +00:00
// Module 7121 (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-23 10:11:24 +00:00
let tmp = billingError instanceof require(4029) /* V6OrEarlierAPIError */.BillingError;
2026-07-20 16:05:17 +00:00
if (tmp) {
2026-07-23 10:11:24 +00:00
let tmp4 = billingError.code === require(3798) /* _isNativeReflectConstruct */.ErrorCodes.BILLING_SPENDING_LIMIT_REACHED;
2026-07-20 16:05:17 +00:00
if (!tmp4) {
2026-07-23 10:11:24 +00:00
tmp4 = billingError.code === require(3798) /* _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-24 07:16:23 +00:00
let obj = activeLinkUserIds(7122);
2026-07-23 10:11:24 +00:00
activeLinkUserIds = obj.getActiveLinkUserIds();
let obj1 = importDefault(4471);
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);
};