Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,128 @@
|
||||
/* Metro module 8526; source: modules/custom_status/setCustomStatus.tsx; dependencies: [8522, 661, 3829, 3738, 8527, 683, 2] */
|
||||
function _fun67590(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8711:6, offset: 0x01c29e19, size: 157 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const determineEmojiType = function(a0) {
|
||||
var value = null;
|
||||
return value == a0 ? value : a0.id != 'unicode' ? 'custom' : 'unicode';
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(8522) /* metro dependency 8522: Constants */).ClearAfterValues;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/setCustomStatus.tsx');
|
||||
exports.default = setCustomStatus;
|
||||
}
|
||||
|
||||
function setCustomStatus({text, emojiInfo, clearAfter, analyticsContext, createdAtMs, prompt, analyticsLocations}) { // fn#67592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8711:314, offset: 0x01c29edf, size: 582 bytes, params: 2, frame: 31
|
||||
var r3;
|
||||
const CustomStatusSetting = (require(3829) /* metro dependency 3829: UserSettings */).CustomStatusSetting;
|
||||
var updateSetting;
|
||||
var value3;
|
||||
var object2;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var String;
|
||||
var value7;
|
||||
var value10;
|
||||
var value15;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var CUSTOM_STATUS_UPDATED;
|
||||
const value = text.trim();
|
||||
let length = value.length;
|
||||
if (length > 0) {
|
||||
value3 = undefined;
|
||||
updateSetting = CustomStatusSetting.updateSetting;
|
||||
object2 = {};
|
||||
length = value.length;
|
||||
value4 = '';
|
||||
r3 = length > 0 ? value : value4;
|
||||
object2.text = r3;
|
||||
value5 = null;
|
||||
value6 = '0';
|
||||
if (value5 != clearAfter) {
|
||||
if (clearAfter === ClearAfterValues.DONT_CLEAR) {
|
||||
r3 = value6;
|
||||
} else {
|
||||
String = global.String;
|
||||
value7 = (importDefault(3738) /* metro dependency 3738 */)();
|
||||
value10 = value7.add((importDefault(8527) /* metro dependency 8527: getClearAfterDuration */)(clearAfter),
|
||||
|
||||
'ms').toDate();
|
||||
r3 = String(value10.getTime());
|
||||
}
|
||||
} else {
|
||||
r3 = value6;
|
||||
}
|
||||
object2.expiresAtMs = r3;
|
||||
r3 = value5 != emojiInfo && value5 != emojiInfo.id ? emojiInfo.id : value6;
|
||||
object2.emojiId = r3;
|
||||
r3 = value5 != emojiInfo ? emojiInfo.name : value4;
|
||||
object2.emojiName = r3;
|
||||
String = global.String;
|
||||
object2.createdAtMs = String(value5 != createdAtMs ? createdAtMs : (importDefault(3738) /* metro dependency 3738 */)().toDate().getTime());
|
||||
value15 = Reflect.apply(updateSetting, CustomStatusSetting, [object2]);
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
CUSTOM_STATUS_UPDATED = AnalyticEvents.CUSTOM_STATUS_UPDATED;
|
||||
object2 = {};
|
||||
object2.location = value5 != analyticsContext ? analyticsContext.location : value5;
|
||||
object2.emoji_type = determineEmojiType(emojiInfo);
|
||||
length = value.length;
|
||||
object2.text_len = length;
|
||||
object2.clear_after = value5 != clearAfter ? value4 + clearAfter : value5;
|
||||
object2.prompt_type = value5 == prompt ? value3 : prompt.value;
|
||||
object2.location_stack = analyticsLocations;
|
||||
Reflect.apply(track, defaultImport, [CUSTOM_STATUS_UPDATED, object2]);
|
||||
return value15;
|
||||
}
|
||||
if (emojiInfo != null) {
|
||||
value3 = undefined;
|
||||
updateSetting = CustomStatusSetting.updateSetting;
|
||||
object2 = {};
|
||||
length = value.length;
|
||||
value4 = '';
|
||||
r3 = length > 0 ? value : value4;
|
||||
object2.text = r3;
|
||||
value5 = null;
|
||||
value6 = '0';
|
||||
if (value5 != clearAfter) {
|
||||
if (clearAfter === ClearAfterValues.DONT_CLEAR) {
|
||||
r3 = value6;
|
||||
} else {
|
||||
String = global.String;
|
||||
value7 = (importDefault(3738) /* metro dependency 3738 */)();
|
||||
value10 = value7.add((importDefault(8527) /* metro dependency 8527: getClearAfterDuration */)(clearAfter),
|
||||
|
||||
'ms').toDate();
|
||||
r3 = String(value10.getTime());
|
||||
}
|
||||
} else {
|
||||
r3 = value6;
|
||||
}
|
||||
object2.expiresAtMs = r3;
|
||||
r3 = value5 != emojiInfo && value5 != emojiInfo.id ? emojiInfo.id : value6;
|
||||
object2.emojiId = r3;
|
||||
r3 = value5 != emojiInfo ? emojiInfo.name : value4;
|
||||
object2.emojiName = r3;
|
||||
String = global.String;
|
||||
object2.createdAtMs = String(value5 != createdAtMs ? createdAtMs : (importDefault(3738) /* metro dependency 3738 */)().toDate().getTime());
|
||||
value15 = Reflect.apply(updateSetting, CustomStatusSetting, [object2]);
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
CUSTOM_STATUS_UPDATED = AnalyticEvents.CUSTOM_STATUS_UPDATED;
|
||||
object2 = {};
|
||||
object2.location = value5 != analyticsContext ? analyticsContext.location : value5;
|
||||
object2.emoji_type = determineEmojiType(emojiInfo);
|
||||
length = value.length;
|
||||
object2.text_len = length;
|
||||
object2.clear_after = value5 != clearAfter ? value4 + clearAfter : value5;
|
||||
object2.prompt_type = value5 == prompt ? value3 : prompt.value;
|
||||
object2.location_stack = analyticsLocations;
|
||||
Reflect.apply(track, defaultImport, [CUSTOM_STATUS_UPDATED, object2]);
|
||||
return value15;
|
||||
}
|
||||
return CustomStatusSetting.updateSetting(undefined);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user