53 lines
2.7 KiB
TypeScript
53 lines
2.7 KiB
TypeScript
/* Metro module 10648; source: modules/activities/confirmActivityChangeAlert.tsx; dependencies: [3793, 1878, 4805, 4647, 1244, 1861, 2] */
|
|
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});
|
|
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
|
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
|
(require(2) /* metro dependency 2 */).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 r10;
|
|
var intl2;
|
|
var intl3;
|
|
let r8 = a1 != null ? (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(a1, UserStore,
|
|
RelationshipStore) : '';
|
|
const value2 = undefined;
|
|
const defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
|
const show = defaultImport.show;
|
|
const object3 = {};
|
|
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;
|
|
object3.title = Reflect.apply(string, intl, [XkIWkk]);
|
|
object3.cancelText = intl.string(t['ETE/oC']);
|
|
object3.confirmText = intl.string(t['cY+Oob']);
|
|
object3.onConfirm = a2;
|
|
object3.onCancel = a3;
|
|
const format = intl.format;
|
|
const property = t['5/Xort'];
|
|
const object4 = {};
|
|
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);
|
|
}
|
|
object4.currentApplicationName = r10;
|
|
const stringUtilsModule = require(1861) /* metro dependency 1861: StringUtils */;
|
|
if (stringUtilsModule.isNullOrEmpty(r8)) {
|
|
intl3 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
r8 = intl3.string(t.OGUjmt);
|
|
}
|
|
object4.currentApplicationChannelName = r8;
|
|
object3.body = Reflect.apply(format, intl, [property, object4]);
|
|
Reflect.apply(show, defaultImport, [object3]);
|
|
return value2;
|
|
}
|
|
|