Files
2026-07-28 01:06:53 +03:00

165 lines
7.2 KiB
TypeScript

/* Metro module 12134; source: modules/integration_settings/native/useShowUnlinkChannelAlert.tsx; dependencies: [5, 31, 8148, 4496, 1244, 4596, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import AlertActionCreators from '../../../actions/native/AlertActionCreators.tsx'; /* Metro dependency 4496 */
import Alert from '../../../components_native/common/Alert.tsx'; /* Metro dependency 4596 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun93165(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12320:6, offset: 0x020a956e, size: 137 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/integration_settings/native/useShowUnlinkChannelAlert.tsx');
exports.default = useShowUnlinkChannelAlert;
function useShowUnlinkChannelAlert(a0, a1, a2) { // fn#93166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12320:228, offset: 0x020a95f7, size: 107 bytes, params: 4, frame: 18
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const useCallback = ReactModule.useCallback;
let value = Module00005(_fun93168);
value = Reflect.apply(useCallback, ReactModule, [value, [a0, a2]]);
return ReactModule.useCallback(_fun93169, [a1, value]);
function* _fun93168() { // fn#93168, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12320:293, offset: 0x020a966d, size: 244 bytes, params: 1, frame: 19
var binding;
var binding2;
var property;
var value3;
var removeLinkedLobby;
var value5;
var value6;
var value7;
var value8;
var error;
var binding3;
var value9;
var show;
var object;
var intl;
var string;
var t;
var vFzPFj;
if (true) {
value = environment.__proto__.__proto__;
reducibleJoin3: while (true) {
reduciblePort22: while (true) {
exceptionLanding21: while (true) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding21;
}
break reducibleJoin3;
}
binding = env2_1;
binding3 = env2_2;
value9 = binding(binding3[3]);
show = value9.show;
object = {};
binding = env2_0;
intl = binding(binding3[4]).intl;
string = intl.string;
t = binding(binding3[4]).t;
vFzPFj = t.vFzPFj;
object.title = Reflect.apply(string, intl, [vFzPFj]);
intl = binding(binding3[4]).intl;
string = intl.string;
t = binding(binding3[4]).t;
object.body = Reflect.apply(string, intl, [t['6D5WVg']]);
Reflect.apply(show, value9, [object]);
break reduciblePort22;
}
return undefined;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding21;
}
try {
property = binding2[2];
} catch (error) {
break exceptionLanding21;
}
try {
value3 = binding(property);
} catch (error) {
break exceptionLanding21;
}
try {
removeLinkedLobby = value3.removeLinkedLobby;
} catch (error) {
break exceptionLanding21;
}
try {
} catch (error) {
break exceptionLanding21;
}
try {
value5 = Reflect.apply(removeLinkedLobby, value3, [require]);
} catch (error) {
break exceptionLanding21;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
break exceptionLanding21;
}
if (value7) {
return value6;
}
try {
} catch (error) {
break exceptionLanding21;
}
try {
value8 = dependencyMap == null;
} catch (error) {
break exceptionLanding21;
}
reducibleJoin22: while (true) {
if (value8) {
break reducibleJoin22;
}
try {
} catch (error) {
break exceptionLanding21;
}
try {
dependencyMap();
} catch (error) {
break exceptionLanding21;
}
break reducibleJoin22;
}
}
}
function _fun93169() { // fn#93169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12320:505, offset: 0x020a9761, size: 296 bytes, params: 1, frame: 23
const defaultImport = AlertActionCreators;
const show = defaultImport.show;
const object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
const JmUENg = t.JmUENg;
object.title = Reflect.apply(string, intl, [JmUENg]);
object.body = intl.format(t['6l2osp'], {applicationName: require});
object.cancelText = intl.string(t['ETE/oC']);
object.confirmText = intl.string(t['cY+Oob']);
object.onConfirm = Module00005;
const Colors = (Alert).Colors;
const RED = Colors.RED;
object.confirmColor = RED;
Reflect.apply(show, defaultImport, [object]);
}
}
}
global.__d(_fun93165, 12134, [5, 31, 8148, 4496, 1244, 4596,
2]) /* metro module 12134, dependencies: [5, 31, 8148, 4496, 1244, 4596, 2] */;