2026-09-30 07:29:52 +00:00
|
|
|
// Module ID: 16861
|
|
|
|
|
// Function ID: 16862
|
2026-09-02 09:53:35 +00:00
|
|
|
// Name: getCannotSwapApplicationText
|
2026-09-30 07:29:52 +00:00
|
|
|
// Dependencies: [2112, 4499, 4506, 1115, 8725, 2]
|
2026-09-02 09:53:35 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-30 07:29:52 +00:00
|
|
|
// Module 16861 (getCannotSwapApplicationText)
|
2026-09-26 08:31:33 +00:00
|
|
|
import LocaleStore from "LocaleStore" /* 2112 */;
|
2026-09-30 07:29:52 +00:00
|
|
|
import PermissionStore from "PermissionStore" /* 4499 */;
|
2026-09-02 09:53:35 +00:00
|
|
|
|
2026-09-10 05:38:07 +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) {
|
2026-09-10 05:38:07 +00:00
|
|
|
_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-09-10 05:38:07 +00:00
|
|
|
const listFormat = new Intl.ListFormat(LocaleStore.locale);
|
2026-09-15 14:23:42 +00:00
|
|
|
const intl = tmp(1115).intl;
|
2026-09-30 07:29:52 +00:00
|
|
|
const obj = { permissions: listFormat.format(found.map(tmp(8725).getPermissionName)), count: found.length };
|
2026-09-15 14:23:42 +00:00
|
|
|
return intl.formatToPlainString(tmp(1115).t.na1rJc, obj);
|
2026-09-02 09:53:35 +00:00
|
|
|
}
|
|
|
|
|
};
|