Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,12 @@
|
||||
/* Metro module 10929; source: modules/saved_messages/ForLaterExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun83740(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11115:6, offset: 0x01f2664d, size: 177 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
value = value.createApexExperiment({'name': '2026-03-message-bookmarks', 'kind': 'user',
|
||||
defaultConfig: {'enabled': false, 'inInbox': true}, variations: {[1]: {'enabled': true, 'inInbox': true},
|
||||
[2]: {'enabled': true, 'inInbox': false}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/ForLaterExperiment.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,262 @@
|
||||
/* Metro module 11173; source: modules/saved_messages/SavedMessageHelpers.native.tsx; dependencies: [5, 11174, 661, 11176, 11177, 7890, 7892, 11178, 4647, 1244, 5080, 11179, 1962, 3857, 7684, 4076, 11190, 2] */
|
||||
function _fun85320(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11359:6, offset: 0x01f6b459, size: 213 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const savedMessagesStore = importDefault(11174) /* metro dependency 11174: SavedMessagesStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).AbortCodes;
|
||||
const env0_6 = (require(11176) /* metro dependency 11176: SavedMessagesConstants */).SAVED_MESSAGES_MAX;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/SavedMessageHelpers.native.tsx');
|
||||
exports.addOrUpdateSavedMessage = function() {
|
||||
return _addOrUpdateSavedMessage.apply(this, arguments);
|
||||
};
|
||||
exports.removeSavedMessage = function() {
|
||||
return _removeSavedMessage.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _addOrUpdateSavedMessage() { // fn#85321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11359:166, offset: 0x01f6b52e, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun85323).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _removeSavedMessage() { // fn#85326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11359:1290, offset: 0x01f6b99d, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun85328).apply(this, arguments);
|
||||
}
|
||||
|
||||
async function _fun85323(a0) { // fn#85323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11359:237, offset: 0x01f6b574, size: 506 bytes, params: 2, frame: 23
|
||||
var r7;
|
||||
var r8;
|
||||
var value8;
|
||||
var dueAt;
|
||||
var binding3;
|
||||
var intl;
|
||||
var binding4;
|
||||
if (true) {
|
||||
var displayToast = a0.displayToast;
|
||||
Object.create(null).displayToast = 0;
|
||||
value = copyDataProperties({}, a0, value, undefined);
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
var binding = env2_4;
|
||||
var getSavedMessage = binding.getSavedMessage;
|
||||
if (Reflect.apply(getSavedMessage, binding, [value.channelId, value.messageId]) != null) {
|
||||
binding = env2_0;
|
||||
await binding(env2_2[7]).upsertSavedMessage(value).catch(_fun85324);
|
||||
value8 = undefined;
|
||||
if (false) {
|
||||
return value8;
|
||||
}
|
||||
if (value8 != null) {
|
||||
if (displayToast) {
|
||||
dueAt = value.dueAt;
|
||||
if (dueAt != null) {
|
||||
binding = env2_0;
|
||||
binding4 = env2_2;
|
||||
intl = binding(binding4[9]).intl;
|
||||
r7 = intl.string(binding(binding4[9]).t.i1IsOy);
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[9]).intl;
|
||||
r7 = intl.string(binding(binding3[9]).t.DQjes4);
|
||||
}
|
||||
dueAt = value.dueAt;
|
||||
r8 = dueAt != null ? env2_0(env2_2[15]).ClockIcon : env2_0(env2_2[16]).BookmarkIcon;
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[13]);
|
||||
value.open({key: 'SAVED_MESSAGE_CREATE_SUCCESS', IconComponent: r8, content: r7});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
binding = env2_1;
|
||||
if (binding(env2_2[4])()) {
|
||||
binding = env2_0;
|
||||
await binding(env2_2[7]).upsertSavedMessage(value).catch(_fun85324);
|
||||
value8 = undefined;
|
||||
if (false) {
|
||||
return value8;
|
||||
}
|
||||
if (value8 != null) {
|
||||
if (displayToast) {
|
||||
dueAt = value.dueAt;
|
||||
if (dueAt != null) {
|
||||
binding = env2_0;
|
||||
binding4 = env2_2;
|
||||
intl = binding(binding4[9]).intl;
|
||||
r7 = intl.string(binding(binding4[9]).t.i1IsOy);
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[9]).intl;
|
||||
r7 = intl.string(binding(binding3[9]).t.DQjes4);
|
||||
}
|
||||
dueAt = value.dueAt;
|
||||
r8 = dueAt != null ? env2_0(env2_2[15]).ClockIcon : env2_0(env2_2[16]).BookmarkIcon;
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[13]);
|
||||
value.open({key: 'SAVED_MESSAGE_CREATE_SUCCESS', IconComponent: r8, content: r7});
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_1;
|
||||
var binding2 = env2_2;
|
||||
value = binding(binding2[5]);
|
||||
binding = env2_0;
|
||||
var EntitlementFeatureNames = binding(binding2[6]).EntitlementFeatureNames;
|
||||
var SAVED_MESSAGES = EntitlementFeatureNames.SAVED_MESSAGES;
|
||||
value(SAVED_MESSAGES);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function _fun85328(a0) { // fn#85328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11359:1351, offset: 0x01f6b9e3, size: 391 bytes, params: 2, frame: 23
|
||||
var r7;
|
||||
var r8;
|
||||
var dueAt;
|
||||
var binding2;
|
||||
var intl;
|
||||
var binding3;
|
||||
if (true) {
|
||||
var displayToast = a0.displayToast;
|
||||
Object.create(null).displayToast = 0;
|
||||
value = copyDataProperties({}, a0, value, undefined);
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
var binding = env2_0;
|
||||
await binding(env2_2[7]).deleteSavedMessage(value).catch(_fun85329);
|
||||
var value8 = undefined;
|
||||
if (false) {
|
||||
return value8;
|
||||
}
|
||||
if (value8 != null) {
|
||||
if (displayToast) {
|
||||
dueAt = value.dueAt;
|
||||
if (dueAt != null) {
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
intl = binding(binding3[9]).intl;
|
||||
r7 = intl.string(binding(binding3[9]).t.D0tS02);
|
||||
} else {
|
||||
binding = env2_0;
|
||||
binding2 = env2_2;
|
||||
intl = binding(binding2[9]).intl;
|
||||
r7 = intl.string(binding(binding2[9]).t['5KOMiV']);
|
||||
}
|
||||
dueAt = value.dueAt;
|
||||
r8 = dueAt != null ? env2_0(env2_2[15]).ClockIcon : env2_0(env2_2[16]).BookmarkIcon;
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[13]);
|
||||
value.open({key: 'SAVED_MESSAGE_REMOVE_SUCCESS', IconComponent: r8, content: r7});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun85324(a0) { // fn#85324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11359:387, offset: 0x01f6b76e, size: 487 bytes, params: 2, frame: 22
|
||||
var message;
|
||||
var r4;
|
||||
var binding;
|
||||
var binding2;
|
||||
var value3;
|
||||
var open;
|
||||
var object2;
|
||||
var binding3;
|
||||
var intl;
|
||||
var string;
|
||||
var t;
|
||||
var binding4;
|
||||
var value4;
|
||||
var show;
|
||||
var formatToPlainString;
|
||||
const value = undefined;
|
||||
const code = a0 == null || a0.body == null ? value : a0.body.code;
|
||||
const TOO_MANY_SAVED_MESSAGES = env3_5.TOO_MANY_SAVED_MESSAGES;
|
||||
if (code === TOO_MANY_SAVED_MESSAGES) {
|
||||
binding = env3_1;
|
||||
binding4 = env3_2;
|
||||
value4 = binding(binding4[8]);
|
||||
show = value4.show;
|
||||
object2 = {};
|
||||
binding = env3_0;
|
||||
intl = binding(binding4[9]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[9]).t;
|
||||
object2.title = Reflect.apply(string, intl, [t.mlbiZW]);
|
||||
intl = binding(binding4[9]).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
t = binding(binding4[9]).t;
|
||||
object2.body = Reflect.apply(formatToPlainString, intl, [t['1zVbEG'], {max: env3_6}]);
|
||||
intl = binding(binding4[9]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[9]).t;
|
||||
object2.confirmText = Reflect.apply(string, intl, [t.BddRzS]);
|
||||
intl = binding(binding4[9]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding4[9]).t;
|
||||
object2.cancelText = Reflect.apply(string, intl, [t.ZGbTcy]);
|
||||
object2.onCancel = onCancel_85325;
|
||||
Reflect.apply(show, value4, [object2]);
|
||||
} else {
|
||||
binding = env3_1;
|
||||
binding2 = env3_2;
|
||||
value3 = binding(binding2[13]);
|
||||
open = value3.open;
|
||||
object2 = {key: 'SAVED_MESSAGE_CREATE_ERROR'};
|
||||
binding = env3_0;
|
||||
object2.IconComponent = binding(binding2[14]).CircleErrorIcon;
|
||||
message = a0 == null || a0.body == null ? value : a0.body.message;
|
||||
if (message != null) {
|
||||
r4 = message;
|
||||
} else {
|
||||
binding = env3_0;
|
||||
binding3 = env3_2;
|
||||
intl = binding(binding3[9]).intl;
|
||||
r4 = intl.string(binding(binding3[9]).t.R0RpRX);
|
||||
}
|
||||
object2.content = r4;
|
||||
Reflect.apply(open, value3, [object2]);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function _fun85329(a0) { // fn#85329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11359:1437, offset: 0x01f6bb6a, size: 172 bytes, params: 2, frame: 19
|
||||
var r4;
|
||||
var binding3;
|
||||
var intl;
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
let binding = env3_1;
|
||||
const binding2 = env3_2;
|
||||
const value2 = undefined;
|
||||
const value3 = binding(binding2[13]);
|
||||
const open = value3.open;
|
||||
const object2 = {key: 'SAVED_MESSAGE_REMOVE_ERROR'};
|
||||
const CircleErrorIcon = env3_0(binding2[14]).CircleErrorIcon;
|
||||
object2.IconComponent = CircleErrorIcon;
|
||||
const message = a0 == null || a0.body == null ? value2 : a0.body.message;
|
||||
if (message != null) {
|
||||
r4 = message;
|
||||
} else {
|
||||
binding = env3_0;
|
||||
binding3 = env3_2;
|
||||
intl = binding(binding3[9]).intl;
|
||||
r4 = intl.string(binding(binding3[9]).t.R0RpRX);
|
||||
}
|
||||
object2.content = r4;
|
||||
Reflect.apply(open, value3, [object2]);
|
||||
return null;
|
||||
}
|
||||
|
||||
function onCancel_85325() { // fn#85325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11359:711, offset: 0x01f6b955, size: 72 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
const binding = env4_1;
|
||||
const binding2 = env4_2;
|
||||
const value2 = binding(binding2[10]);
|
||||
return value2.pushLazy(env4_0(binding2[12])(binding2[11], binding2.paths));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,326 @@
|
||||
/* Metro module 11184; source: modules/saved_messages/SavedMessageUtils.tsx; dependencies: [5, 31, 1383, 1379, 661, 1244, 3738, 566, 4603, 6837, 2] */
|
||||
function _fun85438(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11370:6, offset: 0x01f6e9ea, size: 284 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(1383) /* metro dependency 1383: ChannelRecord */).UnknownChannelRecord;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_7 = constantsModule.ChannelTypes;
|
||||
const env0_8 = constantsModule.Routes;
|
||||
object2 = {LONG: 0};
|
||||
object2[0] = 'LONG';
|
||||
object2.SHORT = 1;
|
||||
object2[1] = 'SHORT';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/SavedMessageUtils.tsx');
|
||||
exports.DueInStringTypes = object2;
|
||||
exports.useDueInString = useDueInString;
|
||||
exports.useSavedMessageChannel = useSavedMessageChannel;
|
||||
exports.savedMessageJumpToMessage = function() {
|
||||
return _savedMessageJumpToMessage.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _savedMessageJumpToMessage() { // fn#85439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11370:265, offset: 0x01f6eb06, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun85441).apply(this, arguments);
|
||||
}
|
||||
|
||||
function useDueInString({dueAt, now, type}) { // fn#85443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11370:868, offset: 0x01f6ec9b, size: 352 bytes, params: 2, frame: 21
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
if (dueAt == null) {
|
||||
return {'string': '', 'isOverdue': false};
|
||||
}
|
||||
let LONG = env0_9.LONG;
|
||||
let r5 = type === LONG ? t.TjNWNF : t.H4gnX9;
|
||||
LONG = env0_9.LONG;
|
||||
const r0 = type === LONG ? t.haia16 : t['Uq7Y+7'];
|
||||
const value2 = now > dueAt;
|
||||
r5 = value2 ? r0 : r5;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const object = {};
|
||||
let value = importDefault(3738) /* metro dependency 3738 */;
|
||||
const duration = value.duration;
|
||||
let getTime = dueAt.getTime;
|
||||
const value3 = Reflect.apply(getTime, dueAt, []);
|
||||
getTime = now.getTime;
|
||||
value = Reflect.apply(duration, value, [value3 - Reflect.apply(getTime, now, []), 'millisecond']);
|
||||
object.duration = value.humanize();
|
||||
return {dueInText: Reflect.apply(formatToPlainString, intl, [r5, object]), isOverdue: value2};
|
||||
}
|
||||
|
||||
function useSavedMessageChannel(a0) { // fn#85444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11370:1244, offset: 0x01f6edfb, size: 104 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
return env0_4.useMemo(_fun85446, [(require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore],
|
||||
_fun85445), a0]);
|
||||
}
|
||||
|
||||
function* _fun85441(a0, a1) { // fn#85441, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11370:340, offset: 0x01f6eb43, size: 344 bytes, params: 3, frame: 22
|
||||
var environment;
|
||||
var type;
|
||||
var r5;
|
||||
var value3;
|
||||
var UNKNOWN;
|
||||
var saveData;
|
||||
var guildId;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var fetchChannel;
|
||||
var channelId;
|
||||
var channel;
|
||||
var value5;
|
||||
var value6;
|
||||
var recipients;
|
||||
var value7;
|
||||
var length;
|
||||
var value8;
|
||||
var binding3;
|
||||
var value9;
|
||||
var ensurePrivateChannel;
|
||||
var map;
|
||||
var closure;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var error;
|
||||
var value14;
|
||||
var CHANNEL;
|
||||
var messageId;
|
||||
var value16;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = undefined;
|
||||
reducibleJoin3: while (true) {
|
||||
if (a1 == null) {
|
||||
type = value;
|
||||
break reducibleJoin3;
|
||||
}
|
||||
type = a1.type;
|
||||
break reducibleJoin3;
|
||||
}
|
||||
reducibleJoin46: while (true) {
|
||||
reduciblePort45: while (true) {
|
||||
exceptionLanding44: while (true) {
|
||||
value3 = environment.__proto__.__proto__;
|
||||
UNKNOWN = env2_7.UNKNOWN;
|
||||
if (type !== UNKNOWN) {
|
||||
break reduciblePort45;
|
||||
}
|
||||
saveData = a0.saveData;
|
||||
guildId = saveData.guildId;
|
||||
if (guildId != null) {
|
||||
break reduciblePort45;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
property = binding2[8];
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
fetchChannel = value4.fetchChannel;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
saveData = a0.saveData;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
channelId = saveData.channelId;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
channel = Reflect.apply(fetchChannel, value4, [channelId]);
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
yield channel;
|
||||
try {
|
||||
value5 = undefined;
|
||||
value6 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
if (value6) {
|
||||
return value5;
|
||||
}
|
||||
try {
|
||||
recipients = value5.recipients;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
value7 = recipients == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
if (value7) {
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
recipients = value5.recipients;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
length = recipients.length;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
value8 = length > 1;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
if (value8) {
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
property = binding3[8];
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
value9 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
ensurePrivateChannel = value9.ensurePrivateChannel;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
recipients = value5.recipients;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
map = recipients.map;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
closure = function(a0) {
|
||||
return a0.id;
|
||||
};
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
value10 = Reflect.apply(map, recipients, [closure]);
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
try {
|
||||
value11 = Reflect.apply(ensurePrivateChannel, value9, [value10]);
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
yield value11;
|
||||
try {
|
||||
value12 = undefined;
|
||||
value13 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding44;
|
||||
}
|
||||
if (value13) {
|
||||
return value12;
|
||||
}
|
||||
break reduciblePort45;
|
||||
}
|
||||
break reduciblePort45;
|
||||
}
|
||||
binding = env2_1;
|
||||
value14 = binding(env2_2[9]);
|
||||
binding = env2_8;
|
||||
CHANNEL = binding.CHANNEL;
|
||||
reducibleJoin47: while (true) {
|
||||
if (a1 == null) {
|
||||
r5 = value;
|
||||
break reducibleJoin47;
|
||||
}
|
||||
break reducibleJoin46;
|
||||
}
|
||||
saveData = a0.saveData;
|
||||
channelId = saveData.channelId;
|
||||
saveData = a0.saveData;
|
||||
messageId = saveData.messageId;
|
||||
value16 = Reflect.apply(CHANNEL, binding, [r5, channelId, messageId]);
|
||||
value14(value16, {openChannel: true});
|
||||
return value;
|
||||
}
|
||||
value14(Reflect.apply(CHANNEL, binding, [a1.getGuildId(), a0.saveData.channelId, a0.saveData.messageId]),
|
||||
{openChannel: true});
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun85445() { // fn#85445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11370:1317, offset: 0x01f6ee63, size: 37 bytes, params: 1, frame: 11
|
||||
return ChannelStore.getChannel(env0_0.saveData.channelId);
|
||||
}
|
||||
|
||||
function _fun85446() { // fn#85446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11370:1376, offset: 0x01f6ee88, size: 186 bytes, params: 1, frame: 18
|
||||
var r0;
|
||||
var value3;
|
||||
var object2;
|
||||
var binding;
|
||||
var saveData;
|
||||
var intl;
|
||||
if (channel != null) {
|
||||
r0 = channel;
|
||||
} else if (env0_0.message != null) {
|
||||
value3 = environment.__proto__;
|
||||
object2 = {};
|
||||
binding = env0_0;
|
||||
saveData = binding.saveData;
|
||||
object2.id = saveData.channelId;
|
||||
saveData = binding.saveData;
|
||||
object2.guild_id = saveData.guildId;
|
||||
object2.type = ChannelTypes.UNKNOWN;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.name = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.J90oLW);
|
||||
r0 = new UnknownChannelRecord();
|
||||
} else {
|
||||
r0 = undefined;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
/* Metro module 11178; source: modules/saved_messages/SavedMessagesActions.tsx; dependencies: [5, 11174, 661, 507, 11175, 4625, 694, 2] */
|
||||
function _fun85382(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11364:6, offset: 0x01f6ce19, size: 215 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const savedMessagesStore = importDefault(11174) /* metro dependency 11174: SavedMessagesStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/SavedMessagesActions.tsx');
|
||||
exports.upsertSavedMessage = function() {
|
||||
return _upsertSavedMessage.apply(this, arguments);
|
||||
};
|
||||
exports.deleteSavedMessage = function() {
|
||||
return _deleteSavedMessage.apply(this, arguments);
|
||||
};
|
||||
exports.fetchAndUpdateSavedMessages = function() {
|
||||
return _fetchAndUpdateSavedMessages.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _upsertSavedMessage() { // fn#85383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11364:136, offset: 0x01f6cef0, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun85385).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _deleteSavedMessage() { // fn#85386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11364:422, offset: 0x01f6cfdd, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun85388).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fetchAndUpdateSavedMessages() { // fn#85389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11364:636, offset: 0x01f6d094, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun85391).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun85385({channelId, messageId, dueAt}) { // fn#85385, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11364:197, offset: 0x01f6cf2d, size: 176 bytes, params: 2, frame: 20
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var HTTP = env2_0(env2_2[3]).HTTP;
|
||||
var put = HTTP.put;
|
||||
var object2 = {};
|
||||
object2.url = env2_5.PUT_SAVED_MESSAGE(channelId, messageId);
|
||||
object2.body = {due_at: dueAt};
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(put, HTTP, [object2]);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
if (undefined.ok) {
|
||||
value = env2_0(env2_2[4]);
|
||||
return value.savedMessageCreateObjectToClient(undefined.body);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun85388({channelId, messageId}) { // fn#85388, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11364:483, offset: 0x01f6d01a, size: 122 bytes, params: 2, frame: 18
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var HTTP = env2_0(env2_2[3]).HTTP;
|
||||
var del = HTTP.del;
|
||||
var object2 = {};
|
||||
object2.url = env2_5.DELETE_SAVED_MESSAGE(channelId, messageId);
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(del, HTTP, [object2]);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (value.ok) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun85391() { // fn#85391, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11364:715, offset: 0x01f6d0d1, size: 203 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
var HTTP;
|
||||
var value3;
|
||||
var value5;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
let binding = env2_4;
|
||||
const getIsStale = binding.getIsStale;
|
||||
if (Reflect.apply(getIsStale, binding, [])) {
|
||||
binding = env2_0;
|
||||
HTTP = binding(env2_2[3]).HTTP;
|
||||
yield HTTP.get({url: env2_5.GET_SAVED_MESSAGES, rejectWithError: false});
|
||||
value3 = undefined;
|
||||
if (false) {
|
||||
return value3;
|
||||
}
|
||||
value5 = value3.body.results.map(_fun85392);
|
||||
binding = env2_1;
|
||||
binding(env2_2[6]).dispatch({type: 'SAVED_MESSAGES_UPDATE', savedMessages: value5});
|
||||
return undefined;
|
||||
}
|
||||
const Promise = global.Promise;
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
function _fun85392(a0) { // fn#85392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11364:867, offset: 0x01f6d19c, size: 113 bytes, params: 2, frame: 14
|
||||
var r2;
|
||||
const object2 = {};
|
||||
const message = a0.message;
|
||||
let value = null;
|
||||
if (value != message) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
value = env3_0(env3_2[5]);
|
||||
value = value.createMessageRecord(a0.message);
|
||||
r2 = value;
|
||||
} else {
|
||||
r2 = value;
|
||||
}
|
||||
object2.message = r2;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
value = env3_0(env3_2[4]);
|
||||
object2.saveData = value.savedMessageDataToClient(a0.save_data);
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Metro module 15820; source: modules/saved_messages/SavedMessagesManager.tsx; dependencies: [7, 6, 15, 17, 18, 10929, 11178, 4860, 2] */
|
||||
function _fun121582(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16028:6, offset: 0x0254b644, size: 230 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun121586(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/SavedMessagesManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_121583() { // fn#121583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16028:148, offset: 0x0254b72a, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_121583_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun121586(a0) { // fn#121586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16028:351, offset: 0x0254b78c, size: 42 bytes, params: 2, frame: 14
|
||||
const closure = SavedMessagesManager;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function SavedMessagesManager(a0) { // fn#121587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16028:363, offset: 0x0254b7b6, size: 165 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_4;
|
||||
binding(this, SavedMessagesManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_6(SavedMessagesManager);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_121583()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.actions = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_121588};
|
||||
value.handlePostConnectionOpen = handlePostConnectionOpen_121589;
|
||||
return value;
|
||||
}
|
||||
|
||||
function SavedMessagesManagerHandlePostConnectionOpen() { // fn#121589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16028:702, owner: SavedMessagesManager.handlePostConnectionOpen, offset: 0x0254b85b, size: 88 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__;
|
||||
const defaultImport = importDefault(10929) /* metro dependency 10929: ForLaterExperiment */;
|
||||
const getConfig = defaultImport.getConfig;
|
||||
if (Reflect.apply(getConfig, defaultImport, [{location: 'saved_messages_manager'}]).enabled) {
|
||||
(require(11178) /* metro dependency 11178: SavedMessagesActions */).fetchAndUpdateSavedMessages();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,538 @@
|
||||
/* Metro module 11174; source: modules/saved_messages/SavedMessagesStore.tsx; dependencies: [6, 7, 15, 17, 18, 1878, 3780, 11175, 4625, 566, 694, 2] */
|
||||
function _fun85332(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:6, offset: 0x01f6bc16, size: 732 bytes, params: 8, frame: 25
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_85338 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const closure = getComparator_85340;
|
||||
const getSavedMessageKey = function({channelId, messageId}) {
|
||||
return '' + channelId + '-' + messageId;
|
||||
};
|
||||
const closure2 = GUILD_CREATE_85345;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const SecondaryIndexMap = (require(3780) /* metro dependency 3780: SecondaryIndexMap */).SecondaryIndexMap;
|
||||
const secondaryIndexMap = new SecondaryIndexMap(_fun85346, function({saveData}) {
|
||||
return getComparator_85340(saveData);
|
||||
});
|
||||
let Set = global.Set;
|
||||
let set = new Set();
|
||||
Set = global.Set;
|
||||
set = new Set();
|
||||
const Map = global.Map;
|
||||
let map = new Map();
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun85348(Store).displayName = 'SavedMessagesStore';
|
||||
map = new map(importDefault(694) /* metro dependency 694: Dispatcher */, {POST_CONNECTION_OPEN: function() {
|
||||
env0_10 = true;
|
||||
}, LOGOUT: LOGOUT_85363, SAVED_MESSAGES_UPDATE: SAVED_MESSAGES_UPDATE,
|
||||
SAVED_MESSAGE_CREATE: function({savedMessage}) {
|
||||
upsertSavedMessage(savedMessage);
|
||||
}, SAVED_MESSAGE_DELETE: SAVED_MESSAGE_DELETE, MESSAGE_DELETE: function({id, channelId}) {
|
||||
return nullifyMessageObject({messageId: id, channelId: channelId});
|
||||
}, MESSAGE_DELETE_BULK: function({ids, channelId}) {
|
||||
var r2;
|
||||
var value4;
|
||||
var value2 = _createForOfIteratorHelperLoose_85336(ids);
|
||||
var value3 = value2();
|
||||
if (!value3.done) {
|
||||
for (r2 = value3; true; r2 = value4) {
|
||||
nullifyMessageObject({messageId: r2.value, channelId: channelId});
|
||||
value4 = value2();
|
||||
if (value4.done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}, MESSAGE_UPDATE: MESSAGE_UPDATE_85369, GUILD_CREATE: closure2, GUILD_UPDATE: closure2, GUILD_DELETE: closure2,
|
||||
CHANNEL_CREATE: CHANNEL_CREATE_85370, CHANNEL_UPDATES: CHANNEL_UPDATES_85371,
|
||||
CHANNEL_DELETE: CHANNEL_DELETE_85372, GUILD_MEMBER_UPDATE: GUILD_MEMBER_UPDATE_85373,
|
||||
GUILD_ROLE_CREATE: closure2, GUILD_ROLE_UPDATE: closure2, GUILD_ROLE_DELETE: closure2,
|
||||
MESSAGE_REMINDER_DUE: MESSAGE_REMINDER_DUE_85374});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/SavedMessagesStore.tsx');
|
||||
exports.default = map;
|
||||
exports.getComparator = closure;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_85333() { // fn#85333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:160, offset: 0x01f6bef2, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_85333_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_85336(a0, a1) { // fn#85336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:353, offset: 0x01f6bf54, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun85337;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_85338(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_85338(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_85338(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun85337;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function getTimeSafe(a0) { // fn#85339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:1274, offset: 0x01f6c0c8, size: 128 bytes, params: 2, frame: 14
|
||||
var Date;
|
||||
var prototype;
|
||||
var value;
|
||||
var date;
|
||||
var error;
|
||||
var Error;
|
||||
var value2;
|
||||
if (a0 == null) {
|
||||
value = environment;
|
||||
return env0_8;
|
||||
}
|
||||
try {
|
||||
Date = global.Date;
|
||||
prototype = Date.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: Date}});
|
||||
date = new Date(a0);
|
||||
value = date instanceof Object ? date : value;
|
||||
value = value.getTime();
|
||||
} catch (error) {
|
||||
Error = global.Error;
|
||||
value = 'Invalid date given (' + a0 + ')';
|
||||
prototype = Error.prototype;
|
||||
value2 = Object.create(prototype, {constructor: {value: Error}});
|
||||
error = new Error();
|
||||
value = error instanceof Object ? error : value2;
|
||||
throw value;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function getComparator_85340(a0) { // fn#85340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:1406, offset: 0x01f6c148, size: 67 bytes, params: 2, frame: 13
|
||||
return a0.dueAt != null ? getTimeSafe(a0.dueAt) : env0_8 - getTimeSafe(a0.savedAt);
|
||||
}
|
||||
|
||||
function isChannelRelevant(a0) { // fn#85341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:1761, offset: 0x01f6c18b, size: 42 bytes, params: 2, frame: 11
|
||||
const value = env0_14.get(a0);
|
||||
return value != null && value.size > 0;
|
||||
}
|
||||
|
||||
function upsertSavedMessage(a0) { // fn#85343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:1904, offset: 0x01f6c1e0, size: 287 bytes, params: 2, frame: 18
|
||||
var r7;
|
||||
var Date;
|
||||
var value7;
|
||||
var date;
|
||||
const savedMessageKey = getSavedMessageKey(a0.saveData);
|
||||
if (env0_9.get(savedMessageKey) == null) {
|
||||
env0_11 = global.Date.now();
|
||||
}
|
||||
env0_9.set(savedMessageKey, a0);
|
||||
const messageId = a0.saveData.messageId;
|
||||
const channelId = a0.saveData.channelId;
|
||||
const value4 = env0_14.get(channelId);
|
||||
if (value4 != null) {
|
||||
r7 = value4;
|
||||
} else {
|
||||
set = new global.Set();
|
||||
}
|
||||
r7.add(messageId);
|
||||
env0_14.set(channelId, r7);
|
||||
if (a0.message == null) {
|
||||
env0_13.add(messageId);
|
||||
}
|
||||
if (a0.saveData.dueAt == null) {
|
||||
env0_12.delete(messageId);
|
||||
} else {
|
||||
Date = global.Date;
|
||||
value7 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
date = new Date();
|
||||
if ((date instanceof Object ? date : value7) > a0.saveData.dueAt) {
|
||||
env0_12.add(messageId);
|
||||
} else {
|
||||
env0_12.delete(messageId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function nullifyMessageObject({messageId, channelId}) { // fn#85344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:2214, offset: 0x01f6c2ff, size: 110 bytes, params: 2, frame: 15
|
||||
var object2;
|
||||
const savedMessageKey = getSavedMessageKey({messageId: messageId, channelId: channelId});
|
||||
const value4 = env0_9.get(savedMessageKey);
|
||||
const value5 = value4 == null;
|
||||
if ((value5 ? undefined : value4.message) == null) {
|
||||
return false;
|
||||
}
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value4, value5);
|
||||
object2.message = null;
|
||||
env0_9.set(savedMessageKey, object2);
|
||||
return true;
|
||||
}
|
||||
|
||||
function GUILD_CREATE_85345() { // fn#85345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:2428, offset: 0x01f6c36d, size: 44 bytes, params: 1, frame: 4
|
||||
return env0_13.size !== 0 && (!env0_10 && undefined);
|
||||
}
|
||||
|
||||
function _fun85346({saveData}) { // fn#85346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:1538, offset: 0x01f6c399, size: 132 bytes, params: 2, frame: 14
|
||||
const SavedMessageSortTypes = (require(11175) /* metro dependency 11175: SavedMessagesTypes */).SavedMessageSortTypes;
|
||||
const ALL = SavedMessageSortTypes.ALL;
|
||||
return [ALL, saveData.dueAt != null ? SavedMessageSortTypes.REMINDER : SavedMessageSortTypes.BOOKMARK];
|
||||
}
|
||||
|
||||
function _fun85348(a0) { // fn#85348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:2493, offset: 0x01f6c436, size: 359 bytes, params: 2, frame: 16
|
||||
const closure = SavedMessagesStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(UserStore);
|
||||
}}, {key: 'getSavedMessages', value: value_85351}, {key: 'getSavedMessage', value: value_85352},
|
||||
{key: 'getMessageBookmarks', value: value_85353}, {key: 'getMessageReminders', value: value_85354},
|
||||
{key: 'getOverdueMessageReminderCount', value: value_85355}, {key: 'hasOverdueReminder', value: value_85356},
|
||||
{key: 'getSavedMessageCount', value: value_85357}, {key: 'getIsStale', value: value_85358},
|
||||
{key: 'getLastChanged', value: value_85359}, {key: 'isMessageBookmarked', value: value_85360},
|
||||
{key: 'isMessageReminder', value: value_85361}]);
|
||||
}
|
||||
|
||||
function LOGOUT_85363() { // fn#85363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:3976, offset: 0x01f6c72c, size: 55 bytes, params: 1, frame: 10
|
||||
env0_9.clear();
|
||||
env0_14.clear();
|
||||
env0_13.clear();
|
||||
}
|
||||
|
||||
function SAVED_MESSAGES_UPDATE({savedMessages}) { // fn#85364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:4058, offset: 0x01f6c763, size: 114 bytes, params: 2, frame: 14
|
||||
var r2;
|
||||
var upsertSavedMessageBinding;
|
||||
var value4;
|
||||
var value5;
|
||||
env0_9.clear();
|
||||
env0_14.clear();
|
||||
env0_13.clear();
|
||||
const value2 = _createForOfIteratorHelperLoose_85336(savedMessages);
|
||||
const value3 = value2();
|
||||
let done = value3.done;
|
||||
if (!done) {
|
||||
for (r2 = value3; true; r2 = value5) {
|
||||
upsertSavedMessageBinding = upsertSavedMessage;
|
||||
value4 = r2.value;
|
||||
upsertSavedMessageBinding(value4);
|
||||
value5 = value2();
|
||||
done = value5.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function SAVED_MESSAGE_DELETE({savedMessageData}) { // fn#85366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:4332, offset: 0x01f6c7ee, size: 159 bytes, params: 2, frame: 17
|
||||
var r0;
|
||||
var messageId;
|
||||
var value6;
|
||||
const savedMessageKey = getSavedMessageKey(savedMessageData);
|
||||
let binding = env0_9;
|
||||
const value4 = binding.get(savedMessageKey);
|
||||
if (value4 == null) {
|
||||
r0 = false;
|
||||
} else {
|
||||
binding = env0_9;
|
||||
binding.delete(savedMessageKey);
|
||||
messageId = savedMessageData.messageId;
|
||||
binding = env0_14;
|
||||
value6 = binding.get(value4.saveData.channelId);
|
||||
if (value6 != null) {
|
||||
value6.delete(messageId);
|
||||
}
|
||||
binding = env0_13;
|
||||
binding.delete(messageId);
|
||||
binding = env0_12;
|
||||
binding.delete(messageId);
|
||||
env0_11 = global.Date.now();
|
||||
r0 = undefined;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function MESSAGE_UPDATE_85369({message}) { // fn#85369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:4926, offset: 0x01f6c905, size: 180 bytes, params: 2, frame: 18
|
||||
var object2;
|
||||
if (message.id == null) {
|
||||
return false;
|
||||
}
|
||||
if (message.channel_id == null) {
|
||||
return false;
|
||||
}
|
||||
const savedMessageKey = getSavedMessageKey({messageId: message.id, channelId: message.channel_id});
|
||||
const value4 = env0_9.get(savedMessageKey);
|
||||
var message = value4?.message;
|
||||
if (message == null) {
|
||||
return false;
|
||||
}
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value4, undefined);
|
||||
const messageRecordUtilsModule = require(4625) /* metro dependency 4625: MessageRecordUtils */;
|
||||
const updateMessageRecord = messageRecordUtilsModule.updateMessageRecord;
|
||||
message = value4.message;
|
||||
object2.message = Reflect.apply(updateMessageRecord, messageRecordUtilsModule, [message, message]);
|
||||
env0_9.set(savedMessageKey, object2);
|
||||
}
|
||||
|
||||
function CHANNEL_CREATE_85370({channel}) { // fn#85370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:5300, offset: 0x01f6c9b9, size: 80 bytes, params: 2, frame: 14
|
||||
var r1;
|
||||
var r0;
|
||||
var binding;
|
||||
var isChannelRelevantBinding;
|
||||
var id;
|
||||
var value4;
|
||||
var isChannelRelevant2;
|
||||
const value2 = env0_13.size !== 0;
|
||||
if (value2) {
|
||||
binding = env0_10;
|
||||
if (binding) {
|
||||
r1 = !binding;
|
||||
} else {
|
||||
isChannelRelevantBinding = isChannelRelevant;
|
||||
id = channel.id;
|
||||
value4 = undefined;
|
||||
isChannelRelevant2 = isChannelRelevantBinding(id);
|
||||
r1 = isChannelRelevant2 ? value4 : !!isChannelRelevant2;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function CHANNEL_UPDATES_85371({channels}) { // fn#85371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:5424, offset: 0x01f6ca09, size: 122 bytes, params: 2, frame: 18
|
||||
var r2;
|
||||
var r3;
|
||||
var r0;
|
||||
var isChannelRelevantBinding;
|
||||
var value6;
|
||||
var id;
|
||||
var value7;
|
||||
if (env0_13.size === 0) {
|
||||
return false;
|
||||
}
|
||||
if (env0_10) {
|
||||
return false;
|
||||
}
|
||||
const value2 = _createForOfIteratorHelperLoose_85336(channels);
|
||||
const value3 = value2();
|
||||
let done = value3.done;
|
||||
if (done) {
|
||||
r0 = false;
|
||||
} else {
|
||||
r2 = false;
|
||||
r3 = value3;
|
||||
while (true) {
|
||||
isChannelRelevantBinding = isChannelRelevant;
|
||||
value6 = r3.value;
|
||||
id = value6.id;
|
||||
r2 = isChannelRelevantBinding(id) || r2;
|
||||
value7 = value2();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
r0 = r2;
|
||||
break;
|
||||
}
|
||||
r3 = value7;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function GUILD_MEMBER_UPDATE_85373({user}) { // fn#85373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:5769, offset: 0x01f6ca83, size: 96 bytes, params: 2, frame: 15
|
||||
var r1;
|
||||
var r0;
|
||||
var binding;
|
||||
var id2;
|
||||
var currentUser;
|
||||
var value5;
|
||||
const value2 = env0_13.size !== 0;
|
||||
if (value2) {
|
||||
binding = env0_10;
|
||||
if (binding) {
|
||||
r1 = !binding;
|
||||
} else {
|
||||
id2 = user.id;
|
||||
currentUser = UserStore.getCurrentUser();
|
||||
value5 = undefined;
|
||||
r1 = id2 === (currentUser == null ? value5 : currentUser.id) && value5;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function MESSAGE_REMINDER_DUE_85374({savedMessage}) { // fn#85374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:6019, offset: 0x01f6cae3, size: 41 bytes, params: 2, frame: 11
|
||||
const binding = env0_12;
|
||||
binding.add(savedMessage.saveData.messageId);
|
||||
}
|
||||
|
||||
function value_85351() { // fn#85351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:2872, offset: 0x01f6c59d, size: 53 bytes, params: 1, frame: 13
|
||||
const binding = env1_9;
|
||||
const values = binding.values;
|
||||
const SavedMessageSortTypes = (require(11175) /* metro dependency 11175: SavedMessagesTypes */).SavedMessageSortTypes;
|
||||
const ALL = SavedMessageSortTypes.ALL;
|
||||
return Reflect.apply(values, binding, [ALL]);
|
||||
}
|
||||
|
||||
function value_85352(a0, a1) { // fn#85352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:2966, offset: 0x01f6c5d2, size: 46 bytes, params: 3, frame: 13
|
||||
return env1_9.get(getSavedMessageKey({channelId: a0, messageId: a1}));
|
||||
}
|
||||
|
||||
function value_85353() { // fn#85353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:3075, offset: 0x01f6c600, size: 53 bytes, params: 1, frame: 13
|
||||
const binding = env1_9;
|
||||
const values = binding.values;
|
||||
const SavedMessageSortTypes = (require(11175) /* metro dependency 11175: SavedMessagesTypes */).SavedMessageSortTypes;
|
||||
const BOOKMARK = SavedMessageSortTypes.BOOKMARK;
|
||||
return Reflect.apply(values, binding, [BOOKMARK]);
|
||||
}
|
||||
|
||||
function value_85354() { // fn#85354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:3178, offset: 0x01f6c635, size: 53 bytes, params: 1, frame: 13
|
||||
const binding = env1_9;
|
||||
const values = binding.values;
|
||||
const SavedMessageSortTypes = (require(11175) /* metro dependency 11175: SavedMessagesTypes */).SavedMessageSortTypes;
|
||||
const REMINDER = SavedMessageSortTypes.REMINDER;
|
||||
return Reflect.apply(values, binding, [REMINDER]);
|
||||
}
|
||||
|
||||
function value_85355() { // fn#85355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:3292, offset: 0x01f6c66a, size: 14 bytes, params: 1, frame: 1
|
||||
return env1_12.size;
|
||||
}
|
||||
|
||||
function value_85356() { // fn#85356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:3351, offset: 0x01f6c678, size: 20 bytes, params: 1, frame: 2
|
||||
return env1_12.size > 0;
|
||||
}
|
||||
|
||||
function value_85357() { // fn#85357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:3414, offset: 0x01f6c68c, size: 18 bytes, params: 1, frame: 9
|
||||
return env1_9.size();
|
||||
}
|
||||
|
||||
function value_85360(a0, a1) { // fn#85360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:3572, offset: 0x01f6c69e, size: 71 bytes, params: 3, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = env1_9.get(getSavedMessageKey({channelId: a0, messageId: a1}));
|
||||
return value != null && value.saveData.dueAt == null;
|
||||
}
|
||||
|
||||
function value_85361(a0, a1) { // fn#85361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11360:3717, offset: 0x01f6c6e5, size: 71 bytes, params: 3, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = env1_9.get(getSavedMessageKey({channelId: a0, messageId: a1}));
|
||||
return value != null && value.saveData.dueAt != null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/* Metro module 11175; source: modules/saved_messages/SavedMessagesTypes.tsx; dependencies: [4625, 2] */
|
||||
function _fun85375(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11361:6, offset: 0x01f6cb0c, size: 164 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const closure = savedMessageDataToClient;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/SavedMessagesTypes.tsx');
|
||||
exports.SavedMessageSortTypes = {ALL: 'ALL', REMINDER: 'REMINDER', BOOKMARK: 'BOOKMARK'};
|
||||
exports.savedMessageDataToClient = closure;
|
||||
exports.savedMessageCreateObjectToClient = savedMessageCreateObjectToClient;
|
||||
exports.savedMessageDeleteObjectToClient = function(a0) {
|
||||
return {channelId: a0.channel_id, messageId: a0.message_id};
|
||||
};
|
||||
}
|
||||
|
||||
function savedMessageDataToClient(a0) { // fn#85376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11361:180, offset: 0x01f6cbb0, size: 222 bytes, params: 2, frame: 15
|
||||
const object2 = {};
|
||||
object2.channelId = a0.channel_id;
|
||||
object2.messageId = a0.message_id;
|
||||
const Date = global.Date;
|
||||
let date = new Date(a0.saved_at);
|
||||
object2.savedAt = date;
|
||||
object2.authorSummary = a0.author_summary;
|
||||
object2.channelSummary = a0.channel_summary;
|
||||
object2.messageSummary = a0.message_summary;
|
||||
let guild_id = a0.guild_id;
|
||||
date = undefined;
|
||||
guild_id = guild_id === 0 ? date : a0.guild_id;
|
||||
object2.guildId = guild_id;
|
||||
let author_id = a0.author_id;
|
||||
author_id = author_id === 0 ? date : a0.author_id;
|
||||
object2.authorId = author_id;
|
||||
object2.notes = a0.notes;
|
||||
object2.dueAt = a0.due_at != null ? new global.Date(a0.due_at) : date;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function savedMessageCreateObjectToClient(a0) { // fn#85377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11361:735, offset: 0x01f6cc8e, size: 90 bytes, params: 2, frame: 14
|
||||
var r2;
|
||||
const object2 = {};
|
||||
const message = a0.message;
|
||||
let value = null;
|
||||
if (value != message) {
|
||||
value = require(4625) /* metro dependency 4625: MessageRecordUtils */;
|
||||
value = value.createMessageRecord(a0.message);
|
||||
r2 = value;
|
||||
} else {
|
||||
r2 = value;
|
||||
}
|
||||
object2.message = r2;
|
||||
object2.saveData = savedMessageDataToClient(a0.save_data);
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Metro module 11177; source: modules/saved_messages/hasForLaterPremiumType.tsx; dependencies: [1878, 1880, 1900, 2] */
|
||||
function _fun85380(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11363:6, offset: 0x01f6cd53, size: 136 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_3 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/hasForLaterPremiumType.tsx');
|
||||
exports.default = function() {
|
||||
return require(dependencyMap[2]).isPremium(UserStore.getCurrentUser(), PremiumTypes.TIER_2);
|
||||
};
|
||||
}
|
||||
|
||||
+139
@@ -0,0 +1,139 @@
|
||||
/* Metro module 15821; source: modules/saved_messages/message_reminders/MessageRemindersNotificationManager.tsx; dependencies: [7, 6, 15, 17, 18, 11174, 10929, 694, 672, 4860, 2] */
|
||||
function _fun121590(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16029:6, offset: 0x0254b8b3, size: 259 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const savedMessagesStore = importDefault(11174) /* metro dependency 11174: SavedMessagesStore */;
|
||||
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun121597(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/message_reminders/MessageRemindersNotificationManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_121591() { // fn#121591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16029:158, offset: 0x0254b9b6, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_121591_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function scheduleNextNotification() { // fn#121594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16029:362, offset: 0x0254ba18, size: 314 bytes, params: 1, frame: 18
|
||||
var dueAt;
|
||||
var value4;
|
||||
var Date;
|
||||
var value6;
|
||||
var time;
|
||||
let value2 = undefined;
|
||||
const defaultImport = importDefault(10929) /* metro dependency 10929: ForLaterExperiment */;
|
||||
const getConfig = defaultImport.getConfig;
|
||||
if (Reflect.apply(getConfig, defaultImport, [{location: 'MessageRemindersNotificationManager'}]).enabled) {
|
||||
if (env0_8 != null) {
|
||||
global.clearTimeout(env0_8);
|
||||
}
|
||||
value4 = SavedMessagesStore.getMessageReminders().find(function(a0) {
|
||||
var r0;
|
||||
var dueAt;
|
||||
var value2;
|
||||
var value = a0.saveData.dueAt != null;
|
||||
if (value) {
|
||||
dueAt = a0.saveData.dueAt;
|
||||
value2 = new global.Date();
|
||||
value2 = dueAt > value2;
|
||||
r0 = value2;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
});
|
||||
dueAt = value4 == null || value4.saveData == null ? value2 : value4.saveData.dueAt;
|
||||
if (dueAt != null) {
|
||||
Date = global.Date;
|
||||
value6 = Date.now() + (importDefault(672) /* metro dependency 672: Durations */).Millis.WEEK;
|
||||
dueAt = value4.saveData.dueAt;
|
||||
if (!(dueAt.getTime() > value6)) {
|
||||
time = value4.saveData.dueAt.getTime();
|
||||
Date = global.Date;
|
||||
env0_8 = global.setTimeout(_fun121596, time - Date.now());
|
||||
}
|
||||
}
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun121597(a0) { // fn#121597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16029:1022, offset: 0x0254bc0e, size: 42 bytes, params: 2, frame: 14
|
||||
const closure = MessageRemindersNotificationManager;
|
||||
env0_6(closure, a0);
|
||||
return env0_2(closure);
|
||||
}
|
||||
|
||||
function _fun121596() { // fn#121596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16029:788, offset: 0x0254bb98, size: 118 bytes, params: 1, frame: 15
|
||||
var defaultImport2;
|
||||
const binding = env0_0;
|
||||
const defaultImport = importDefault(10929) /* metro dependency 10929: ForLaterExperiment */;
|
||||
const getConfig = defaultImport.getConfig;
|
||||
if (Reflect.apply(getConfig, defaultImport, [{location: 'MessageRemindersNotificationManager'}]).enabled) {
|
||||
defaultImport2 = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
defaultImport2.dispatch({type: 'MESSAGE_REMINDER_DUE', savedMessage: binding});
|
||||
scheduleNextNotification();
|
||||
}
|
||||
}
|
||||
|
||||
function MessageRemindersNotificationManager(a0) { // fn#121598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16029:1034, offset: 0x0254bc38, size: 189 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_3;
|
||||
binding(this, MessageRemindersNotificationManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_5(MessageRemindersNotificationManager);
|
||||
binding = env1_4;
|
||||
if (_isNativeReflectConstruct_121591()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_5(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.actions = {SAVED_MESSAGES_UPDATE: SAVED_MESSAGES_UPDATE_121599,
|
||||
SAVED_MESSAGE_CREATE: SAVED_MESSAGE_CREATE_121600, SAVED_MESSAGE_DELETE: SAVED_MESSAGE_DELETE_121601};
|
||||
value.handleUpdates = function() {
|
||||
scheduleNextNotification();
|
||||
};
|
||||
return value;
|
||||
}
|
||||
|
||||
function MessageRemindersNotificationManagerSAVED_MESSAGES_UPDATE() { // fn#121599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16029:1358, owner: MessageRemindersNotificationManager.SAVED_MESSAGES_UPDATE, offset: 0x0254bcf5, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_0.handleUpdates();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Metro module 11188; source: modules/saved_messages/message_reminders/MessageRemindersTypes.tsx; dependencies: [3738, 1244, 2] */
|
||||
function _fun85475(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11374:6, offset: 0x01f7027b, size: 250 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const items2 = [{getDueAt: getDueAt, getLabel: function() {
|
||||
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t['OV8l/H']);
|
||||
}}];
|
||||
items2[1] = {getDueAt: getDueAt_85478, getLabel: function() {
|
||||
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t['zf0R+0']);
|
||||
}};
|
||||
items2[2] = {getDueAt: getDueAt_85480, getLabel: function() {
|
||||
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t['5gztZN']);
|
||||
}};
|
||||
items2[3] = {getDueAt: getDueAt_85482, getLabel: getLabel_85483};
|
||||
items2[4] = {getDueAt: getDueAt_85484, getLabel: function() {
|
||||
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t['q+Ls05']);
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/message_reminders/MessageRemindersTypes.tsx');
|
||||
exports.MESSAGE_REMINDER_DURATION_ITEMS = items2;
|
||||
}
|
||||
|
||||
function getDueAt() { // fn#85476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11374:109, offset: 0x01f70375, size: 58 bytes, params: 1, frame: 13
|
||||
let value = (importDefault(3738) /* metro dependency 3738 */)();
|
||||
value = value.add(30, 'minutes');
|
||||
return value.toDate();
|
||||
}
|
||||
|
||||
function getDueAt_85478() { // fn#85478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11374:215, offset: 0x01f703ef, size: 58 bytes, params: 1, frame: 13
|
||||
let value = (importDefault(3738) /* metro dependency 3738 */)();
|
||||
value = value.add(1, 'hour');
|
||||
return value.toDate();
|
||||
}
|
||||
|
||||
function getDueAt_85480() { // fn#85480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11374:317, offset: 0x01f70469, size: 58 bytes, params: 1, frame: 13
|
||||
let value = (importDefault(3738) /* metro dependency 3738 */)();
|
||||
value = value.add(4, 'hour');
|
||||
return value.toDate();
|
||||
}
|
||||
|
||||
function getDueAt_85482() { // fn#85482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11374:419, offset: 0x01f704e3, size: 126 bytes, params: 1, frame: 18
|
||||
var r0;
|
||||
let value = (importDefault(3738) /* metro dependency 3738 */)();
|
||||
value = value.startOf('day');
|
||||
value = value.add(9, 'hours');
|
||||
const value2 = (importDefault(3738) /* metro dependency 3738 */)();
|
||||
if (value2.hour() >= 9) {
|
||||
value = value.add(1, 'day');
|
||||
value = value.toDate();
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.toDate();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getLabel_85483() { // fn#85483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11374:542, offset: 0x01f70561, size: 163 bytes, params: 1, frame: 15
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
return (importDefault(3738) /* metro dependency 3738 */)().hour() >= 9 ? intl.string(t['7MKr2P']) : intl.string(t.FnFI3m);
|
||||
}
|
||||
|
||||
function getDueAt_85484() { // fn#85484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11374:656, offset: 0x01f70604, size: 219 bytes, params: 1, frame: 20
|
||||
var r2;
|
||||
var value4;
|
||||
var value7;
|
||||
const value3 = (importDefault(3738) /* metro dependency 3738 */)().day();
|
||||
if (value3 === 0) {
|
||||
r2 = 1;
|
||||
} else {
|
||||
value4 = 8;
|
||||
if (value3 !== 1) {
|
||||
r2 = value4;
|
||||
} else {
|
||||
value7 = (importDefault(3738) /* metro dependency 3738 */)().startOf('day').add(9, 'hours');
|
||||
r2 = value7.isAfter((importDefault(3738) /* metro dependency 3738 */)()) ? 1 : value4;
|
||||
}
|
||||
}
|
||||
let value = (importDefault(3738) /* metro dependency 3738 */)();
|
||||
value = value.day(r2);
|
||||
value = value.startOf('day');
|
||||
value = value.add(9, 'hours');
|
||||
return value.toDate();
|
||||
}
|
||||
|
||||
+166
@@ -0,0 +1,166 @@
|
||||
/* Metro module 11187; source: modules/saved_messages/message_reminders/native/MessageReminderDurationActionSheet.tsx; dependencies: [57, 31, 11174, 33, 4501, 697, 566, 672, 11184, 6758, 1244, 5278, 5284, 11188, 6238, 4080, 5080, 11189, 1962, 6275, 6231, 4064, 2] */
|
||||
function _fun85463(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11373:6, offset: 0x01f6fb25, size: 267 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const savedMessagesStore = importDefault(11174) /* metro dependency 11174: SavedMessagesStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object.paddingHorizontal = PX_16;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object.gap = PX_24;
|
||||
const env0_8 = Reflect.apply(createStyles, value, [{body: object}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/message_reminders/native/MessageReminderDurationActionSheet.tsx');
|
||||
exports.default = MessageReminderDurationActionSheet;
|
||||
}
|
||||
|
||||
function MessageReminderDurationActionSheet({createReminder, removeReminder, channelId, messageId, onBack}) { // fn#85464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11373:379, offset: 0x01f6fc30, size: 639 bytes, params: 2, frame: 26
|
||||
var object2;
|
||||
var r5;
|
||||
var TableRow;
|
||||
var intl;
|
||||
const env0_4 = onBack;
|
||||
const styles = useStyles();
|
||||
const savedMessage = (require(566) /* metro dependency 566: flux */).useStateFromStores([SavedMessagesStore],
|
||||
function() {
|
||||
return SavedMessagesStore.getSavedMessage(channelId, messageId);
|
||||
});
|
||||
let binding = env0_4;
|
||||
const useState = binding.useState;
|
||||
const Date = global.Date;
|
||||
const value3 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
const date = new Date();
|
||||
const value6 = messageId(Reflect.apply(useState, binding, [date instanceof Object ? date : value3]), 2);
|
||||
const property = value6[0];
|
||||
const env0_5 = value6[1];
|
||||
binding.useEffect(function() {
|
||||
var setInterval = global.setInterval;
|
||||
var MINUTE = importDefault(dependencyMap[7]).Millis.MINUTE;
|
||||
var env0_0 = setInterval(_fun85467, MINUTE);
|
||||
return _fun85468;
|
||||
}, []);
|
||||
const savedMessageUtilsModule = require(11184) /* metro dependency 11184: SavedMessageUtils */;
|
||||
const useDueInString = savedMessageUtilsModule.useDueInString;
|
||||
object2 = {dueAt: savedMessage == null ? undefined : savedMessage.saveData.dueAt, now: property};
|
||||
const DueInStringTypes = savedMessageUtilsModule.DueInStringTypes;
|
||||
const SHORT = DueInStringTypes.SHORT;
|
||||
object2.type = SHORT;
|
||||
const dueInText = Reflect.apply(useDueInString, savedMessageUtilsModule, [object2]).dueInText;
|
||||
binding = env0_4;
|
||||
const value7 = binding.useMemo(_fun85469, [onBack, dueInText]);
|
||||
const value8 = binding.useMemo(_fun85470, [createReminder]);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const tableRowGroup = <TableRowGroup hasIcons={false}>{value8}</TableRowGroup>;
|
||||
const value10 = removeReminder != null;
|
||||
if (value10) {
|
||||
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
var tableRowProps = {icon: ((CheckmarkLargeIcon) => <CheckmarkLargeIcon />)((require(4064) /* metro dependency 4064: CheckmarkLargeIcon */).CheckmarkLargeIcon)};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
tableRowProps.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yjGtdJ);
|
||||
tableRowProps.onPress = onPress_85474;
|
||||
tableRowProps.start = true;
|
||||
tableRowProps.end = true;
|
||||
r5 = <TableRow {...tableRowProps} key="remove-reminder" />;
|
||||
} else {
|
||||
r5 = value10;
|
||||
}
|
||||
return (
|
||||
<BottomSheet
|
||||
header={value7}
|
||||
bodyStyles={styles.body}
|
||||
startExpanded
|
||||
>
|
||||
{tableRowGroup}
|
||||
{r5}
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun85466() { // fn#85466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11373:625, offset: 0x01f6fecf, size: 73 bytes, params: 1, frame: 14
|
||||
const setInterval = global.setInterval;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const MINUTE = Millis.MINUTE;
|
||||
const env0_0 = setInterval(_fun85467, MINUTE);
|
||||
return _fun85468;
|
||||
}
|
||||
|
||||
function _fun85469() { // fn#85469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11373:859, offset: 0x01f6ff44, size: 271 bytes, params: 1, frame: 23
|
||||
const value = environment.__proto__;
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<BottomSheetTitleHeader
|
||||
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.roMu1H)}
|
||||
subtitle={dueInText}
|
||||
leading={onBack != null && ((PressableOpacity) => <PressableOpacity accessibilityRole="button" accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])} onPress={onBack}>{((ArrowLargeLeftIcon) => <ArrowLargeLeftIcon size="md" />)((require(5284) /* metro dependency 5284: ArrowLargeLeftIcon */).ArrowLargeLeftIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun85470() { // fn#85470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11373:1176, offset: 0x01f70053, size: 170 bytes, params: 1, frame: 22
|
||||
const MESSAGE_REMINDER_DURATION_ITEMS = (require(11188) /* metro dependency 11188: MessageRemindersTypes */).MESSAGE_REMINDER_DURATION_ITEMS;
|
||||
const value2 = MESSAGE_REMINDER_DURATION_ITEMS.map(_fun85471);
|
||||
const push = value2.push;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const OLA8Zi = (require(1244) /* metro dependency 1244: indexNative */).t.OLA8Zi;
|
||||
Reflect.apply(push, value2, [<TableRow label={Reflect.apply(string, intl,
|
||||
[OLA8Zi])} onPress={onPress_85473} arrow key="create-reminder-custom" />]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function MessageReminderDurationActionSheetOnPress() { // fn#85474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11373:1928, owner: MessageReminderDurationActionSheet.onPress, offset: 0x01f7024b, size: 48 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
removeReminder();
|
||||
}
|
||||
|
||||
function _fun85467() { // fn#85467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11373:649, offset: 0x01f6ff18, size: 44 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_5;
|
||||
const Date = global.Date;
|
||||
return binding(new Date());
|
||||
}
|
||||
|
||||
function _fun85471({getDueAt, getLabel}) { // fn#85471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11373:1233, offset: 0x01f700fd, size: 114 bytes, params: 2, frame: 17
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
return (
|
||||
<TableRow
|
||||
label={getLabel()}
|
||||
onPress={onPress_85472}
|
||||
key={'create-reminder-' + getLabel()}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function onPress_85473() { // fn#85473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11373:1457, offset: 0x01f701ab, size: 160 bytes, params: 1, frame: 20
|
||||
let value = environment.__proto__.__proto__;
|
||||
importDefault(dependencyMap[15]).hideActionSheet();
|
||||
const defaultImport2 = importDefault(dependencyMap[16]);
|
||||
const pushLazy = defaultImport2.pushLazy;
|
||||
value = require(dependencyMap[18]);
|
||||
value = value(dependencyMap[17], dependencyMap.paths);
|
||||
const object2 = {};
|
||||
object2.onClose = importDefault(dependencyMap[16]).pop();
|
||||
object2.createReminder = createReminder;
|
||||
Reflect.apply(pushLazy, defaultImport2, [value, object2, 'create-reminder-custom', {presentation: 'modal'}]);
|
||||
}
|
||||
|
||||
function onPress_85472() { // fn#85472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11373:1299, offset: 0x01f7016f, size: 60 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__.__proto__;
|
||||
createReminder(getDueAt());
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
+129
@@ -0,0 +1,129 @@
|
||||
/* Metro module 11189; source: modules/saved_messages/message_reminders/native/MessageRemindersCustomDurationModal.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 3738, 1848, 1244, 4080, 9066, 1962, 5287, 9603, 477, 5282, 5278, 4573, 2] */
|
||||
function _fun85486(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11375:6, offset: 0x01f7071f, size: 421 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(27) /* metro dependency 27 */).View;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value2.jsx;
|
||||
const env0_8 = value2.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object2.modal = {flex: 1, backgroundColor: BACKGROUND_BASE_LOWER};
|
||||
const object4 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingTop = PX_8;
|
||||
object2.headerContainer = object4;
|
||||
object2.container = {'paddingHorizontal': 16, 'paddingTop': 24, 'gap': 24};
|
||||
object2.formHeader = {marginBottom: 8};
|
||||
const object6 = {'paddingHorizontal': 16, 'paddingVertical': 12};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const INPUT_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_BACKGROUND_DEFAULT;
|
||||
object6.backgroundColor = INPUT_BACKGROUND_DEFAULT;
|
||||
object2.inputContainer = object6;
|
||||
const env0_9 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
value = value.memo(_fun85487);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/message_reminders/native/MessageRemindersCustomDurationModal.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun85487({onClose, createReminder}) { // fn#85487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11375:573, offset: 0x01f708c4, size: 1007 bytes, params: 2, frame: 36
|
||||
const styles = useStyles();
|
||||
const binding = env0_5;
|
||||
const [property, env0_3] = env0_4(binding.useState(function() {
|
||||
return importDefault(dependencyMap[6])();
|
||||
}), 2);
|
||||
var env0_5 = binding.useCallback(_fun85490, [createReminder, property, onClose]);
|
||||
const value6 = property.format('MMM Do YYYY');
|
||||
const value7 = property.format('LT');
|
||||
const Header = (require(5287) /* metro dependency 5287 */).Header;
|
||||
const object = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const VKsXpY = (require(1244) /* metro dependency 1244: indexNative */).t.VKsXpY;
|
||||
object.title = Reflect.apply(string, intl, [VKsXpY]);
|
||||
object.headerTitle = headerTitle_85491;
|
||||
object.headerTitleAlign = 'center';
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
object.headerStatusBarHeight = platformUtilsModule.isIOS() ? 0 : undefined;
|
||||
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(onClose);
|
||||
object.headerRight = headerRight_85492;
|
||||
const view = <View style={styles.headerContainer}><Header {...object} /></View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
let formHeader = styles.formHeader;
|
||||
let value = <Text style={formHeader} variant="text-sm/semibold" color="text-subtle">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pSZKvM)}</Text>;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
value = <View>{value}<PressableOpacity accessibilityRole="button" accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pSZKvM)} accessibilityValue={{text: value6}} onPress={function() {
|
||||
handleOpenDatePicker('date');
|
||||
}} style={styles.inputContainer}><Text variant="text-md/medium">{value6}</Text></PressableOpacity></View>;
|
||||
const items3 = [value];
|
||||
formHeader = styles.formHeader;
|
||||
string = intl.string;
|
||||
const GOmEb8 = (require(1244) /* metro dependency 1244: indexNative */).t.GOmEb8;
|
||||
items3[1] = <View><Text style={formHeader} variant="text-sm/semibold" color="text-subtle">{Reflect.apply(string,
|
||||
intl,
|
||||
[GOmEb8])}</Text><PressableOpacity accessibilityRole="button" accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pSZKvM)} accessibilityValue={{text: value7}} onPress={function() {
|
||||
handleOpenDatePicker('time');
|
||||
}} style={styles.inputContainer}><Text variant="text-md/medium">{value7}</Text></PressableOpacity></View>;
|
||||
return (
|
||||
<View style={styles.modal}>
|
||||
{view}
|
||||
<View style={styles.container}>
|
||||
{items3}
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function handleOpenDatePicker(a0) { // fn#85489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11375:696, offset: 0x01f70cd2, size: 305 bytes, params: 2, frame: 21
|
||||
const intl = require(dependencyMap[8]).intl;
|
||||
const t = require(dependencyMap[8]).t;
|
||||
let value = environment.__proto__;
|
||||
importAll(dependencyMap[7]).dismissGlobalKeyboard();
|
||||
const r1 = a0 === 'date' ? intl.string(t.pSZKvM) : intl.string(t.GOmEb8);
|
||||
const defaultImport = importDefault(dependencyMap[9]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[11]);
|
||||
value = value(dependencyMap[10], dependencyMap.paths);
|
||||
const object2 = {title: r1};
|
||||
object2.startDate = env0_2.toDate();
|
||||
object2.minimumDate = importDefault(dependencyMap[6])().toDate();
|
||||
object2.mode = a0;
|
||||
object2.onSubmit = env0_3;
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'DatePicker', object2]);
|
||||
}
|
||||
|
||||
function _fun85490() { // fn#85490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11375:978, offset: 0x01f70e03, size: 38 bytes, params: 1, frame: 12
|
||||
createReminder(env0_2.toDate());
|
||||
onClose();
|
||||
}
|
||||
|
||||
function headerTitle_85491() { // fn#85491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11375:1204, offset: 0x01f70e29, size: 96 bytes, params: 1, frame: 18
|
||||
const GenericHeaderTitle = (require(9603) /* metro dependency 9603: HeaderShared */).GenericHeaderTitle;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const VKsXpY = (require(1244) /* metro dependency 1244: indexNative */).t.VKsXpY;
|
||||
return <GenericHeaderTitle title={Reflect.apply(string, intl, [VKsXpY])} />;
|
||||
}
|
||||
|
||||
function headerRight_85492() { // fn#85492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11375:1415, offset: 0x01f70e89, size: 156 bytes, params: 1, frame: 20
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const pressableOpacityProps = {accessibilityRole: 'button', onPress: env0_5};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<PressableOpacity {...pressableOpacityProps}>
|
||||
<Text variant="text-md/semibold" color="control-brand-foreground">
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+'])}
|
||||
</Text>
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
/* Metro module 11186; source: modules/saved_messages/native/ForLaterCardActionButtons.tsx; dependencies: [31, 27, 33, 4501, 4080, 11187, 1962, 11173, 1244, 9646, 9799, 11190, 4076, 8811, 8341, 8639, 4065, 2] */
|
||||
function _fun85450(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11372:6, offset: 0x01f6f422, size: 219 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({actionGroup: {'flexDirection': 'row',
|
||||
'gap': 8}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/native/ForLaterCardActionButtons.tsx');
|
||||
exports.default = ForLaterCardActionButtons;
|
||||
}
|
||||
|
||||
function ForLaterCardActionButtons({savedMessage, jumpToMessage}) { // fn#85451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11372:318, offset: 0x01f6f4fd, size: 938 bytes, params: 2, frame: 25
|
||||
var r11;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var items3;
|
||||
var items2;
|
||||
const styles = useStyles();
|
||||
const binding = env0_3;
|
||||
const useCallback = binding.useCallback;
|
||||
let object = [savedMessage];
|
||||
const env0_2 = Reflect.apply(useCallback, binding, [_fun85452, object]);
|
||||
if (savedMessage.saveData.dueAt != null) {
|
||||
object = {};
|
||||
object.label = intl.string(t.vrbqs1);
|
||||
object.IconComponent = (require(9646) /* metro dependency 9646: PencilIcon */).PencilIcon;
|
||||
object.action = action_85455;
|
||||
items2 = [object];
|
||||
object = {};
|
||||
object.label = intl.string(t['+TSRGD']);
|
||||
object.IconComponent = (require(9799) /* metro dependency 9799: ChatArrowRightIcon */).ChatArrowRightIcon;
|
||||
object.action = function() {
|
||||
return jumpToMessage();
|
||||
};
|
||||
items2[1] = object;
|
||||
object = {};
|
||||
object.label = intl.string(t.SvXS1Z);
|
||||
object.IconComponent = (require(11190) /* metro dependency 11190: BookmarkIcon */).BookmarkIcon;
|
||||
object.action = action_85457;
|
||||
object.variant = 'destructive';
|
||||
items2[2] = object;
|
||||
r11 = items2;
|
||||
} else {
|
||||
object = {};
|
||||
object.label = intl.string(t.mJ3P0N);
|
||||
object.IconComponent = (require(4076) /* metro dependency 4076: ClockIcon */).ClockIcon;
|
||||
object.action = action_85458;
|
||||
items3 = [object];
|
||||
object = {};
|
||||
object.label = intl.string(t['+TSRGD']);
|
||||
object.IconComponent = (require(9799) /* metro dependency 9799: ChatArrowRightIcon */).ChatArrowRightIcon;
|
||||
object.action = action_85459;
|
||||
items3[1] = object;
|
||||
object = {};
|
||||
object.label = intl.string(t.SvXS1Z);
|
||||
object.IconComponent = (require(11190) /* metro dependency 11190: BookmarkIcon */).BookmarkIcon;
|
||||
object.action = action_85460;
|
||||
object.variant = 'destructive';
|
||||
items3[2] = object;
|
||||
r11 = items3;
|
||||
}
|
||||
const ContextMenu = (require(8811) /* metro dependency 8811: ContextMenuNative */).ContextMenu;
|
||||
return (
|
||||
<View style={styles.actionGroup}>
|
||||
<ContextMenu items={r11} keyboardShouldPersistTaps="handled">
|
||||
{children_85461}
|
||||
</ContextMenu>
|
||||
{savedMessage.saveData.dueAt != null ? ((IconButton) => <IconButton variant="secondary" accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yjGtdJ)} size="sm" icon={importDefault(4065) /* metro dependency 4065 */} onPress={onPress_85462} />)((require(8341) /* metro dependency 8341: IconButtonNative */).IconButton) : null}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun85452(a0) { // fn#85452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11372:414, offset: 0x01f6f8a7, size: 181 bytes, params: 2, frame: 20
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(dependencyMap[4]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
const value3 = require(dependencyMap[6])(dependencyMap[5], dependencyMap.paths);
|
||||
const object2 = {createReminder: createReminder};
|
||||
object2.removeReminder = a0 ? _fun85454 : value2;
|
||||
const savedMessageBinding = savedMessage;
|
||||
object2.channelId = savedMessageBinding.saveData.channelId;
|
||||
object2.messageId = savedMessageBinding.saveData.messageId;
|
||||
object2.onBack = importDefault(dependencyMap[4]).hideActionSheet;
|
||||
return Reflect.apply(openLazy, defaultImport, [value3, 'MessageReminderDurationActionSheet', object2]);
|
||||
}
|
||||
|
||||
function ForLaterCardActionButtonsAction_85457() { // fn#85457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11372:1076, owner: ForLaterCardActionButtons.action, offset: 0x01f6f9e9, size: 51 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(11173) /* metro dependency 11173: SavedMessageHelpersNative */;
|
||||
return value.removeSavedMessage(savedMessage.saveData);
|
||||
}
|
||||
|
||||
function ForLaterCardActionButtonsChildren(a0) { // fn#85461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11372:1620, owner: ForLaterCardActionButtons.children, offset: 0x01f6fa1c, size: 196 bytes, params: 2, frame: 20
|
||||
const ref = a0.ref;
|
||||
const value = Object.create(null);
|
||||
value.ref = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
const iconButtonProps = {ref: ref, ...value2};
|
||||
iconButtonProps['variant'] = 'secondary';
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
iconButtonProps['accessibilityLabel'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.e1heBD);
|
||||
iconButtonProps['size'] = 'sm';
|
||||
iconButtonProps['icon'] = importDefault(8639) /* metro dependency 8639 */;
|
||||
return <IconButton {...iconButtonProps} />;
|
||||
}
|
||||
|
||||
function ForLaterCardActionButtonsOnPress() { // fn#85462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11372:1930, owner: ForLaterCardActionButtons.onPress, offset: 0x01f6fae0, size: 69 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return (require(11173) /* metro dependency 11173: SavedMessageHelpersNative */).addOrUpdateSavedMessage({...savedMessage.saveData,
|
||||
['dueAt']: undefined});
|
||||
}
|
||||
|
||||
function createReminder(a0) { // fn#85453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11372:509, offset: 0x01f6f95c, size: 72 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(11173) /* metro dependency 11173: SavedMessageHelpersNative */;
|
||||
const addOrUpdateSavedMessage = value.addOrUpdateSavedMessage;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, savedMessage.saveData, undefined);
|
||||
object2['dueAt'] = a0;
|
||||
return Reflect.apply(addOrUpdateSavedMessage, value, [object2]);
|
||||
}
|
||||
|
||||
function _fun85454() { // fn#85454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11372:586, offset: 0x01f6f9a4, size: 69 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (require(11173) /* metro dependency 11173: SavedMessageHelpersNative */).addOrUpdateSavedMessage({...savedMessage.saveData,
|
||||
['dueAt']: undefined});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/* Metro module 11193; source: modules/saved_messages/native/ForLaterCardHeader.tsx; dependencies: [27, 1867, 33, 4501, 697, 6818, 566, 6819, 9719, 1305, 6682, 4805, 6647, 1244, 4573, 2] */
|
||||
function _fun85500(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11379:6, offset: 0x01f71321, size: 365 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {padding: 6};
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [{cardHeader: {'flexDirection': 'row', 'alignItems': 'center',
|
||||
'gap': 8}, dmIcon: object, channelNameContainer: {'flexDirection': 'row', 'alignItems': 'center',
|
||||
'flexShrink': 1}, channelName: {flexShrink: 1}, channelTypeIcon: {marginRight: 4},
|
||||
actionsContainer: {'marginVertical': -4, 'marginLeft': 'auto'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/native/ForLaterCardHeader.tsx');
|
||||
exports.ForLaterCardHeader = ForLaterCardHeader;
|
||||
}
|
||||
|
||||
function HeaderIcon_85501({channel}) { // fn#85501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11379:526, offset: 0x01f7148e, size: 318 bytes, params: 2, frame: 20
|
||||
const styles = useStyles();
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(channel.guild_id);
|
||||
});
|
||||
return guild != null ? ((Component) => <Component guild={guild} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.XSMALL} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */) : channel == null ? <View style={styles.dmIcon}>{((ChatIcon) => <ChatIcon size="xxs" />)((require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon)}</View> : channel.isGroupDM() ? ((Component) => <Component channel={channel} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.XSMALL} />)(importDefault(9719) /* metro dependency 9719: GroupDMAvatar */) : <View style={styles.dmIcon}>{((ChatIcon) => <ChatIcon size="xxs" />)((require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon)}</View>;
|
||||
}
|
||||
|
||||
function ChannelName({channel}) { // fn#85503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11379:846, offset: 0x01f715cc, size: 369 bytes, params: 2, frame: 21
|
||||
var r8;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(channel.guild_id);
|
||||
});
|
||||
const value2 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel, false);
|
||||
const channelIconComponentWithGuild = (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIconComponentWithGuild(channel,
|
||||
guild);
|
||||
const r4 = channel.isPrivate() || channelIconComponentWithGuild == null;
|
||||
if (channel.isDM()) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r8 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.smD7XV,
|
||||
{username: value2});
|
||||
} else {
|
||||
r8 = value2;
|
||||
}
|
||||
const r6 = r4 ? null : ((Component) => <Component style={styles.channelTypeIcon} size="xxs" />)(channelIconComponentWithGuild);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.channelNameContainer}>
|
||||
{r6}
|
||||
<Text
|
||||
style={styles.channelName}
|
||||
variant="text-md/semibold"
|
||||
color="mobile-text-heading-primary"
|
||||
lineClamp={1}
|
||||
>
|
||||
{r8}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function ForLaterCardHeader({channel, actions}) { // fn#85505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11379:1459, offset: 0x01f7173d, size: 210 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
const items2 = [<HeaderIcon_85501 channel={channel} />];
|
||||
items2[1] = channel.isPrivate() ? null : ((ChevronSmallRightIcon) => <ChevronSmallRightIcon size="xxs" />)((require(6818) /* metro dependency 6818: ChevronSmallRightIcon */).ChevronSmallRightIcon);
|
||||
items2[2] = <ChannelName channel={channel} />;
|
||||
items2[3] = <View style={styles.actionsContainer}>{actions}</View>;
|
||||
return (
|
||||
<View style={styles.cardHeader}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/* Metro module 11192; source: modules/saved_messages/native/ForLaterCardReminderHeader.tsx; dependencies: [27, 33, 4501, 697, 11184, 4076, 4573, 2] */
|
||||
function _fun85498(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11378:6, offset: 0x01f7101d, size: 369 bytes, params: 8, frame: 22
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {'flexDirection': 'row', 'alignItems': 'center', 'backgroundColor': null,
|
||||
'borderTopLeftRadius': null, 'borderTopRightRadius': null, 'overflow': 'hidden', 'gap': 8,
|
||||
'marginHorizontal': -16, 'marginTop': -16, 'paddingHorizontal': 16, 'paddingVertical': 12};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object5.backgroundColor = BACKGROUND_BASE_LOWER;
|
||||
object5.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object5.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object4.container = object5;
|
||||
const object6 = {'width': 24, 'height': 24, 'borderRadius': null, 'backgroundColor': null, 'alignItems': 'center',
|
||||
'justifyContent': 'center'};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
|
||||
object6.backgroundColor = CARD_BACKGROUND_DEFAULT;
|
||||
object4.icon = object6;
|
||||
object4.actionsContainer = {'marginVertical': -4, 'marginLeft': 'auto'};
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/native/ForLaterCardReminderHeader.tsx');
|
||||
exports.ForLaterCardReminderHeader = ForLaterCardReminderHeader;
|
||||
}
|
||||
|
||||
function ForLaterCardReminderHeader({savedMessage, throttledNow, actions}) { // fn#85499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11378:776, offset: 0x01f7118e, size: 403 bytes, params: 2, frame: 26
|
||||
const styles = useStyles();
|
||||
const savedMessageUtilsModule = require(11184) /* metro dependency 11184: SavedMessageUtils */;
|
||||
const useDueInString = savedMessageUtilsModule.useDueInString;
|
||||
const object2 = {};
|
||||
object2.dueAt = savedMessage == null ? undefined : savedMessage.saveData.dueAt;
|
||||
object2.now = throttledNow;
|
||||
const DueInStringTypes = savedMessageUtilsModule.DueInStringTypes;
|
||||
const SHORT = DueInStringTypes.SHORT;
|
||||
object2.type = SHORT;
|
||||
const {dueInText, isOverdue} = Reflect.apply(useDueInString, savedMessageUtilsModule, [object2]);
|
||||
if (savedMessage.saveData.dueAt == null) {
|
||||
return null;
|
||||
}
|
||||
const r12 = isOverdue ? 'text-feedback-critical' : 'mobile-text-heading-primary';
|
||||
const colors = (importDefault(697) /* metro dependency 697: native */).colors;
|
||||
const r15 = isOverdue ? colors.TEXT_FEEDBACK_CRITICAL : colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
const ClockIcon = (require(4076) /* metro dependency 4076: ClockIcon */).ClockIcon;
|
||||
const items2 = [<View style={styles.icon}><ClockIcon size="xxs" color={r15} /></View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text variant="text-md/semibold" color={r12}>{dueInText}</Text>;
|
||||
items2[2] = <View style={styles.actionsContainer}>{actions}</View>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
/* Metro module 11195; source: modules/saved_messages/native/ForLaterEmptyState.tsx; dependencies: [27, 33, 4501, 11196, 4573, 1244, 2] */
|
||||
function _fun85510(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11381:6, offset: 0x01f71ac0, size: 280 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.View;
|
||||
const env0_4 = value.Image;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({pageContainer: {'justifyContent': 'center',
|
||||
'alignItems': 'center', 'paddingTop': 166, 'paddingHorizontal': 32}, container: {'alignItems': 'center',
|
||||
'maxWidth': 311}, image: {'width': 140, 'height': 130}, textContainer: {'marginTop': 24, 'gap': 8},
|
||||
text: {textAlign: 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/native/ForLaterEmptyState.tsx');
|
||||
exports.ForLaterEmptyState = ForLaterEmptyState;
|
||||
}
|
||||
|
||||
function ForLaterEmptyState() { // fn#85511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11381:516, offset: 0x01f71bd8, size: 358 bytes, params: 1, frame: 27
|
||||
const styles = useStyles();
|
||||
const image = <Image source={importDefault(11196) /* metro dependency 11196 */} style={styles.image} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.pageContainer}>
|
||||
<View style={styles.container}>
|
||||
{image}
|
||||
<View style={styles.textContainer}>
|
||||
<Text
|
||||
variant="heading-xl/extrabold"
|
||||
color="mobile-text-heading-primary"
|
||||
style={styles.text}
|
||||
>
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.erEf2g)}
|
||||
</Text>
|
||||
<Text
|
||||
variant="text-sm/medium"
|
||||
color="text-default"
|
||||
style={styles.text}
|
||||
>
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['w1o+75'])}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,182 @@
|
||||
/* Metro module 11183; source: modules/saved_messages/native/ForLaterMessageCard.tsx; dependencies: [5, 31, 27, 3784, 11174, 661, 33, 4501, 697, 6239, 7684, 4573, 1244, 8341, 4072, 11173, 11184, 5080, 683, 11175, 3738, 11185, 566, 11186, 11192, 11193, 11194, 2] */
|
||||
function _fun85425(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11369:6, offset: 0x01f6e026, size: 526 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = ForLaterDeletedMessageCard;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const savedMessagesStore = importDefault(11174) /* metro dependency 11174: SavedMessagesStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = constantsModule.AnalyticEvents;
|
||||
const env0_9 = constantsModule.ChannelTypes;
|
||||
const env0_10 = constantsModule.Permissions;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value3.jsx;
|
||||
const env0_12 = value3.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {card: {'gap': 16, 'marginBottom': 16}};
|
||||
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object2.cardDivider = {'marginHorizontal': -16, 'height': 1, 'alignSelf': 'stretch',
|
||||
backgroundColor: BACKGROUND_MOD_MUTED};
|
||||
const object4 = {'marginHorizontal': -16, 'marginTop': -9, 'marginBottom': -16, 'borderBottomLeftRadius': null,
|
||||
'borderBottomRightRadius': null, 'overflow': 'hidden'};
|
||||
let CARD_DEFAULT_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.CARD_DEFAULT_RADIUS;
|
||||
object4.borderBottomLeftRadius = CARD_DEFAULT_RADIUS;
|
||||
CARD_DEFAULT_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.CARD_DEFAULT_RADIUS;
|
||||
object4.borderBottomRightRadius = CARD_DEFAULT_RADIUS;
|
||||
object2.messagePreview = object4;
|
||||
object2.deletedCard = {'flexDirection': 'row', 'alignItems': 'center', 'gap': 8};
|
||||
object2.deletedText = {flex: 1};
|
||||
object2.deletedActionButton = {marginLeft: 'auto'};
|
||||
const env0_13 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
value = value.memo(ForLaterMessageCardGuard);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/native/ForLaterMessageCard.tsx');
|
||||
exports.default = value;
|
||||
exports.ForLaterDeletedMessageCard = closure;
|
||||
}
|
||||
|
||||
function ForLaterDeletedMessageCard({savedMessage}) { // fn#85426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11369:752, offset: 0x01f6e234, size: 546 bytes, params: 2, frame: 27
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const styles = useStyles();
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
const items3 = [styles.card];
|
||||
items3[1] = styles.deletedCard;
|
||||
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
|
||||
const ICON_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.ICON_MUTED;
|
||||
const items2 = [<CircleErrorIcon size="xs" color={ICON_MUTED} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text variant="text-md/semibold" color="mobile-text-heading-primary" style={styles.deletedText}>{savedMessage.saveData.dueAt != null ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['wuQm+j']) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.o572Fe)}</Text>;
|
||||
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
const string = intl.string;
|
||||
const SvXS1Z = (require(1244) /* metro dependency 1244: indexNative */).t.SvXS1Z;
|
||||
items2[2] = <View style={styles.deletedActionButton}><IconButton variant="secondary" accessibilityLabel={Reflect.apply(string,
|
||||
intl,
|
||||
[SvXS1Z])} size="sm" icon={importDefault(4072) /* metro dependency 4072 */} onPress={onPress_85427} /></View>;
|
||||
return (
|
||||
<Card
|
||||
variant="primary"
|
||||
border="subtle"
|
||||
shadow="none"
|
||||
style={items3}
|
||||
>
|
||||
{items2}
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
function ForLaterMessageCard({savedMessage, throttledNow}) { // fn#85428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11369:1442, offset: 0x01f6e489, size: 578 bytes, params: 2, frame: 26
|
||||
var value7;
|
||||
var value8;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(11184) /* metro dependency 11184: SavedMessageUtils */).useSavedMessageChannel(savedMessage);
|
||||
const value4 = env0_4.useCallback(env0_3(_fun85430), [savedMessage, value2]);
|
||||
if (savedMessage.message != null) {
|
||||
if (value2 == null) {
|
||||
return <ForLaterDeletedMessageCard savedMessage={savedMessage} />;
|
||||
}
|
||||
if ((require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], _fun85435)) {
|
||||
value7 = ((Component) => <Component savedMessage={savedMessage} jumpToMessage={value4} />)(importDefault(11186) /* metro dependency 11186: ForLaterCardActionButtons */);
|
||||
value8 = savedMessage.saveData.dueAt != null;
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
return (
|
||||
<Card
|
||||
variant="primary"
|
||||
border="subtle"
|
||||
shadow="none"
|
||||
style={styles.card}
|
||||
onPress={value4}
|
||||
>
|
||||
{value8 ? ((ForLaterCardReminderHeader) => <ForLaterCardReminderHeader savedMessage={savedMessage} throttledNow={throttledNow} actions={value7} />)((require(11192) /* metro dependency 11192: ForLaterCardReminderHeader */).ForLaterCardReminderHeader) : null}
|
||||
{((ForLaterCardHeader) => <ForLaterCardHeader channel={value2} actions={value8 ? null : value7} />)((require(11193) /* metro dependency 11193: ForLaterCardHeader */).ForLaterCardHeader)}
|
||||
<View style={styles.cardDivider} />
|
||||
<View style={styles.messagePreview}>
|
||||
{((ForLaterMessageRow) => <ForLaterMessageRow message={savedMessage.message} lineClamp={2} maxHeight={250} />)((require(11194) /* metro dependency 11194: ForLaterMessageRow */).ForLaterMessageRow)}
|
||||
</View>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
}
|
||||
return <ForLaterDeletedMessageCard savedMessage={savedMessage} />;
|
||||
}
|
||||
|
||||
function ForLaterMessageCardGuard({savedMessageKey, throttledNow}) { // fn#85436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11369:2849, offset: 0x01f6e953, size: 113 bytes, params: 2, frame: 17
|
||||
const savedMessage = (require(566) /* metro dependency 566: flux */).useStateFromStores([SavedMessagesStore],
|
||||
function() {
|
||||
var savedMessageKeyBinding = savedMessageKey;
|
||||
return SavedMessagesStore.getSavedMessage(savedMessageKeyBinding.channelId, savedMessageKeyBinding.messageId);
|
||||
});
|
||||
return savedMessage == null ? null : <ForLaterMessageCard savedMessage={savedMessage} throttledNow={throttledNow} />;
|
||||
}
|
||||
|
||||
function ForLaterDeletedMessageCardOnPress() { // fn#85427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11369:1391, owner: ForLaterDeletedMessageCard.onPress, offset: 0x01f6e456, size: 51 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(11173) /* metro dependency 11173: SavedMessageHelpersNative */;
|
||||
return value.removeSavedMessage(savedMessage.saveData);
|
||||
}
|
||||
|
||||
function* _fun85430() { // fn#85430, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11369:1570, offset: 0x01f6e6d6, size: 89 bytes, params: 1, frame: 15
|
||||
if (true) {
|
||||
value = _fun85431();
|
||||
if (env2_1(env2_2[21])(require.message, value)) {
|
||||
yield value();
|
||||
value = undefined;
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun85435() { // fn#85435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11369:2178, offset: 0x01f6e8df, size: 116 bytes, params: 1, frame: 15
|
||||
const type = env0_1?.type;
|
||||
const UNKNOWN = ChannelTypes.UNKNOWN;
|
||||
return type === UNKNOWN || (env0_1 == null || !env0_1.isPrivate() ? PermissionStore.can(Permissions.VIEW_CHANNEL,
|
||||
env0_1) : !(env0_1 == null || !env0_1.isPrivate()));
|
||||
}
|
||||
|
||||
function _fun85431() { // fn#85431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11369:1588, offset: 0x01f6e72f, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env3_3(_fun85433);
|
||||
return _fun85434;
|
||||
}
|
||||
|
||||
function* _fun85433() { // fn#85433, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11369:1608, offset: 0x01f6e75e, size: 385 bytes, params: 1, frame: 23
|
||||
var r7;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
||||
let binding = env5_0;
|
||||
const value3 = undefined;
|
||||
const value4 = binding(env5_2[16]);
|
||||
yield value4.savedMessageJumpToMessage(env4_0, env4_1);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env5_1;
|
||||
const binding2 = env5_2;
|
||||
binding(binding2[17]).pop();
|
||||
const value9 = binding(binding2[18]);
|
||||
const track = value9.track;
|
||||
const FOR_LATER_SAVED_MESSAGE_JUMP = env5_8.FOR_LATER_SAVED_MESSAGE_JUMP;
|
||||
const object2 = {};
|
||||
binding = env4_0;
|
||||
object2.channel_id = binding.saveData.channelId;
|
||||
object2.message_id = binding.saveData.messageId;
|
||||
const message = binding.message;
|
||||
object2.message_author_id = message == null ? value3 : message.author.id;
|
||||
object2.type = env4_0.saveData.dueAt != null ? env5_0(env5_2[19]).SavedMessageSortTypes.REMINDER : env5_0(env5_2[19]).SavedMessageSortTypes.BOOKMARK;
|
||||
if (env4_0.saveData.dueAt != null) {
|
||||
value = env5_1(env5_2[20])();
|
||||
value = value.diff(env4_0.saveData.dueAt);
|
||||
r7 = value;
|
||||
} else {
|
||||
r7 = value3;
|
||||
}
|
||||
object2.due_duration = r7;
|
||||
Reflect.apply(track, value9, [FOR_LATER_SAVED_MESSAGE_JUMP, object2]);
|
||||
return value3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/* Metro module 11194; source: modules/saved_messages/native/ForLaterMessageRow.tsx; dependencies: [31, 33, 4048, 4501, 697, 3829, 8177, 9773, 477, 2] */
|
||||
function _fun85506(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11380:6, offset: 0x01f7180f, size: 142 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/native/ForLaterMessageRow.tsx');
|
||||
exports.ForLaterMessageRow = ForLaterMessageRow;
|
||||
}
|
||||
|
||||
function ForLaterMessageRow({message, lineClamp, maxHeight}) { // fn#85507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11380:227, offset: 0x01f7189d, size: 313 bytes, params: 2, frame: 22
|
||||
const value2 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createNativeStyleProperties = createStylesModule.createNativeStyleProperties;
|
||||
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
||||
const env0_1 = Reflect.apply(createNativeStyleProperties, createStylesModule,
|
||||
[{seeMoreLabelColor: TEXT_DEFAULT}])(value2);
|
||||
const RenderEmbeds = (require(3829) /* metro dependency 3829: UserSettings */).RenderEmbeds;
|
||||
const setting = RenderEmbeds.getSetting();
|
||||
const InlineEmbedMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineEmbedMedia;
|
||||
const setting2 = InlineEmbedMedia.getSetting();
|
||||
const env0_3 = setting2;
|
||||
const InlineAttachmentMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineAttachmentMedia;
|
||||
return ((Component) => <Component pointerEvents="none" horizontalOffset={0} modifyRow={modifyRow} message={message} rowGenerator={env0_3.useMemo(_fun85508,
|
||||
[setting, setting2,
|
||||
InlineAttachmentMedia.getSetting()])} maxHeight={maxHeight} />)(importDefault(9773) /* metro dependency 9773: ChatItem */);
|
||||
}
|
||||
|
||||
function _fun85508() { // fn#85508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11380:532, offset: 0x01f719d6, size: 105 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(8177) /* metro dependency 8177: RowGenerator */;
|
||||
value = new value();
|
||||
value.setOptions({'renderEmbeds': null, 'inlineEmbedMedia': null, 'inlineAttachmentMedia': null,
|
||||
'renderReplies': false, 'renderExecutedCommands': false, 'animateEmoji': false, 'renderGiftCode': false,
|
||||
'renderActivityInstanceEmbed': false, 'renderActivityInviteEmbed': false, 'renderThreadEmbeds': false,
|
||||
'renderForumPostActions': false, 'ignoreMentioned': true, 'shouldDisableInteractiveComponents': true,
|
||||
renderEmbeds: env0_2, inlineEmbedMedia: env0_3, inlineAttachmentMedia: env0_4});
|
||||
return value;
|
||||
}
|
||||
|
||||
function ForLaterMessageRowModifyRow(a0) { // fn#85509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11380:960, owner: ForLaterMessageRow.modifyRow, offset: 0x01f71a3f, size: 129 bytes, params: 2, frame: 16
|
||||
var object2;
|
||||
var value2;
|
||||
if (lineClamp != null) {
|
||||
object2 = {};
|
||||
object2.numberOfLines = lineClamp;
|
||||
value2 = environment.__proto__;
|
||||
object2.expandable = (require(477) /* metro dependency 477: PlatformUtils */).isIOS();
|
||||
object2.seeMoreLabel = (require(477) /* metro dependency 477: PlatformUtils */).isIOS() ? '...' : '';
|
||||
object2.seeMoreLabelColor = env0_1.seeMoreLabelColor;
|
||||
a0.truncation = object2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/* Metro module 11179; source: modules/saved_messages/native/ForLaterModal.tsx; dependencies: [31, 27, 33, 4501, 697, 5287, 1244, 9603, 477, 5282, 5080, 11180, 2] */
|
||||
function _fun85396(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11365:6, offset: 0x01f6d20d, size: 298 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object2.modal = {'backgroundColor': null, 'borderBottomWidth': 0, 'shadowColor': 'transparent', 'height': '100%',
|
||||
backgroundColor: BACKGROUND_BASE_LOWER};
|
||||
const object4 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingTop = PX_8;
|
||||
object2.headerContainer = object4;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/native/ForLaterModal.tsx');
|
||||
exports.default = ForLaterModal;
|
||||
}
|
||||
|
||||
function ForLaterModal() { // fn#85397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11365:471, offset: 0x01f6d337, size: 327 bytes, params: 1, frame: 24
|
||||
const value2 = undefined;
|
||||
const styles = useStyles();
|
||||
const Header = (require(5287) /* metro dependency 5287 */).Header;
|
||||
const object = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2pAkDA']);
|
||||
object.headerTitle = headerTitle_85398;
|
||||
object.headerTitleAlign = 'center';
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
object.headerStatusBarHeight = platformUtilsModule.isIOS() ? 0 : value2;
|
||||
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
|
||||
return (
|
||||
<View style={styles.modal}>
|
||||
<View style={styles.headerContainer}>
|
||||
<Header {...object} />
|
||||
</View>
|
||||
{((Component) => <Component onClose={(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop} />)(importDefault(11180) /* metro dependency 11180: ForLaterScreen */)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function ForLaterModalHeaderTitle() { // fn#85398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11365:657, owner: ForLaterModal.headerTitle, offset: 0x01f6d47e, size: 96 bytes, params: 1, frame: 18
|
||||
const GenericHeaderTitle = (require(9603) /* metro dependency 9603: HeaderShared */).GenericHeaderTitle;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return <GenericHeaderTitle title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2pAkDA'])} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
/* Metro module 14765; source: modules/saved_messages/native/ForLaterOpenActionButton.tsx; dependencies: [31, 27, 11174, 33, 7599, 14766, 4501, 697, 4048, 3860, 4583, 11190, 566, 11177, 7890, 7892, 5080, 11179, 1962, 8341, 1244, 2] */
|
||||
function _fun111471(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14962:6, offset: 0x023a386e, size: 482 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const savedMessagesStore = importDefault(11174) /* metro dependency 11174: SavedMessagesStore */;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value2.jsx;
|
||||
const env0_7 = value2.jsxs;
|
||||
object2 = {};
|
||||
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
|
||||
const Circle = CutoutShape.Circle;
|
||||
object2.shape = Circle;
|
||||
const ICON_SIZE = (require(14766) /* metro dependency 14766: getIconSize */).ICON_SIZE;
|
||||
object2.x = ICON_SIZE.sm - 9;
|
||||
object2.y = -1;
|
||||
object2.size = 10;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {container: {'aspectRatio': 1, 'alignItems': 'center', 'justifyContent': 'center',
|
||||
'position': 'relative'}};
|
||||
object2.iconAnchor = {width: ICON_SIZE.sm, height: ICON_SIZE.sm, position: 'relative'};
|
||||
const object4 = {'position': 'absolute', 'height': 6.5, 'width': 6.5, 'backgroundColor': null, 'borderRadius': null,
|
||||
'right': 1, 'top': 0.7};
|
||||
const BACKGROUND_FEEDBACK_NOTIFICATION = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_FEEDBACK_NOTIFICATION;
|
||||
object4.backgroundColor = BACKGROUND_FEEDBACK_NOTIFICATION;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.dot = object4;
|
||||
const env0_9 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
value = value.forwardRef(_fun111473);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/native/ForLaterOpenActionButton.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function BadgedBookmarksIcon({showRedDot}) { // fn#111472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14962:593, offset: 0x023a3a50, size: 391 bytes, params: 2, frame: 29
|
||||
const value2 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
const value3 = Reflect.apply(useToken, useTokenModule, [INTERACTIVE_TEXT_DEFAULT, value2]);
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View
|
||||
style={[styles.container,
|
||||
(require(4583) /* metro dependency 4583: ButtonHooksNative */).useIconSizeStyles('sm', true, 2)]}
|
||||
>
|
||||
{showRedDot ? <View style={styles.iconAnchor}>{((Component) => <Component cutouts={[env0_8]}>{((BookmarkIcon) => <BookmarkIcon size="sm" color={value3} />)((require(11190) /* metro dependency 11190: BookmarkIcon */).BookmarkIcon)}</Component>)(importDefault(7599) /* metro dependency 7599: ClipView */)}<View style={styles.dot} /></View> : ((BookmarkIcon) => <BookmarkIcon size="sm" color={value3} />)((require(11190) /* metro dependency 11190: BookmarkIcon */).BookmarkIcon)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun111473({onOpen}, a1) { // fn#111473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14962:1009, offset: 0x023a3bd7, size: 307 bytes, params: 3, frame: 24
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SavedMessagesStore], function() {
|
||||
return SavedMessagesStore.hasOverdueReminder();
|
||||
}, []);
|
||||
const value3 = env0_3.useCallback(_fun111476, [onOpen,
|
||||
(require(566) /* metro dependency 566: flux */).useStateFromStores([SavedMessagesStore], function() {
|
||||
return SavedMessagesStore.getSavedMessageCount();
|
||||
})]);
|
||||
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
const iconButtonProps = {'variant': 'tertiary', 'size': 'sm', icon: <BadgedBookmarksIcon showRedDot={value2} />,
|
||||
onPress: value3};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
iconButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2pAkDA']);
|
||||
iconButtonProps.maxFontSizeMultiplier = 2;
|
||||
return (
|
||||
<View ref={a1}>
|
||||
<IconButton {...iconButtonProps} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun111476() { // fn#111476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14962:1186, offset: 0x023a3d32, size: 202 bytes, params: 1, frame: 18
|
||||
var defaultImport2;
|
||||
var pushLazy;
|
||||
var value;
|
||||
onOpen();
|
||||
if (savedMessageCount !== 0) {
|
||||
value = environment.__proto__;
|
||||
defaultImport2 = importDefault(dependencyMap[16]);
|
||||
pushLazy = defaultImport2.pushLazy;
|
||||
value = require(dependencyMap[18]);
|
||||
value = value(dependencyMap[17], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport2, [value, {}, 'for-later-modal', {presentation: 'modal'}]);
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
if (importDefault(dependencyMap[13])()) {
|
||||
value = environment.__proto__;
|
||||
defaultImport2 = importDefault(dependencyMap[16]);
|
||||
pushLazy = defaultImport2.pushLazy;
|
||||
value = require(dependencyMap[18]);
|
||||
value = value(dependencyMap[17], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport2, [value, {}, 'for-later-modal', {presentation: 'modal'}]);
|
||||
} else {
|
||||
importDefault(dependencyMap[14])(require(dependencyMap[15]).EntitlementFeatureNames.SAVED_MESSAGES);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
/* Metro module 11180; source: modules/saved_messages/native/ForLaterScreen.tsx; dependencies: [57, 31, 27, 11174, 33, 4501, 697, 4017, 4577, 11181, 566, 8742, 480, 672, 11183, 11195, 8416, 2] */
|
||||
function _fun85399(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11366:6, offset: 0x01f6d4de, size: 380 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const savedMessagesStore = importDefault(11174) /* metro dependency 11174: SavedMessagesStore */;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value2.jsx;
|
||||
const env0_8 = value2.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object2.container = {backgroundColor: BACKGROUND_BASE_LOWER, flexGrow: 1};
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object2.headerBorder = {'height': 1, 'width': '100%', backgroundColor: BORDER_SUBTLE};
|
||||
object2.cardContainer = {'paddingHorizontal': 16, 'paddingVertical': 8};
|
||||
const env0_9 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
object2 = {code: 'function ForLaterScreenTsx1(){const{borderOpacity}=this.__closure;return{opacity:borderOpacity.get()};}'};
|
||||
value = value.memo(_fun85406);
|
||||
const keyExtractor_85409 = function(a0) {
|
||||
return a0.messageId;
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/native/ForLaterScreen.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function ForLaterPage({handleScroll}) { // fn#85400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11366:971, offset: 0x01f6d65a, size: 476 bytes, params: 2, frame: 23
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(11181) /* metro dependency 11181: useSavedMessagesForPage */)();
|
||||
const overdueMessageReminderCount = (require(566) /* metro dependency 566: flux */).useStateFromStores([SavedMessagesStore],
|
||||
function() {
|
||||
return SavedMessagesStore.getOverdueMessageReminderCount();
|
||||
});
|
||||
const defaultImport = importDefault(8742) /* metro dependency 8742: useTrackImpression */;
|
||||
object2 = {};
|
||||
const ImpressionTypes = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionTypes;
|
||||
const MODAL = ImpressionTypes.MODAL;
|
||||
object2.type = MODAL;
|
||||
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
|
||||
const FOR_LATER_LIST_VIEWED = ImpressionNames.FOR_LATER_LIST_VIEWED;
|
||||
object2.name = FOR_LATER_LIST_VIEWED;
|
||||
object2.properties = {total_count: value2.length, overdue_count: overdueMessageReminderCount};
|
||||
defaultImport(object2, {}, [value2.length, overdueMessageReminderCount]);
|
||||
let binding = env0_4;
|
||||
const useState = binding.useState;
|
||||
const Date = global.Date;
|
||||
const value3 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
const date = new Date();
|
||||
const value6 = env0_3(Reflect.apply(useState, binding, [date instanceof Object ? date : value3]), 2);
|
||||
const property = value6[0];
|
||||
const env0_1 = value6[1];
|
||||
env0_4.useEffect(function() {
|
||||
var setInterval = global.setInterval;
|
||||
var MINUTE = importDefault(dependencyMap[13]).Millis.MINUTE;
|
||||
var env0_0 = setInterval(_fun85403, MINUTE);
|
||||
return _fun85404;
|
||||
}, []);
|
||||
binding = env0_4;
|
||||
const useCallback = binding.useCallback;
|
||||
if (value2.length === 0) {
|
||||
const ForLaterEmptyState = (require(11195) /* metro dependency 11195: ForLaterEmptyState */).ForLaterEmptyState;
|
||||
return <ForLaterEmptyState />;
|
||||
} else {
|
||||
const FlashList = (require(8416) /* metro dependency 8416: flashList */).FlashList;
|
||||
return (
|
||||
<FlashList
|
||||
data={value2}
|
||||
renderItem={Reflect.apply(useCallback, binding, [_fun85405, [property]])}
|
||||
contentContainerStyle={styles.cardContainer}
|
||||
keyExtractor={keyExtractor_85409}
|
||||
onScroll={handleScroll}
|
||||
estimatedItemSize={130}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun85406(a0) { // fn#85406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11366:532, offset: 0x01f6d918, size: 297 bytes, params: 2, frame: 22
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", undefined);
|
||||
throw undefined;
|
||||
}
|
||||
const styles = useStyles();
|
||||
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
|
||||
const value3 = env0_4.useCallback(_fun85407, [value2]);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = t_85408;
|
||||
closure.__closure = {borderOpacity: value2};
|
||||
closure.__workletHash = 16693192032676;
|
||||
closure.__initData = env0_10;
|
||||
const value4 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<View2 style={[styles.headerBorder, value4]} />
|
||||
<ForLaterPage handleScroll={value3} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun85402() { // fn#85402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11366:1338, offset: 0x01f6d84b, size: 73 bytes, params: 1, frame: 14
|
||||
const setInterval = global.setInterval;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const MINUTE = Millis.MINUTE;
|
||||
const env0_0 = setInterval(_fun85403, MINUTE);
|
||||
return _fun85404;
|
||||
}
|
||||
|
||||
function _fun85405({item}) { // fn#85405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11366:1459, offset: 0x01f6d8d8, size: 64 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component savedMessageKey={item} throttledNow={env0_0} />)(importDefault(11183) /* metro dependency 11183: ForLaterMessageCard */);
|
||||
}
|
||||
|
||||
function _fun85407({nativeEvent}) { // fn#85407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11366:602, offset: 0x01f6da41, size: 86 bytes, params: 2, frame: 15
|
||||
const binding = env0_0;
|
||||
const set = binding.set;
|
||||
let value = environment.__proto__;
|
||||
value = require(4577) /* metro dependency 4577: spring */;
|
||||
Reflect.apply(set, binding, [value.withSpring(nativeEvent.contentOffset.y > 8 ? 1 : 0)]);
|
||||
}
|
||||
|
||||
function _fun85403() { // fn#85403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11366:1362, offset: 0x01f6d894, size: 44 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_1;
|
||||
const Date = global.Date;
|
||||
return binding(new Date());
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/* Metro module 14763; source: modules/saved_messages/native/useForLaterCoachmark.tsx; dependencies: [57, 31, 27, 1376, 33, 1365, 4501, 7895, 10929, 7013, 1244, 8543, 2] */
|
||||
function _fun111455(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14960:6, offset: 0x023a2e6d, size: 288 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).Image;
|
||||
const env0_6 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const env0_8 = DismissibleContent.FOR_LATER_NOTIFICATIONS_COACHMARK;
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({imageContainer: {'width': 100,
|
||||
'height': 80}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/native/useForLaterCoachmark.tsx');
|
||||
exports.default = useForLaterCoachmark;
|
||||
}
|
||||
|
||||
function CoachmarkImg_111456() { // fn#111456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14960:307, offset: 0x023a2f8d, size: 65 bytes, params: 1, frame: 17
|
||||
const styles = useStyles();
|
||||
return <Image source={importDefault(7895) /* metro dependency 7895 */} style={styles.imageContainer} />;
|
||||
}
|
||||
|
||||
function useForLaterCoachmark(a0) { // fn#111457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14960:492, offset: 0x023a2fce, size: 211 bytes, params: 2, frame: 20
|
||||
const defaultImport = importDefault(10929) /* metro dependency 10929: ForLaterExperiment */;
|
||||
const useConfig = defaultImport.useConfig;
|
||||
const value3 = env0_3((require(7013) /* metro dependency 7013: useSelectedDismissibleContent */).useSelectedDismissibleContent(Reflect.apply(useConfig,
|
||||
defaultImport, [{location: 'forLaterCoachmark'}]).enabled ? [FOR_LATER_NOTIFICATIONS_COACHMARK] : [], undefined,
|
||||
true), 2);
|
||||
const property = value3[0];
|
||||
const property2 = value3[1];
|
||||
const binding = env0_4;
|
||||
const useMemo = binding.useMemo;
|
||||
(require(8543) /* metro dependency 8543: useCoachmarkNative */).useCoachmark(a0, Reflect.apply(useMemo, binding,
|
||||
[_fun111458, [property2, property]]));
|
||||
return property2;
|
||||
}
|
||||
|
||||
function _fun111458() { // fn#111458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14960:685, offset: 0x023a30a1, size: 174 bytes, params: 1, frame: 18
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object2.title = Reflect.apply(string, intl, [t.qPbFK2]);
|
||||
string = intl.string;
|
||||
const URrJq1 = t.URrJq1;
|
||||
object2.description = Reflect.apply(string, intl, [URrJq1]);
|
||||
object2.position = 'bottom';
|
||||
object2.visible = env0_0 === FOR_LATER_NOTIFICATIONS_COACHMARK;
|
||||
object2.onDismiss = onDismiss_111459;
|
||||
object2.renderImgComponent = renderImgComponent_111460;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function onDismiss_111459() { // fn#111459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14960:831, offset: 0x023a314f, size: 29 bytes, params: 1, frame: 11
|
||||
const binding = env1_1;
|
||||
const USER_DISMISS = ContentDismissActionType.USER_DISMISS;
|
||||
binding(USER_DISMISS);
|
||||
}
|
||||
|
||||
function renderImgComponent_111460() { // fn#111460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14960:874, offset: 0x023a316c, size: 23 bytes, params: 1, frame: 13
|
||||
return <CoachmarkImg_111456 />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Metro module 11182; source: modules/saved_messages/useRefreshSavedMessages.tsx; dependencies: [31, 11178, 2] */
|
||||
function _fun85422(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11368:6, offset: 0x01f6df6c, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/useRefreshSavedMessages.tsx');
|
||||
exports.default = useRefreshSavedMessages;
|
||||
}
|
||||
|
||||
function useRefreshSavedMessages() { // fn#85423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11368:200, offset: 0x01f6dfde, size: 35 bytes, params: 1, frame: 13
|
||||
env0_2.useEffect(_fun85424, []);
|
||||
}
|
||||
|
||||
function _fun85424() { // fn#85424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11368:248, offset: 0x01f6e001, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(require(11178) /* metro dependency 11178: SavedMessagesActions */).fetchAndUpdateSavedMessages();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,232 @@
|
||||
/* Metro module 11181; source: modules/saved_messages/useSavedMessagesForPage.tsx; dependencies: [57, 31, 11174, 11182, 2] */
|
||||
function _fun85410(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11367:6, offset: 0x01f6daa1, size: 182 bytes, params: 8, frame: 18
|
||||
const _arrayLikeToArray_85413 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const savedMessagesStore = importDefault(11174) /* metro dependency 11174: SavedMessagesStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/saved_messages/useSavedMessagesForPage.tsx');
|
||||
exports.default = useSavedMessagesForPage;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_85411(a0, a1) { // fn#85411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11367:131, offset: 0x01f6db57, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun85412;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_85413(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_85413(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_85413(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun85412;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function getKeys() { // fn#85414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11367:1041, offset: 0x01f6dccb, size: 38 bytes, params: 1, frame: 11
|
||||
return SavedMessagesStore.getSavedMessages().map(function(a0) {
|
||||
return a0.saveData;
|
||||
});
|
||||
}
|
||||
|
||||
function useSavedMessagesForPage() { // fn#85416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11367:1205, offset: 0x01f6dcfc, size: 131 bytes, params: 1, frame: 17
|
||||
const binding = env0_3;
|
||||
const useState = binding.useState;
|
||||
const value3 = env0_2(Reflect.apply(useState, binding, [getKeys]), 2);
|
||||
const property = value3[0];
|
||||
let env0_0 = value3[1];
|
||||
const useRef = binding.useRef;
|
||||
const getIsStale = SavedMessagesStore.getIsStale;
|
||||
let env0_1 = Reflect.apply(useRef, binding, [Reflect.apply(getIsStale, SavedMessagesStore, [])]);
|
||||
binding.useEffect(function() {
|
||||
var closure = _fun85418;
|
||||
var env0_1 = closure;
|
||||
var env0_0 = SavedMessagesStore.getLastChanged();
|
||||
SavedMessagesStore.addChangeListener(closure);
|
||||
return _fun85421;
|
||||
}, []);
|
||||
(importDefault(11182) /* metro dependency 11182: useRefreshSavedMessages */)();
|
||||
return property;
|
||||
}
|
||||
|
||||
function _fun85417() { // fn#85417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11367:1336, offset: 0x01f6dd7f, size: 58 bytes, params: 1, frame: 13
|
||||
const closure = handleChange_85418;
|
||||
const env0_0 = SavedMessagesStore.getLastChanged();
|
||||
SavedMessagesStore.addChangeListener(closure);
|
||||
return function() {
|
||||
SavedMessagesStore.removeChangeListener(handleChange_85418);
|
||||
};
|
||||
}
|
||||
|
||||
function handleChange_85418() { // fn#85418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11367:1366, offset: 0x01f6ddb9, size: 123 bytes, params: 1, frame: 12
|
||||
if (env0_0 !== SavedMessagesStore.getLastChanged()) {
|
||||
if (env1_1.current) {
|
||||
if (SavedMessagesStore.getIsStale()) {
|
||||
env1_0(_fun85419);
|
||||
return undefined;
|
||||
}
|
||||
env1_1.current = false;
|
||||
env1_0(getKeys());
|
||||
return undefined;
|
||||
}
|
||||
env1_0(_fun85419);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun85419(a0) { // fn#85419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11367:1500, offset: 0x01f6de34, size: 255 bytes, params: 2, frame: 20
|
||||
var environment;
|
||||
var r5;
|
||||
var r2;
|
||||
var value8;
|
||||
var has;
|
||||
var messageId;
|
||||
var splice;
|
||||
var indexOf;
|
||||
var value9;
|
||||
var value11;
|
||||
var push;
|
||||
var saveData;
|
||||
var value12;
|
||||
const items2 = [];
|
||||
arraySpread(items2, a0, 0, undefined);
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const savedMessages = SavedMessagesStore.getSavedMessages();
|
||||
const Map = global.Map;
|
||||
let map = savedMessages.map;
|
||||
map = new Map(Reflect.apply(map, savedMessages, [function(a0) {
|
||||
return [a0.saveData.messageId, a0];
|
||||
}]));
|
||||
const value6 = _createForOfIteratorHelperLoose_85411(a0);
|
||||
const value7 = value6();
|
||||
let done = value7.done;
|
||||
if (!done) {
|
||||
r5 = value7;
|
||||
while (true) {
|
||||
value8 = r5.value;
|
||||
has = map.has;
|
||||
messageId = value8.messageId;
|
||||
if (Reflect.apply(has, map, [messageId])) {
|
||||
messageId = value8.messageId;
|
||||
map.delete(messageId);
|
||||
} else {
|
||||
splice = items2.splice;
|
||||
indexOf = items2.indexOf;
|
||||
Reflect.apply(splice, items2, [Reflect.apply(indexOf, items2, [value8]), 1]);
|
||||
}
|
||||
value9 = value6();
|
||||
done = value9.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r5 = value9;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
value = _createForOfIteratorHelperLoose_85411(map.values());
|
||||
const value10 = value();
|
||||
done = value10.done;
|
||||
if (!done) {
|
||||
for (r2 = value10; true; r2 = value12) {
|
||||
value11 = r2.value;
|
||||
push = items2.push;
|
||||
saveData = value11.saveData;
|
||||
Reflect.apply(push, items2, [saveData]);
|
||||
value12 = value();
|
||||
done = value12.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user