2026-10-12 16:32:48 +00:00
|
|
|
// Module ID: 17574
|
|
|
|
|
// Function ID: 17575
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: getCannotSwapApplicationText
|
2026-10-12 16:32:48 +00:00
|
|
|
// Dependencies: [2129, 4750, 4757, 1126, 9238, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-10-12 16:32:48 +00:00
|
|
|
// Module 17574 (getCannotSwapApplicationText)
|
|
|
|
|
import LocaleStore from "LocaleStore" /* 2129 */;
|
|
|
|
|
import PermissionStore from "PermissionStore" /* 4750 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
const require = globalThis.__r;
|
2026-10-01 14:13:23 +00:00
|
|
|
let _require;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
const result = size.fileFinishedImporting("modules/app_channels/getCannotSwapApplicationText.tsx");
|
|
|
|
|
|
|
|
|
|
export default function getCannotSwapApplicationText(arg0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_0;
|
2026-09-18 19:45:33 +00:00
|
|
|
_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;
|
2026-10-01 14:13:23 +00:00
|
|
|
const self = this;
|
|
|
|
|
const self2 = this;
|
2026-09-18 19:45:33 +00:00
|
|
|
const listFormat = new Intl.ListFormat(LocaleStore.locale);
|
2026-10-07 22:43:51 +00:00
|
|
|
const intl = tmp(1126).intl;
|
2026-10-01 14:13:23 +00:00
|
|
|
const formatToPlainString = intl.formatToPlainString;
|
|
|
|
|
const obj = { permissions: listFormat.format(found.map(require("permissions").getPermissionName)), count: found.length };
|
2026-10-07 22:43:51 +00:00
|
|
|
const na1rJc = tmp(1126).t.na1rJc;
|
2026-10-01 14:13:23 +00:00
|
|
|
return formatToPlainString(na1rJc, obj);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
};
|