Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
28 lines
1 KiB
TypeScript
28 lines
1 KiB
TypeScript
// Module ID: 17287
|
|
// Function ID: 17288
|
|
// Name: getCannotSwapApplicationText
|
|
// Dependencies: [2113, 4399, 4406, 1119, 9337, 2]
|
|
// Exports: default
|
|
|
|
// Module 17287 (getCannotSwapApplicationText)
|
|
import LocaleStore from "LocaleStore" /* 2113 */;
|
|
import PermissionStore from "PermissionStore" /* 4399 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const require = fn;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/app_channels/getCannotSwapApplicationText.tsx");
|
|
|
|
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));
|
|
if (0 !== found.length) {
|
|
const _Intl = Intl;
|
|
const listFormat = new Intl.ListFormat(LocaleStore.locale);
|
|
const intl = tmp(1119).intl;
|
|
const obj = { permissions: listFormat.format(found.map(tmp(9337).getPermissionName)), count: found.length };
|
|
return intl.formatToPlainString(tmp(1119).t.na1rJc, obj);
|
|
}
|
|
};
|