decord/alpha/source/modules/app_channels/getCannotSwapApplicationText.tsx

34 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 17578
// Function ID: 17579
2026-09-02 09:53:35 +00:00
// Name: getCannotSwapApplicationText
2026-10-12 06:59:38 +00:00
// Dependencies: [2129, 4750, 4757, 1126, 9238, 2]
2026-09-02 09:53:35 +00:00
// Exports: default
2026-10-13 12:43:34 +00:00
// Module 17578 (getCannotSwapApplicationText)
2026-10-10 08:08:14 +00:00
import LocaleStore from "LocaleStore" /* 2129 */;
import PermissionStore from "PermissionStore" /* 4750 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-09-02 09:53:35 +00:00
const require = globalThis.__r;
2026-10-03 08:58:59 +00:00
let _require;
const result = size.fileFinishedImporting("modules/app_channels/getCannotSwapApplicationText.tsx");
2026-09-02 09:53:35 +00:00
export default function getCannotSwapApplicationText(arg0) {
2026-10-03 08:58:59 +00:00
let closure_0;
_require = arg0;
const prop = require("AppChannelPermissions").SWAP_APP_CHANNEL_APPLICATION_PERMISSION_LIST;
const found = prop.filter((item) => !PermissionStore.can(item, closure_0));
2026-09-02 09:53:35 +00:00
if (0 !== found.length) {
const _Intl = Intl;
2026-10-03 08:58:59 +00:00
const self = this;
const self2 = this;
const listFormat = new Intl.ListFormat(LocaleStore.locale);
2026-10-03 08:58:59 +00:00
const intl = tmp(1126).intl;
const formatToPlainString = intl.formatToPlainString;
const obj = { permissions: listFormat.format(found.map(require("permissions").getPermissionName)), count: found.length };
const na1rJc = tmp(1126).t.na1rJc;
return formatToPlainString(na1rJc, obj);
2026-09-02 09:53:35 +00:00
}
};