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

29 lines
1 KiB
TypeScript
Raw Normal View History

// Module ID: 16882
// Function ID: 16883
2026-09-02 09:53:35 +00:00
// Name: getCannotSwapApplicationText
// Dependencies: [2111, 4498, 4505, 1115, 8717, 2]
2026-09-02 09:53:35 +00:00
// Exports: default
// Module 16882 (getCannotSwapApplicationText)
import LocaleStore from "LocaleStore" /* 2111 */;
import PermissionStore from "PermissionStore" /* 4498 */;
2026-09-02 09:53:35 +00:00
const require = globalThis.__r;
const require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/app_channels/getCannotSwapApplicationText.tsx");
2026-09-02 09:53:35 +00:00
export default function getCannotSwapApplicationText(arg0) {
_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;
const listFormat = new Intl.ListFormat(LocaleStore.locale);
const intl = tmp(1115).intl;
const obj = { permissions: listFormat.format(found.map(tmp(8717).getPermissionName)), count: found.length };
return intl.formatToPlainString(tmp(1115).t.na1rJc, obj);
2026-09-02 09:53:35 +00:00
}
};