decord/source/modules/parent_tools/native/showSpendingLimitReachedAlert.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

52 lines
1.9 KiB
TypeScript

// Module ID: 10710
// Function ID: 10711
// Name: isSpendingLimitError
// Dependencies: [4461, 4240, 8650, 4905, 1114, 7587, 4573, 2]
// Exports: isSpendingLimitError, showSpendingLimitReachedAlert
// Module 10710 (isSpendingLimitError)
import set from "set" /* 2 */;
import V6OrEarlierAPIError from "V6OrEarlierAPIError" /* 4461 */;
import _modDef4905 from "module_4905" /* 4905 */;
const result = set.fileFinishedImporting("modules/parent_tools/native/showSpendingLimitReachedAlert.tsx");
export const isSpendingLimitError = function isSpendingLimitError(billingError) {
let tmp3 = billingError instanceof V6OrEarlierAPIError.BillingError;
if (tmp3) {
let tmp4 = billingError.code === tmp(4240).ErrorCodes.BILLING_SPENDING_LIMIT_REACHED;
if (!tmp4) {
tmp4 = billingError.code === tmp(4240).ErrorCodes.BILLING_SPENDING_LIMIT_WILL_EXCEED;
}
tmp3 = tmp4;
}
return tmp3;
};
export const showSpendingLimitReachedAlert = function showSpendingLimitReachedAlert() {
let obj = activeLinkUserIds(8650);
activeLinkUserIds = obj.getActiveLinkUserIds();
obj1 = _modDef4905;
obj = { title: null, body: null, isDismissable: true };
const intl = activeLinkUserIds(1114).intl;
obj[0] = intl.string(activeLinkUserIds(1114).t.QJKKrT);
const intl2 = activeLinkUserIds(1114).intl;
obj[1] = intl2.string(activeLinkUserIds(1114).t["73Islf"]);
if (activeLinkUserIds.length > 0) {
obj = { confirmText: null, onConfirm: null, cancelText: null };
const intl3 = tmp(1114).intl;
obj[0] = intl3.string(tmp(1114).t.GF9RCX);
obj[1] = function onConfirm() {
let obj = activeLinkUserIds(closure_1_2[5]);
obj.popLayer();
obj = { recipientIds: activeLinkUserIds };
closure_1_1(closure_1_2[6]).openPrivateChannel(obj);
};
const intl4 = tmp(1114).intl;
obj[2] = intl4.string(tmp(1114).t.L5eIZ2);
obj1 = obj;
} else {
obj1 = {};
}
const merged = Object.assign(obj1);
obj1.show(obj);
};