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

64 lines
3.3 KiB
TypeScript

/* Metro module 10648; source: modules/activities/confirmActivityChangeAlert.tsx; dependencies: [3793, 1878, 4805, 4647, 1244, 1861, 2] */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import RelationshipStore from '../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import AlertActionCreators from '../../actions/AlertActionCreators.tsx'; /* Metro dependency 4647 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as StringUtilsModule from '../../utils/StringUtils.tsx'; /* Metro dependency 1861 */
function _fun81926(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10834:6, offset: 0x01ee3b57, size: 134 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/activities/confirmActivityChangeAlert.tsx');
exports.default = confirmActivityChangeModal;
function confirmActivityChangeModal(a0, a1, a2, a3) { // fn#81927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10834:209, offset: 0x01ee3bdd, size: 503 bytes, params: 5, frame: 26
var r8;
var r10;
var moduleValue;
var intl2;
var intl3;
if (a1 != null) {
moduleValue = require(4805) /* metro dependency 4805: useChannelName */;
r8 = moduleValue.computeChannelName(a1, UserStore, RelationshipStore);
} else {
r8 = '';
}
const value2 = undefined;
const defaultImport = AlertActionCreators;
const show = defaultImport.show;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const XkIWkk = t.XkIWkk;
object.title = Reflect.apply(string, intl, [XkIWkk]);
object.cancelText = intl.string(t['ETE/oC']);
object.confirmText = intl.string(t['cY+Oob']);
object.onConfirm = a2;
object.onCancel = a3;
const format = intl.format;
const property = t['5/Xort'];
const object2 = {};
const name = a0 == null ? value2 : a0.name;
if (name != null) {
r10 = name;
} else {
intl2 = (require(1244) /* metro dependency 1244: indexNative */).intl;
r10 = intl2.string(t.G99XFs);
}
object2.currentApplicationName = r10;
if (StringUtilsModule.isNullOrEmpty(r8)) {
intl3 = (require(1244) /* metro dependency 1244: indexNative */).intl;
r8 = intl3.string(t.OGUjmt);
}
object2.currentApplicationChannelName = r8;
object.body = Reflect.apply(format, intl, [property, object2]);
Reflect.apply(show, defaultImport, [object]);
return value2;
}
}
global.__d(_fun81926, 10648, [3793, 1878, 4805, 4647, 1244, 1861,
2]) /* metro module 10648, dependencies: [3793, 1878, 4805, 4647, 1244, 1861, 2] */;