This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,9 +1,12 @@
/* Metro module 648; source: ../discord_common/js/packages/analytics-utils/AnalyticsSchema.tsx; dependencies: [482, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../shared/Constants.tsx'; /* Metro dependency 482 */
function _fun7348(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:698:6, offset: 0x00d15327, size: 4030 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(482) /* metro dependency 482: Constants */).WebAnalyticsEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/AnalyticsSchema.tsx');
(ConstantsModule).WebAnalyticsEvents;
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/analytics-utils/AnalyticsSchema.tsx');
exports.ImpressionNames = {ACCOUNT_REVERT_CHANGE_PASSWORD: 'impression_account_revert_change_password',
ACCOUNT_REVERT_EXPLAINER: 'impression_account_revert_explainer',
ACCOUNT_REVERT_SUCCESS: 'impression_account_revert_success', ACTIVITIES: 'impression_activities',
@@ -285,3 +288,4 @@ function _fun7348(global, require, importDefault, importAll, module, exports, de
USER_VERIFY_RESEND: 'network_action_user_verify_resend', WEBAUTHN_REGISTER: 'network_action_webauthn_register'};
}
global.__d(_fun7348, 648, [482, 2]) /* metro module 648, dependencies: [482, 2] */;
@@ -1,46 +1,49 @@
/* Metro module 643; source: ../discord_common/js/packages/analytics-utils/AnalyticsTrackingActionCreators.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun7332(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:693:6, offset: 0x00d14c9b, size: 85 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/AnalyticsTrackingActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/analytics-utils/AnalyticsTrackingActionCreators.tsx');
exports.queueTrackingEventMaker = function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
return _fun7334;
};
function queueTrackingEventMaker(a0, a1) { // fn#7333, offset: 0x00d14cf0, size: 23 bytes, params: 3, frame: 2
let env0_0 = a0;
let env0_1 = a1;
return function(a0, a1, a2) {
var env0_0 = a0;
var env0_1 = a1;
var env0_2 = a2;
var Promise = global.Promise;
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
var value2 = new Promise(_fun7335);
return value2 instanceof Object ? value2 : value;
};
function _fun7334(a0, a1, a2) { // fn#7334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:693:240, offset: 0x00d14d07, size: 58 bytes, params: 4, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun7335);
return promise instanceof Object ? promise : value;
function _fun7335(a0) { // fn#7335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:693:276, offset: 0x00d14d41, size: 127 bytes, params: 2, frame: 17
const binding = env1_0;
const dispatch = binding.dispatch;
const value2 = undefined;
const flush = importDefault == null ? value2 : importDefault.flush;
Reflect.apply(dispatch, binding, [{type: require, event: env0_0, properties: require, flush: flush != null && flush,
fingerprint: importDefault == null ? value2 : importDefault.fingerprint, resolve: a0}]);
return value2;
}
}
}
}
function queueTrackingEventMaker(a0, a1) { // fn#7333, offset: 0x00d14cf0, size: 23 bytes, params: 3, frame: 2
let env0_0 = a0;
let env0_1 = a1;
return function(a0, a1, a2) {
var env0_0 = a0;
var env0_1 = a1;
var env0_2 = a2;
var Promise = global.Promise;
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
var value2 = new Promise(_fun7335);
return value2 instanceof Object ? value2 : value;
};
}
function _fun7334(a0, a1, a2) { // fn#7334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:693:240, offset: 0x00d14d07, size: 58 bytes, params: 4, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun7335);
return promise instanceof Object ? promise : value;
}
function _fun7335(a0) { // fn#7335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:693:276, offset: 0x00d14d41, size: 127 bytes, params: 2, frame: 17
const binding = env1_0;
const dispatch = binding.dispatch;
const value2 = undefined;
const flush = importDefault == null ? value2 : importDefault.flush;
Reflect.apply(dispatch, binding, [{type: require, event: env0_0, properties: require, flush: flush != null && flush,
fingerprint: importDefault == null ? value2 : importDefault.fingerprint, resolve: a0}]);
return value2;
}
global.__d(_fun7332, 643, [2]) /* metro module 643, dependencies: [2] */;
@@ -1,6 +1,16 @@
/* Metro module 481; source: ../discord_common/js/packages/analytics-utils/AnalyticsTrackingStore.tsx; dependencies: [6, 7, 15, 17, 18, 482, 487, 490, 491, 507, 566, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../shared/Constants.tsx'; /* Metro dependency 482 */
import * as IdGeneratorModule from '../id-generator/IdGenerator.tsx'; /* Metro dependency 487 */
import * as HTTPUtilsModule from '../http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
function _fun6189(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:6, offset: 0x00cefc2c, size: 502 bytes, params: 8, frame: 20
var object2;
let env0_0 = require;
const incrementMetric = function(a0) {
var value = a1;
@@ -8,32 +18,24 @@ function _fun6189(global, require, importDefault, importAll, module, exports, de
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const constantsModule = require(482) /* metro dependency 482: Constants */;
const env0_8 = constantsModule.TelemetryEndpoints;
const env0_9 = constantsModule.TelemetryEvents;
object2 = {'FREQUENCY': 3600000, 'MIN_DELAY': 60000, 'MAX_DELAY': 3600000};
const env0_10 = object2.FREQUENCY;
const env0_11 = object2.MIN_DELAY;
const env0_12 = object2.MAX_DELAY;
object = {'FREQUENCY': 3600000, 'MIN_DELAY': 60000, 'MAX_DELAY': 3600000};
const env0_10 = object.FREQUENCY;
const env0_11 = object.MIN_DELAY;
const env0_12 = object.MAX_DELAY;
const Number = global.Number;
const env0_21 = Number.MAX_SAFE_INTEGER;
const env0_30 = global.window.requestIdleCallback ?? (function(a0) {
var env0_0 = a0;
return global.setImmediate(_fun6195);
});
const IdGenerator = (require(487) /* metro dependency 487: IdGenerator */).IdGenerator;
const IdGenerator = (IdGeneratorModule).IdGenerator;
const idGenerator = new IdGenerator();
const env0_33 = [];
const defaultGetSessionId = function() {
var Promise = global.Promise;
return Promise.resolve({sessionId: undefined});
};
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/AnalyticsTrackingStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/analytics-utils/AnalyticsTrackingStore.tsx');
exports.AnalyticsActionHandlers = {handleConnectionOpen: function() {
}, handleConnectionClosed: function() {
}, handleFingerprint: function() {
@@ -41,353 +43,359 @@ function _fun6189(global, require, importDefault, importAll, module, exports, de
}, handleSetAnalyticsToken: function() {
}};
exports.analyticsTrackingStoreMaker = analyticsTrackingStoreMaker;
}
function _isNativeReflectConstruct_6190() { // fn#6190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:207, offset: 0x00cefe22, size: 94 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_6190_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _isNativeReflectConstruct_6190() { // fn#6190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:207, offset: 0x00cefe22, size: 94 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() {
function _fun6194(a0) { // fn#6194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:703, offset: 0x00cefe95, size: 31 bytes, params: 2, frame: 11
const env0_0 = a0;
return global.setImmediate(_fun6195);
function _fun6195() { // fn#6195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:720, offset: 0x00cefeb4, size: 15 bytes, params: 1, frame: 9
return env0_0();
}
}
function analyticsTrackingStoreMaker({dispatcher, actionHandler, getFingerprint, getSessionId = defaultGetSessionId, TRACKING_URL, drainTimeoutOverride, waitFor, scheduleWhenIdle = env0_30, getLaunchSignature = function() {
return null;
}}) { // fn#6202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1133, offset: 0x00cefee0, size: 346 bytes, params: 2, frame: 17
getLaunchSignature = drainTimeoutOverride ?? 1500;
env0_32.handleConnectionOpen = handleConnectionOpen_6215;
env0_32.handleConnectionClosed = function() {
drainEventsQueue();
stopTelemetryHeartbeat();
env1_28 = null;
env1_29 = null;
return false;
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_6190_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun6194(a0) { // fn#6194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:703, offset: 0x00cefe95, size: 31 bytes, params: 2, frame: 11
const env0_0 = a0;
return global.setImmediate(_fun6195);
}
function analyticsTrackingStoreMaker({dispatcher, actionHandler, getFingerprint, getSessionId = defaultGetSessionId, TRACKING_URL, drainTimeoutOverride, waitFor, scheduleWhenIdle = env0_30, getLaunchSignature = function() {
return null;
}}) { // fn#6202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1133, offset: 0x00cefee0, size: 346 bytes, params: 2, frame: 17
getLaunchSignature = drainTimeoutOverride ?? 1500;
env0_32.handleConnectionOpen = handleConnectionOpen_6215;
env0_32.handleConnectionClosed = function() {
drainEventsQueue();
stopTelemetryHeartbeat();
env1_28 = null;
env1_29 = null;
return false;
};
env0_32.handleFingerprint = function() {
drainEventsQueue();
return false;
};
env0_32.handleTrack = handleTrack_6222;
env0_32.handleSetAnalyticsToken = handleSetAnalyticsToken_6224;
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
value = _fun6225(Store);
value.displayName = 'AnalyticsTrackingStore';
const value2 = Object.create(value.prototype, {constructor: {value: value}});
value = new value(dispatcher, actionHandler);
return value instanceof Object ? value : value2;
}
function canDrain() { // fn#6204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1319, owner: analyticsTrackingStoreMaker.canDrain, offset: 0x00cf003a, size: 63 bytes, params: 1, frame: 12
const value = environment.__proto__;
return env1_33.length !== 0 && (env1_29 != null ? env1_28 != null : getFingerprint() != null);
}
function scheduleDrain({shouldFlushOnNextTick}) { // fn#6205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1388, owner: analyticsTrackingStoreMaker.scheduleDrain, offset: 0x00cf0079, size: 106 bytes, params: 2, frame: 16
var value5;
var value6;
shouldFlushOnNextTick = !(shouldFlushOnNextTick === undefined) && shouldFlushOnNextTick;
const value = environment.__proto__;
if (env1_34 == null && canDrain()) {
if (shouldFlushOnNextTick) {
value6 = global.setTimeout(drainEventsQueue, 0);
} else {
value5 = env0_4(drainEventsQueue, {timeout: env1_13});
env0_32.handleFingerprint = function() {
drainEventsQueue();
return false;
};
env0_32.handleTrack = handleTrack_6222;
env0_32.handleSetAnalyticsToken = handleSetAnalyticsToken_6224;
const Store = (Flux).Store;
value = _fun6225(Store);
value.displayName = 'AnalyticsTrackingStore';
const value2 = Object.create(value.prototype, {constructor: {value: value}});
value = new value(dispatcher, actionHandler);
return value instanceof Object ? value : value2;
function canDrain() { // fn#6204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1319, owner: analyticsTrackingStoreMaker.canDrain, offset: 0x00cf003a, size: 63 bytes, params: 1, frame: 12
const value = environment.__proto__;
return env1_33.length !== 0 && (env1_29 != null ? env1_28 != null : getFingerprint() != null);
}
}
}
function drainEventsQueue() { // fn#6206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1531, owner: analyticsTrackingStoreMaker.drainEventsQueue, offset: 0x00cf00e3, size: 191 bytes, params: 1, frame: 20
var environment;
var value3;
var incrementMetricBinding;
var length;
var Math;
let value = environment.__proto__;
if (canDrain()) {
value3 = env1_33.slice();
env1_33 = [];
incrementMetricBinding = incrementMetric;
env1_20 = incrementMetricBinding(env1_20);
length = value3.length;
Math = global.Math;
env1_21 = Math.min(MAX_SAFE_INTEGER, length);
Math = global.Math;
env1_22 = Math.max(env1_22, length);
env1_23 = incrementMetricBinding(env1_23, length);
value = submitEventsImmediately(value3);
value.then(_fun6207, _fun6209);
return value;
}
const Promise = global.Promise;
return Promise.resolve();
}
function submitEventsImmediately(a0) { // fn#6210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1908, owner: analyticsTrackingStoreMaker.submitEventsImmediately, offset: 0x00cf0243, size: 225 bytes, params: 2, frame: 17
let value = a1;
const r7 = value !== undefined ? value : TRACKING_URL;
const Date = global.Date;
const env0_0 = Date.now();
value = a0.map(_fun6211);
const object2 = {};
if (!env1_25) {
object2['x-science-test'] = (require(491) /* metro dependency 491 */).v4();
}
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
return HTTP.post({url: r7, headers: object2, body: {token: env1_28, events: value}, retries: 3,
rejectWithError: false}).then(_fun6212);
}
function sendTelemetryEvent() { // fn#6213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:2273, owner: analyticsTrackingStoreMaker.sendTelemetryEvent, offset: 0x00cf03a7, size: 336 bytes, params: 1, frame: 17
const object3 = {};
let CLIENT_TELEMETRY = TelemetryEvents.CLIENT_TELEMETRY;
object3.type = CLIENT_TELEMETRY;
const object4 = {};
let Date = global.Date;
object4.client_track_timestamp = Date.now();
object4.rpc_success_count = env1_16;
object4.rpc_failure_count = env1_17;
object4.first_seen_event_sequence_number = env1_18;
object4.last_seen_event_sequence_number = env1_14;
object4.telemetry_period_start_timestamp = env1_19;
Date = global.Date;
object4.telemetry_period_end_timestamp = Date.now();
object4.event_queue_rejection_count = env1_15;
object4.event_queue_batch_count = env1_20;
let Number = global.Number;
const MAX_SAFE_INTEGER3 = Number.MAX_SAFE_INTEGER;
const value2 = 0;
const MAX_SAFE_INTEGER2 = MAX_SAFE_INTEGER === MAX_SAFE_INTEGER3 ? value2 : MAX_SAFE_INTEGER;
object4.event_queue_batch_min_size = MAX_SAFE_INTEGER2;
object4.event_queue_batch_max_size = env1_22;
object4.event_queue_batch_avg_size = env1_20 > value2 ? env1_23 / env1_20 : value2;
object4.science_request_id = env1_27;
object4.science_response = env1_26;
object4.launch_signature = env0_5();
object3.properties = object4;
Number = global.Number;
env1_21 = Number.MAX_SAFE_INTEGER;
Date = global.Date;
env1_19 = Date.now();
const submitEventsImmediatelyBinding = submitEventsImmediately;
CLIENT_TELEMETRY = TelemetryEndpoints.CLIENT_TELEMETRY;
return submitEventsImmediatelyBinding([object3], CLIENT_TELEMETRY);
}
function stopTelemetryHeartbeat() { // fn#6214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:2968, owner: analyticsTrackingStoreMaker.stopTelemetryHeartbeat, offset: 0x00cf04f7, size: 107 bytes, params: 1, frame: 13
var type;
if (env1_24 != null) {
type = env1_24.type;
if (type === 'timeout') {
global.clearTimeout(env1_24.id);
} else if (type === 'interval') {
global.clearInterval(env1_24.id);
} else {
env1_24.type;
function scheduleDrain({shouldFlushOnNextTick}) { // fn#6205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1388, owner: analyticsTrackingStoreMaker.scheduleDrain, offset: 0x00cf0079, size: 106 bytes, params: 2, frame: 16
var value5;
var value6;
shouldFlushOnNextTick = !(shouldFlushOnNextTick === undefined) && shouldFlushOnNextTick;
const value = environment.__proto__;
if (env1_34 == null && canDrain()) {
if (shouldFlushOnNextTick) {
value6 = global.setTimeout(drainEventsQueue, 0);
} else {
value5 = CreateClass(drainEventsQueue, {timeout: env1_13});
}
}
}
}
}
function analyticsTrackingStoreMakerHandleConnectionOpen({analyticsToken, user}) { // fn#6215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3216, owner: analyticsTrackingStoreMaker.handleConnectionOpen, offset: 0x00cf0562, size: 84 bytes, params: 2, frame: 13
var environment;
var value;
if (analyticsToken != null) {
value = environment.__proto__;
}
let id = user.id;
if (id != null) {
id = user.id;
value = environment.__proto__;
}
startTelemetryHeartbeat();
scheduleDrain({shouldFlushOnNextTick: false});
return false;
}
function drainEventsQueue() { // fn#6206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1531, owner: analyticsTrackingStoreMaker.drainEventsQueue, offset: 0x00cf00e3, size: 191 bytes, params: 1, frame: 20
var environment;
var value3;
var incrementMetricBinding;
var length;
var Math;
let value = environment.__proto__;
if (canDrain()) {
value3 = items2.slice();
items2 = [];
incrementMetricBinding = incrementMetric;
env1_20 = incrementMetricBinding(env1_20);
length = value3.length;
Math = global.Math;
env1_21 = Math.min(MAX_SAFE_INTEGER, length);
Math = global.Math;
env1_22 = Math.max(env1_22, length);
env1_23 = incrementMetricBinding(env1_23, length);
value = submitEventsImmediately(value3);
value.then(_fun6207, _fun6209);
return value;
}
const Promise = global.Promise;
return Promise.resolve();
function _fun6207() { // fn#6207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1766, offset: 0x00cf01a2, size: 48 bytes, params: 1, frame: 12
env0_0.forEach(function(a0) {
if (a0.resolve != null) {
a0.resolve();
}
});
env2_16 = incrementMetric(env2_16);
}
function analyticsTrackingStoreMakerHandleTrack({event, properties, flush, fingerprint, resolve}) { // fn#6222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3881, owner: analyticsTrackingStoreMaker.handleTrack, offset: 0x00cf0722, size: 86 bytes, params: 2, frame: 11
properties().then(_fun6223);
return false;
}
function _fun6209(a0) { // fn#6209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1842, offset: 0x00cf01ed, size: 86 bytes, params: 2, frame: 17
const value = a0;
const binding = env2_33;
const unshift = binding.unshift;
const binding2 = env0_0;
const items2 = [];
arraySpread(items2, binding2, 0, undefined);
apply(unshift, items2, binding, undefined);
env2_17 = incrementMetric(env2_17);
(value.body || value).message;
}
function analyticsTrackingStoreMakerHandleSetAnalyticsToken({analyticsToken, userId}) { // fn#6224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:4498, owner: analyticsTrackingStoreMaker.handleSetAnalyticsToken, offset: 0x00cf08d8, size: 72 bytes, params: 2, frame: 14
if (env1_28 == null && analyticsToken != null) {
scheduleDrain({shouldFlushOnNextTick: false});
}
return false;
}
function _fun6225(a0) { // fn#6225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:4623, offset: 0x00cf0920, size: 68 bytes, params: 2, frame: 15
const closure = AnalyticsTrackingStore;
env1_7(closure, a0);
return env1_4(closure, [{key: 'initialize', value: function() {
var r4;
var waitFor2;
var items;
var waitForBinding = waitFor;
if (waitForBinding != null) {
waitFor2 = this.waitFor;
waitForBinding = waitFor;
items = [];
arraySpread(items, waitForBinding, 0, r4);
apply(waitFor2, items, this, r4);
}
}}]);
}
function _fun6207() { // fn#6207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1766, offset: 0x00cf01a2, size: 48 bytes, params: 1, frame: 12
env0_0.forEach(function(a0) {
if (a0.resolve != null) {
a0.resolve();
function submitEventsImmediately(a0) { // fn#6210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1908, owner: analyticsTrackingStoreMaker.submitEventsImmediately, offset: 0x00cf0243, size: 225 bytes, params: 2, frame: 17
let value = a1;
const r7 = value !== undefined ? value : TRACKING_URL;
const Date = global.Date;
const env0_0 = Date.now();
value = a0.map(_fun6211);
const object = {};
if (!env1_25) {
object['x-science-test'] = (require(491) /* metro dependency 491 */).v4();
}
const HTTP = (HTTPUtilsModule).HTTP;
return HTTP.post({url: r7, headers: object, body: {token: env1_28, events: value}, retries: 3,
rejectWithError: false}).then(_fun6212);
function _fun6211(a0) { // fn#6211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1974, offset: 0x00cf0324, size: 59 bytes, params: 2, frame: 13
const object = {};
copyDataProperties(object, a0, undefined);
const object2 = {};
copyDataProperties(object2, a0.properties, undefined);
object2['client_send_timestamp'] = env0_0;
object['properties'] = object2;
return object;
}
function _fun6212(a0) { // fn#6212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:2181, offset: 0x00cf035f, size: 72 bytes, params: 2, frame: 6
var r1;
var r2;
var value;
if (env0_1['x-science-test']) {
value = null;
r1 = value == a0 || value == a0.headers ? undefined : a0.headers['x-science-test'];
r2 = value != r1 ? r1 : value;
value = environment.__proto__.__proto__;
}
return a0;
}
}
});
env2_16 = incrementMetric(env2_16);
}
function _fun6209(a0) { // fn#6209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1842, offset: 0x00cf01ed, size: 86 bytes, params: 2, frame: 17
const value = a0;
const binding = env2_33;
const unshift = binding.unshift;
const binding2 = env0_0;
const items2 = [];
arraySpread(items2, binding2, 0, undefined);
apply(unshift, items2, binding, undefined);
env2_17 = incrementMetric(env2_17);
(value.body || value).message;
}
function sendTelemetryEvent() { // fn#6213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:2273, owner: analyticsTrackingStoreMaker.sendTelemetryEvent, offset: 0x00cf03a7, size: 336 bytes, params: 1, frame: 17
const object = {};
let CLIENT_TELEMETRY = TelemetryEvents.CLIENT_TELEMETRY;
object.type = CLIENT_TELEMETRY;
const object2 = {};
let Date = global.Date;
object2.client_track_timestamp = Date.now();
object2.rpc_success_count = env1_16;
object2.rpc_failure_count = env1_17;
object2.first_seen_event_sequence_number = env1_18;
object2.last_seen_event_sequence_number = env1_14;
object2.telemetry_period_start_timestamp = env1_19;
Date = global.Date;
object2.telemetry_period_end_timestamp = Date.now();
object2.event_queue_rejection_count = env1_15;
object2.event_queue_batch_count = env1_20;
let Number = global.Number;
const MAX_SAFE_INTEGER3 = Number.MAX_SAFE_INTEGER;
const value2 = 0;
const MAX_SAFE_INTEGER2 = MAX_SAFE_INTEGER === MAX_SAFE_INTEGER3 ? value2 : MAX_SAFE_INTEGER;
object2.event_queue_batch_min_size = MAX_SAFE_INTEGER2;
object2.event_queue_batch_max_size = env1_22;
object2.event_queue_batch_avg_size = env1_20 > value2 ? env1_23 / env1_20 : value2;
object2.science_request_id = env1_27;
object2.science_response = env1_26;
object2.launch_signature = PossibleConstructorReturn();
object.properties = object2;
Number = global.Number;
env1_21 = Number.MAX_SAFE_INTEGER;
Date = global.Date;
env1_19 = Date.now();
const submitEventsImmediatelyBinding = submitEventsImmediately;
CLIENT_TELEMETRY = TelemetryEndpoints.CLIENT_TELEMETRY;
return submitEventsImmediatelyBinding([object], CLIENT_TELEMETRY);
}
function _fun6211(a0) { // fn#6211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:1974, offset: 0x00cf0324, size: 59 bytes, params: 2, frame: 13
const object3 = {};
copyDataProperties(object3, a0, undefined);
const object4 = {};
copyDataProperties(object4, a0.properties, undefined);
object4['client_send_timestamp'] = env0_0;
object3['properties'] = object4;
return object3;
}
function stopTelemetryHeartbeat() { // fn#6214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:2968, owner: analyticsTrackingStoreMaker.stopTelemetryHeartbeat, offset: 0x00cf04f7, size: 107 bytes, params: 1, frame: 13
var type;
if (env1_24 != null) {
type = env1_24.type;
if (type === 'timeout') {
global.clearTimeout(env1_24.id);
} else if (type === 'interval') {
global.clearInterval(env1_24.id);
} else {
env1_24.type;
}
}
}
function analyticsTrackingStoreMakerHandleConnectionOpen({analyticsToken, user}) { // fn#6215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3216, owner: analyticsTrackingStoreMaker.handleConnectionOpen, offset: 0x00cf0562, size: 84 bytes, params: 2, frame: 13
var environment;
var value;
if (analyticsToken != null) {
value = environment.__proto__;
}
let id = user.id;
if (id != null) {
id = user.id;
value = environment.__proto__;
}
startTelemetryHeartbeat();
scheduleDrain({shouldFlushOnNextTick: false});
return false;
function startTelemetryHeartbeat() { // fn#6216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3295, owner: analyticsTrackingStoreMaker.handleConnectionOpen.startTelemetryHeartbeat, offset: 0x00cf05b6, size: 120 bytes, params: 1, frame: 17
var Math;
if (env2_24 == null) {
Math = global.Math;
({type: 'timeout'}).id = global.setTimeout(function() {
sendTelemetryEvent();
scheduleNextHeartbeat();
}, Math.floor(global.Math.random() * (MAX_DELAY - MIN_DELAY) + MIN_DELAY));
}
function scheduleNextHeartbeat() { // fn#6217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3404, owner: analyticsTrackingStoreMaker.handleConnectionOpen.startTelemetryHeartbeat.scheduleNextHeartbeat, offset: 0x00cf062e, size: 137 bytes, params: 1, frame: 17
const value2 = 0.1 * FREQUENCY;
let Math = global.Math;
const floor = Math.floor;
const Math2 = global.Math;
const value4 = Reflect.apply(floor, Math, [Math2.random() * value2 * 2]) - value2;
Math = global.Math;
({type: 'timeout'}).id = global.setTimeout(function() {
sendTelemetryEvent();
scheduleNextHeartbeat();
}, Math.max(FREQUENCY + value4, MIN_DELAY));
}
}
}
function analyticsTrackingStoreMakerHandleTrack({event, properties, flush, fingerprint, resolve}) { // fn#6222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3881, owner: analyticsTrackingStoreMaker.handleTrack, offset: 0x00cf0722, size: 86 bytes, params: 2, frame: 11
properties().then(_fun6223);
return false;
function _fun6223({sessionId}) { // fn#6223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3963, offset: 0x00cf0778, size: 352 bytes, params: 2, frame: 18
var r7;
var r6;
let object = {};
object.type = event;
object.fingerprint = fingerprint;
const object2 = {};
const Date = global.Date;
object2.client_track_timestamp = Date.now();
object2.client_heartbeat_session_id = sessionId;
const binding = env2_14;
object2.event_sequence_number = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
copyDataProperties(object2, properties, undefined);
object.properties = object2;
object.resolve = resolve;
if (env2_29 != null) {
r6 = env2_29;
} else {
r7 = object.fingerprint ?? getFingerprint();
r6 = r7 != null ? (require(490) /* metro dependency 490: FingerprintUtils */).extractId(r7) : null;
}
if (r6 != null) {
object.properties.client_uuid = env2_31.generate(r6);
}
env2_33.push(object);
if (env2_33.length > 10000) {
env2_15 = incrementMetric(env2_15, env2_33.length - 10000);
env2_33 = env2_33.slice(-10000);
}
const scheduleDrainBinding = scheduleDrain;
const flushBinding = flush;
object = {};
if (flushBinding) {
object.shouldFlushOnNextTick = true;
} else {
object.shouldFlushOnNextTick = false;
}
scheduleDrainBinding(object);
}
}
function analyticsTrackingStoreMakerHandleSetAnalyticsToken({analyticsToken, userId}) { // fn#6224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:4498, owner: analyticsTrackingStoreMaker.handleSetAnalyticsToken, offset: 0x00cf08d8, size: 72 bytes, params: 2, frame: 14
if (env1_28 == null && analyticsToken != null) {
scheduleDrain({shouldFlushOnNextTick: false});
}
return false;
}
function _fun6225(a0) { // fn#6225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:4623, offset: 0x00cf0920, size: 68 bytes, params: 2, frame: 15
const AnalyticsTrackingStore2 = AnalyticsTrackingStore;
env1_7(AnalyticsTrackingStore2, a0);
return env1_4(AnalyticsTrackingStore2, [{key: 'initialize', value: function() {
var r4;
var waitFor2;
var items;
var waitForBinding = waitFor;
if (waitForBinding != null) {
waitFor2 = this.waitFor;
waitForBinding = waitFor;
items = [];
arraySpread(items, waitForBinding, 0, r4);
apply(waitFor2, items, this, r4);
}
}}]);
function AnalyticsTrackingStore(a0) { // fn#6226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:4635, offset: 0x00cf0964, size: 139 bytes, params: 2, frame: 19
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env2_3;
binding(this, AnalyticsTrackingStore);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env2_6(AnalyticsTrackingStore);
binding = env2_5;
if (_isNativeReflectConstruct_6190()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env2_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.submitEventsImmediately = submitEventsImmediately;
return value;
}
}
function _fun6212(a0) { // fn#6212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:2181, offset: 0x00cf035f, size: 72 bytes, params: 2, frame: 6
var r1;
var r2;
var value;
if (env0_1['x-science-test']) {
value = null;
r1 = value == a0 || value == a0.headers ? undefined : a0.headers['x-science-test'];
r2 = value != r1 ? r1 : value;
value = environment.__proto__.__proto__;
}
return a0;
}
function startTelemetryHeartbeat() { // fn#6216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3295, owner: analyticsTrackingStoreMaker.handleConnectionOpen.startTelemetryHeartbeat, offset: 0x00cf05b6, size: 120 bytes, params: 1, frame: 17
var Math;
if (env2_24 == null) {
Math = global.Math;
({type: 'timeout'}).id = global.setTimeout(function() {
sendTelemetryEvent();
scheduleNextHeartbeat();
}, Math.floor(global.Math.random() * (MAX_DELAY - MIN_DELAY) + MIN_DELAY));
}
}
function _fun6223({sessionId}) { // fn#6223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3963, offset: 0x00cf0778, size: 352 bytes, params: 2, frame: 18
var r7;
var r6;
let object3 = {};
object3.type = event;
object3.fingerprint = fingerprint;
const object4 = {};
const Date = global.Date;
object4.client_track_timestamp = Date.now();
object4.client_heartbeat_session_id = sessionId;
const binding = env2_14;
object4.event_sequence_number = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
copyDataProperties(object4, properties, undefined);
object3.properties = object4;
object3.resolve = resolve;
if (env2_29 != null) {
r6 = env2_29;
} else {
r7 = object3.fingerprint ?? getFingerprint();
r6 = r7 != null ? (require(490) /* metro dependency 490: FingerprintUtils */).extractId(r7) : null;
}
if (r6 != null) {
object3.properties.client_uuid = env2_31.generate(r6);
}
env2_33.push(object3);
if (env2_33.length > 10000) {
env2_15 = incrementMetric(env2_15, env2_33.length - 10000);
env2_33 = env2_33.slice(-10000);
}
const scheduleDrainBinding = scheduleDrain;
const flushBinding = flush;
object3 = {};
if (flushBinding) {
object3.shouldFlushOnNextTick = true;
} else {
object3.shouldFlushOnNextTick = false;
}
scheduleDrainBinding(object3);
}
function AnalyticsTrackingStore(a0) { // fn#6226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:4635, offset: 0x00cf0964, size: 139 bytes, params: 2, frame: 19
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env2_3;
binding(this, AnalyticsTrackingStore);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env2_6(AnalyticsTrackingStore);
binding = env2_5;
if (_isNativeReflectConstruct_6190()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env2_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.submitEventsImmediately = submitEventsImmediately;
return value;
}
function scheduleNextHeartbeat() { // fn#6217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:522:3404, owner: analyticsTrackingStoreMaker.handleConnectionOpen.startTelemetryHeartbeat.scheduleNextHeartbeat, offset: 0x00cf062e, size: 137 bytes, params: 1, frame: 17
const value2 = 0.1 * FREQUENCY;
let Math = global.Math;
const floor = Math.floor;
const Math2 = global.Math;
const value4 = Reflect.apply(floor, Math, [Math2.random() * value2 * 2]) - value2;
Math = global.Math;
({type: 'timeout'}).id = global.setTimeout(function() {
sendTelemetryEvent();
scheduleNextHeartbeat();
}, Math.max(FREQUENCY + value4, MIN_DELAY));
}
global.__d(_fun6189, 481, [6, 7, 15, 17, 18, 482, 487, 490, 491, 507, 566,
2]) /* metro module 481, dependencies: [6, 7, 15, 17, 18, 482, 487, 490, 491, 507, 566, 2] */;
@@ -1,24 +1,30 @@
/* Metro module 480; source: ../discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx; dependencies: [481, 642, 643, 644, 44, 2, 647, 648, 649] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AnalyticsTrackingStoreModule from './AnalyticsTrackingStore.tsx'; /* Metro dependency 481 */
import * as StandardAnalyticsConstantsModule from './StandardAnalyticsConstants.tsx'; /* Metro dependency 642 */
import * as AnalyticsTrackingActionCreatorsModule from './AnalyticsTrackingActionCreators.tsx'; /* Metro dependency 643 */
import * as AnalyticsSchemaModule from './AnalyticsSchema.tsx'; /* Metro dependency 648 */
function _fun6185(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:521:6, offset: 0x00cef7dd, size: 422 bytes, params: 8, frame: 23
const env0_1 = require;
const closure = isThrottled;
const isThrottled2 = isThrottled;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const analyticsTrackingStoreMaker = (require(481) /* metro dependency 481: AnalyticsTrackingStore */).analyticsTrackingStoreMaker;
const AnalyticsActionHandlers = (require(481) /* metro dependency 481: AnalyticsTrackingStore */).AnalyticsActionHandlers;
const ImpressionTypes = (require(642) /* metro dependency 642: StandardAnalyticsConstants */).ImpressionTypes;
const ImpressionGroups = (require(642) /* metro dependency 642: StandardAnalyticsConstants */).ImpressionGroups;
const analyticsTrackingStoreMaker = (AnalyticsTrackingStoreModule).analyticsTrackingStoreMaker;
const AnalyticsActionHandlers = (AnalyticsTrackingStoreModule).AnalyticsActionHandlers;
const ImpressionTypes = (StandardAnalyticsConstantsModule).ImpressionTypes;
const ImpressionGroups = (StandardAnalyticsConstantsModule).ImpressionGroups;
const env0_4 = {};
const env0_5 = {};
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx');
exports.encodeProperties = (require(647) /* metro dependency 647: encodeProperties */).encodeProperties;
exports.analyticsTrackingStoreMaker = analyticsTrackingStoreMaker;
exports.AnalyticsActionHandlers = AnalyticsActionHandlers;
exports.ImpressionTypes = ImpressionTypes;
exports.ImpressionGroups = ImpressionGroups;
const ImpressionNames = (require(648) /* metro dependency 648: AnalyticsSchema */).ImpressionNames;
const ImpressionNames = (AnalyticsSchemaModule).ImpressionNames;
exports.ImpressionNames = ImpressionNames;
const NetworkActionNames = (require(648) /* metro dependency 648: AnalyticsSchema */).NetworkActionNames;
const NetworkActionNames = (AnalyticsSchemaModule).NetworkActionNames;
exports.NetworkActionNames = NetworkActionNames;
const getSuperProperties = (require(649) /* metro dependency 649: getSuperProperties */).getSuperProperties;
exports.getSuperProperties = getSuperProperties;
@@ -31,108 +37,110 @@ function _fun6185(global, require, importDefault, importAll, module, exports, de
exports.getDevice = getDevice;
const getCampaignParams = (require(649) /* metro dependency 649: getSuperProperties */).getCampaignParams;
exports.getCampaignParams = getCampaignParams;
exports.isThrottled = closure;
exports.isThrottled = isThrottled2;
exports.trackMaker = trackMaker;
}
function isThrottled(a0) { // fn#6186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:521:231, offset: 0x00cef983, size: 54 bytes, params: 2, frame: 11
return env0_4[a0] != null && env0_4[a0] > global.Date.now();
}
function trackMaker({addBreadcrumb, analyticEventConfigs, dispatcher, TRACK_ACTION_NAME}) { // fn#6187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:521:922, offset: 0x00cef9b9, size: 85 bytes, params: 2, frame: 15
const env0_2 = (require(643) /* metro dependency 643: AnalyticsTrackingActionCreators */).queueTrackingEventMaker(dispatcher,
TRACK_ACTION_NAME);
return trackMakerTrack;
}
function trackMakerTrack(a0, a1) { // fn#6188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:521:1050, owner: trackMaker.track, offset: 0x00cefa0e, size: 542 bytes, params: 3, frame: 25
var r6;
var items;
var value6;
var throttlePercent;
var value10;
var value11;
const value = a1;
const value2 = a2;
const r3 = value2 !== undefined ? value2 : {};
const isServerRendering = env1_0.isServerRendering;
const value4 = null;
if (value4 != isServerRendering) {
if (env1_0.isServerRendering === true) {
return global.Promise.resolve();
}
function isThrottled(a0) { // fn#6186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:521:231, offset: 0x00cef983, size: 54 bytes, params: 2, frame: 11
return env0_4[a0] != null && env0_4[a0] > global.Date.now();
}
const r11 = value4 != value ? value : {};
const property = analyticEventConfigs[a0];
if (typeof property !== 'function') {
r6 = property;
} else {
value6 = property(r11);
r6 = value4 != value6 ? value6 : value4;
}
if (value4 != r6) {
if ('throttlePeriod' in r6) {
items = [a0];
arraySpread(items, r6.throttleKeys(r11), 1, undefined);
value10 = items.join('_');
if (isThrottled(value10)) {
return global.Promise.resolve();
function trackMaker({addBreadcrumb, analyticEventConfigs, dispatcher, TRACK_ACTION_NAME}) { // fn#6187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:521:922, offset: 0x00cef9b9, size: 85 bytes, params: 2, frame: 15
const env0_2 = (AnalyticsTrackingActionCreatorsModule).queueTrackingEventMaker(dispatcher,
TRACK_ACTION_NAME);
return track;
function track(a0, a1) { // fn#6188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:521:1050, owner: trackMaker.track, offset: 0x00cefa0e, size: 542 bytes, params: 3, frame: 25
var r6;
var items2;
var value6;
var throttlePercent;
var value10;
var value11;
const value = a1;
const value2 = a2;
const r3 = value2 !== undefined ? value2 : {};
const isServerRendering = env1_0.isServerRendering;
const value4 = null;
if (value4 != isServerRendering) {
if (env1_0.isServerRendering === true) {
return global.Promise.resolve();
}
}
throttlePercent = r6.throttlePercent;
if (typeof throttlePercent !== 'number') {
if (r6.deduplicate) {
if ((importDefault(644) /* metro dependency 644 */)(env1_5[value10], r11)) {
const r11 = value4 != value ? value : {};
const property = analyticEventConfigs[a0];
if (typeof property !== 'function') {
r6 = property;
} else {
value6 = property(r11);
r6 = value4 != value6 ? value6 : value4;
}
if (value4 != r6) {
if ('throttlePeriod' in r6) {
items2 = [a0];
arraySpread(items2, r6.throttleKeys(r11), 1, undefined);
value10 = items2.join('_');
if (isThrottled(value10)) {
return global.Promise.resolve();
}
env1_5[value10] = r11;
throttlePercent = r6.throttlePercent;
if (typeof throttlePercent !== 'number') {
if (r6.deduplicate) {
if ((importDefault(644) /* metro dependency 644 */)(env1_5[value10], r11)) {
return global.Promise.resolve();
}
env1_5[value10] = r11;
env1_4[value10] = global.Date.now() + r6.throttlePeriod;
if (value4 != addBreadcrumb) {
addBreadcrumb(a0);
}
return env0_2(a0, value, r3);
}
env1_4[value10] = global.Date.now() + r6.throttlePeriod;
if (value4 != addBreadcrumb) {
addBreadcrumb(a0);
}
return env0_2(a0, value, r3);
}
value11 = global.Math.random();
throttlePercent = r6.throttlePercent;
if (value11 > throttlePercent) {
return global.Promise.resolve();
}
if (r6.deduplicate) {
if ((importDefault(644) /* metro dependency 644 */)(env1_5[value10], r11)) {
return global.Promise.resolve();
}
env1_5[value10] = r11;
env1_4[value10] = global.Date.now() + r6.throttlePeriod;
if (value4 != addBreadcrumb) {
addBreadcrumb(a0);
}
return env0_2(a0, value, r3);
}
env1_4[value10] = global.Date.now() + r6.throttlePeriod;
if (value4 != addBreadcrumb) {
addBreadcrumb(a0);
}
return env0_2(a0, value, r3);
}
env1_4[value10] = global.Date.now() + r6.throttlePeriod;
if (value4 != addBreadcrumb) {
addBreadcrumb(a0);
if ('throttlePercent' in r6) {
if (global.Math.random() > r6.throttlePercent) {
return global.Promise.resolve();
}
if (value4 != addBreadcrumb) {
addBreadcrumb(a0);
}
return env0_2(a0, value, r3);
}
return env0_2(a0, value, r3);
}
value11 = global.Math.random();
throttlePercent = r6.throttlePercent;
if (value11 > throttlePercent) {
return global.Promise.resolve();
}
if (r6.deduplicate) {
if ((importDefault(644) /* metro dependency 644 */)(env1_5[value10], r11)) {
return global.Promise.resolve();
}
env1_5[value10] = r11;
env1_4[value10] = global.Date.now() + r6.throttlePeriod;
if (value4 != addBreadcrumb) {
addBreadcrumb(a0);
}
return env0_2(a0, value, r3);
}
env1_4[value10] = global.Date.now() + r6.throttlePeriod;
if (value4 != addBreadcrumb) {
addBreadcrumb(a0);
}
return env0_2(a0, value, r3);
}
if ('throttlePercent' in r6) {
if (global.Math.random() > r6.throttlePercent) {
return global.Promise.resolve();
(importDefault(44) /* metro dependency 44 */)(false, 'Unsupported analytics event config: ' + r6);
}
if (value4 != addBreadcrumb) {
addBreadcrumb(a0);
}
return env0_2(a0, value, r3);
}
(importDefault(44) /* metro dependency 44 */)(false, 'Unsupported analytics event config: ' + r6);
}
if (value4 != addBreadcrumb) {
addBreadcrumb(a0);
}
return env0_2(a0, value, r3);
}
global.__d(_fun6185, 480, [481, 642, 643, 644, 44, 2, 647, 648,
649]) /* metro module 480, dependencies: [481, 642, 643, 644, 44, 2, 647, 648, 649] */;
@@ -1,8 +1,10 @@
/* Metro module 642; source: ../discord_common/js/packages/analytics-utils/StandardAnalyticsConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun7331(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:692:6, offset: 0x00d14b45, size: 342 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/StandardAnalyticsConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/analytics-utils/StandardAnalyticsConstants.tsx');
exports.ImpressionGroups = {CHANNEL_ADD_FLOW: 'channel_add_flow', CONTACT_SYNC_FLOW: 'contact_sync_flow',
DIRECTORY_GUILD_ADD_FLOW: 'directory_guild_add_flow', GUILD_ADD_FLOW: 'guild_add_flow',
GUILD_ADD_NUF: 'guild_add_nuf', USER_VERIFICATION_MODAL_FLOW: 'user_verification_modal_flow',
@@ -14,3 +16,4 @@ function _fun7331(global, require, importDefault, importAll, module, exports, de
HALFSHEET: 'halfsheet'};
}
global.__d(_fun7331, 642, [2]) /* metro module 642, dependencies: [2] */;
@@ -1,10 +1,14 @@
/* Metro module 653; source: ../discord_common/js/packages/analytics-utils/clientLaunchId.tsx; dependencies: [491, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module00491Module from '../../../../../by-id/module-00491.js'; /* Metro dependency 491 */
function _fun7367(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:703:6, offset: 0x00d16ed1, size: 100 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(491) /* metro dependency 491 */;
let value = Module00491Module;
value = value.v4();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/clientLaunchId.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/analytics-utils/clientLaunchId.tsx');
exports.clientLaunchId = value;
}
global.__d(_fun7367, 653, [491, 2]) /* metro module 653, dependencies: [491, 2] */;
@@ -1,8 +1,10 @@
/* Metro module 647; source: ../discord_common/js/packages/analytics-utils/encodeProperties.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun7346(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:697:6, offset: 0x00d152d2, size: 85 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/encodeProperties.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/analytics-utils/encodeProperties.tsx');
exports.encodeProperties = function(a0) {
var property;
var from;
@@ -23,3 +25,4 @@ function _fun7346(global, require, importDefault, importAll, module, exports, de
};
}
global.__d(_fun7346, 647, [2]) /* metro module 647, dependencies: [2] */;
@@ -1,4 +1,13 @@
/* Metro module 649; source: ../discord_common/js/packages/analytics-utils/getSuperProperties.tsx; dependencies: [650, 652, 653, 654, 655, 27, 656, 657, 658, 587, 659, 647, 2] */
import Module00654 from '../../../../../by-id/module-00654.js'; /* Metro dependency 654 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as StorageModule from '../storage/Storage.tsx'; /* Metro dependency 587 */
import * as GetSystemLocaleModule from '../i18n/getSystemLocale.tsx'; /* Metro dependency 650 */
import * as ClientLaunchIdModule from './clientLaunchId.tsx'; /* Metro dependency 653 */
import * as NativeMetaQuestModuleModule from '../rtn-codegen/js/NativeMetaQuestModule.tsx'; /* Metro dependency 655 */
import * as SessionStorageModule from '../storage/SessionStorage.tsx'; /* Metro dependency 659 */
function _fun7349(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:6, offset: 0x00d162e5, size: 994 bytes, params: 8, frame: 33
var ua;
var version;
@@ -11,15 +20,15 @@ function _fun7349(global, require, importDefault, importAll, module, exports, de
var appArch;
var releaseChannel;
var systemLocale;
const clientLaunchId = (require(653) /* metro dependency 653: clientLaunchId */).clientLaunchId;
const clientLaunchId = (ClientLaunchIdModule).clientLaunchId;
var name;
var binding;
var metadata;
var closure4;
var value14;
var getCachedSuperProperties2;
var cachedSuperProperties2;
var error;
const env0_0 = require;
const closure = getOS_7351;
const getOS_73512 = getOS_7351;
const closure2 = function() {
var r0;
var property;
@@ -34,12 +43,12 @@ function _fun7349(global, require, importDefault, importAll, module, exports, de
}
return r0;
};
const closure3 = extendSuperProperties;
const extendSuperProperties2 = extendSuperProperties;
const Object = global.Object;
let object2 = {value: true};
Object.defineProperty(exports, '__esModule', object2);
let object = {value: true};
Object.defineProperty(exports, '__esModule', object);
const value = undefined;
const getSystemLocale = (require(650) /* metro dependency 650: getSystemLocale */).getSystemLocale;
const getSystemLocale = (GetSystemLocaleModule).getSystemLocale;
const DiscordNative = global.window.DiscordNative;
if (DiscordNative != null) {
app = DiscordNative.app;
@@ -54,18 +63,18 @@ function _fun7349(global, require, importDefault, importAll, module, exports, de
app = DiscordNative.app;
releaseChannel = app.getReleaseChannel();
systemLocale = getSystemLocale();
object2 = {os: platform === 'win32' ? 'Windows' : platform === 'darwin' ? 'Mac OS X' : platform === 'linux' ? 'Linux' : platform,
object = {os: platform === 'win32' ? 'Windows' : platform === 'darwin' ? 'Mac OS X' : platform === 'linux' ? 'Linux' : platform,
browser: 'Discord Client'};
object2.release_channel = releaseChannel || 'unknown';
object2.client_version = version2;
object2.os_version = release;
object2.os_arch = arch;
object2.app_arch = appArch;
object2.system_locale = systemLocale;
object2.has_client_mods = (require(652) /* metro dependency 652: ClientModDetectionUtils */).usesClientMods();
object2.client_launch_id = clientLaunchId;
var env0_3 = object2;
object.release_channel = releaseChannel || 'unknown';
object.client_version = version2;
object.os_version = release;
object.os_arch = arch;
object.app_arch = appArch;
object.system_locale = systemLocale;
object.has_client_mods = (require(652) /* metro dependency 652: ClientModDetectionUtils */).usesClientMods();
object.client_launch_id = clientLaunchId;
var env0_3 = object;
name = (importDefault(654) /* metro dependency 654 */).name;
if ((name == null ? value : name.toLocaleLowerCase()) === 'electron') {
binding = env0_3;
@@ -96,250 +105,259 @@ function _fun7349(global, require, importDefault, importAll, module, exports, de
const env0_6 = 'utm_source utm_medium utm_campaign utm_content utm_term'.split(' ');
if (env0_3 == null) {
try {
closure4 = getCachedSuperProperties;
value14 = closure4();
env0_3 = value14;
getCachedSuperProperties2 = getCachedSuperProperties;
cachedSuperProperties2 = getCachedSuperProperties2();
env0_3 = cachedSuperProperties2;
} catch (error) {
env0_3 = {};
}
}
object2 = {};
object = {};
const GLOBAL_ENV = global.window.GLOBAL_ENV;
GLOBAL_ENV.RELEASE_CHANNEL;
const int = global.parseInt('5867', 10);
if (!global.isNaN(int)) {
object2.client_build_number = int;
object.client_build_number = int;
}
const r10 = DiscordNative == null ? value : DiscordNative.app.getBuildNumber();
if (!(r10 == null || global.isNaN(r10))) {
object2.native_build_number = r10;
object.native_build_number = r10;
}
object2.client_event_source = null;
object2.has_client_mods = (require(652) /* metro dependency 652: ClientModDetectionUtils */).usesClientMods();
object2.client_launch_id = clientLaunchId;
closure3(object2);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/analytics-utils/getSuperProperties.tsx');
exports.getOS = closure;
object.client_event_source = null;
object.has_client_mods = (require(652) /* metro dependency 652: ClientModDetectionUtils */).usesClientMods();
object.client_launch_id = clientLaunchId;
extendSuperProperties2(object);
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/analytics-utils/getSuperProperties.tsx');
exports.getOS = getOS_73512;
exports.getDevice = closure2;
exports.getCampaignParams = getCampaignParams;
exports.extendSuperProperties = closure3;
exports.extendSuperProperties = extendSuperProperties2;
exports.getSuperProperties = getSuperProperties;
exports.getSuperPropertiesBase64 = getSuperPropertiesBase64;
return value;
}
function isMetaQuestRuntime() { // fn#7350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:1098, offset: 0x00d166c7, size: 57 bytes, params: 1, frame: 11
const value = undefined;
const property = (NativeMetaQuestModuleModule).default;
return (property == null ? value : property.isMetaQuest()) === true;
}
function isMetaQuestRuntime() { // fn#7350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:1098, offset: 0x00d166c7, size: 57 bytes, params: 1, frame: 11
const value = undefined;
const property = (require(655) /* metro dependency 655: NativeMetaQuestModule */).default;
return (property == null ? value : property.isMetaQuest()) === true;
}
function getOS_7351() { // fn#7351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:1196, offset: 0x00d16700, size: 50 bytes, params: 1, frame: 9
global.window.navigator.userAgent;
return isMetaQuestRuntime() ? 'Horizon OS' : 'Android';
}
function getOS_7351() { // fn#7351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:1196, offset: 0x00d16700, size: 50 bytes, params: 1, frame: 9
global.window.navigator.userAgent;
return isMetaQuestRuntime() ? 'Horizon OS' : 'Android';
}
function getDeviceProperties() { // fn#7353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:1463, offset: 0x00d167b2, size: 381 bytes, params: 1, frame: 19
var r6;
var r2;
var property;
var moduleValue2;
var Platform;
var OS;
var value5;
var NativeModules;
var InfoDictionaryManager;
var constants;
var moduleValue3;
var constants2;
var Version;
var ReleaseChannel;
var DeviceVendorID;
var value8;
var value9;
var value10;
var value11;
var DesignIds;
var DESIGN_TABS_IA;
var error;
const object2 = {};
let value = environment;
const oS_7351 = getOS_7351();
object2.os = oS_7351;
const navigator = global.window.navigator;
navigator.userAgent;
navigator.vendor;
global.window.opera;
object2.browser = isMetaQuestRuntime() ? 'Discord VR' : 'Discord Android';
object2.device = getDevice();
object2.system_locale = getSystemLocale();
object2.has_client_mods = require(dependencyMap[1]).usesClientMods();
try {
property = dependencyMap[5];
moduleValue2 = require(property);
Platform = moduleValue2.Platform;
OS = Platform.OS;
value5 = OS === 'android';
if (value5) {
property = dependencyMap[7];
moduleValue3 = require(property);
property = moduleValue3.default;
constants2 = property.getConstants();
r6 = constants2;
} else {
NativeModules = moduleValue2.NativeModules;
InfoDictionaryManager = NativeModules.InfoDictionaryManager;
constants = InfoDictionaryManager.getConstants();
r6 = constants;
function getDeviceProperties() { // fn#7353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:1463, offset: 0x00d167b2, size: 381 bytes, params: 1, frame: 19
var r6;
var r2;
var property;
var moduleValue2;
var Platform;
var OS;
var value5;
var NativeModules;
var InfoDictionaryManager;
var constants;
var moduleValue3;
var constants2;
var Version;
var ReleaseChannel;
var DeviceVendorID;
var value8;
var value9;
var value10;
var value11;
var DesignIds;
var DESIGN_TABS_IA;
var error;
const object = {};
let value = environment;
const oS_7351 = getOS_7351();
object.os = oS_7351;
const navigator = global.window.navigator;
navigator.userAgent;
navigator.vendor;
global.window.opera;
object.browser = isMetaQuestRuntime() ? 'Discord VR' : 'Discord Android';
object.device = getDevice();
object.system_locale = getSystemLocale();
object.has_client_mods = require(dependencyMap[1]).usesClientMods();
try {
property = dependencyMap[5];
moduleValue2 = require(property);
Platform = moduleValue2.Platform;
OS = Platform.OS;
value5 = OS === 'android';
if (value5) {
property = dependencyMap[7];
moduleValue3 = require(property);
property = moduleValue3.default;
constants2 = property.getConstants();
r6 = constants2;
} else {
NativeModules = moduleValue2.NativeModules;
InfoDictionaryManager = NativeModules.InfoDictionaryManager;
constants = InfoDictionaryManager.getConstants();
r6 = constants;
}
Version = r6.Version;
ReleaseChannel = r6.ReleaseChannel;
DeviceVendorID = r6.DeviceVendorID;
value8 = '';
value9 = oS_7351 !== 'Android';
if (value9) {
r2 = value8;
} else {
value10 = ' - rn';
r2 = value10;
}
value11 = Version + r2;
object.client_version = value11;
object.release_channel = ReleaseChannel;
object.device_vendor_id = DeviceVendorID;
property = dependencyMap[8];
value = require(property);
DesignIds = value.DesignIds;
DESIGN_TABS_IA = DesignIds.DESIGN_TABS_IA;
object.design_id = DESIGN_TABS_IA;
} catch (error) {
}
Version = r6.Version;
ReleaseChannel = r6.ReleaseChannel;
DeviceVendorID = r6.DeviceVendorID;
value8 = '';
value9 = oS_7351 !== 'Android';
if (value9) {
r2 = value8;
return object;
}
function extendSuperProperties(a0) { // fn#7354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:2857, offset: 0x00d1692f, size: 73 bytes, params: 2, frame: 14
const object = {};
copyDataProperties(object, env0_3, undefined);
copyDataProperties(object, a0, undefined);
env0_4 = (require(647) /* metro dependency 647: encodeProperties */).encodeProperties(object);
}
function getCachedSuperProperties() { // fn#7355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:2178, offset: 0x00d16978, size: 521 bytes, params: 1, frame: 19
var r3;
var r2;
var r1;
var systemVersion;
var deviceProperties;
var object;
var value6;
var property;
const Storage = (StorageModule).Storage;
const value2 = Storage.get('deviceProperties');
if (value2 != null) {
r3 = value2;
} else {
value10 = ' - rn';
r2 = value10;
deviceProperties = getDeviceProperties();
Storage.set('deviceProperties', deviceProperties);
r3 = deviceProperties;
}
value11 = Version + r2;
object2.client_version = value11;
object2.release_channel = ReleaseChannel;
object2.device_vendor_id = DeviceVendorID;
property = dependencyMap[8];
value = require(property);
DesignIds = value.DesignIds;
DESIGN_TABS_IA = DesignIds.DESIGN_TABS_IA;
object2.design_id = DESIGN_TABS_IA;
} catch (error) {
}
return object2;
}
function extendSuperProperties(a0) { // fn#7354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:2857, offset: 0x00d1692f, size: 73 bytes, params: 2, frame: 14
const object2 = {};
copyDataProperties(object2, env0_3, undefined);
copyDataProperties(object2, a0, undefined);
env0_4 = (require(647) /* metro dependency 647: encodeProperties */).encodeProperties(object2);
}
function getCachedSuperProperties() { // fn#7355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:2178, offset: 0x00d16978, size: 521 bytes, params: 1, frame: 19
var r3;
var r2;
var r1;
var systemVersion;
var deviceProperties;
var object4;
var value6;
var property;
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
const value2 = Storage.get('deviceProperties');
if (value2 != null) {
r3 = value2;
} else {
deviceProperties = getDeviceProperties();
Storage.set('deviceProperties', deviceProperties);
r3 = deviceProperties;
}
const value4 = Storage.get('referralProperties');
if (value4 != null) {
r2 = value4;
} else {
object4 = {};
Storage.set('referralProperties', object4);
r2 = object4;
}
const SessionStorage = (require(659) /* metro dependency 659: SessionStorage */).SessionStorage;
const value5 = SessionStorage.get('referralProperties');
if (value5 != null) {
r1 = value5;
} else {
value6 = (function(a0, a1) {
var env0_0 = a0;
var env0_1 = '_current';
var Object = global.Object;
const value4 = Storage.get('referralProperties');
if (value4 != null) {
r2 = value4;
} else {
object = {};
Storage.set('referralProperties', object);
r2 = object;
}
const SessionStorage = (SessionStorageModule).SessionStorage;
const value5 = SessionStorage.get('referralProperties');
if (value5 != null) {
r1 = value5;
} else {
value6 = (function(a0, a1) {
var env0_0 = a0;
var env0_1 = '_current';
var Object = global.Object;
Object.keys(a0).map(_fun7357);
return {};
})({}, '_current');
SessionStorage.set('referralProperties', value6);
r1 = value6;
}
object = {};
copyDataProperties(object, r3, 10);
const object2 = {};
let userAgent = global.window.navigator.userAgent;
userAgent = !userAgent ? '' : userAgent;
object2.browser_user_agent = userAgent;
let version = (Module00654).version;
version = !version ? '' : version;
object2.browser_version = version;
const object3 = {};
copyDataProperties(object3, object2, 10);
const Platform = ReactNativeModule.Platform;
const OS = Platform.OS;
if (OS === 'android') {
property = (require(656) /* metro dependency 656: NativeDeviceModule */).default;
systemVersion = property.getConstants().systemVersion;
} else {
systemVersion = ReactNativeModule.NativeModules.DCDDeviceManager.systemVersion;
}
systemVersion = !systemVersion ? '' : systemVersion;
object3['os_version'] = systemVersion;
copyDataProperties(object, object3, 10);
copyDataProperties(object, r2, 10);
copyDataProperties(object, r1, 10);
return object;
function suffixObjectKeys(a0, a1) { // fn#7356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:2433, owner: getCachedSuperProperties.suffixObjectKeys, offset: 0x00d16b81, size: 58 bytes, params: 3, frame: 13
const env0_0 = a0;
const Object = global.Object;
Object.keys(a0).map(_fun7357);
return {};
})({}, '_current');
SessionStorage.set('referralProperties', value6);
r1 = value6;
function _fun7357(a0) { // fn#7357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:2500, offset: 0x00d16bbb, size: 51 bytes, params: 2, frame: 15
const binding = env0_2;
const value2 = '' + a0 + env0_1;
const property = env0_0[a0];
binding[value2] = property;
return property;
}
}
}
object4 = {};
copyDataProperties(object4, r3, 10);
const object5 = {};
let userAgent = global.window.navigator.userAgent;
userAgent = !userAgent ? '' : userAgent;
object5.browser_user_agent = userAgent;
let version = (importDefault(654) /* metro dependency 654 */).version;
version = !version ? '' : version;
object5.browser_version = version;
const moduleValue = require(27) /* metro dependency 27 */;
const object6 = {};
copyDataProperties(object6, object5, 10);
const Platform = moduleValue.Platform;
const OS = Platform.OS;
if (OS === 'android') {
property = (require(656) /* metro dependency 656: NativeDeviceModule */).default;
systemVersion = property.getConstants().systemVersion;
} else {
systemVersion = moduleValue.NativeModules.DCDDeviceManager.systemVersion;
function getCampaignParams(a0) { // fn#7358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:3493, offset: 0x00d16bee, size: 39 bytes, params: 2, frame: 12
const env0_0 = a0;
env0_6.forEach(_fun7359);
return {};
function _fun7359(a0) { // fn#7359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:3550, offset: 0x00d16c15, size: 273 bytes, params: 2, frame: 21
var r1;
var value4;
var RegExp;
var value5;
var value6;
var regExp;
var value8;
const binding = env0_0;
const value2 = '';
if (binding == null) {
r1 = value2;
} else {
value4 = a0.replace(RegExp('[[]', ''), '\\[').replace(RegExp('[\\]]', ''), '\\]');
RegExp = global.RegExp;
value5 = '[\\?&]' + value4 + '=([^&#]*)';
value6 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
regExp = new RegExp();
value8 = (regExp instanceof Object ? regExp : value6).exec(binding);
r1 = value8 === null ? value2 : typeof value8[1] === 'string' ? global.decodeURIComponent(value8[1]).replace(RegExp('\\+',
'g'), ' ') : value8[1].length ? value2 : global.decodeURIComponent(value8[1]).replace(RegExp('\\+', 'g'),
' ');
}
if (r1.length > 0) {
env0_1[a0] = r1;
}
}
}
systemVersion = !systemVersion ? '' : systemVersion;
object6['os_version'] = systemVersion;
copyDataProperties(object4, object6, 10);
copyDataProperties(object4, r2, 10);
copyDataProperties(object4, r1, 10);
return object4;
}
function getCampaignParams(a0) { // fn#7358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:3493, offset: 0x00d16bee, size: 39 bytes, params: 2, frame: 12
const env0_0 = a0;
env0_6.forEach(_fun7359);
return {};
}
function suffixObjectKeys(a0, a1) { // fn#7356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:2433, owner: getCachedSuperProperties.suffixObjectKeys, offset: 0x00d16b81, size: 58 bytes, params: 3, frame: 13
const env0_0 = a0;
const Object = global.Object;
Object.keys(a0).map(_fun7357);
return {};
}
function _fun7359(a0) { // fn#7359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:3550, offset: 0x00d16c15, size: 273 bytes, params: 2, frame: 21
var r1;
var value4;
var RegExp;
var value5;
var value6;
var regExp;
var value8;
const binding = env0_0;
const value2 = '';
if (binding == null) {
r1 = value2;
} else {
value4 = a0.replace(RegExp('[[]', ''), '\\[').replace(RegExp('[\\]]', ''), '\\]');
RegExp = global.RegExp;
value5 = '[\\?&]' + value4 + '=([^&#]*)';
value6 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
regExp = new RegExp();
value8 = (regExp instanceof Object ? regExp : value6).exec(binding);
r1 = value8 === null ? value2 : typeof value8[1] === 'string' ? global.decodeURIComponent(value8[1]).replace(RegExp('\\+',
'g'), ' ') : value8[1].length ? value2 : global.decodeURIComponent(value8[1]).replace(RegExp('\\+', 'g'),
' ');
function getSuperProperties() { // fn#7360, offset: 0x00c7c381, size: 9 bytes, params: 1, frame: 1
return env0_3;
}
if (r1.length > 0) {
env0_1[a0] = r1;
function getSuperPropertiesBase64() { // fn#7361, offset: 0x00d16d26, size: 9 bytes, params: 1, frame: 1
return env0_4;
}
}
function _fun7357(a0) { // fn#7357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:699:2500, offset: 0x00d16bbb, size: 51 bytes, params: 2, frame: 15
const binding = env0_2;
const value2 = '' + a0 + env0_1;
const property = env0_0[a0];
binding[value2] = property;
return property;
}
global.__d(_fun7349, 649, [650, 652, 653, 654, 655, 27, 656, 657, 658, 587, 659, 647,
2]) /* metro module 649, dependencies: [650, 652, 653, 654, 655, 27, 656, 657, 658, 587, 659, 647, 2] */;
@@ -1,11 +1,16 @@
/* Metro module 1359; source: ../discord_common/js/packages/apex/ApexExperiment.tsx; dependencies: [57, 31, 566, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../flux/index.tsx'; /* Metro dependency 566 */
function _fun15580(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:6, offset: 0x00e367fe, size: 133 bytes, params: 8, frame: 18
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let env0_2 = importDefault(57) /* metro dependency 57 */;
let env0_3 = (require(31) /* metro dependency 31 */).useEffect;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/apex/ApexExperiment.tsx');
let env0_2 = Module00057;
let env0_3 = (ReactModule).useEffect;
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/apex/ApexExperiment.tsx');
exports.default = function(a0, a1, a2, a3) {
var env0_0 = a1;
var env0_1 = a2;
@@ -17,89 +22,89 @@ function _fun15580(global, require, importDefault, importAll, module, exports, d
a1.registerExperiment(a0);
return {definition: a0, useConfig: _fun15582, getConfig: _fun15585};
};
function createApexExperimentCommon(a0, a1, a2, a3) { // fn#15581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:223, offset: 0x00e36883, size: 104 bytes, params: 5, frame: 12
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const env0_3 = a0.name;
const env0_4 = a0.kind;
const env0_5 = a0.variations;
const env0_6 = a0.defaultConfig;
a1.registerExperiment(a0);
return {definition: a0, useConfig: useConfig, getConfig: getConfig};
function useConfig(a0) { // fn#15582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:382, owner: createApexExperimentCommon.useConfig, offset: 0x00e368eb, size: 350 bytes, params: 2, frame: 26
const env0_0 = a0;
const kindBinding = kind;
const value2 = undefined;
const moduleValue = importAll(kindBinding, a0);
const moduleValue2 = importAll('user', a0);
const useStateFromStoresArray = FluxModule.useStateFromStoresArray;
const value5 = env1_2(Reflect.apply(useStateFromStoresArray, FluxModule, [[require], _fun15583, [moduleValue,
moduleValue2]]), 2);
const property = value5[0];
const property2 = value5[1];
const variantId = property2 == null ? value2 : property2.variantId;
const r12 = (property2 == null ? value2 : property2.trackedVariantId) ?? variantId;
const revision = property2 == null ? value2 : property2.revision;
const isOverride = property2 == null ? value2 : property2.isOverride;
const exposureTrackingEnabled = property2 == null ? value2 : property2.exposureTrackingEnabled;
const useAsEligibility = property2 == null ? value2 : property2.useAsEligibility;
useEffect(_fun15584, [moduleValue, property, r12, revision, a0.location, isOverride, exposureTrackingEnabled,
useAsEligibility]);
if (variantId == null) {
return defaultConfig;
}
if (useAsEligibility === true) {
return defaultConfig;
}
return variations[variantId] ?? defaultConfig;
function _fun15583() { // fn#15583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:462, offset: 0x00e36a49, size: 41 bytes, params: 1, frame: 17
return require.getEvaluationAndAssignment(kind, env0_1, name, env0_2);
}
function _fun15584() { // fn#15584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:757, offset: 0x00e36a72, size: 134 bytes, params: 1, frame: 23
var value8;
let r1 = env0_3 != null && env0_4 != null && revision != null;
r1 = r1 && isOverride === false && exposureTrackingEnabled === true && useAsEligibility !== true;
if (r1) {
value8 = environment.__proto__;
require.trackExperimentExposure(env0_3, name, env0_0.location, kind, revision, env0_4, env0_1);
}
}
}
function getConfig(a0) { // fn#15585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:959, owner: createApexExperimentCommon.getConfig, offset: 0x00e36af8, size: 343 bytes, params: 2, frame: 27
const kindBinding = kind;
const value2 = undefined;
const defaultImport = importDefault(kindBinding, a0);
const r7 = kindBinding !== 'guild' ? value2 : importDefault('user', {location: a0.location});
const getEvaluationAndAssignment = require.getEvaluationAndAssignment;
const value5 = env1_2(Reflect.apply(getEvaluationAndAssignment, require, [kind, defaultImport, name, r7]), 2);
const property = value5[0];
const property2 = value5[1];
const variantId = property2 == null ? value2 : property2.variantId;
const r10 = (property2 == null ? value2 : property2.trackedVariantId) ?? variantId;
const revision = property2 == null ? value2 : property2.revision;
const isOverride = property2 == null ? value2 : property2.isOverride;
const exposureTrackingEnabled = property2 == null ? value2 : property2.exposureTrackingEnabled;
const useAsEligibility = property2 == null ? value2 : property2.useAsEligibility;
let r5 = property != null && r10 != null && revision != null;
r5 = r5 && isOverride === false && exposureTrackingEnabled === true && useAsEligibility !== true;
if (r5) {
require.trackExperimentExposure(property, name, a0.location, kind, revision, r10, defaultImport);
}
if (variantId == null) {
return defaultConfig;
}
if (useAsEligibility === true) {
return defaultConfig;
}
return variations[variantId] ?? defaultConfig;
}
}
}
function createApexExperimentCommon(a0, a1, a2, a3) { // fn#15581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:223, offset: 0x00e36883, size: 104 bytes, params: 5, frame: 12
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const env0_3 = a0.name;
const env0_4 = a0.kind;
const env0_5 = a0.variations;
const env0_6 = a0.defaultConfig;
a1.registerExperiment(a0);
return {definition: a0, useConfig: useConfig, getConfig: getConfig_15585};
}
function useConfig(a0) { // fn#15582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:382, owner: createApexExperimentCommon.useConfig, offset: 0x00e368eb, size: 350 bytes, params: 2, frame: 26
const env0_0 = a0;
const kindBinding = kind;
const value2 = undefined;
const moduleValue = importAll(kindBinding, a0);
const moduleValue2 = importAll('user', a0);
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
const value5 = env1_2(Reflect.apply(useStateFromStoresArray, fluxModule, [[require], _fun15583, [moduleValue,
moduleValue2]]), 2);
const property = value5[0];
const property2 = value5[1];
const variantId = property2 == null ? value2 : property2.variantId;
const r12 = (property2 == null ? value2 : property2.trackedVariantId) ?? variantId;
const revision = property2 == null ? value2 : property2.revision;
const isOverride = property2 == null ? value2 : property2.isOverride;
const exposureTrackingEnabled = property2 == null ? value2 : property2.exposureTrackingEnabled;
const useAsEligibility = property2 == null ? value2 : property2.useAsEligibility;
useEffect(_fun15584, [moduleValue, property, r12, revision, a0.location, isOverride, exposureTrackingEnabled,
useAsEligibility]);
if (variantId == null) {
return defaultConfig;
}
if (useAsEligibility === true) {
return defaultConfig;
}
return variations[variantId] ?? defaultConfig;
}
function createApexExperimentCommonGetConfig(a0) { // fn#15585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:959, owner: createApexExperimentCommon.getConfig, offset: 0x00e36af8, size: 343 bytes, params: 2, frame: 27
const kindBinding = kind;
const value2 = undefined;
const defaultImport = importDefault(kindBinding, a0);
const r7 = kindBinding !== 'guild' ? value2 : importDefault('user', {location: a0.location});
const getEvaluationAndAssignment = require.getEvaluationAndAssignment;
const value5 = env1_2(Reflect.apply(getEvaluationAndAssignment, require, [kind, defaultImport, name, r7]), 2);
const property = value5[0];
const property2 = value5[1];
const variantId = property2 == null ? value2 : property2.variantId;
const r10 = (property2 == null ? value2 : property2.trackedVariantId) ?? variantId;
const revision = property2 == null ? value2 : property2.revision;
const isOverride = property2 == null ? value2 : property2.isOverride;
const exposureTrackingEnabled = property2 == null ? value2 : property2.exposureTrackingEnabled;
const useAsEligibility = property2 == null ? value2 : property2.useAsEligibility;
let r5 = property != null && r10 != null && revision != null;
r5 = r5 && isOverride === false && exposureTrackingEnabled === true && useAsEligibility !== true;
if (r5) {
require.trackExperimentExposure(property, name, a0.location, kind, revision, r10, defaultImport);
}
if (variantId == null) {
return defaultConfig;
}
if (useAsEligibility === true) {
return defaultConfig;
}
return variations[variantId] ?? defaultConfig;
}
function _fun15583() { // fn#15583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:462, offset: 0x00e36a49, size: 41 bytes, params: 1, frame: 17
return require.getEvaluationAndAssignment(kind, env0_1, name, env0_2);
}
function _fun15584() { // fn#15584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1486:757, offset: 0x00e36a72, size: 134 bytes, params: 1, frame: 23
var value8;
let r1 = env0_3 != null && env0_4 != null && revision != null;
r1 = r1 && isOverride === false && exposureTrackingEnabled === true && useAsEligibility !== true;
if (r1) {
value8 = environment.__proto__;
require.trackExperimentExposure(env0_3, name, env0_0.location, kind, revision, env0_4, env0_1);
}
}
global.__d(_fun15580, 1359, [57, 31, 566, 2]) /* metro module 1359, dependencies: [57, 31, 566, 2] */;
@@ -1,34 +1,37 @@
/* Metro module 1223; source: ../discord_common/js/packages/apex/ApexTypes.tsx; dependencies: [1224, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ExperimentsConstantsModule from '../../shared/shared-constants/ExperimentsConstants.tsx'; /* Metro dependency 1224 */
function _fun13683(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1350:6, offset: 0x00df24bc, size: 279 bytes, params: 8, frame: 21
var object4;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const LOGGED_OUT_USER_ID_SENTINEL = (require(1224) /* metro dependency 1224: ExperimentsConstants */).LOGGED_OUT_USER_ID_SENTINEL;
object4 = {User: 1};
object4[1] = 'User';
object4.Installation = 2;
object4[2] = 'Installation';
object4.Guild = 3;
object4[3] = 'Guild';
const object5 = {};
const User = object4.User;
object5[User] = 'user';
const Installation = object4.Installation;
object5[Installation] = 'installation';
const Guild = object4.Guild;
object5[Guild] = 'guild';
const object6 = {IsOverride: 1};
object6[1] = 'IsOverride';
object6.ExposureTrackingEnabled = 2;
object6[2] = 'ExposureTrackingEnabled';
object6.DependentExperiment = 4;
object6[4] = 'DependentExperiment';
object6.UseAsEligibility = 8;
object6[8] = 'UseAsEligibility';
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/apex/ApexTypes.tsx');
exports.UnitType = object4;
exports.UnitTypeToKind = object5;
exports.ExperimentFlags = object6;
const LOGGED_OUT_USER_ID_SENTINEL = (ExperimentsConstantsModule).LOGGED_OUT_USER_ID_SENTINEL;
object = {User: 1};
object[1] = 'User';
object.Installation = 2;
object[2] = 'Installation';
object.Guild = 3;
object[3] = 'Guild';
const object2 = {};
const User = object.User;
object2[User] = 'user';
const Installation = object.Installation;
object2[Installation] = 'installation';
const Guild = object.Guild;
object2[Guild] = 'guild';
const object3 = {IsOverride: 1};
object3[1] = 'IsOverride';
object3.ExposureTrackingEnabled = 2;
object3[2] = 'ExposureTrackingEnabled';
object3.DependentExperiment = 4;
object3[4] = 'DependentExperiment';
object3.UseAsEligibility = 8;
object3[8] = 'UseAsEligibility';
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/apex/ApexTypes.tsx');
exports.UnitType = object;
exports.UnitTypeToKind = object2;
exports.ExperimentFlags = object3;
exports.LOGGED_OUT_USER_ID_SENTINEL = LOGGED_OUT_USER_ID_SENTINEL;
}
global.__d(_fun13683, 1223, [1224, 2]) /* metro module 1223, dependencies: [1224, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,135 +1,149 @@
/* Metro module 20; source: ../discord_common/js/packages/app-start-performance/AppStartPerformance.tsx; dependencies: [5, 6, 7, 2] */
import Module00005 from '../../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun263(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:6, offset: 0x00c3de06, size: 208 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(5) /* metro dependency 5 */;
const env0_1 = importDefault(6) /* metro dependency 6 */;
const env0_2 = importDefault(7) /* metro dependency 7 */;
const env0_3 = global.globalThis.__getTotalRequireTime ?? (function() {
return 0;
});
const result = typeof global.performance !== 'undefined';
let value = _fun265();
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/app-start-performance/AppStartPerformance.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/app-start-performance/AppStartPerformance.tsx');
exports.default = value;
}
function _fun265() { // fn#265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:225, offset: 0x00c3ded6, size: 337 bytes, params: 1, frame: 17
const AppStartPerformance2 = AppStartPerformance;
const items2 = [{key: 'isTracing', get: get_267}];
items2[1] = {key: 'endTime', get: function() {
return this.endTime_;
}, set: function(a0) {
this.endTime_ = a0;
this.isTracing_ = true;
}};
items2[2] = {key: 'resumeTracing', value: value_270};
items2[3] = {key: 'mark', value: function(a0, a1, a2) {
var logs;
var object;
if (this.isTracing) {
logs = this.logs;
object = {emoji: a0};
object.prefix = '' + this.prefix;
object.log = a1;
object.delta = a2;
object.timestamp = global.Date.now();
logs.push(object);
this.addImportLogDetail();
}
}};
items2[4] = {key: 'markAndLog', value: function(a0, a1, a2, a3) {
var logs;
var object;
a0.log(a2);
if (this.isTracing) {
logs = this.logs;
object = {emoji: a1, prefix: this.prefix, log: a2, delta: a3};
object.timestamp = global.Date.now();
logs.push(object);
this.addImportLogDetail();
}
}};
items2[5] = {key: 'addImportLogDetail', value: value_273};
items2[6] = {key: 'markWithDelta', value: function(a0, a1) {
var property = this.logs;
property = property[this.logs.length - 1];
var value = undefined;
this.mark(a0, a1,
property != null && property.timestamp != null ? global.Date.now() - property.timestamp : value);
return value;
}};
items2[7] = {key: 'markAt', value: value_275};
items2[8] = {key: 'addDetail', value: function(a0, a1) {
if (this.isTracing) {
this.logs.push({emoji: this.logs[this.logs.length - 1].emoji, prefix: this.prefix,
log: ' ↪ ' + a0 + ' ' + a1});
}
}};
items2[9] = {key: 'time', value: value_277};
const env0_0Binding = Module00005(_fun279);
items2[10] = {key: 'timeAsync', value: value_280};
items2[11] = {key: 'setServerTrace', value: function(a0) {
this.logGroups[0].serverTrace = a0;
}};
return CreateClass(AppStartPerformance2, items2);
function AppStartPerformance() { // fn#266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:246, offset: 0x00c3e027, size: 166 bytes, params: 1, frame: 15
const value = environment.__proto__;
env1_1(this, AppStartPerformance);
this.isTracing_ = true;
let Date = global.Date;
this.endTime_ = Date.now() + 15000;
this.lastImportDuration = 0;
const object = {index: 0};
Date = global.Date;
object.timestamp = Date.now();
object.logs = [];
object.nativeLogs = [];
this.logGroups = [object];
this.logs = this.logGroups[0].logs;
this.prefix = '';
}
function _fun265() { // fn#265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:225, offset: 0x00c3ded6, size: 337 bytes, params: 1, frame: 17
const binding = env0_2;
const closure = AppStartPerformance;
const items2 = [{key: 'isTracing', get: get_267}];
items2[1] = {key: 'endTime', get: function() {
return this.endTime_;
}, set: function(a0) {
this.endTime_ = a0;
this.isTracing_ = true;
}};
items2[2] = {key: 'resumeTracing', value: value_270};
items2[3] = {key: 'mark', value: function(a0, a1, a2) {
var logs;
var object;
if (this.isTracing) {
logs = this.logs;
object = {emoji: a0};
object.prefix = '' + this.prefix;
object.log = a1;
object.delta = a2;
object.timestamp = global.Date.now();
logs.push(object);
this.addImportLogDetail();
function get_267() { // fn#267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:522, offset: 0x00c3e0cd, size: 79 bytes, params: 1, frame: 11
var r0;
let value = environment.__proto__;
const resultBinding = result;
let r1 = resultBinding ? !this.isTracing_ : !resultBinding;
value = !r1;
if (r1) {
r0 = value;
} else {
value = global.Date.now();
value = value > this.endTime_;
if (value) {
value = false;
this.isTracing_ = value;
r1 = value;
} else {
r1 = !value;
}
r0 = r1;
}
return r0;
}
}};
items2[4] = {key: 'markAndLog', value: function(a0, a1, a2, a3) {
var logs;
var object;
a0.log(a2);
if (this.isTracing) {
logs = this.logs;
object = {emoji: a1, prefix: this.prefix, log: a2, delta: a3};
object.timestamp = global.Date.now();
logs.push(object);
this.addImportLogDetail();
}
}};
items2[5] = {key: 'addImportLogDetail', value: value_273};
items2[6] = {key: 'markWithDelta', value: function(a0, a1) {
var property = this.logs;
property = property[this.logs.length - 1];
var value = undefined;
this.mark(a0, a1,
property != null && property.timestamp != null ? global.Date.now() - property.timestamp : value);
return value;
}};
items2[7] = {key: 'markAt', value: value_275};
items2[8] = {key: 'addDetail', value: function(a0, a1) {
if (this.isTracing) {
this.logs.push({emoji: this.logs[this.logs.length - 1].emoji, prefix: this.prefix,
log: ' ↪ ' + a0 + ' ' + a1});
}
}};
items2[9] = {key: 'time', value: value_277};
const env0_0Binding = env0_0(_fun279);
items2[10] = {key: 'timeAsync', value: value_280};
items2[11] = {key: 'setServerTrace', value: function(a0) {
this.logGroups[0].serverTrace = a0;
}};
return binding(closure, items2);
}
function AppStartPerformance() { // fn#266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:246, offset: 0x00c3e027, size: 166 bytes, params: 1, frame: 15
const value = environment.__proto__;
env1_1(this, AppStartPerformance);
this.isTracing_ = true;
let Date = global.Date;
this.endTime_ = Date.now() + 15000;
this.lastImportDuration = 0;
const object2 = {index: 0};
Date = global.Date;
object2.timestamp = Date.now();
object2.logs = [];
object2.nativeLogs = [];
this.logGroups = [object2];
this.logs = this.logGroups[0].logs;
this.prefix = '';
}
function get_267() { // fn#267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:522, offset: 0x00c3e0cd, size: 79 bytes, params: 1, frame: 11
var r0;
let value = environment.__proto__;
const resultBinding = result;
let r1 = resultBinding ? !this.isTracing_ : !resultBinding;
value = !r1;
if (r1) {
r0 = value;
} else {
value = global.Date.now();
value = value > this.endTime_;
if (value) {
value = false;
this.isTracing_ = value;
r1 = value;
} else {
r1 = !value;
function value_273() { // fn#273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:1316, offset: 0x00c3e2be, size: 86 bytes, params: 1, frame: 15
let value = environment.__proto__;
value = env1_3();
if (value - this.lastImportDuration > 25) {
this.addDetail('JS Imports', global.Math.ceil(value) + 'ms');
this.lastImportDuration = value;
}
}
r0 = r1;
function value_280() { // fn#280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:2420, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return Module00005.apply(this, arguments);
}
}
return r0;
}
function value_270() { // fn#270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:753, offset: 0x00c3e13f, size: 147 bytes, params: 1, frame: 14
var logGroups;
var unshift;
var object2;
var object;
if (!this.isTracing) {
logGroups = this.logGroups;
unshift = logGroups.unshift;
object2 = {};
object2.index = this.logGroups.length;
object2.timestamp = global.Date.now();
object2.logs = [];
object2.nativeLogs = [];
Reflect.apply(unshift, logGroups, [object2]);
object = {};
object.index = this.logGroups.length;
object.timestamp = global.Date.now();
object.logs = [];
object.nativeLogs = [];
Reflect.apply(unshift, logGroups, [object]);
logGroups = this.logGroups;
this.logs = logGroups[0].logs;
}
@@ -137,15 +151,6 @@ function value_270() { // fn#270, source: /ci/build/discord/discord/discord_andr
this.endTime = Date.now() + 10000;
}
function value_273() { // fn#273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:1316, offset: 0x00c3e2be, size: 86 bytes, params: 1, frame: 15
let value = environment.__proto__;
value = env1_3();
if (value - this.lastImportDuration > 25) {
this.addDetail('JS Imports', global.Math.ceil(value) + 'ms');
this.lastImportDuration = value;
}
}
function value_275(a0, a1, a2) { // fn#275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:25:1615, offset: 0x00c3e37f, size: 182 bytes, params: 4, frame: 19
var r1;
var r3;
@@ -260,3 +265,4 @@ function* _fun279(a0, a1, a2) { // fn#279, original name: ?anon_0_, source: /ci/
return a2();
}
global.__d(_fun263, 20, [5, 6, 7, 2]) /* metro module 20, dependencies: [5, 6, 7, 2] */;
@@ -1,97 +1,100 @@
/* Metro module 561; source: ../discord_common/js/packages/backoff/Backoff.tsx; dependencies: [6, 7, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun6778(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:6, offset: 0x00d08671, size: 124 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const value = _fun6779();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/backoff/Backoff.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/backoff/Backoff.tsx');
exports.default = value;
}
function _fun6779() { // fn#6779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:118, offset: 0x00d086ed, size: 170 bytes, params: 1, frame: 15
return env0_1(Backoff, [{key: 'fails', get: function() {
return this._fails;
}}, {key: 'current', get: function() {
return this._current;
}}, {key: 'pending', get: function() {
return this._timeoutId != null;
}}, {key: 'succeed', value: function() {
this.cancel();
this._fails = 0;
this._current = this.min;
}}, {key: 'fail', value: value_6785}, {key: 'cancel', value: function() {
this._callback = null;
if (this._timeoutId != null) {
global.clearTimeout(this._timeoutId);
this._timeoutId = null;
function _fun6779() { // fn#6779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:118, offset: 0x00d086ed, size: 170 bytes, params: 1, frame: 15
return CreateClass(Backoff, [{key: 'fails', get: function() {
return this._fails;
}}, {key: 'current', get: function() {
return this._current;
}}, {key: 'pending', get: function() {
return this._timeoutId != null;
}}, {key: 'succeed', value: function() {
this.cancel();
this._fails = 0;
this._current = this.min;
}}, {key: 'fail', value: value_6785}, {key: 'cancel', value: function() {
this._callback = null;
if (this._timeoutId != null) {
global.clearTimeout(this._timeoutId);
this._timeoutId = null;
}
}}]);
function Backoff() { // fn#6780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:139, offset: 0x00d08797, size: 128 bytes, params: 1, frame: 16
let value = a0;
const value2 = a1;
const value3 = a2;
const r1 = value !== undefined ? value : 500;
let r4 = value2 !== undefined ? value2 : null;
const r3 = !(value3 !== undefined) || value3;
value = environment.__proto__;
env1_0(this, Backoff);
this._fails = 0;
if (r1 <= 0) {
throw global.Error('Backoff min value must be greater than zero or backoff will never back-off.');
}
this.min = r1;
r4 = r4 ?? 10 * r1;
this.max = r4;
this.jitter = r3;
this._current = r1;
}
}}]);
}
function Backoff() { // fn#6780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:139, offset: 0x00d08797, size: 128 bytes, params: 1, frame: 16
let value = a0;
const value2 = a1;
const value3 = a2;
const r1 = value !== undefined ? value : 500;
let r4 = value2 !== undefined ? value2 : null;
const r3 = !(value3 !== undefined) || value3;
value = environment.__proto__;
env1_0(this, Backoff);
this._fails = 0;
if (r1 <= 0) {
throw global.Error('Backoff min value must be greater than zero or backoff will never back-off.');
}
this.min = r1;
r4 = r4 ?? 10 * r1;
this.max = r4;
this.jitter = r3;
this._current = r1;
}
function value_6785(a0, a1) { // fn#6785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:638, offset: 0x00d08862, size: 248 bytes, params: 3, frame: 18
const value = a1;
const env0_1 = a0;
this._fails = this._fails + 1;
const value2 = 2 * this._current;
const r6 = this.jitter ? value2 * global.Math.random() : value2;
const Math = global.Math;
this._current = Math.min(this._current + r6, this.max);
const r1 = value == null ? this._current : value > this._current ? value : this._current;
if (a0 != null) {
if (this._timeoutId == null) {
this._callback = a0;
this._timeoutId = global.setTimeout(_fun6786, r1);
function value_6785(a0, a1) { // fn#6785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:638, offset: 0x00d08862, size: 248 bytes, params: 3, frame: 18
const value = a1;
const env0_1 = a0;
this._fails = this._fails + 1;
const value2 = 2 * this._current;
const r6 = this.jitter ? value2 * global.Math.random() : value2;
const Math = global.Math;
this._current = Math.min(this._current + r6, this.max);
const r1 = value == null ? this._current : value > this._current ? value : this._current;
if (a0 != null) {
if (this._timeoutId == null) {
this._callback = a0;
this._timeoutId = global.setTimeout(_fun6786, r1);
return r1;
}
if (this._callback !== a0) {
throw new global.Error('callback already pending');
}
this.cancel();
this._callback = a0;
this._timeoutId = global.setTimeout(_fun6786, r1);
}
return r1;
function _fun6786() { // fn#6786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:980, offset: 0x00d0895a, size: 62 bytes, params: 1, frame: 10
var value;
var binding;
var value2;
var error;
try {
value = environment;
binding = env0_1;
value2 = binding == null;
if (!value2) {
binding = env0_1;
binding();
}
} catch (error) {
binding = ClassCallCheck;
binding.cancel();
throw error;
}
ClassCallCheck.cancel();
}
}
if (this._callback !== a0) {
throw new global.Error('callback already pending');
}
this.cancel();
this._callback = a0;
this._timeoutId = global.setTimeout(_fun6786, r1);
}
return r1;
}
function _fun6786() { // fn#6786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:611:980, offset: 0x00d0895a, size: 62 bytes, params: 1, frame: 10
var value;
var binding;
var value2;
var error;
try {
value = environment;
binding = env0_1;
value2 = binding == null;
if (!value2) {
binding = env0_1;
binding();
}
} catch (error) {
binding = env0_0;
binding.cancel();
throw error;
}
env0_0.cancel();
}
global.__d(_fun6778, 561, [6, 7, 2]) /* metro module 561, dependencies: [6, 7, 2] */;
@@ -1,12 +1,17 @@
/* Metro module 3821; source: ../discord_common/js/packages/code-splitting/CodeSplittingUtils.tsx; dependencies: [57, 31, 33, 3822, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ImportWithRetryModule from './importWithRetry.tsx'; /* Metro dependency 3822 */
function _fun29561(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:6, offset: 0x00fc4dd0, size: 258 bytes, params: 8, frame: 24
var propertyName;
let env0_0 = require;
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 */;
let value = require(33) /* metro dependency 33 */;
const env0_3 = ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.Fragment;
const closure = function() {
@@ -14,7 +19,7 @@ function _fun29561(global, require, importDefault, importAll, module, exports, d
var env0_0 = value !== undefined ? value : 'transparent';
return _fun29563;
};
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/code-splitting/CodeSplittingUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/code-splitting/CodeSplittingUtils.tsx');
for (propertyName in require(3822) /* metro dependency 3822: importWithRetry */) {
exports[propertyName] = (require(3822) /* metro dependency 3822: importWithRetry */)[propertyName];
}
@@ -22,100 +27,113 @@ function _fun29561(global, require, importDefault, importAll, module, exports, d
exports.makeLazy = makeLazy;
exports.makeLazyWithPreload = makeLazyWithPreload;
exports.LazyLibrary = LazyLibrary;
}
function loaderMaker() { // fn#29562, offset: 0x00fc4ed2, size: 26 bytes, params: 1, frame: 3
const value = a0;
const env0_0 = value !== undefined ? value : 'transparent';
return _fun29563;
function _fun29563() { // fn#29563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:178, offset: 0x00fc4eec, size: 52 bytes, params: 1, frame: 13
return <div style={{'position': 'absolute', 'width': '100%', 'height': '100%', backgroundColor: env0_0}} />;
}
function loaderMaker() { // fn#29562, offset: 0x00fc4ed2, size: 26 bytes, params: 1, frame: 3
const value = a0;
const env0_0 = value !== undefined ? value : 'transparent';
return _fun29563;
}
function makeLazy({createPromise, webpackId, renderLoader, name, memo}) { // fn#29564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:441, offset: 0x00fc4f20, size: 159 bytes, params: 2, frame: 16
const env0_3 = name;
memo = !(memo === undefined) && memo;
const env0_4 = env0_3.lazy(_fun29565);
const closure = makeLazyWrapper;
const r0 = memo ? env0_3.memo(closure) : closure;
name = !name ? 'Unknown' : name;
r0.displayName = 'Suspense(' + name + ')';
return r0;
}
function makeLazyWithPreload({createPromise, webpackId, renderLoader, name, memo}) { // fn#29567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:804, offset: 0x00fc506b, size: 180 bytes, params: 2, frame: 16
memo = !(memo === undefined) && memo;
let closure = importPromise;
const env0_6 = null.lazy(closure);
closure = makeLazyWithPreloadWrapper;
const r0 = memo ? null.memo(closure) : closure;
name = !name ? 'Unknown' : name;
r0.displayName = 'Suspense(' + name + ')';
r0.preload = function() {
importPromise();
};
return r0;
}
function LazyLibrary({createPromise, webpackId, render, renderFallback}) { // fn#29573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:1354, offset: 0x00fc5249, size: 145 bytes, params: 2, frame: 19
const binding = env0_3;
const [property, env0_2] = env0_2Binding(binding.useState(null), 2);
binding.useEffect(_fun29574, []);
return (
<>
{property == null ? renderFallback() : render(property)}
</>
);
}
function _fun29563() { // fn#29563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:178, offset: 0x00fc4eec, size: 52 bytes, params: 1, frame: 13
return <div style={{'position': 'absolute', 'width': '100%', 'height': '100%', backgroundColor: env0_0}} />;
}
function _fun29565() { // fn#29565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:536, offset: 0x00fc4fbf, size: 69 bytes, params: 1, frame: 13
const value = environment.__proto__;
return (require(3822) /* metro dependency 3822: importWithRetry */).importWithRetry({createPromise: createPromise,
webpackId: webpackId, name: name});
}
function makeLazyWrapper(a0) { // fn#29566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:612, owner: makeLazy.Wrapper, offset: 0x00fc5004, size: 103 bytes, params: 2, frame: 17
const Suspense = env1_3.Suspense;
return (
<Suspense fallback={renderLoader != null ? renderLoader() : loaderMaker()()}>
{((Component) => <Component {...a0} />)(env0_4)}
</Suspense>
);
}
function importPromise() { // fn#29568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:928, owner: makeLazyWithPreload.importPromise, offset: 0x00fc511f, size: 96 bytes, params: 1, frame: 13
var environment;
var value2;
var moduleValue;
if (env0_3 == null) {
value2 = environment.__proto__;
moduleValue = require(3822) /* metro dependency 3822: importWithRetry */;
env0_3 = moduleValue.importWithRetry({createPromise: createPromise, webpackId: webpackId}).then(function(a0) {
env1_4 = a0.default;
return a0;
});
}
return env0_3;
}
function makeLazyWithPreloadWrapper(a0) { // fn#29570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:1063, owner: makeLazyWithPreload.Wrapper, offset: 0x00fc5190, size: 170 bytes, params: 2, frame: 20
var environment;
const value = environment.__proto__;
const property = env1_2(env1_3.useState(_fun29571), 1)[0];
return property != null ? ((Component) => <Component {...a0} />)(property) : <env1_3.Suspense fallback={renderLoader != null ? renderLoader() : loaderMaker()()}>{((Component) => <Component {...a0} />)(env0_6)}</env1_3.Suspense>;
}
function _fun29574() { // fn#29574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:1498, offset: 0x00fc52da, size: 78 bytes, params: 1, frame: 14
var environment;
let value = environment.__proto__;
value = Reflect.apply((require(3822) /* metro dependency 3822: importWithRetry */).importWithRetry, value,
[{createPromise: createPromise, webpackId: webpackId}]);
value.then(_fun29575);
}
function _fun29575({default: property}) { // fn#29575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:1564, offset: 0x00fc5328, size: 24 bytes, params: 2, frame: 11
return env1_2(property);
function makeLazy({createPromise, webpackId, renderLoader, name, memo}) { // fn#29564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:441, offset: 0x00fc4f20, size: 159 bytes, params: 2, frame: 16
const name2 = name;
memo = !(memo === undefined) && memo;
const env0_4 = name2.lazy(_fun29565);
const makeLazyWrapper2 = makeLazyWrapper;
const r0 = memo ? name2.memo(makeLazyWrapper2) : makeLazyWrapper2;
name = !name ? 'Unknown' : name;
r0.displayName = 'Suspense(' + name + ')';
return r0;
function _fun29565() { // fn#29565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:536, offset: 0x00fc4fbf, size: 69 bytes, params: 1, frame: 13
const value = environment.__proto__;
return (ImportWithRetryModule).importWithRetry({createPromise: createPromise,
webpackId: webpackId, name: name});
}
function makeLazyWrapper(a0) { // fn#29566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:612, owner: makeLazy.Wrapper, offset: 0x00fc5004, size: 103 bytes, params: 2, frame: 17
const Suspense = env1_3.Suspense;
return (
<Suspense fallback={renderLoader != null ? renderLoader() : loaderMaker()()}>
{((Component) => <Component {...a0} />)(env0_4)}
</Suspense>
);
}
}
function makeLazyWithPreload({createPromise, webpackId, renderLoader, name, memo}) { // fn#29567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:804, offset: 0x00fc506b, size: 180 bytes, params: 2, frame: 16
memo = !(memo === undefined) && memo;
let closure = importPromise;
const env0_6 = null.lazy(closure);
closure = makeLazyWithPreloadWrapper;
const r0 = memo ? null.memo(closure) : closure;
name = !name ? 'Unknown' : name;
r0.displayName = 'Suspense(' + name + ')';
r0.preload = function() {
importPromise();
};
return r0;
function importPromise() { // fn#29568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:928, owner: makeLazyWithPreload.importPromise, offset: 0x00fc511f, size: 96 bytes, params: 1, frame: 13
var environment;
var value2;
var moduleValue;
if (env0_3 == null) {
value2 = environment.__proto__;
moduleValue = require(3822) /* metro dependency 3822: importWithRetry */;
env0_3 = moduleValue.importWithRetry({createPromise: createPromise, webpackId: webpackId}).then(function(a0) {
env1_4 = a0.default;
return a0;
});
}
return env0_3;
}
function makeLazyWithPreloadWrapper(a0) { // fn#29570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:1063, owner: makeLazyWithPreload.Wrapper, offset: 0x00fc5190, size: 170 bytes, params: 2, frame: 20
var environment;
const value = environment.__proto__;
const property = env1_2(env1_3.useState(_fun29571), 1)[0];
return (
property != null
? ((Component) => <Component {...a0} />)(property)
: (
<env1_3.Suspense fallback={renderLoader != null ? renderLoader() : loaderMaker()()}>
{((Component) => <Component {...a0} />)(env0_6)}
</env1_3.Suspense>
)
);
function _fun29571() { // fn#29571, offset: 0x00e361d6, size: 9 bytes, params: 1, frame: 1
return env1_4;
}
}
}
function LazyLibrary({createPromise, webpackId, render, renderFallback}) { // fn#29573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:1354, offset: 0x00fc5249, size: 145 bytes, params: 2, frame: 19
const binding = env0_3;
const [property, env0_2] = env0_2Binding(binding.useState(null), 2);
binding.useEffect(_fun29574, []);
return (
<>
{property == null ? renderFallback() : render(property)}
</>
);
function _fun29574() { // fn#29574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:1498, offset: 0x00fc52da, size: 78 bytes, params: 1, frame: 14
var environment;
let value = environment.__proto__;
value = Reflect.apply((require(3822) /* metro dependency 3822: importWithRetry */).importWithRetry, value,
[{createPromise: createPromise, webpackId: webpackId}]);
value.then(_fun29575);
function _fun29575({default: property}) { // fn#29575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3948:1564, offset: 0x00fc5328, size: 24 bytes, params: 2, frame: 11
return env1_2(property);
}
}
}
}
global.__d(_fun29561, 3821, [57, 31, 33, 3822, 2]) /* metro module 3821, dependencies: [57, 31, 33, 3822, 2] */;
@@ -1,9 +1,11 @@
/* Metro module 3822; source: ../discord_common/js/packages/code-splitting/importWithRetry.tsx; dependencies: [5, 2] */
import Module00005 from '../../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun29576(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3949:6, offset: 0x00fc5340, size: 160 bytes, params: 8, frame: 18
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_1 = importDefault(5) /* metro dependency 5 */;
const closure = function(a0) {
var env0_0 = a0;
var Promise = global.Promise;
@@ -15,7 +17,7 @@ function _fun29576(global, require, importDefault, importAll, module, exports, d
var Promise = global.Promise;
return Promise.resolve();
};
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/code-splitting/importWithRetry.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/code-splitting/importWithRetry.tsx');
exports.awaitOnline = closure2;
exports.setAwaitOnline = function(a0) {
env0_3 = a0;
@@ -24,376 +26,381 @@ function _fun29576(global, require, importDefault, importAll, module, exports, d
exports.importWithRetry = function() {
return _importWithRetry.apply(this, arguments);
};
}
function _importWithRetry() { // fn#29577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3949:191, offset: 0x00fc53e0, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun29579).apply(this, arguments);
async function _fun29579({createPromise, webpackId, name}) { // fn#29579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3949:246, offset: 0x00fc5422, size: 268 bytes, params: 2, frame: 28
var performance;
var mark;
var object;
var object2;
var value6;
var error;
var cache;
var value7;
var value8;
var Math;
var min;
var value9;
if (false) {
return undefined;
}
await undefined;
if (false) {
return undefined;
}
let r14 = 500;
let r15 = 0;
exceptionMain4: while (true) {
try {
performance = global.performance;
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
mark = performance.mark;
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
object = {};
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
object2 = {};
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
object2.webpackId = webpackId;
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
object2.name = name;
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
object.detail = object2;
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
Reflect.apply(mark, performance, ['importWithRetry:start', object]);
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
value = createPromise();
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
await value;
try {
value = undefined;
value6 = false;
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
return value6 ? value : value;
}
}
function _importWithRetry() { // fn#29577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3949:191, offset: 0x00fc53e0, size: 48 bytes, params: 1, frame: 14
return env0_1(_fun29579).apply(this, arguments);
}
function pausedPromise(a0) { // fn#29580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3949:120, offset: 0x00fc552e, size: 44 bytes, params: 2, frame: 11
const env0_0 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun29581);
return promise instanceof Object ? promise : value;
}
async function _fun29579({createPromise, webpackId, name}) { // fn#29579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3949:246, offset: 0x00fc5422, size: 268 bytes, params: 2, frame: 28
var performance;
var mark;
var object3;
var object4;
var value6;
var error;
var cache;
var value7;
var value8;
var Math;
var min;
var value9;
if (false) {
return undefined;
}
await undefined;
if (false) {
return undefined;
}
let r14 = 500;
let r15 = 0;
exceptionMain4: while (true) {
try {
performance = global.performance;
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
mark = performance.mark;
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
object3 = {};
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
object4 = {};
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
object4.webpackId = webpackId;
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
object4.name = name;
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
object3.detail = object4;
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
Reflect.apply(mark, performance, ['importWithRetry:start', object3]);
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
try {
value = createPromise();
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
await value;
try {
value = undefined;
value6 = false;
} catch (error) {
while (true) {
cache = env2_0.cache;
if (webpackId in cache) {
throw error;
}
if (r15 >= 50) {
throw error;
}
await env2_2(r14);
value = undefined;
value7 = false;
if (value7) {
return value;
}
await env2_3();
value = undefined;
value8 = false;
if (value8) {
return value;
}
Math = global.Math;
min = Math.min;
value = Reflect.apply(min, Math, [5000, 2 * r14]);
value9 = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
r14 = value;
r15 = value9;
break;
continue exceptionMain4;
}
}
return value6 ? value : value;
function pausedPromise(a0) { // fn#29580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3949:120, offset: 0x00fc552e, size: 44 bytes, params: 2, frame: 11
const env0_0 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun29581);
return promise instanceof Object ? promise : value;
function _fun29581(a0) { // fn#29581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3949:136, offset: 0x00fc555a, size: 28 bytes, params: 2, frame: 13
return global.setTimeout(a0, env0_0);
}
}
}
global.__d(_fun29576, 3822, [5, 2]) /* metro module 3822, dependencies: [5, 2] */;
@@ -1,5 +1,8 @@
/* Metro module 3878; source: ../discord_common/js/packages/design/animation/MotionTypes.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun32035(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4017:6, offset: 0x0100a394, size: 37 bytes, params: 8, frame: 12
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/animation/MotionTypes.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/animation/MotionTypes.tsx');
}
global.__d(_fun32035, 3878, [2]) /* metro module 3878, dependencies: [2] */;
@@ -1,22 +1,24 @@
/* Metro module 3869; source: ../discord_common/js/packages/design/components/AccessibilityAnnouncer/AccessibilityAnnouncer.android.tsx; dependencies: [27, 3870, 2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
function _fun31997(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4008:6, offset: 0x01009ada, size: 134 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(27) /* metro dependency 27 */).AccessibilityInfo;
object2 = {announce: announce, clearAnnouncements: function() {
object = {announce: announce, clearAnnouncements: function() {
return null;
}};
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityAnnouncer/AccessibilityAnnouncer.android.tsx');
exports.AccessibilityAnnouncer = object2;
}
function announce(a0, a1) { // fn#31998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4008:136, offset: 0x01009b60, size: 76 bytes, params: 3, frame: 12
if (a1 === 'polite') {
(require(3870) /* metro dependency 3870: AccessibilityAnnouncerLiveRegionNative */).updateAccessibilityAnnouncerLiveRegionMessage(a0);
} else {
AccessibilityInfo.announceForAccessibility(a0);
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityAnnouncer/AccessibilityAnnouncer.android.tsx');
exports.AccessibilityAnnouncer = object;
function announce(a0, a1) { // fn#31998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4008:136, offset: 0x01009b60, size: 76 bytes, params: 3, frame: 12
if (a1 === 'polite') {
(require(3870) /* metro dependency 3870: AccessibilityAnnouncerLiveRegionNative */).updateAccessibilityAnnouncerLiveRegionMessage(a0);
} else {
AccessibilityInfo.announceForAccessibility(a0);
}
}
}
global.__d(_fun31997, 3869, [27, 3870, 2]) /* metro module 3869, dependencies: [27, 3870, 2] */;
@@ -1,38 +1,42 @@
/* Metro module 3870; source: ../discord_common/js/packages/design/components/AccessibilityAnnouncer/AccessibilityAnnouncerLiveRegion.native.tsx; dependencies: [31, 27, 33, 3871, 2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun32000(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4009:6, offset: 0x01009bac, size: 194 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_0 = (require(27) /* metro dependency 27 */).Text;
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
const env0_2 = (require(3871) /* metro dependency 3871 */).create(function() {
return {message: undefined, version: 0};
});
value = value.memo(_fun32002);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityAnnouncer/AccessibilityAnnouncerLiveRegion.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityAnnouncer/AccessibilityAnnouncerLiveRegion.native.tsx');
exports.updateAccessibilityAnnouncerLiveRegionMessage = updateAccessibilityAnnouncerLiveRegionMessage;
exports.AccessibilityAnnouncerLiveRegion = value;
function _fun32002() { // fn#32002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4009:202, offset: 0x01009c7f, size: 73 bytes, params: 1, frame: 18
const {message, version} = env0_2();
return (
<Text
accessibilityLiveRegion="polite"
style={{display: 'none'}}
key={version}
>
{message}
</Text>
);
}
function updateAccessibilityAnnouncerLiveRegionMessage(a0) { // fn#32003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4009:529, offset: 0x01009cc8, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0;
env0_2.setState(_fun32004);
function _fun32004({version}) { // fn#32004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4009:599, offset: 0x01009cec, size: 36 bytes, params: 2, frame: 3
return {message: env0_0, version: version + 1};
}
}
}
function _fun32002() { // fn#32002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4009:202, offset: 0x01009c7f, size: 73 bytes, params: 1, frame: 18
const {message, version} = env0_2();
return (
<Text
accessibilityLiveRegion="polite"
style={{display: 'none'}}
key={version}
>
{message}
</Text>
);
}
function updateAccessibilityAnnouncerLiveRegionMessage(a0) { // fn#32003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4009:529, offset: 0x01009cc8, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0;
env0_2.setState(_fun32004);
}
function _fun32004({version}) { // fn#32004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4009:599, offset: 0x01009cec, size: 36 bytes, params: 2, frame: 3
return {message: env0_0, version: version + 1};
}
global.__d(_fun32000, 3870, [31, 27, 33, 3871, 2]) /* metro module 3870, dependencies: [31, 27, 33, 3871, 2] */;
@@ -1,10 +1,12 @@
/* Metro module 7688; source: ../discord_common/js/packages/design/components/AccessibilityAnnouncer/useCharacterLimitAnnouncement.tsx; dependencies: [31, 3869, 2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun61371(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7866:6, offset: 0x01b3d584, size: 112 bytes, params: 8, frame: 18
let 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('../discord_common/js/packages/design/components/AccessibilityAnnouncer/useCharacterLimitAnnouncement.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityAnnouncer/useCharacterLimitAnnouncement.tsx');
exports.useCharacterLimitAnnouncement = function(a0) {
var currentLength = a0.currentLength;
var env0_0 = currentLength;
@@ -15,34 +17,35 @@ function _fun61371(global, require, importDefault, importAll, module, exports, d
var env0_3 = binding.useRef(false);
binding.useEffect(_fun61373, [currentLength, maxLength, message]);
};
}
function useCharacterLimitAnnouncement({currentLength, maxLength, message}) { // fn#61372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7866:276, offset: 0x01b3d5f4, size: 93 bytes, params: 2, frame: 16
const binding = message;
const env0_3 = binding.useRef(false);
binding.useEffect(_fun61373, [currentLength, maxLength, message]);
}
function _fun61373() { // fn#61373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7866:388, offset: 0x01b3d651, size: 126 bytes, params: 1, frame: 15
var value2;
var value3;
var AccessibilityAnnouncer;
if (maxLength != null) {
value2 = currentLength >= maxLength;
if (value2) {
if (env0_3.current) {
if (!value2) {
function useCharacterLimitAnnouncement({currentLength, maxLength, message}) { // fn#61372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7866:276, offset: 0x01b3d5f4, size: 93 bytes, params: 2, frame: 16
const binding = message;
const env0_3 = binding.useRef(false);
binding.useEffect(_fun61373, [currentLength, maxLength, message]);
function _fun61373() { // fn#61373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7866:388, offset: 0x01b3d651, size: 126 bytes, params: 1, frame: 15
var value2;
var value3;
var AccessibilityAnnouncer;
if (maxLength != null) {
value2 = currentLength >= maxLength;
if (value2) {
if (env0_3.current) {
if (!value2) {
env0_3.current = false;
}
} else {
env0_3.current = true;
value3 = environment.__proto__;
AccessibilityAnnouncer = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(message, 'assertive');
}
} else if (!value2) {
env0_3.current = false;
}
} else {
env0_3.current = true;
value3 = environment.__proto__;
AccessibilityAnnouncer = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(message, 'assertive');
}
} else if (!value2) {
env0_3.current = false;
}
}
}
global.__d(_fun61371, 7688, [31, 3869, 2]) /* metro module 7688, dependencies: [31, 3869, 2] */;
@@ -1,8 +1,11 @@
/* Metro module 3876; source: ../discord_common/js/packages/design/components/AccessibilityPreferencesContext/AccessibilityConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun32031(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4015:6, offset: 0x0100a233, size: 88 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityPreferencesContext/AccessibilityConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityPreferencesContext/AccessibilityConstants.tsx');
exports.LOW_SATURATION_THRESHOLD = 0.4;
}
global.__d(_fun32031, 3876, [2]) /* metro module 3876, dependencies: [2] */;
@@ -1,13 +1,17 @@
/* Metro module 3875; source: ../discord_common/js/packages/design/components/AccessibilityPreferencesContext/AccessibilityPreferencesContext.tsx; dependencies: [31, 2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun32030(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4014:6, offset: 0x0100a195, size: 158 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
let value = ReactModule;
value = value.createContext({'reducedMotion': null, 'prefersCrossfades': false, 'forcedColors': null,
'alwaysShowLinkDecorations': false, 'highContrastModeEnabled': false, 'keyboardModeEnabled': true,
'switchIconsEnabled': false, reducedMotion: {'enabled': false, 'rawValue': 'no-preference'},
forcedColors: {'enabled': false, 'rawValue': 'none'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityPreferencesContext/AccessibilityPreferencesContext.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/AccessibilityPreferencesContext/AccessibilityPreferencesContext.tsx');
exports.AccessibilityPreferencesContext = value;
}
global.__d(_fun32030, 3875, [31, 2]) /* metro module 3875, dependencies: [31, 2] */;
@@ -1,148 +1,152 @@
/* Metro module 3961; source: ../discord_common/js/packages/design/components/Colors/shared/Colors.tsx; dependencies: [57, 674, 2] */
import Module00057 from '../../../../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Module00674 from '../../../../../../../../by-id/module-00674.js'; /* Metro dependency 674 */
import * as FileImportTrackerModule from '../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun32420(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:6, offset: 0x01014ed0, size: 178 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Colors/shared/Colors.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Colors/shared/Colors.tsx');
exports.WCAGContrastRatios = {'NonText': 3, 'Text': 4.5, 'HighContrastText': 7};
exports.getContrastingColor = getContrastingColor;
exports.darkenColor = darkenColor;
exports.brightenColor = brightenColor;
exports.setColorOpacity = setColorOpacity;
}
function toRGBAString(a0) { // fn#32421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:151, offset: 0x01014f82, size: 104 bytes, params: 2, frame: 23
let value = a0.rgba();
value = Module00057(value, 4);
return 'rgba(' + value[0] + ', ' + value[1] + ', ' + value[2] + ', ' + value[3] + ')';
}
function toRGBAString(a0) { // fn#32421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:151, offset: 0x01014f82, size: 104 bytes, params: 2, frame: 23
let value = a0.rgba();
value = env0_2(value, 4);
return 'rgba(' + value[0] + ', ' + value[1] + ', ' + value[2] + ', ' + value[3] + ')';
}
function getContrastingColor(a0) { // fn#32422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:401, offset: 0x01014fea, size: 290 bytes, params: 2, frame: 24
var r1;
var r12;
var r13;
var value3;
var NonText;
var value10;
var value11;
var brighten;
var darken;
var value12;
var value13;
let value = a0;
const value2 = a1;
reducibleJoin2: while (true) {
if (value2 !== undefined) {
r1 = value2;
function getContrastingColor(a0) { // fn#32422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:401, offset: 0x01014fea, size: 290 bytes, params: 2, frame: 24
var r1;
var r12;
var r13;
var value3;
var NonText;
var value10;
var value11;
var brighten;
var darken;
var value12;
var value13;
let value = a0;
const value2 = a1;
reducibleJoin2: while (true) {
if (value2 !== undefined) {
r1 = value2;
break reducibleJoin2;
}
r1 = {};
break reducibleJoin2;
}
r1 = {};
break reducibleJoin2;
}
const contrastRatio = r1.contrastRatio;
reducibleJoin4: while (true) {
if (contrastRatio != null) {
r12 = contrastRatio;
const contrastRatio = r1.contrastRatio;
reducibleJoin4: while (true) {
if (contrastRatio != null) {
r12 = contrastRatio;
break reducibleJoin4;
}
value3 = environment;
NonText = env0_3.NonText;
r12 = NonText;
break reducibleJoin4;
}
value3 = environment;
NonText = env0_3.NonText;
r12 = NonText;
break reducibleJoin4;
}
const r11 = r1.tolerance ?? 3;
const value6 = (importDefault(674) /* metro dependency 674 */)(r1.base ?? value);
value = (importDefault(674) /* metro dependency 674 */)(value);
let luminance = value6.luminance;
const value7 = Reflect.apply(luminance, value6, []);
const defaultImport2 = importDefault(674) /* metro dependency 674 */;
let contrast = defaultImport2.contrast;
const value8 = Reflect.apply(contrast, defaultImport2, [value6, value]);
const value9 = 99;
let r4 = value8;
let r5 = value;
let r7 = value9;
reducibleLoop7: while (true) {
value = r4 < r12;
value10 = r4 > r12 + r11;
if (!value) {
reducibleJoin9: while (true) {
if (value10) {
break reducibleJoin9;
const r11 = r1.tolerance ?? 3;
const value6 = (importDefault(674) /* metro dependency 674 */)(r1.base ?? value);
value = (importDefault(674) /* metro dependency 674 */)(value);
let luminance = value6.luminance;
const value7 = Reflect.apply(luminance, value6, []);
const defaultImport2 = importDefault(674) /* metro dependency 674 */;
let contrast = defaultImport2.contrast;
const value8 = Reflect.apply(contrast, defaultImport2, [value6, value]);
const value9 = 99;
let r4 = value8;
let r5 = value;
let r7 = value9;
reducibleLoop7: while (true) {
value = r4 < r12;
value10 = r4 > r12 + r11;
if (!value) {
reducibleJoin9: while (true) {
if (value10) {
break reducibleJoin9;
}
r1 = r5;
break reducibleLoop7;
}
r1 = r5;
break reducibleLoop7;
}
}
luminance = r5.luminance;
value11 = Reflect.apply(luminance, r5, []) > value7;
reducibleJoin15: while (true) {
reducibleJoin13: while (true) {
if (value10) {
if (!value11) {
if (!value) {
break reducibleJoin13;
luminance = r5.luminance;
value11 = Reflect.apply(luminance, r5, []) > value7;
reducibleJoin15: while (true) {
reducibleJoin13: while (true) {
if (value10) {
if (!value11) {
if (!value) {
break reducibleJoin13;
}
if (value11) {
break reducibleJoin13;
}
}
darken = r5.darken;
value = Reflect.apply(darken, r5, []);
r13 = value;
break reducibleJoin15;
}
if (value) {
if (value11) {
break reducibleJoin13;
}
darken = r5.darken;
value = Reflect.apply(darken, r5, []);
r13 = value;
break reducibleJoin15;
}
darken = r5.darken;
value = Reflect.apply(darken, r5, []);
r13 = value;
break reducibleJoin15;
break reducibleJoin13;
}
if (value) {
if (value11) {
break reducibleJoin13;
}
darken = r5.darken;
value = Reflect.apply(darken, r5, []);
r13 = value;
break reducibleJoin15;
}
break reducibleJoin13;
brighten = r5.brighten;
value = Reflect.apply(brighten, r5, []);
r13 = value;
break reducibleJoin15;
}
brighten = r5.brighten;
value = Reflect.apply(brighten, r5, []);
r13 = value;
break reducibleJoin15;
value = defaultImport2;
contrast = value.contrast;
value = Reflect.apply(contrast, value, [value6, r13]);
value12 = typeof r7 === 'bigint' ? r7 : +r7;
value13 = typeof value12 === 'bigint' ? value12 - 1n : +value12 - 1;
if (value12 > 0) {
r4 = value;
r5 = r13;
r7 = value13;
continue reducibleLoop7;
}
r1 = r13;
break reducibleLoop7;
}
value = defaultImport2;
contrast = value.contrast;
value = Reflect.apply(contrast, value, [value6, r13]);
value12 = typeof r7 === 'bigint' ? r7 : +r7;
value13 = typeof value12 === 'bigint' ? value12 - 1n : +value12 - 1;
if (value12 > 0) {
r4 = value;
r5 = r13;
r7 = value13;
continue reducibleLoop7;
}
r1 = r13;
break reducibleLoop7;
return toRGBAString(r1);
}
return toRGBAString(r1);
}
function darkenColor(a0, a1) { // fn#32423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:780, offset: 0x0101510c, size: 58 bytes, params: 3, frame: 13
const toRGBAStringBinding = toRGBAString;
let value = importDefault(674) /* metro dependency 674 */;
value = value(a0);
return toRGBAStringBinding(value.darken(a1));
}
function darkenColor(a0, a1) { // fn#32423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:780, offset: 0x0101510c, size: 58 bytes, params: 3, frame: 13
const toRGBAStringBinding = toRGBAString;
let value = Module00674;
value = value(a0);
return toRGBAStringBinding(value.darken(a1));
}
function brightenColor(a0, a1) { // fn#32424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:865, offset: 0x01015146, size: 58 bytes, params: 3, frame: 13
const toRGBAStringBinding = toRGBAString;
let value = importDefault(674) /* metro dependency 674 */;
value = value(a0);
return toRGBAStringBinding(value.brighten(a1));
}
function brightenColor(a0, a1) { // fn#32424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:865, offset: 0x01015146, size: 58 bytes, params: 3, frame: 13
const toRGBAStringBinding = toRGBAString;
let value = Module00674;
value = value(a0);
return toRGBAStringBinding(value.brighten(a1));
}
function setColorOpacity(a0, a1) { // fn#32425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:956, offset: 0x01015180, size: 58 bytes, params: 3, frame: 13
const toRGBAStringBinding = toRGBAString;
let value = Module00674;
value = value(a0);
return toRGBAStringBinding(value.alpha(a1));
}
function setColorOpacity(a0, a1) { // fn#32425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4110:956, offset: 0x01015180, size: 58 bytes, params: 3, frame: 13
const toRGBAStringBinding = toRGBAString;
let value = importDefault(674) /* metro dependency 674 */;
value = value(a0);
return toRGBAStringBinding(value.alpha(a1));
}
global.__d(_fun32420, 3961, [57, 674, 2]) /* metro module 3961, dependencies: [57, 674, 2] */;
@@ -1,8 +1,10 @@
/* Metro module 3962; source: ../discord_common/js/packages/design/components/Graphic/GraphicTypes.native.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun32426(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4111:6, offset: 0x010151ba, size: 85 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Graphic/GraphicTypes.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Graphic/GraphicTypes.native.tsx');
exports.isImage = function(a0) {
var r0;
var value = a0.type === 'image';
@@ -16,3 +18,4 @@ function _fun32426(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun32426, 3962, [2]) /* metro module 3962, dependencies: [2] */;
@@ -1,18 +1,21 @@
/* Metro module 14766; source: ../discord_common/js/packages/design/components/Icon/getIconSize.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun111477(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14963:6, offset: 0x023a3dfc, size: 117 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Icon/getIconSize.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Icon/getIconSize.tsx');
exports.getIconSize = getIconSize_111478;
exports.ICON_SIZE = {'xxs': 12, 'xs': 16, 'sm': 18, 'md': 24, 'lg': 32, 'custom': null, 'refresh_sm': 20,
custom: undefined};
}
function getIconSize_111478(a0) { // fn#111478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14963:275, offset: 0x023a3e71, size: 38 bytes, params: 2, frame: 3
if (a0 === 'custom') {
return null;
function getIconSize_111478(a0) { // fn#111478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14963:275, offset: 0x023a3e71, size: 38 bytes, params: 2, frame: 3
if (a0 === 'custom') {
return null;
}
const property = env0_0[a0];
return {width: property, height: property};
}
const property = env0_0[a0];
return {width: property, height: property};
}
global.__d(_fun111477, 14766, [2]) /* metro module 14766, dependencies: [2] */;
@@ -1,22 +1,30 @@
/* Metro module 3932; source: ../discord_common/js/packages/design/components/ManaContext/ManaContext.native.tsx; dependencies: [31, 33, 2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun32287(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4081:6, offset: 0x01010a94, size: 163 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.createContext({});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/ManaContext/ManaContext.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/ManaContext/ManaContext.native.tsx');
exports.ManaContext = value;
exports.useManaContext = useManaContext;
exports.ManaContextProvider = ManaContextProvider;
function useManaContext() { // fn#32288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4081:295, offset: 0x01010b37, size: 24 bytes, params: 1, frame: 11
return env0_0.useContext(env0_3);
}
function ManaContextProvider({children, value}) { // fn#32289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4081:354, offset: 0x01010b4f, size: 60 bytes, params: 2, frame: 16
const Provider = env0_3.Provider;
return (
<Provider value={value ?? env0_2}>
{children}
</Provider>
);
}
}
function ManaContextProvider({children, value}) { // fn#32289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4081:354, offset: 0x01010b4f, size: 60 bytes, params: 2, frame: 16
const Provider = env0_3.Provider;
return (
<Provider value={value ?? env0_2}>
{children}
</Provider>
);
}
global.__d(_fun32287, 3932, [31, 33, 2]) /* metro module 3932, dependencies: [31, 33, 2] */;
@@ -1,21 +1,22 @@
/* Metro module 3885; source: ../discord_common/js/packages/design/components/Rive/native/BaseRive.tsx; dependencies: [31, 27, 33, 3886, 3875, 3932, 3933, 3934, 2] */
import * as FileImportTrackerModule from '../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as AccessibilityPreferencesContextModule from '../../AccessibilityPreferencesContext/AccessibilityPreferencesContext.tsx'; /* Metro dependency 3875 */
import * as Module03886Module from '../../../../../../../../by-id/module-03886.js'; /* Metro dependency 3886 */
import * as ManaContextNativeModule from '../../ManaContext/ManaContext.native.tsx'; /* Metro dependency 3932 */
function _fun32056(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:6, offset: 0x0100b06c, size: 356 bytes, params: 8, frame: 23
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_3 = value2.View;
const StyleSheet = value2.StyleSheet;
const env0_4 = value2.Image;
const env0_5 = value2.PixelRatio;
value2.Platform;
const value3 = require(33) /* metro dependency 33 */;
const env0_6 = value3.jsx;
const env0_7 = value3.jsxs;
let value = ReactModule;
const StyleSheet = ReactNativeModule.StyleSheet;
ReactNativeModule.Platform;
const env0_8 = StyleSheet.create({container: {flexGrow: 1}, fill: {flex: 1}, hidden: {opacity: 0}});
value = value.forwardRef(BaseRiveInner);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/BaseRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/BaseRive.tsx');
exports.BaseRive = value;
exports.useNumberBinding = useNumberBinding;
exports.useStringBinding = useStringBinding;
@@ -25,337 +26,359 @@ function _fun32056(global, require, importDefault, importAll, module, exports, d
exports.useTriggerBinding = useTriggerBinding;
exports.useImageBinding = useImageBinding;
exports.useArtboardBinding = useArtboardBinding;
}
function useObservedValue(a0, a1) { // fn#32057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:1804, offset: 0x0100b1d0, size: 97 bytes, params: 3, frame: 16
const env0_0 = a0;
const env0_1 = a1;
const env0_2Binding = env0_2.useRef(a1);
env0_2Binding.useEffect(_fun32058, [a1]);
env0_2Binding.useEffect(_fun32059, [a0]);
}
function BaseRiveInner({src, style, artboard, artboardProperties, artboardViewModelInstances, defaultViewModelInstance, referencedAssets, stateMachine, fit, alignment, withReducedMotion, renderDataBinding}, a1) { // fn#32060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:295, offset: 0x0100b276, size: 1060 bytes, params: 3, frame: 36
var r5;
var RiveView;
var object;
var object2;
withReducedMotion = withReducedMotion === undefined ? 'halt' : withReducedMotion;
let env0_2 = undefined;
const moduleValue = require(3886) /* metro dependency 3886 */;
const useRiveFile = moduleValue.useRiveFile;
const riveFile = Reflect.apply(useRiveFile, moduleValue, [src,
referencedAssets != null ? {referencedAssets: referencedAssets} : undefined]).riveFile;
const {riveViewRef, setHybridRef} = moduleValue.useRive();
const value6 = riveViewRef != null;
const binding = env0_2;
const useContext = binding.useContext;
const AccessibilityPreferencesContext = (require(3875) /* metro dependency 3875: AccessibilityPreferencesContext */).AccessibilityPreferencesContext;
const enabled = Reflect.apply(useContext, binding, [AccessibilityPreferencesContext]).reducedMotion.enabled;
const manaContextNativeModule = require(3932) /* metro dependency 3932: ManaContextNative */;
const useManaContext = manaContextNativeModule.useManaContext;
const experiments = Reflect.apply(useManaContext, manaContextNativeModule, []).experiments;
const r4 = experiments == null || experiments.enabledExperiments == null ? undefined : experiments.enabledExperiments.includes('rive-app-state-playback');
const r8 = r4 != null && r4;
const r16 = fit !== 'layout' ? undefined : PixelRatio.get();
const value10 = (artboardViewModelInstances[artboard] ?? []).length > 0;
const value11 = env0_2.useMemo(function() {
return defaultViewModelInstance;
}, []);
const moduleValue4 = moduleValue;
const useViewModelInstance = moduleValue4.useViewModelInstance;
const instance = Reflect.apply(useViewModelInstance, moduleValue4,
[(value11 != null || value10) && riveFile != null ? riveFile : null, {artboardName: artboard,
instanceName: value11}]).instance;
let r14 = instance ?? moduleValue.DataBindMode.None;
const value15 = (require(3933) /* metro dependency 3933: useRivePlayback */).useRivePlayback(riveViewRef,
{isReady: value6, appStatePlaybackEnabled: r8,
shouldShortLoopForReducedMotion: enabled && !(artboardProperties[artboard]?.reducedMotion != null) && withReducedMotion !== 'play'});
const play = value15.play;
const pause = value15.pause;
env0_2 = pause;
const playIfNeeded = value15.playIfNeeded;
env0_2.useImperativeHandle(a1, function() {
return {play: play, pause: pause};
}, [play, pause]);
const items2 = [env0_8.container];
items2[1] = value6 ? undefined : env0_8.hidden;
const value16 = riveFile != null;
if (value16) {
RiveView = moduleValue.RiveView;
var riveViewProps = {file: riveFile, hybridRef: setHybridRef, artboardName: artboard, autoPlay: true,
dataBind: r14,
style: [env0_8.fill, style]};
r14 = stateMachine != null ? {stateMachineName: stateMachine} : {};
copyDataProperties(riveViewProps, r14, undefined);
if (fit != null) {
object = {};
object.fit = (require(3934) /* metro dependency 3934: RiveTypes */).FIT_MAP[fit];
r14 = object;
} else {
r14 = {};
function useObservedValue(a0, a1) { // fn#32057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:1804, offset: 0x0100b1d0, size: 97 bytes, params: 3, frame: 16
const env0_0 = a0;
const env0_1 = a1;
const env0_2Binding = env0_2.useRef(a1);
env0_2Binding.useEffect(_fun32058, [a1]);
env0_2Binding.useEffect(_fun32059, [a0]);
function _fun32058() { // fn#32058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:1866, offset: 0x0100b231, size: 21 bytes, params: 1, frame: 2
env0_2.current = require;
}
copyDataProperties(riveViewProps, r14, undefined);
if (alignment != null) {
object2 = {};
object2.alignment = (require(3934) /* metro dependency 3934: RiveTypes */).ALIGNMENT_MAP[alignment];
r14 = object2;
} else {
r14 = {};
}
copyDataProperties(riveViewProps, r14, undefined);
r14 = r16 != null ? {layoutScaleFactor: r16} : {};
copyDataProperties(riveViewProps, r14, undefined);
r5 = <RiveView {...riveViewProps} />;
} else {
r5 = value16;
}
const items3 = [r5];
items3[1] = renderDataBinding?.({instance: instance ?? null, file: riveFile ?? null, reducedMotionEnabled: enabled,
playIfNeeded: playIfNeeded});
return (
<View style={items2}>
{items3}
</View>
);
}
function useNumberBinding(a0, a1, a2, a3, a4) { // fn#32063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2097, offset: 0x0100b6b3, size: 125 bytes, params: 6, frame: 19
const env0_0 = a2;
const env0_1 = a4;
const value2 = (require(3886) /* metro dependency 3886 */).useRiveNumber(a0, a1);
const setValue = value2.setValue;
const env0_2 = setValue;
const value3 = value2.value;
env0_2.useEffect(_fun32064, [a2, setValue, a4]);
useObservedValue(value3, a3);
}
function useStringBinding(a0, a1, a2, a3, a4) { // fn#32065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2439, offset: 0x0100b7cc, size: 125 bytes, params: 6, frame: 19
const env0_0 = a2;
const env0_1 = a4;
const value2 = (require(3886) /* metro dependency 3886 */).useRiveString(a0, a1);
const setValue = value2.setValue;
const env0_2 = setValue;
const value3 = value2.value;
env0_2.useEffect(_fun32066, [a2, setValue, a4]);
useObservedValue(value3, a3);
}
function useBooleanBinding(a0, a1, a2, a3, a4) { // fn#32067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2644, offset: 0x0100b882, size: 125 bytes, params: 6, frame: 19
const env0_0 = a2;
const env0_1 = a4;
const value2 = (require(3886) /* metro dependency 3886 */).useRiveBoolean(a0, a1);
const setValue = value2.setValue;
const env0_2 = setValue;
const value3 = value2.value;
env0_2.useEffect(_fun32068, [a2, setValue, a4]);
useObservedValue(value3, a3);
}
function useColorBinding(a0, a1, a2, a3, a4) { // fn#32069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2847, offset: 0x0100b93c, size: 197 bytes, params: 6, frame: 20
const env0_0 = a2;
const env0_1 = a3;
const env0_2 = a4;
const value2 = (require(3886) /* metro dependency 3886 */).useRiveColor(a0, a1);
const setValue = value2.setValue;
const value3 = value2.value;
env0_2.useEffect(_fun32070, [a2, setValue, a4]);
const env0_5 = env0_2.useRef(a3);
env0_2.useEffect(_fun32071, [a3]);
env0_2.useEffect(_fun32072, [value3]);
}
function useEnumBinding(a0, a1, a2, a3, a4) { // fn#32073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3154, offset: 0x0100ba74, size: 125 bytes, params: 6, frame: 19
const env0_0 = a2;
const env0_1 = a4;
const value2 = (require(3886) /* metro dependency 3886 */).useRiveEnum(a0, a1);
const setValue = value2.setValue;
const env0_2 = setValue;
const value3 = value2.value;
env0_2.useEffect(_fun32074, [a2, setValue, a4]);
useObservedValue(value3, a3);
}
function useTriggerBinding(a0, a1, a2, a3, a4) { // fn#32075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3355, offset: 0x0100baf1, size: 132 bytes, params: 6, frame: 20
const env0_0 = a2;
const env0_1 = a4;
const value2 = undefined;
const moduleValue = require(3886) /* metro dependency 3886 */;
const useRiveTrigger = moduleValue.useRiveTrigger;
const trigger = Reflect.apply(useRiveTrigger, moduleValue, [a0, a1, a3 != null ? {onTrigger: a3} : value2]).trigger;
trigger.useEffect(_fun32076, [a2, trigger, a4]);
return value2;
}
function useImageBinding(a0, a1, a2, a3, a4) { // fn#32077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3571, offset: 0x0100bbc7, size: 162 bytes, params: 6, frame: 20
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
const env0_4 = a4;
env0_2.useEffect(_fun32078, [a0, a1, a2, a4]);
const env0_5 = env0_2.useRef(a3);
env0_2.useEffect(_fun32082, [a3]);
env0_2.useEffect(_fun32083, [a0, a1]);
}
function useArtboardBinding(a0, a1, a2, a3, a4) { // fn#32085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:4129, offset: 0x0100bdc2, size: 88 bytes, params: 6, frame: 18
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
const env0_4 = a4;
env0_2.useEffect(_fun32086, [a0, a1, a2, a3, a4]);
}
function _fun32059() { // fn#32059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:1903, offset: 0x0100b246, size: 48 bytes, params: 1, frame: 12
if (env0_0 !== undefined) {
if (env0_2.current != null) {
env0_2.current(env0_0);
}
}
}
function _fun32064() { // fn#32064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2203, offset: 0x0100b730, size: 156 bytes, params: 1, frame: 19
if (importDefault != null) {
setValue(typeof importDefault !== 'number' || global.Number.isNaN(importDefault) ? global.Number.isNaN(global.parseFloat(importDefault.toString())) ? 0 : global.parseFloat(importDefault.toString()) : importDefault);
if (env0_1 != null) {
env0_1();
}
}
}
function _fun32066() { // fn#32066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2545, offset: 0x0100b849, size: 57 bytes, params: 1, frame: 13
if (importDefault != null) {
setValue(importDefault.toString());
if (env0_1 != null) {
env0_1();
}
}
}
function _fun32068() { // fn#32068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2752, offset: 0x0100b8ff, size: 61 bytes, params: 1, frame: 14
if (importDefault != null) {
setValue(global.Boolean(importDefault));
if (env0_1 != null) {
env0_1();
}
}
}
function _fun32070() { // fn#32070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2951, offset: 0x0100ba01, size: 57 bytes, params: 1, frame: 13
if (importDefault != null) {
setValue(importDefault.toString());
if (env0_2 != null) {
env0_2();
}
}
}
function _fun32072() { // fn#32072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3075, offset: 0x0100ba3a, size: 58 bytes, params: 1, frame: 12
var current;
var binding;
let valueBinding = value;
if (valueBinding != null) {
current = env0_5.current;
if (current != null) {
binding = env0_5;
current = binding.current;
valueBinding = value;
Reflect.apply(current, binding, [valueBinding.toInt()]);
}
}
}
function _fun32076() { // fn#32076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3477, offset: 0x0100bb75, size: 82 bytes, params: 1, frame: 11
if (typeof importDefault === 'boolean' ? importDefault : importDefault !== 0 && importDefault != null) {
trigger();
if (env0_1 != null) {
env0_1();
}
}
}
function _fun32078() { // fn#32078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3620, offset: 0x0100bc69, size: 153 bytes, params: 1, frame: 16
var environment;
var value2;
var RiveImages;
var value;
if (require != null) {
if (importDefault != null) {
value2 = environment.__proto__;
RiveImages = (require(3886) /* metro dependency 3886 */).RiveImages;
value = RiveImages.loadFromURLAsync(typeof importDefault !== 'number' ? importDefault : Image.resolveAssetSource(importDefault).uri);
value = value.then(_fun32079);
value.catch(function() {
});
return _fun32081;
}
}
}
function _fun32083() { // fn#32083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3981, offset: 0x0100bd60, size: 60 bytes, params: 1, frame: 12
var value;
if (require != null) {
value = require.imageProperty(env0_0);
if (value != null) {
return value.addListener(_fun32084);
}
}
}
function _fun32086() { // fn#32086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:4181, offset: 0x0100be1a, size: 124 bytes, params: 1, frame: 16
var artboardProperty;
var binding;
var value2;
var value3;
var set;
var bindableArtboard;
var value5;
var error;
if (require != null) {
if (importDefault != null) {
if (typeof importAll === 'string') {
try {
artboardProperty = require.artboardProperty;
binding = env0_0;
value2 = Reflect.apply(artboardProperty, require, [binding]);
value3 = value2 == null;
if (!value3) {
set = value2.set;
bindableArtboard = importDefault.getBindableArtboard(importAll);
Reflect.apply(set, value2, [bindableArtboard]);
}
binding = env0_4;
value5 = binding == null;
if (!value5) {
binding = env0_4;
binding();
}
} catch (error) {
function _fun32059() { // fn#32059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:1903, offset: 0x0100b246, size: 48 bytes, params: 1, frame: 12
if (env0_0 !== undefined) {
if (env0_2.current != null) {
env0_2.current(env0_0);
}
}
}
}
}
function _fun32079(a0) { // fn#32079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3802, offset: 0x0100bd02, size: 73 bytes, params: 2, frame: 13
var value2;
if (!env0_0) {
value = environment.__proto__;
value2 = require.imageProperty(env1_0);
if (value2 != null) {
value2.set(a0);
}
if (env1_4 != null) {
env1_4();
function BaseRiveInner({src, style, artboard, artboardProperties, artboardViewModelInstances, defaultViewModelInstance, referencedAssets, stateMachine, fit, alignment, withReducedMotion, renderDataBinding}, a1) { // fn#32060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:295, offset: 0x0100b276, size: 1060 bytes, params: 3, frame: 36
var r5;
var RiveView;
var object3;
var object4;
withReducedMotion = withReducedMotion === undefined ? 'halt' : withReducedMotion;
let env0_2 = undefined;
const useRiveFile = Module03886Module.useRiveFile;
const riveFile = Reflect.apply(useRiveFile, Module03886Module, [src,
referencedAssets != null ? {referencedAssets: referencedAssets} : undefined]).riveFile;
const {riveViewRef, setHybridRef} = Module03886Module.useRive();
const value6 = riveViewRef != null;
const binding = env0_2;
const useContext = binding.useContext;
const AccessibilityPreferencesContext = (AccessibilityPreferencesContextModule).AccessibilityPreferencesContext;
const enabled = Reflect.apply(useContext, binding, [AccessibilityPreferencesContext]).reducedMotion.enabled;
const useManaContext = ManaContextNativeModule.useManaContext;
const experiments = Reflect.apply(useManaContext, ManaContextNativeModule, []).experiments;
const r4 = experiments == null || experiments.enabledExperiments == null ? undefined : experiments.enabledExperiments.includes('rive-app-state-playback');
const r8 = r4 != null && r4;
const r16 = fit !== 'layout' ? undefined : PixelRatio.get();
const value10 = (artboardViewModelInstances[artboard] ?? []).length > 0;
const value11 = env0_2.useMemo(function() {
return defaultViewModelInstance;
}, []);
const useViewModelInstance = Module03886Module.useViewModelInstance;
const instance = Reflect.apply(useViewModelInstance, Module03886Module,
[(value11 != null || value10) && riveFile != null ? riveFile : null, {artboardName: artboard,
instanceName: value11}]).instance;
let r14 = instance ?? Module03886Module.DataBindMode.None;
const value15 = (require(3933) /* metro dependency 3933: useRivePlayback */).useRivePlayback(riveViewRef,
{isReady: value6, appStatePlaybackEnabled: r8,
shouldShortLoopForReducedMotion: enabled && !(artboardProperties[artboard]?.reducedMotion != null) && withReducedMotion !== 'play'});
const play = value15.play;
const pause = value15.pause;
env0_2 = pause;
const playIfNeeded = value15.playIfNeeded;
env0_2.useImperativeHandle(a1, function() {
return {play: play, pause: pause};
}, [play, pause]);
const items2 = [env0_8.container];
items2[1] = value6 ? undefined : env0_8.hidden;
const value16 = riveFile != null;
if (value16) {
RiveView = Module03886Module.RiveView;
var riveViewProps = {file: riveFile, hybridRef: setHybridRef, artboardName: artboard, autoPlay: true,
dataBind: r14,
style: [env0_8.fill, style]};
r14 = stateMachine != null ? {stateMachineName: stateMachine} : {};
copyDataProperties(riveViewProps, r14, undefined);
if (fit != null) {
object3 = {};
object3.fit = (require(3934) /* metro dependency 3934: RiveTypes */).FIT_MAP[fit];
r14 = object3;
} else {
r14 = {};
}
copyDataProperties(riveViewProps, r14, undefined);
if (alignment != null) {
object4 = {};
object4.alignment = (require(3934) /* metro dependency 3934: RiveTypes */).ALIGNMENT_MAP[alignment];
r14 = object4;
} else {
r14 = {};
}
copyDataProperties(riveViewProps, r14, undefined);
r14 = r16 != null ? {layoutScaleFactor: r16} : {};
copyDataProperties(riveViewProps, r14, undefined);
r5 = <RiveView {...riveViewProps} />;
} else {
r5 = value16;
}
const items3 = [r5];
items3[1] = renderDataBinding?.({instance: instance ?? null, file: riveFile ?? null, reducedMotionEnabled: enabled,
playIfNeeded: playIfNeeded});
return (
<View style={items2}>
{items3}
</View>
);
}
function useNumberBinding(a0, a1, a2, a3, a4) { // fn#32063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2097, offset: 0x0100b6b3, size: 125 bytes, params: 6, frame: 19
const env0_0 = a2;
const env0_1 = a4;
const value2 = (Module03886Module).useRiveNumber(a0, a1);
const setValue = value2.setValue;
const setValue2 = setValue;
const value3 = value2.value;
setValue2.useEffect(_fun32064, [a2, setValue, a4]);
useObservedValue(value3, a3);
function _fun32064() { // fn#32064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2203, offset: 0x0100b730, size: 156 bytes, params: 1, frame: 19
if (importDefault != null) {
setValue(typeof importDefault !== 'number' || global.Number.isNaN(importDefault) ? global.Number.isNaN(global.parseFloat(importDefault.toString())) ? 0 : global.parseFloat(importDefault.toString()) : importDefault);
if (env0_1 != null) {
env0_1();
}
}
}
}
function useStringBinding(a0, a1, a2, a3, a4) { // fn#32065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2439, offset: 0x0100b7cc, size: 125 bytes, params: 6, frame: 19
const env0_0 = a2;
const env0_1 = a4;
const value2 = (Module03886Module).useRiveString(a0, a1);
const setValue = value2.setValue;
const setValue2 = setValue;
const value3 = value2.value;
setValue2.useEffect(_fun32066, [a2, setValue, a4]);
useObservedValue(value3, a3);
function _fun32066() { // fn#32066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2545, offset: 0x0100b849, size: 57 bytes, params: 1, frame: 13
if (importDefault != null) {
setValue(importDefault.toString());
if (env0_1 != null) {
env0_1();
}
}
}
}
function useBooleanBinding(a0, a1, a2, a3, a4) { // fn#32067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2644, offset: 0x0100b882, size: 125 bytes, params: 6, frame: 19
const env0_0 = a2;
const env0_1 = a4;
const value2 = (Module03886Module).useRiveBoolean(a0, a1);
const setValue = value2.setValue;
const setValue2 = setValue;
const value3 = value2.value;
setValue2.useEffect(_fun32068, [a2, setValue, a4]);
useObservedValue(value3, a3);
function _fun32068() { // fn#32068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2752, offset: 0x0100b8ff, size: 61 bytes, params: 1, frame: 14
if (importDefault != null) {
setValue(global.Boolean(importDefault));
if (env0_1 != null) {
env0_1();
}
}
}
}
function useColorBinding(a0, a1, a2, a3, a4) { // fn#32069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2847, offset: 0x0100b93c, size: 197 bytes, params: 6, frame: 20
const env0_0 = a2;
const env0_1 = a3;
const env0_2 = a4;
const value2 = (Module03886Module).useRiveColor(a0, a1);
const setValue = value2.setValue;
const value3 = value2.value;
env0_2.useEffect(_fun32070, [a2, setValue, a4]);
const env0_5 = env0_2.useRef(a3);
env0_2.useEffect(_fun32071, [a3]);
env0_2.useEffect(_fun32072, [value3]);
function _fun32070() { // fn#32070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:2951, offset: 0x0100ba01, size: 57 bytes, params: 1, frame: 13
if (importDefault != null) {
setValue(importDefault.toString());
if (env0_2 != null) {
env0_2();
}
}
}
function _fun32071() { // fn#32071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3038, offset: 0x00e6f5f6, size: 21 bytes, params: 1, frame: 2
env0_5.current = importAll;
}
function _fun32072() { // fn#32072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3075, offset: 0x0100ba3a, size: 58 bytes, params: 1, frame: 12
var current;
var binding;
let valueBinding = value;
if (valueBinding != null) {
current = env0_5.current;
if (current != null) {
binding = env0_5;
current = binding.current;
valueBinding = value;
Reflect.apply(current, binding, [valueBinding.toInt()]);
}
}
}
}
function useEnumBinding(a0, a1, a2, a3, a4) { // fn#32073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3154, offset: 0x0100ba74, size: 125 bytes, params: 6, frame: 19
const env0_0 = a2;
const env0_1 = a4;
const value2 = (Module03886Module).useRiveEnum(a0, a1);
const setValue = value2.setValue;
const setValue2 = setValue;
const value3 = value2.value;
setValue2.useEffect(_fun32074, [a2, setValue, a4]);
useObservedValue(value3, a3);
function _fun32074() { // fn#32074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3256, offset: 0x0100b849, size: 57 bytes, params: 1, frame: 13
if (importDefault != null) {
setValue(importDefault.toString());
if (env0_1 != null) {
env0_1();
}
}
}
}
function useTriggerBinding(a0, a1, a2, a3, a4) { // fn#32075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3355, offset: 0x0100baf1, size: 132 bytes, params: 6, frame: 20
const env0_0 = a2;
const env0_1 = a4;
const value2 = undefined;
const useRiveTrigger = Module03886Module.useRiveTrigger;
const trigger = Reflect.apply(useRiveTrigger, Module03886Module, [a0, a1, a3 != null ? {onTrigger: a3} : value2]).trigger;
trigger.useEffect(_fun32076, [a2, trigger, a4]);
return value2;
function _fun32076() { // fn#32076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3477, offset: 0x0100bb75, size: 82 bytes, params: 1, frame: 11
if (typeof importDefault === 'boolean' ? importDefault : importDefault !== 0 && importDefault != null) {
trigger();
if (env0_1 != null) {
env0_1();
}
}
}
}
function useImageBinding(a0, a1, a2, a3, a4) { // fn#32077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3571, offset: 0x0100bbc7, size: 162 bytes, params: 6, frame: 20
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
const env0_4 = a4;
env0_2.useEffect(_fun32078, [a0, a1, a2, a4]);
const env0_5 = env0_2.useRef(a3);
env0_2.useEffect(_fun32082, [a3]);
env0_2.useEffect(_fun32083, [a0, a1]);
function _fun32078() { // fn#32078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3620, offset: 0x0100bc69, size: 153 bytes, params: 1, frame: 16
var environment;
var value2;
var RiveImages;
var value;
if (require != null) {
if (importDefault != null) {
value2 = environment.__proto__;
RiveImages = (require(3886) /* metro dependency 3886 */).RiveImages;
value = RiveImages.loadFromURLAsync(typeof importDefault !== 'number' ? importDefault : Image.resolveAssetSource(importDefault).uri);
value = value.then(_fun32079);
value.catch(function() {
});
return _fun32081;
}
}
function _fun32079(a0) { // fn#32079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3802, offset: 0x0100bd02, size: 73 bytes, params: 2, frame: 13
var value2;
if (!env0_0) {
value = environment.__proto__;
value2 = require.imageProperty(env1_0);
if (value2 != null) {
value2.set(a0);
}
if (env1_4 != null) {
env1_4();
}
}
}
function _fun32081() { // fn#32081, offset: 0x00e70226, size: 13 bytes, params: 1, frame: 2
}
}
function _fun32082() { // fn#32082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3944, offset: 0x0100bd4b, size: 21 bytes, params: 1, frame: 2
env0_5.current = importAll;
}
function _fun32083() { // fn#32083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:3981, offset: 0x0100bd60, size: 60 bytes, params: 1, frame: 12
var value;
if (require != null) {
value = require.imageProperty(env0_0);
if (value != null) {
return value.addListener(_fun32084);
}
}
function _fun32084() { // fn#32084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:4056, offset: 0x0100bd9c, size: 38 bytes, params: 1, frame: 10
const value = environment.__proto__;
return env1_5.current?.();
}
}
}
function useArtboardBinding(a0, a1, a2, a3, a4) { // fn#32085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:4129, offset: 0x0100bdc2, size: 88 bytes, params: 6, frame: 18
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
const env0_4 = a4;
env0_2.useEffect(_fun32086, [a0, a1, a2, a3, a4]);
function _fun32086() { // fn#32086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:4181, offset: 0x0100be1a, size: 124 bytes, params: 1, frame: 16
var artboardProperty;
var binding;
var value2;
var value3;
var set;
var bindableArtboard;
var value5;
var error;
if (require != null) {
if (importDefault != null) {
if (typeof importAll === 'string') {
try {
artboardProperty = require.artboardProperty;
binding = env0_0;
value2 = Reflect.apply(artboardProperty, require, [binding]);
value3 = value2 == null;
if (!value3) {
set = value2.set;
bindableArtboard = importDefault.getBindableArtboard(importAll);
Reflect.apply(set, value2, [bindableArtboard]);
}
binding = env0_4;
value5 = binding == null;
if (!value5) {
binding = env0_4;
binding();
}
} catch (error) {
}
}
}
}
}
}
}
function _fun32084() { // fn#32084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4024:4056, offset: 0x0100bd9c, size: 38 bytes, params: 1, frame: 10
const value = environment.__proto__;
return env1_5.current?.();
}
global.__d(_fun32056, 3885, [31, 27, 33, 3886, 3875, 3932, 3933, 3934,
2]) /* metro module 3885, dependencies: [31, 27, 33, 3886, 3875, 3932, 3933, 3934, 2] */;
@@ -1,88 +1,94 @@
/* Metro module 3936; source: ../discord_common/js/packages/design/components/Rive/native/RiveErrorBoundary.tsx; dependencies: [6, 7, 15, 17, 18, 31, 3932, 2] */
import ClassCallCheck from '../../../../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../../../../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../../../../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../../../../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import * as FileImportTrackerModule from '../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ManaContextNativeModule from '../../ManaContext/ManaContext.native.tsx'; /* Metro dependency 3932 */
function _fun32305(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4085:6, offset: 0x01011247, size: 227 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
const Component = (importAll(31) /* metro dependency 31 */).Component;
const Component = (ReactModule).Component;
const value = _fun32309(Component);
const ManaContext = (require(3932) /* metro dependency 3932: ManaContextNative */).ManaContext;
const ManaContext = (ManaContextNativeModule).ManaContext;
value.contextType = ManaContext;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/RiveErrorBoundary.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/RiveErrorBoundary.tsx');
exports.RiveErrorBoundary = value;
}
function _isNativeReflectConstruct_32306() { // fn#32306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4085:148, offset: 0x0101132a, size: 94 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_32306_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun32309(a0) { // fn#32309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4085:347, offset: 0x01011388, size: 119 bytes, params: 2, frame: 17
const closure = RiveErrorBoundary;
env0_4(closure, a0);
return env0_1(closure, [{key: 'componentDidCatch', value: function(a0) {
var context = this.context;
var captureException = context.captureException;
if (captureException != null) {
captureException.call(context, a0, {rive_render_failed: 'true'});
function _isNativeReflectConstruct_32306() { // fn#32306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4085:148, offset: 0x0101132a, size: 94 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) {
}
}}, {key: 'render', value: function() {
var property = this.state.hasError;
var props = this.props;
return property ? props.fallback ?? null : props.children;
}}], [{key: 'getDerivedStateFromError', value: function() {
return {hasError: true};
}}]);
}
function RiveErrorBoundary(a0) { // fn#32310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4085:359, offset: 0x010113ff, size: 141 bytes, params: 2, frame: 19
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_0;
binding(this, RiveErrorBoundary);
const items = [];
arraySpread(items, value, 0, items);
value = env1_3(RiveErrorBoundary);
binding = env1_2;
if (_isNativeReflectConstruct_32306()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_3(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
return (_isNativeReflectConstruct_32306_isNativeReflectConstruct = function() {
return !!result;
})();
}
value = binding(this, r0);
value.state = {hasError: false};
return value;
function _fun32309(a0) { // fn#32309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4085:347, offset: 0x01011388, size: 119 bytes, params: 2, frame: 17
const RiveErrorBoundary2 = RiveErrorBoundary;
Inherits(RiveErrorBoundary2, a0);
return CreateClass(RiveErrorBoundary2, [{key: 'componentDidCatch', value: function(a0) {
var context = this.context;
var captureException = context.captureException;
if (captureException != null) {
captureException.call(context, a0, {rive_render_failed: 'true'});
}
}}, {key: 'render', value: function() {
var property = this.state.hasError;
var props = this.props;
return property ? props.fallback ?? null : props.children;
}}], [{key: 'getDerivedStateFromError', value: function() {
return {hasError: true};
}}]);
function RiveErrorBoundary(a0) { // fn#32310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4085:359, offset: 0x010113ff, size: 141 bytes, params: 2, frame: 19
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_0;
binding(this, RiveErrorBoundary);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_3(RiveErrorBoundary);
binding = env1_2;
if (_isNativeReflectConstruct_32306()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_3(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.state = {hasError: false};
return value;
}
}
}
global.__d(_fun32305, 3936, [6, 7, 15, 17, 18, 31, 3932,
2]) /* metro module 3936, dependencies: [6, 7, 15, 17, 18, 31, 3932, 2] */;
@@ -1,48 +1,51 @@
/* Metro module 3934; source: ../discord_common/js/packages/design/components/Rive/native/RiveTypes.tsx; dependencies: [3886, 2] */
import * as FileImportTrackerModule from '../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module03886Module from '../../../../../../../../by-id/module-03886.js'; /* Metro dependency 3886 */
function _fun32303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4083:6, offset: 0x01010fbf, size: 545 bytes, params: 8, frame: 18
var object3;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object3 = {};
const Fit = (require(3886) /* metro dependency 3886 */).Fit;
object = {};
const Fit = (Module03886Module).Fit;
const Fill = Fit.Fill;
object3.fill = Fill;
object.fill = Fill;
const Contain = Fit.Contain;
object3.contain = Contain;
object.contain = Contain;
const Cover = Fit.Cover;
object3.cover = Cover;
object.cover = Cover;
const FitWidth = Fit.FitWidth;
object3['fit-width'] = FitWidth;
object['fit-width'] = FitWidth;
const FitHeight = Fit.FitHeight;
object3['fit-height'] = FitHeight;
object['fit-height'] = FitHeight;
const None = Fit.None;
object3.none = None;
object.none = None;
const ScaleDown = Fit.ScaleDown;
object3['scale-down'] = ScaleDown;
object['scale-down'] = ScaleDown;
const Layout = Fit.Layout;
object3.layout = Layout;
const object4 = {};
const Alignment = (require(3886) /* metro dependency 3886 */).Alignment;
object.layout = Layout;
const object2 = {};
const Alignment = (Module03886Module).Alignment;
const TopLeft = Alignment.TopLeft;
object4['top-left'] = TopLeft;
object2['top-left'] = TopLeft;
const TopCenter = Alignment.TopCenter;
object4['top-center'] = TopCenter;
object2['top-center'] = TopCenter;
const TopRight = Alignment.TopRight;
object4['top-right'] = TopRight;
object2['top-right'] = TopRight;
const CenterLeft = Alignment.CenterLeft;
object4['center-left'] = CenterLeft;
object2['center-left'] = CenterLeft;
const Center = Alignment.Center;
object4.center = Center;
object2.center = Center;
const CenterRight = Alignment.CenterRight;
object4['center-right'] = CenterRight;
object2['center-right'] = CenterRight;
const BottomLeft = Alignment.BottomLeft;
object4['bottom-left'] = BottomLeft;
object2['bottom-left'] = BottomLeft;
const BottomCenter = Alignment.BottomCenter;
object4['bottom-center'] = BottomCenter;
object2['bottom-center'] = BottomCenter;
const BottomRight = Alignment.BottomRight;
object4['bottom-right'] = BottomRight;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/RiveTypes.tsx');
exports.FIT_MAP = object3;
exports.ALIGNMENT_MAP = object4;
object2['bottom-right'] = BottomRight;
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/RiveTypes.tsx');
exports.FIT_MAP = object;
exports.ALIGNMENT_MAP = object2;
}
global.__d(_fun32303, 3934, [3886, 2]) /* metro module 3934, dependencies: [3886, 2] */;
@@ -1,60 +1,105 @@
/* Metro module 3884; source: ../discord_common/js/packages/design/components/Rive/native/generated/BoostThisServerRive.tsx; dependencies: [29, 31, 33, 3885, 3935, 3936, 2] */
import ObjectWithoutProperties from '../../../../../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import BoostThisServerRiv from '../../../../../../../../discord_assets/assets/mana/rive/native/BoostThisServer.riv.js'; /* Metro dependency 3935 */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseRiveModule from '../BaseRive.tsx'; /* Metro dependency 3885 */
import * as RiveErrorBoundaryModule from '../RiveErrorBoundary.tsx'; /* Metro dependency 3936 */
function _fun32049(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4023:6, offset: 0x0100ad16, size: 366 bytes, params: 8, frame: 20
var object2;
const env0_0 = require;
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
'onDataBindingChange'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
object2 = {};
object2['Boost Server'] = {reducedMotion: 'boolean'};
object2['Boost Crystal'] = {reducedMotion: 'boolean'};
object2['Crystal Side B'] = {};
object2['Crystal Side A'] = {};
object2['Boost Saved'] = {reducedMotion: 'boolean'};
object2 = {};
object2['Boost Server'] = ['Instance'];
object2['Boost Crystal'] = ['Instance'];
object2['Crystal Side B'] = [];
object2['Crystal Side A'] = [];
object2['Boost Saved'] = ['Instance'];
object2 = {};
object2['Boost Server'] = BoostServerBindings;
object2['Boost Crystal'] = BoostCrystalBindings;
object2['Boost Saved'] = BoostSavedBindings;
let value = ReactModule;
object = {};
object['Boost Server'] = {reducedMotion: 'boolean'};
object['Boost Crystal'] = {reducedMotion: 'boolean'};
object['Crystal Side B'] = {};
object['Crystal Side A'] = {};
object['Boost Saved'] = {reducedMotion: 'boolean'};
object = {};
object['Boost Server'] = ['Instance'];
object['Boost Crystal'] = ['Instance'];
object['Crystal Side B'] = [];
object['Crystal Side A'] = [];
object['Boost Saved'] = ['Instance'];
object = {};
object['Boost Server'] = BoostServerBindings;
object['Boost Crystal'] = BoostCrystalBindings;
object['Boost Saved'] = BoostSavedBindings;
const env0_10 = value.forwardRef(BoostThisServerRiveInner);
value = value.forwardRef(BoostThisServerRiveWithBoundary);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/BoostThisServerRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/BoostThisServerRive.tsx');
exports.BoostThisServerRive = value;
function BoostServerBindings({instance, reducedMotionEnabled, playIfNeeded}) { // fn#32050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4023:555, offset: 0x0100ae84, size: 69 bytes, params: 2, frame: 19
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
return null;
}
function BoostCrystalBindings({instance, reducedMotionEnabled, playIfNeeded}) { // fn#32051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4023:721, offset: 0x0100ae84, size: 69 bytes, params: 2, frame: 19
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
return null;
}
function BoostSavedBindings({instance, reducedMotionEnabled, playIfNeeded}) { // fn#32052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4023:886, offset: 0x0100ae84, size: 69 bytes, params: 2, frame: 19
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
return null;
}
function BoostThisServerRiveInner(a0, a1) { // fn#32053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4023:1056, offset: 0x0100aec9, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Boost Server' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = ObjectWithoutProperties(a0, env0_3);
const value3 = env0_5.useCallback(_fun32054, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (BaseRiveModule).BaseRive;
return (
<BaseRive
ref={a1}
src={BoostThisServerRiv}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
function _fun32054(a0) { // fn#32054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4023:1291, offset: 0x0100afc1, size: 79 bytes, params: 2, frame: 16
const value = environment.__proto__;
const property = env1_9[env0_0];
const value3 = null;
return (
value3 == property
? value3
: ((Component) => <Component {...a0} {...{['dataBinding']: dataBinding}} {...{['onDataBindingChange']: onDataBindingChange}} />)(property)
);
}
}
function BoostThisServerRiveWithBoundary(a0, a1) { // fn#32055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4023:1583, offset: 0x0100b010, size: 92 bytes, params: 3, frame: 17
const RiveErrorBoundary = (RiveErrorBoundaryModule).RiveErrorBoundary;
return (
<RiveErrorBoundary fallback={a0.fallback}>
{((Component) => <Component ref={a1} {...a0} />)(env0_10)}
</RiveErrorBoundary>
);
}
}
function BoostThisServerRiveInner(a0, a1) { // fn#32053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4023:1056, offset: 0x0100aec9, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Boost Server' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = env0_4(a0, env0_3);
const value3 = env0_5.useCallback(_fun32054, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
return (
<BaseRive
ref={a1}
src={importDefault(3935) /* metro dependency 3935: BoostThisServerRiv */}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
}
global.__d(_fun32049, 3884, [29, 31, 33, 3885, 3935, 3936,
2]) /* metro module 3884, dependencies: [29, 31, 33, 3885, 3935, 3936, 2] */;
@@ -1,42 +1,59 @@
/* Metro module 3937; source: ../discord_common/js/packages/design/components/Rive/native/generated/BountiesScrollGradientRive.tsx; dependencies: [29, 31, 33, 3885, 3938, 3936, 2] */
import ObjectWithoutProperties from '../../../../../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import BountiesScrollGradientRiv from '../../../../../../../../discord_assets/assets/mana/rive/native/BountiesScrollGradient.riv.js'; /* Metro dependency 3938 */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseRiveModule from '../BaseRive.tsx'; /* Metro dependency 3885 */
import * as RiveErrorBoundaryModule from '../RiveErrorBoundary.tsx'; /* Metro dependency 3936 */
function _fun32314(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4086:6, offset: 0x010114ff, size: 225 bytes, params: 8, frame: 19
const env0_0 = require;
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
({})['Bounty Scroll Gradient'] = {};
({})['Bounty Scroll Gradient'] = [];
const env0_8 = value.forwardRef(BountiesScrollGradientRiveInner);
value = value.forwardRef(BountiesScrollGradientRiveWithBoundary);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/BountiesScrollGradientRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/BountiesScrollGradientRive.tsx');
exports.BountiesScrollGradientRive = value;
function BountiesScrollGradientRiveInner(a0, a1) { // fn#32315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4086:286, offset: 0x010115e0, size: 174 bytes, params: 3, frame: 21
a0.fallback;
const artboard = a0.artboard;
const value = 'Bounty Scroll Gradient';
const value2 = undefined;
const r8 = value2 === artboard ? value : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r6 = value2 === defaultViewModelInstance ? value2 : defaultViewModelInstance;
const value3 = ObjectWithoutProperties(a0, env0_3);
const BaseRive = (BaseRiveModule).BaseRive;
return (
<BaseRive
ref={a1}
src={BountiesScrollGradientRiv}
artboard={r8}
artboardProperties={env0_6}
artboardViewModelInstances={env0_7}
defaultViewModelInstance={r6}
stateMachine={stateMachine}
{...value3}
/>
);
}
function BountiesScrollGradientRiveWithBoundary(a0, a1) { // fn#32316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4086:655, offset: 0x0101168e, size: 92 bytes, params: 3, frame: 17
const RiveErrorBoundary = (RiveErrorBoundaryModule).RiveErrorBoundary;
return (
<RiveErrorBoundary fallback={a0.fallback}>
{((Component) => <Component ref={a1} {...a0} />)(env0_8)}
</RiveErrorBoundary>
);
}
}
function BountiesScrollGradientRiveInner(a0, a1) { // fn#32315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4086:286, offset: 0x010115e0, size: 174 bytes, params: 3, frame: 21
a0.fallback;
const artboard = a0.artboard;
const value = 'Bounty Scroll Gradient';
const value2 = undefined;
const r8 = value2 === artboard ? value : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r6 = value2 === defaultViewModelInstance ? value2 : defaultViewModelInstance;
const value3 = env0_4(a0, env0_3);
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
return (
<BaseRive
ref={a1}
src={importDefault(3938) /* metro dependency 3938: BountiesScrollGradientRiv */}
artboard={r8}
artboardProperties={env0_6}
artboardViewModelInstances={env0_7}
defaultViewModelInstance={r6}
stateMachine={stateMachine}
{...value3}
/>
);
}
global.__d(_fun32314, 3937, [29, 31, 33, 3885, 3938, 3936,
2]) /* metro module 3937, dependencies: [29, 31, 33, 3885, 3938, 3936, 2] */;
@@ -1,51 +1,88 @@
/* Metro module 3939; source: ../discord_common/js/packages/design/components/Rive/native/generated/CameraRive.tsx; dependencies: [29, 31, 33, 3885, 3940, 3936, 2] */
import ObjectWithoutProperties from '../../../../../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import CameraRiv from '../../../../../../../../discord_assets/assets/mana/rive/native/Camera.riv.js'; /* Metro dependency 3940 */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseRiveModule from '../BaseRive.tsx'; /* Metro dependency 3885 */
import * as RiveErrorBoundaryModule from '../RiveErrorBoundary.tsx'; /* Metro dependency 3936 */
function _fun32318(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4088:6, offset: 0x01011751, size: 279 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
'onDataBindingChange'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
object2 = {};
object2['Icon Camera'] = {'reducedMotion': 'boolean', 'fill': 'color', 'on': 'boolean'};
object2['Animation Main'] = {};
object2 = {};
object2['Icon Camera'] = ['CamOff', 'CamOn'];
object2['Animation Main'] = [];
let value = ReactModule;
object = {};
object['Icon Camera'] = {'reducedMotion': 'boolean', 'fill': 'color', 'on': 'boolean'};
object['Animation Main'] = {};
object = {};
object['Icon Camera'] = ['CamOff', 'CamOn'];
object['Animation Main'] = [];
({})['Icon Camera'] = IconCameraBindings;
const env0_10 = value.forwardRef(CameraRiveInner);
value = value.forwardRef(CameraRiveWithBoundary);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CameraRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CameraRive.tsx');
exports.CameraRive = value;
function IconCameraBindings({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4088:406, offset: 0x01011868, size: 231 bytes, params: 2, frame: 25
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('fill', instance, dataBinding?.fill,
onDataBindingChange?.fill, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('on', instance, dataBinding?.on,
onDataBindingChange?.on, playIfNeeded);
return null;
}
function CameraRiveInner(a0, a1) { // fn#32320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4088:780, offset: 0x0101194f, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Icon Camera' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'CamOff' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = ObjectWithoutProperties(a0, env0_3);
const value3 = env0_5.useCallback(_fun32321, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (BaseRiveModule).BaseRive;
return (
<BaseRive
ref={a1}
src={CameraRiv}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
function _fun32321(a0) { // fn#32321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4088:1003, offset: 0x0100afc1, size: 79 bytes, params: 2, frame: 16
const value = environment.__proto__;
const property = env1_9[env0_0];
const value3 = null;
return (
value3 == property
? value3
: ((Component) => <Component {...a0} {...{['dataBinding']: dataBinding}} {...{['onDataBindingChange']: onDataBindingChange}} />)(property)
);
}
}
function CameraRiveWithBoundary(a0, a1) { // fn#32322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4088:1295, offset: 0x0100b010, size: 92 bytes, params: 3, frame: 17
const RiveErrorBoundary = (RiveErrorBoundaryModule).RiveErrorBoundary;
return (
<RiveErrorBoundary fallback={a0.fallback}>
{((Component) => <Component ref={a1} {...a0} />)(env0_10)}
</RiveErrorBoundary>
);
}
}
function CameraRiveInner(a0, a1) { // fn#32320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4088:780, offset: 0x0101194f, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Icon Camera' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'CamOff' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = env0_4(a0, env0_3);
const value3 = env0_5.useCallback(_fun32321, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
return (
<BaseRive
ref={a1}
src={importDefault(3940) /* metro dependency 3940: CameraRiv */}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
}
global.__d(_fun32318, 3939, [29, 31, 33, 3885, 3940, 3936,
2]) /* metro module 3939, dependencies: [29, 31, 33, 3885, 3940, 3936, 2] */;
@@ -1,215 +1,728 @@
/* Metro module 3941; source: ../discord_common/js/packages/design/components/Rive/native/generated/CheckpointCardRive.tsx; dependencies: [29, 31, 33, 3885, 3942, 3936, 2] */
import ObjectWithoutProperties from '../../../../../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import CheckpointCardRiv from '../../../../../../../../discord_assets/assets/mana/rive/native/CheckpointCard.riv.js'; /* Metro dependency 3942 */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseRiveModule from '../BaseRive.tsx'; /* Metro dependency 3885 */
import * as RiveErrorBoundaryModule from '../RiveErrorBoundary.tsx'; /* Metro dependency 3936 */
function _fun32324(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:6, offset: 0x01011aae, size: 1029 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
'onDataBindingChange'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
object2 = {Main: {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
let value = ReactModule;
object = {Main: {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
'Outof': 'string', 'FillColor': 'color'}, Cassette: {'reducedMotion': 'boolean', 'Icon': 'artboard',
'Illustration': 'artboard', 'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string',
'PersonaName': 'string', 'id#': 'string', 'Outof': 'string', 'FillColor': 'color'}};
object2['Cassette Icon'] = {};
object2.Cat = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
object['Cassette Icon'] = {};
object.Cat = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
'Outof': 'string', 'FillColor': 'color'};
object2['Cat Icon'] = {};
object2.Banana = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
object['Cat Icon'] = {};
object.Banana = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
'Outof': 'string', 'FillColor': 'color'};
object2['Banana Icon'] = {};
object2['Duck Icon'] = {};
object2.Duck = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
object['Banana Icon'] = {};
object['Duck Icon'] = {};
object.Duck = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
'Outof': 'string', 'FillColor': 'color'};
object2['Snail Icon'] = {};
object2.Snail = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
object['Snail Icon'] = {};
object.Snail = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
'Outof': 'string', 'FillColor': 'color'};
object2['Origami Icon'] = {};
object2.Origami = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
object['Origami Icon'] = {};
object.Origami = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
'Outof': 'string', 'FillColor': 'color'};
object2['Disco Icon'] = {};
object2.Disco = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
object['Disco Icon'] = {};
object.Disco = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
'Outof': 'string', 'FillColor': 'color'};
object2.Capybara = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
object.Capybara = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
'Outof': 'string', 'FillColor': 'color'};
object2['Capybara Icon'] = {};
object2.Donut = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
object['Capybara Icon'] = {};
object.Donut = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
'Outof': 'string', 'FillColor': 'color'};
object2['Donut Icon'] = {};
object2['Bonsai Icon'] = {};
object2.Bonsai = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
object['Donut Icon'] = {};
object['Bonsai Icon'] = {};
object.Bonsai = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
'Outof': 'string', 'FillColor': 'color'};
object2['Globe Single Line'] = {};
object2['Card Back'] = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
object['Globe Single Line'] = {};
object['Card Back'] = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
'Outof': 'string', 'FillColor': 'color'};
object2.Knickknack = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
object.Knickknack = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
'Outof': 'string', 'FillColor': 'color'};
object2.Globe = {};
object2.Card = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
object.Globe = {};
object.Card = {'reducedMotion': 'boolean', 'Icon': 'artboard', 'Illustration': 'artboard',
'AnimationState': 'number', 'PowerMeter': 'number', 'LVL': 'string', 'PersonaName': 'string', 'id#': 'string',
'Outof': 'string', 'FillColor': 'color'};
object2 = {Main: ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
object = {Main: ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'], Cassette: ['Bonsai', 'Cassette-reducedMotion',
'Cat-reducedMotion', 'Banana-reducedMotion', 'Duck-reducedMotion', 'Snail-reducedMotion',
'Origami-reducedMotion', 'Disco-reducedMotion', 'Capybara-reducedMotion', 'Donut-reducedMotion',
'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco', 'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette']};
object2['Cassette Icon'] = [];
object2.Cat = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
object['Cassette Icon'] = [];
object.Cat = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion', 'Duck-reducedMotion',
'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion', 'Capybara-reducedMotion',
'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco', 'Origami', 'Snail', 'Duck',
'Banana', 'Cat', 'Cassette'];
object['Cat Icon'] = [];
object.Banana = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
object2['Cat Icon'] = [];
object2.Banana = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
object['Banana Icon'] = [];
object['Duck Icon'] = [];
object.Duck = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
object2['Banana Icon'] = [];
object2['Duck Icon'] = [];
object2.Duck = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
object['Snail Icon'] = [];
object.Snail = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
object2['Snail Icon'] = [];
object2.Snail = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
object['Origami Icon'] = [];
object.Origami = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
object2['Origami Icon'] = [];
object2.Origami = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
object['Disco Icon'] = [];
object.Disco = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
object2['Disco Icon'] = [];
object2.Disco = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
object.Capybara = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
object2.Capybara = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
object['Capybara Icon'] = [];
object.Donut = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
object2['Capybara Icon'] = [];
object2.Donut = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
object['Donut Icon'] = [];
object['Bonsai Icon'] = [];
object.Bonsai = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
object2['Donut Icon'] = [];
object2['Bonsai Icon'] = [];
object2.Bonsai = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
object['Globe Single Line'] = [];
object['Card Back'] = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
object2['Globe Single Line'] = [];
object2['Card Back'] = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
object.Knickknack = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
object2.Knickknack = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
object.Globe = [];
object.Card = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
object2.Globe = [];
object2.Card = ['Bonsai', 'Cassette-reducedMotion', 'Cat-reducedMotion', 'Banana-reducedMotion',
'Duck-reducedMotion', 'Snail-reducedMotion', 'Origami-reducedMotion', 'Disco-reducedMotion',
'Capybara-reducedMotion', 'Donut-reducedMotion', 'Bonsai-reducedMotion', 'Donut', 'Capybara', 'Disco',
'Origami', 'Snail', 'Duck', 'Banana', 'Cat', 'Cassette'];
object2 = {Main: Main, Cassette: Cassette, Cat: Cat, Banana: Banana, Duck: Duck, Snail: Snail, Origami: Origami,
object = {Main: Main, Cassette: Cassette, Cat: Cat, Banana: Banana, Duck: Duck, Snail: Snail, Origami: Origami,
Disco: Disco, Capybara: Capybara, Donut: Donut, Bonsai: Bonsai};
object2['Card Back'] = CardBackBindings;
object2.Knickknack = Knickknack;
object2.Card = Card;
object['Card Back'] = CardBackBindings;
object.Knickknack = Knickknack;
object.Card = Card;
const env0_10 = value.forwardRef(CheckpointCardRiveInner);
value = value.forwardRef(CheckpointCardRiveWithBoundary);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CheckpointCardRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CheckpointCardRive.tsx');
exports.CheckpointCardRive = value;
function Main({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:7968, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function Cassette({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:8970, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function Cat({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:9971, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function Banana({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:10970, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function Duck({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:11970, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function Snail({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:12969, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function Origami({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:13971, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function Disco({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:14973, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function Capybara({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:15976, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function Donut({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:16979, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function Bonsai({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:17980, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function CardBackBindings({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:18987, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function Knickknack({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:19995, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function Card({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:20999, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
useArtboardBinding = BaseRiveModule.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, BaseRiveModule, ['Illustration', instance, file, Illustration, playIfNeeded]);
let useNumberBinding = BaseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, BaseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, BaseRiveModule, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
let useStringBinding = BaseRiveModule.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, BaseRiveModule, ['LVL', instance, LVL, LVL2, playIfNeeded]);
useStringBinding = BaseRiveModule.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, BaseRiveModule, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
BaseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, BaseRiveModule, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const useColorBinding = BaseRiveModule.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, BaseRiveModule, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function CheckpointCardRiveInner(a0, a1) { // fn#32339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:22013, offset: 0x01012195, size: 246 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Main' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Bonsai' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = ObjectWithoutProperties(a0, env0_3);
const value3 = env0_5.useCallback(_fun32340, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (BaseRiveModule).BaseRive;
return (
<BaseRive
ref={a1}
src={CheckpointCardRiv}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
function _fun32340(a0) { // fn#32340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:22237, offset: 0x0100afc1, size: 79 bytes, params: 2, frame: 16
const value = environment.__proto__;
const property = env1_9[env0_0];
const value3 = null;
return (
value3 == property
? value3
: ((Component) => <Component {...a0} {...{['dataBinding']: dataBinding}} {...{['onDataBindingChange']: onDataBindingChange}} />)(property)
);
}
}
function CheckpointCardRiveWithBoundary(a0, a1) { // fn#32341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:22529, offset: 0x0100b010, size: 92 bytes, params: 3, frame: 17
const RiveErrorBoundary = (RiveErrorBoundaryModule).RiveErrorBoundary;
return (
<RiveErrorBoundary fallback={a0.fallback}>
{((Component) => <Component ref={a1} {...a0} />)(env0_10)}
</RiveErrorBoundary>
);
}
}
function Main({instance, reducedMotionEnabled, file, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:7968, offset: 0x01011eb3, size: 738 bytes, params: 2, frame: 26
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
const baseRiveModule = require(3885) /* metro dependency 3885: BaseRive */;
let useArtboardBinding = baseRiveModule.useArtboardBinding;
const Icon = dataBinding?.Icon;
Reflect.apply(useArtboardBinding, baseRiveModule, ['Icon', instance, file, Icon, playIfNeeded]);
const moduleValue3 = baseRiveModule;
useArtboardBinding = moduleValue3.useArtboardBinding;
const Illustration = dataBinding?.Illustration;
Reflect.apply(useArtboardBinding, moduleValue3, ['Illustration', instance, file, Illustration, playIfNeeded]);
const moduleValue4 = baseRiveModule;
let useNumberBinding = moduleValue4.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, moduleValue4, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
const moduleValue5 = baseRiveModule;
useNumberBinding = moduleValue5.useNumberBinding;
const PowerMeter = dataBinding?.PowerMeter;
const PowerMeter2 = onDataBindingChange?.PowerMeter;
Reflect.apply(useNumberBinding, moduleValue5, ['PowerMeter', instance, PowerMeter, PowerMeter2, playIfNeeded]);
const moduleValue6 = baseRiveModule;
let useStringBinding = moduleValue6.useStringBinding;
const LVL = dataBinding?.LVL;
const LVL2 = onDataBindingChange?.LVL;
Reflect.apply(useStringBinding, moduleValue6, ['LVL', instance, LVL, LVL2, playIfNeeded]);
const moduleValue7 = baseRiveModule;
useStringBinding = moduleValue7.useStringBinding;
const PersonaName = dataBinding?.PersonaName;
const PersonaName2 = onDataBindingChange?.PersonaName;
Reflect.apply(useStringBinding, moduleValue7, ['PersonaName', instance, PersonaName, PersonaName2, playIfNeeded]);
baseRiveModule.useStringBinding('id#', instance, dataBinding?.['id#'], onDataBindingChange?.['id#'], playIfNeeded);
const moduleValue9 = baseRiveModule;
useStringBinding = moduleValue9.useStringBinding;
const Outof = dataBinding?.Outof;
const Outof2 = onDataBindingChange?.Outof;
Reflect.apply(useStringBinding, moduleValue9, ['Outof', instance, Outof, Outof2, playIfNeeded]);
const value = baseRiveModule;
const useColorBinding = value.useColorBinding;
const FillColor = dataBinding?.FillColor;
const FillColor2 = onDataBindingChange?.FillColor;
Reflect.apply(useColorBinding, value, ['FillColor', instance, FillColor, FillColor2, playIfNeeded]);
return null;
}
function CheckpointCardRiveInner(a0, a1) { // fn#32339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4090:22013, offset: 0x01012195, size: 246 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Main' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Bonsai' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = env0_4(a0, env0_3);
const value3 = env0_5.useCallback(_fun32340, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
return (
<BaseRive
ref={a1}
src={importDefault(3942) /* metro dependency 3942: CheckpointCardRiv */}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
}
global.__d(_fun32324, 3941, [29, 31, 33, 3885, 3942, 3936,
2]) /* metro module 3941, dependencies: [29, 31, 33, 3885, 3942, 3936, 2] */;
@@ -1,13 +1,19 @@
/* Metro module 3943; source: ../discord_common/js/packages/design/components/Rive/native/generated/CheckpointFriendsRive.tsx; dependencies: [29, 31, 33, 3885, 3944, 3936, 2] */
import ObjectWithoutProperties from '../../../../../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import CheckpointFriendsRiv from '../../../../../../../../discord_assets/assets/mana/rive/native/CheckpointFriends.riv.js'; /* Metro dependency 3944 */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseRiveModule from '../BaseRive.tsx'; /* Metro dependency 3885 */
import * as RiveErrorBoundaryModule from '../RiveErrorBoundary.tsx'; /* Metro dependency 3936 */
function _fun32343(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:6, offset: 0x010122f2, size: 441 bytes, params: 8, frame: 19
const env0_0 = require;
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
'onDataBindingChange'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
({MAIN: {'reducedMotion': 'boolean', 'twoFriends': 'boolean', 'AnimationState': 'number',
'Avatar01/ShadowVisibility': 'number', 'Avatar01/StrokeVisibility': 'number',
'Avatar01/UsernameVisibility': 'number', 'Avatar01/Stroke': 'color', 'Avatar01/Fill': 'color',
@@ -63,168 +69,408 @@ function _fun32343(global, require, importDefault, importAll, module, exports, d
Username: Username})['Friends 01 Rotation'] = Friends01RotationBindings;
const env0_10 = value.forwardRef(CheckpointFriendsRiveInner);
value = value.forwardRef(CheckpointFriendsRiveWithBoundary);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CheckpointFriendsRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CheckpointFriendsRive.tsx');
exports.CheckpointFriendsRive = value;
function MAIN({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:4551, offset: 0x010124ab, size: 2967 bytes, params: 2, frame: 25
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('twoFriends', instance,
dataBinding?.twoFriends, onDataBindingChange?.twoFriends, playIfNeeded);
const baseRiveModule = require(3885) /* metro dependency 3885: BaseRive */;
const useNumberBinding = baseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, baseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
baseRiveModule.useNumberBinding('Avatar01/ShadowVisibility', instance, dataBinding?.['Avatar01/ShadowVisibility'],
onDataBindingChange?.['Avatar01/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar01/StrokeVisibility', instance, dataBinding?.['Avatar01/StrokeVisibility'],
onDataBindingChange?.['Avatar01/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar01/UsernameVisibility', instance,
dataBinding?.['Avatar01/UsernameVisibility'], onDataBindingChange?.['Avatar01/UsernameVisibility'],
playIfNeeded);
const moduleValue7 = baseRiveModule;
let useColorBinding = moduleValue7.useColorBinding;
Reflect.apply(useColorBinding, moduleValue7, ['Avatar01/Stroke', instance, dataBinding?.['Avatar01/Stroke'],
onDataBindingChange?.['Avatar01/Stroke'], playIfNeeded]);
baseRiveModule.useColorBinding('Avatar01/Fill', instance, dataBinding?.['Avatar01/Fill'],
onDataBindingChange?.['Avatar01/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar01/Username', instance, dataBinding?.['Avatar01/Username'],
onDataBindingChange?.['Avatar01/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar01/img', instance, dataBinding?.['Avatar01/img'],
onDataBindingChange?.['Avatar01/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar02/ShadowVisibility', instance, dataBinding?.['Avatar02/ShadowVisibility'],
onDataBindingChange?.['Avatar02/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar02/StrokeVisibility', instance, dataBinding?.['Avatar02/StrokeVisibility'],
onDataBindingChange?.['Avatar02/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar02/UsernameVisibility', instance,
dataBinding?.['Avatar02/UsernameVisibility'], onDataBindingChange?.['Avatar02/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar02/Stroke', instance, dataBinding?.['Avatar02/Stroke'],
onDataBindingChange?.['Avatar02/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar02/Fill', instance, dataBinding?.['Avatar02/Fill'],
onDataBindingChange?.['Avatar02/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar02/Username', instance, dataBinding?.['Avatar02/Username'],
onDataBindingChange?.['Avatar02/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar02/img', instance, dataBinding?.['Avatar02/img'],
onDataBindingChange?.['Avatar02/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar03/ShadowVisibility', instance, dataBinding?.['Avatar03/ShadowVisibility'],
onDataBindingChange?.['Avatar03/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar03/StrokeVisibility', instance, dataBinding?.['Avatar03/StrokeVisibility'],
onDataBindingChange?.['Avatar03/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar03/UsernameVisibility', instance,
dataBinding?.['Avatar03/UsernameVisibility'], onDataBindingChange?.['Avatar03/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar03/Stroke', instance, dataBinding?.['Avatar03/Stroke'],
onDataBindingChange?.['Avatar03/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar03/Fill', instance, dataBinding?.['Avatar03/Fill'],
onDataBindingChange?.['Avatar03/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar03/Username', instance, dataBinding?.['Avatar03/Username'],
onDataBindingChange?.['Avatar03/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar03/img', instance, dataBinding?.['Avatar03/img'],
onDataBindingChange?.['Avatar03/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar04/ShadowVisibility', instance, dataBinding?.['Avatar04/ShadowVisibility'],
onDataBindingChange?.['Avatar04/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar04/StrokeVisibility', instance, dataBinding?.['Avatar04/StrokeVisibility'],
onDataBindingChange?.['Avatar04/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar04/UsernameVisibility', instance,
dataBinding?.['Avatar04/UsernameVisibility'], onDataBindingChange?.['Avatar04/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar04/Stroke', instance, dataBinding?.['Avatar04/Stroke'],
onDataBindingChange?.['Avatar04/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar04/Fill', instance, dataBinding?.['Avatar04/Fill'],
onDataBindingChange?.['Avatar04/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar04/Username', instance, dataBinding?.['Avatar04/Username'],
onDataBindingChange?.['Avatar04/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar04/img', instance, dataBinding?.['Avatar04/img'],
onDataBindingChange?.['Avatar04/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar05/ShadowVisibility', instance, dataBinding?.['Avatar05/ShadowVisibility'],
onDataBindingChange?.['Avatar05/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar05/StrokeVisibility', instance, dataBinding?.['Avatar05/StrokeVisibility'],
onDataBindingChange?.['Avatar05/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar05/UsernameVisibility', instance,
dataBinding?.['Avatar05/UsernameVisibility'], onDataBindingChange?.['Avatar05/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar05/Stroke', instance, dataBinding?.['Avatar05/Stroke'],
onDataBindingChange?.['Avatar05/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar05/Fill', instance, dataBinding?.['Avatar05/Fill'],
onDataBindingChange?.['Avatar05/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar05/Username', instance, dataBinding?.['Avatar05/Username'],
onDataBindingChange?.['Avatar05/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar05/img', instance, dataBinding?.['Avatar05/img'],
onDataBindingChange?.['Avatar05/img'], playIfNeeded);
const value = baseRiveModule;
useColorBinding = value.useColorBinding;
const ConnectorColor = dataBinding?.ConnectorColor;
const ConnectorColor2 = onDataBindingChange?.ConnectorColor;
Reflect.apply(useColorBinding, value, ['ConnectorColor', instance, ConnectorColor, ConnectorColor2, playIfNeeded]);
return null;
}
function Sidekick({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:9692, offset: 0x010124ab, size: 2967 bytes, params: 2, frame: 25
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('twoFriends', instance,
dataBinding?.twoFriends, onDataBindingChange?.twoFriends, playIfNeeded);
const baseRiveModule = require(3885) /* metro dependency 3885: BaseRive */;
const useNumberBinding = baseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, baseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
baseRiveModule.useNumberBinding('Avatar01/ShadowVisibility', instance, dataBinding?.['Avatar01/ShadowVisibility'],
onDataBindingChange?.['Avatar01/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar01/StrokeVisibility', instance, dataBinding?.['Avatar01/StrokeVisibility'],
onDataBindingChange?.['Avatar01/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar01/UsernameVisibility', instance,
dataBinding?.['Avatar01/UsernameVisibility'], onDataBindingChange?.['Avatar01/UsernameVisibility'],
playIfNeeded);
const moduleValue7 = baseRiveModule;
let useColorBinding = moduleValue7.useColorBinding;
Reflect.apply(useColorBinding, moduleValue7, ['Avatar01/Stroke', instance, dataBinding?.['Avatar01/Stroke'],
onDataBindingChange?.['Avatar01/Stroke'], playIfNeeded]);
baseRiveModule.useColorBinding('Avatar01/Fill', instance, dataBinding?.['Avatar01/Fill'],
onDataBindingChange?.['Avatar01/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar01/Username', instance, dataBinding?.['Avatar01/Username'],
onDataBindingChange?.['Avatar01/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar01/img', instance, dataBinding?.['Avatar01/img'],
onDataBindingChange?.['Avatar01/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar02/ShadowVisibility', instance, dataBinding?.['Avatar02/ShadowVisibility'],
onDataBindingChange?.['Avatar02/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar02/StrokeVisibility', instance, dataBinding?.['Avatar02/StrokeVisibility'],
onDataBindingChange?.['Avatar02/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar02/UsernameVisibility', instance,
dataBinding?.['Avatar02/UsernameVisibility'], onDataBindingChange?.['Avatar02/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar02/Stroke', instance, dataBinding?.['Avatar02/Stroke'],
onDataBindingChange?.['Avatar02/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar02/Fill', instance, dataBinding?.['Avatar02/Fill'],
onDataBindingChange?.['Avatar02/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar02/Username', instance, dataBinding?.['Avatar02/Username'],
onDataBindingChange?.['Avatar02/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar02/img', instance, dataBinding?.['Avatar02/img'],
onDataBindingChange?.['Avatar02/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar03/ShadowVisibility', instance, dataBinding?.['Avatar03/ShadowVisibility'],
onDataBindingChange?.['Avatar03/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar03/StrokeVisibility', instance, dataBinding?.['Avatar03/StrokeVisibility'],
onDataBindingChange?.['Avatar03/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar03/UsernameVisibility', instance,
dataBinding?.['Avatar03/UsernameVisibility'], onDataBindingChange?.['Avatar03/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar03/Stroke', instance, dataBinding?.['Avatar03/Stroke'],
onDataBindingChange?.['Avatar03/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar03/Fill', instance, dataBinding?.['Avatar03/Fill'],
onDataBindingChange?.['Avatar03/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar03/Username', instance, dataBinding?.['Avatar03/Username'],
onDataBindingChange?.['Avatar03/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar03/img', instance, dataBinding?.['Avatar03/img'],
onDataBindingChange?.['Avatar03/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar04/ShadowVisibility', instance, dataBinding?.['Avatar04/ShadowVisibility'],
onDataBindingChange?.['Avatar04/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar04/StrokeVisibility', instance, dataBinding?.['Avatar04/StrokeVisibility'],
onDataBindingChange?.['Avatar04/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar04/UsernameVisibility', instance,
dataBinding?.['Avatar04/UsernameVisibility'], onDataBindingChange?.['Avatar04/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar04/Stroke', instance, dataBinding?.['Avatar04/Stroke'],
onDataBindingChange?.['Avatar04/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar04/Fill', instance, dataBinding?.['Avatar04/Fill'],
onDataBindingChange?.['Avatar04/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar04/Username', instance, dataBinding?.['Avatar04/Username'],
onDataBindingChange?.['Avatar04/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar04/img', instance, dataBinding?.['Avatar04/img'],
onDataBindingChange?.['Avatar04/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar05/ShadowVisibility', instance, dataBinding?.['Avatar05/ShadowVisibility'],
onDataBindingChange?.['Avatar05/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar05/StrokeVisibility', instance, dataBinding?.['Avatar05/StrokeVisibility'],
onDataBindingChange?.['Avatar05/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar05/UsernameVisibility', instance,
dataBinding?.['Avatar05/UsernameVisibility'], onDataBindingChange?.['Avatar05/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar05/Stroke', instance, dataBinding?.['Avatar05/Stroke'],
onDataBindingChange?.['Avatar05/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar05/Fill', instance, dataBinding?.['Avatar05/Fill'],
onDataBindingChange?.['Avatar05/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar05/Username', instance, dataBinding?.['Avatar05/Username'],
onDataBindingChange?.['Avatar05/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar05/img', instance, dataBinding?.['Avatar05/img'],
onDataBindingChange?.['Avatar05/img'], playIfNeeded);
const value = baseRiveModule;
useColorBinding = value.useColorBinding;
const ConnectorColor = dataBinding?.ConnectorColor;
const ConnectorColor2 = onDataBindingChange?.ConnectorColor;
Reflect.apply(useColorBinding, value, ['ConnectorColor', instance, ConnectorColor, ConnectorColor2, playIfNeeded]);
return null;
}
function Avatar({instance, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:14835, offset: 0x01013042, size: 571 bytes, params: 2, frame: 25
let useNumberBinding = BaseRiveModule.useNumberBinding;
const ShadowVisibility = dataBinding?.ShadowVisibility;
const ShadowVisibility2 = onDataBindingChange?.ShadowVisibility;
Reflect.apply(useNumberBinding, BaseRiveModule, ['ShadowVisibility', instance, ShadowVisibility, ShadowVisibility2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const StrokeVisibility = dataBinding?.StrokeVisibility;
const StrokeVisibility2 = onDataBindingChange?.StrokeVisibility;
Reflect.apply(useNumberBinding, BaseRiveModule, ['StrokeVisibility', instance, StrokeVisibility, StrokeVisibility2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const UsernameVisibility = dataBinding?.UsernameVisibility;
const UsernameVisibility2 = onDataBindingChange?.UsernameVisibility;
Reflect.apply(useNumberBinding, BaseRiveModule, ['UsernameVisibility', instance, UsernameVisibility,
UsernameVisibility2, playIfNeeded]);
let useColorBinding = BaseRiveModule.useColorBinding;
const Stroke = dataBinding?.Stroke;
const Stroke2 = onDataBindingChange?.Stroke;
Reflect.apply(useColorBinding, BaseRiveModule, ['Stroke', instance, Stroke, Stroke2, playIfNeeded]);
useColorBinding = BaseRiveModule.useColorBinding;
const Fill = dataBinding?.Fill;
const Fill2 = onDataBindingChange?.Fill;
Reflect.apply(useColorBinding, BaseRiveModule, ['Fill', instance, Fill, Fill2, playIfNeeded]);
const useStringBinding = BaseRiveModule.useStringBinding;
const Username = dataBinding?.Username;
const Username2 = onDataBindingChange?.Username;
Reflect.apply(useStringBinding, BaseRiveModule, ['Username', instance, Username, Username2, playIfNeeded]);
BaseRiveModule.useImageBinding('img', instance, dataBinding?.img, onDataBindingChange?.img, playIfNeeded);
return null;
}
function Username({instance, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32347, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:15651, offset: 0x01013042, size: 571 bytes, params: 2, frame: 25
let useNumberBinding = BaseRiveModule.useNumberBinding;
const ShadowVisibility = dataBinding?.ShadowVisibility;
const ShadowVisibility2 = onDataBindingChange?.ShadowVisibility;
Reflect.apply(useNumberBinding, BaseRiveModule, ['ShadowVisibility', instance, ShadowVisibility, ShadowVisibility2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const StrokeVisibility = dataBinding?.StrokeVisibility;
const StrokeVisibility2 = onDataBindingChange?.StrokeVisibility;
Reflect.apply(useNumberBinding, BaseRiveModule, ['StrokeVisibility', instance, StrokeVisibility, StrokeVisibility2,
playIfNeeded]);
useNumberBinding = BaseRiveModule.useNumberBinding;
const UsernameVisibility = dataBinding?.UsernameVisibility;
const UsernameVisibility2 = onDataBindingChange?.UsernameVisibility;
Reflect.apply(useNumberBinding, BaseRiveModule, ['UsernameVisibility', instance, UsernameVisibility,
UsernameVisibility2, playIfNeeded]);
let useColorBinding = BaseRiveModule.useColorBinding;
const Stroke = dataBinding?.Stroke;
const Stroke2 = onDataBindingChange?.Stroke;
Reflect.apply(useColorBinding, BaseRiveModule, ['Stroke', instance, Stroke, Stroke2, playIfNeeded]);
useColorBinding = BaseRiveModule.useColorBinding;
const Fill = dataBinding?.Fill;
const Fill2 = onDataBindingChange?.Fill;
Reflect.apply(useColorBinding, BaseRiveModule, ['Fill', instance, Fill, Fill2, playIfNeeded]);
const useStringBinding = BaseRiveModule.useStringBinding;
const Username = dataBinding?.Username;
const Username2 = onDataBindingChange?.Username;
Reflect.apply(useStringBinding, BaseRiveModule, ['Username', instance, Username, Username2, playIfNeeded]);
BaseRiveModule.useImageBinding('img', instance, dataBinding?.img, onDataBindingChange?.img, playIfNeeded);
return null;
}
function Friends01RotationBindings({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:16482, offset: 0x010124ab, size: 2967 bytes, params: 2, frame: 25
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('twoFriends', instance,
dataBinding?.twoFriends, onDataBindingChange?.twoFriends, playIfNeeded);
const baseRiveModule = require(3885) /* metro dependency 3885: BaseRive */;
const useNumberBinding = baseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, baseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
baseRiveModule.useNumberBinding('Avatar01/ShadowVisibility', instance, dataBinding?.['Avatar01/ShadowVisibility'],
onDataBindingChange?.['Avatar01/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar01/StrokeVisibility', instance, dataBinding?.['Avatar01/StrokeVisibility'],
onDataBindingChange?.['Avatar01/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar01/UsernameVisibility', instance,
dataBinding?.['Avatar01/UsernameVisibility'], onDataBindingChange?.['Avatar01/UsernameVisibility'],
playIfNeeded);
const moduleValue7 = baseRiveModule;
let useColorBinding = moduleValue7.useColorBinding;
Reflect.apply(useColorBinding, moduleValue7, ['Avatar01/Stroke', instance, dataBinding?.['Avatar01/Stroke'],
onDataBindingChange?.['Avatar01/Stroke'], playIfNeeded]);
baseRiveModule.useColorBinding('Avatar01/Fill', instance, dataBinding?.['Avatar01/Fill'],
onDataBindingChange?.['Avatar01/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar01/Username', instance, dataBinding?.['Avatar01/Username'],
onDataBindingChange?.['Avatar01/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar01/img', instance, dataBinding?.['Avatar01/img'],
onDataBindingChange?.['Avatar01/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar02/ShadowVisibility', instance, dataBinding?.['Avatar02/ShadowVisibility'],
onDataBindingChange?.['Avatar02/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar02/StrokeVisibility', instance, dataBinding?.['Avatar02/StrokeVisibility'],
onDataBindingChange?.['Avatar02/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar02/UsernameVisibility', instance,
dataBinding?.['Avatar02/UsernameVisibility'], onDataBindingChange?.['Avatar02/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar02/Stroke', instance, dataBinding?.['Avatar02/Stroke'],
onDataBindingChange?.['Avatar02/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar02/Fill', instance, dataBinding?.['Avatar02/Fill'],
onDataBindingChange?.['Avatar02/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar02/Username', instance, dataBinding?.['Avatar02/Username'],
onDataBindingChange?.['Avatar02/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar02/img', instance, dataBinding?.['Avatar02/img'],
onDataBindingChange?.['Avatar02/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar03/ShadowVisibility', instance, dataBinding?.['Avatar03/ShadowVisibility'],
onDataBindingChange?.['Avatar03/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar03/StrokeVisibility', instance, dataBinding?.['Avatar03/StrokeVisibility'],
onDataBindingChange?.['Avatar03/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar03/UsernameVisibility', instance,
dataBinding?.['Avatar03/UsernameVisibility'], onDataBindingChange?.['Avatar03/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar03/Stroke', instance, dataBinding?.['Avatar03/Stroke'],
onDataBindingChange?.['Avatar03/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar03/Fill', instance, dataBinding?.['Avatar03/Fill'],
onDataBindingChange?.['Avatar03/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar03/Username', instance, dataBinding?.['Avatar03/Username'],
onDataBindingChange?.['Avatar03/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar03/img', instance, dataBinding?.['Avatar03/img'],
onDataBindingChange?.['Avatar03/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar04/ShadowVisibility', instance, dataBinding?.['Avatar04/ShadowVisibility'],
onDataBindingChange?.['Avatar04/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar04/StrokeVisibility', instance, dataBinding?.['Avatar04/StrokeVisibility'],
onDataBindingChange?.['Avatar04/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar04/UsernameVisibility', instance,
dataBinding?.['Avatar04/UsernameVisibility'], onDataBindingChange?.['Avatar04/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar04/Stroke', instance, dataBinding?.['Avatar04/Stroke'],
onDataBindingChange?.['Avatar04/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar04/Fill', instance, dataBinding?.['Avatar04/Fill'],
onDataBindingChange?.['Avatar04/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar04/Username', instance, dataBinding?.['Avatar04/Username'],
onDataBindingChange?.['Avatar04/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar04/img', instance, dataBinding?.['Avatar04/img'],
onDataBindingChange?.['Avatar04/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar05/ShadowVisibility', instance, dataBinding?.['Avatar05/ShadowVisibility'],
onDataBindingChange?.['Avatar05/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar05/StrokeVisibility', instance, dataBinding?.['Avatar05/StrokeVisibility'],
onDataBindingChange?.['Avatar05/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar05/UsernameVisibility', instance,
dataBinding?.['Avatar05/UsernameVisibility'], onDataBindingChange?.['Avatar05/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar05/Stroke', instance, dataBinding?.['Avatar05/Stroke'],
onDataBindingChange?.['Avatar05/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar05/Fill', instance, dataBinding?.['Avatar05/Fill'],
onDataBindingChange?.['Avatar05/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar05/Username', instance, dataBinding?.['Avatar05/Username'],
onDataBindingChange?.['Avatar05/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar05/img', instance, dataBinding?.['Avatar05/img'],
onDataBindingChange?.['Avatar05/img'], playIfNeeded);
const value = baseRiveModule;
useColorBinding = value.useColorBinding;
const ConnectorColor = dataBinding?.ConnectorColor;
const ConnectorColor2 = onDataBindingChange?.ConnectorColor;
Reflect.apply(useColorBinding, value, ['ConnectorColor', instance, ConnectorColor, ConnectorColor2, playIfNeeded]);
return null;
}
function CheckpointFriendsRiveInner(a0, a1) { // fn#32349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:21648, offset: 0x0101327d, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'MAIN' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'threeFriends' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = ObjectWithoutProperties(a0, env0_3);
const value3 = env0_5.useCallback(_fun32350, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (BaseRiveModule).BaseRive;
return (
<BaseRive
ref={a1}
src={CheckpointFriendsRiv}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
function _fun32350(a0) { // fn#32350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:21881, offset: 0x0100afc1, size: 79 bytes, params: 2, frame: 16
const value = environment.__proto__;
const property = env1_9[env0_0];
const value3 = null;
return (
value3 == property
? value3
: ((Component) => <Component {...a0} {...{['dataBinding']: dataBinding}} {...{['onDataBindingChange']: onDataBindingChange}} />)(property)
);
}
}
function CheckpointFriendsRiveWithBoundary(a0, a1) { // fn#32351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:22173, offset: 0x0100b010, size: 92 bytes, params: 3, frame: 17
const RiveErrorBoundary = (RiveErrorBoundaryModule).RiveErrorBoundary;
return (
<RiveErrorBoundary fallback={a0.fallback}>
{((Component) => <Component ref={a1} {...a0} />)(env0_10)}
</RiveErrorBoundary>
);
}
}
function MAIN({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:4551, offset: 0x010124ab, size: 2967 bytes, params: 2, frame: 25
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('twoFriends', instance,
dataBinding?.twoFriends, onDataBindingChange?.twoFriends, playIfNeeded);
const baseRiveModule = require(3885) /* metro dependency 3885: BaseRive */;
const useNumberBinding = baseRiveModule.useNumberBinding;
const AnimationState = dataBinding?.AnimationState;
const AnimationState2 = onDataBindingChange?.AnimationState;
Reflect.apply(useNumberBinding, baseRiveModule, ['AnimationState', instance, AnimationState, AnimationState2,
playIfNeeded]);
baseRiveModule.useNumberBinding('Avatar01/ShadowVisibility', instance, dataBinding?.['Avatar01/ShadowVisibility'],
onDataBindingChange?.['Avatar01/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar01/StrokeVisibility', instance, dataBinding?.['Avatar01/StrokeVisibility'],
onDataBindingChange?.['Avatar01/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar01/UsernameVisibility', instance,
dataBinding?.['Avatar01/UsernameVisibility'], onDataBindingChange?.['Avatar01/UsernameVisibility'],
playIfNeeded);
const moduleValue7 = baseRiveModule;
let useColorBinding = moduleValue7.useColorBinding;
Reflect.apply(useColorBinding, moduleValue7, ['Avatar01/Stroke', instance, dataBinding?.['Avatar01/Stroke'],
onDataBindingChange?.['Avatar01/Stroke'], playIfNeeded]);
baseRiveModule.useColorBinding('Avatar01/Fill', instance, dataBinding?.['Avatar01/Fill'],
onDataBindingChange?.['Avatar01/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar01/Username', instance, dataBinding?.['Avatar01/Username'],
onDataBindingChange?.['Avatar01/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar01/img', instance, dataBinding?.['Avatar01/img'],
onDataBindingChange?.['Avatar01/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar02/ShadowVisibility', instance, dataBinding?.['Avatar02/ShadowVisibility'],
onDataBindingChange?.['Avatar02/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar02/StrokeVisibility', instance, dataBinding?.['Avatar02/StrokeVisibility'],
onDataBindingChange?.['Avatar02/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar02/UsernameVisibility', instance,
dataBinding?.['Avatar02/UsernameVisibility'], onDataBindingChange?.['Avatar02/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar02/Stroke', instance, dataBinding?.['Avatar02/Stroke'],
onDataBindingChange?.['Avatar02/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar02/Fill', instance, dataBinding?.['Avatar02/Fill'],
onDataBindingChange?.['Avatar02/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar02/Username', instance, dataBinding?.['Avatar02/Username'],
onDataBindingChange?.['Avatar02/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar02/img', instance, dataBinding?.['Avatar02/img'],
onDataBindingChange?.['Avatar02/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar03/ShadowVisibility', instance, dataBinding?.['Avatar03/ShadowVisibility'],
onDataBindingChange?.['Avatar03/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar03/StrokeVisibility', instance, dataBinding?.['Avatar03/StrokeVisibility'],
onDataBindingChange?.['Avatar03/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar03/UsernameVisibility', instance,
dataBinding?.['Avatar03/UsernameVisibility'], onDataBindingChange?.['Avatar03/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar03/Stroke', instance, dataBinding?.['Avatar03/Stroke'],
onDataBindingChange?.['Avatar03/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar03/Fill', instance, dataBinding?.['Avatar03/Fill'],
onDataBindingChange?.['Avatar03/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar03/Username', instance, dataBinding?.['Avatar03/Username'],
onDataBindingChange?.['Avatar03/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar03/img', instance, dataBinding?.['Avatar03/img'],
onDataBindingChange?.['Avatar03/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar04/ShadowVisibility', instance, dataBinding?.['Avatar04/ShadowVisibility'],
onDataBindingChange?.['Avatar04/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar04/StrokeVisibility', instance, dataBinding?.['Avatar04/StrokeVisibility'],
onDataBindingChange?.['Avatar04/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar04/UsernameVisibility', instance,
dataBinding?.['Avatar04/UsernameVisibility'], onDataBindingChange?.['Avatar04/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar04/Stroke', instance, dataBinding?.['Avatar04/Stroke'],
onDataBindingChange?.['Avatar04/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar04/Fill', instance, dataBinding?.['Avatar04/Fill'],
onDataBindingChange?.['Avatar04/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar04/Username', instance, dataBinding?.['Avatar04/Username'],
onDataBindingChange?.['Avatar04/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar04/img', instance, dataBinding?.['Avatar04/img'],
onDataBindingChange?.['Avatar04/img'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar05/ShadowVisibility', instance, dataBinding?.['Avatar05/ShadowVisibility'],
onDataBindingChange?.['Avatar05/ShadowVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar05/StrokeVisibility', instance, dataBinding?.['Avatar05/StrokeVisibility'],
onDataBindingChange?.['Avatar05/StrokeVisibility'], playIfNeeded);
baseRiveModule.useNumberBinding('Avatar05/UsernameVisibility', instance,
dataBinding?.['Avatar05/UsernameVisibility'], onDataBindingChange?.['Avatar05/UsernameVisibility'],
playIfNeeded);
baseRiveModule.useColorBinding('Avatar05/Stroke', instance, dataBinding?.['Avatar05/Stroke'],
onDataBindingChange?.['Avatar05/Stroke'], playIfNeeded);
baseRiveModule.useColorBinding('Avatar05/Fill', instance, dataBinding?.['Avatar05/Fill'],
onDataBindingChange?.['Avatar05/Fill'], playIfNeeded);
baseRiveModule.useStringBinding('Avatar05/Username', instance, dataBinding?.['Avatar05/Username'],
onDataBindingChange?.['Avatar05/Username'], playIfNeeded);
baseRiveModule.useImageBinding('Avatar05/img', instance, dataBinding?.['Avatar05/img'],
onDataBindingChange?.['Avatar05/img'], playIfNeeded);
const value = baseRiveModule;
useColorBinding = value.useColorBinding;
const ConnectorColor = dataBinding?.ConnectorColor;
const ConnectorColor2 = onDataBindingChange?.ConnectorColor;
Reflect.apply(useColorBinding, value, ['ConnectorColor', instance, ConnectorColor, ConnectorColor2, playIfNeeded]);
return null;
}
function Avatar({instance, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:14835, offset: 0x01013042, size: 571 bytes, params: 2, frame: 25
const baseRiveModule = require(3885) /* metro dependency 3885: BaseRive */;
let useNumberBinding = baseRiveModule.useNumberBinding;
const ShadowVisibility = dataBinding?.ShadowVisibility;
const ShadowVisibility2 = onDataBindingChange?.ShadowVisibility;
Reflect.apply(useNumberBinding, baseRiveModule, ['ShadowVisibility', instance, ShadowVisibility, ShadowVisibility2,
playIfNeeded]);
const moduleValue2 = baseRiveModule;
useNumberBinding = moduleValue2.useNumberBinding;
const StrokeVisibility = dataBinding?.StrokeVisibility;
const StrokeVisibility2 = onDataBindingChange?.StrokeVisibility;
Reflect.apply(useNumberBinding, moduleValue2, ['StrokeVisibility', instance, StrokeVisibility, StrokeVisibility2,
playIfNeeded]);
const moduleValue3 = baseRiveModule;
useNumberBinding = moduleValue3.useNumberBinding;
const UsernameVisibility = dataBinding?.UsernameVisibility;
const UsernameVisibility2 = onDataBindingChange?.UsernameVisibility;
Reflect.apply(useNumberBinding, moduleValue3, ['UsernameVisibility', instance, UsernameVisibility,
UsernameVisibility2, playIfNeeded]);
const moduleValue4 = baseRiveModule;
let useColorBinding = moduleValue4.useColorBinding;
const Stroke = dataBinding?.Stroke;
const Stroke2 = onDataBindingChange?.Stroke;
Reflect.apply(useColorBinding, moduleValue4, ['Stroke', instance, Stroke, Stroke2, playIfNeeded]);
const moduleValue5 = baseRiveModule;
useColorBinding = moduleValue5.useColorBinding;
const Fill = dataBinding?.Fill;
const Fill2 = onDataBindingChange?.Fill;
Reflect.apply(useColorBinding, moduleValue5, ['Fill', instance, Fill, Fill2, playIfNeeded]);
const moduleValue6 = baseRiveModule;
const useStringBinding = moduleValue6.useStringBinding;
const Username = dataBinding?.Username;
const Username2 = onDataBindingChange?.Username;
Reflect.apply(useStringBinding, moduleValue6, ['Username', instance, Username, Username2, playIfNeeded]);
baseRiveModule.useImageBinding('img', instance, dataBinding?.img, onDataBindingChange?.img, playIfNeeded);
return null;
}
function CheckpointFriendsRiveInner(a0, a1) { // fn#32349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4092:21648, offset: 0x0101327d, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'MAIN' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'threeFriends' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = env0_4(a0, env0_3);
const value3 = env0_5.useCallback(_fun32350, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
return (
<BaseRive
ref={a1}
src={importDefault(3944) /* metro dependency 3944: CheckpointFriendsRiv */}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
}
global.__d(_fun32343, 3943, [29, 31, 33, 3885, 3944, 3936,
2]) /* metro module 3943, dependencies: [29, 31, 33, 3885, 3944, 3936, 2] */;
@@ -1,77 +1,118 @@
/* Metro module 3945; source: ../discord_common/js/packages/design/components/Rive/native/generated/CheckpointIntroRive.tsx; dependencies: [29, 31, 33, 3885, 3946, 3936, 2] */
import ObjectWithoutProperties from '../../../../../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import CheckpointIntroRiv from '../../../../../../../../discord_assets/assets/mana/rive/native/CheckpointIntro.riv.js'; /* Metro dependency 3946 */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseRiveModule from '../BaseRive.tsx'; /* Metro dependency 3885 */
import * as RiveErrorBoundaryModule from '../RiveErrorBoundary.tsx'; /* Metro dependency 3936 */
function _fun32353(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4094:6, offset: 0x010133dc, size: 337 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
'onDataBindingChange'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
object2 = {};
object2['Checkpoint Intro Desktop'] = {'reducedMotion': 'boolean', 'Subtitle': 'string',
let value = ReactModule;
object = {};
object['Checkpoint Intro Desktop'] = {'reducedMotion': 'boolean', 'Subtitle': 'string',
'StartButton Pressed': 'boolean', 'StartButton': 'string'};
object2.Globe = {};
object2['Globe Single Line'] = {};
object2['Start Button'] = {'reducedMotion': 'boolean', 'Subtitle': 'string', 'StartButton Pressed': 'boolean',
object.Globe = {};
object['Globe Single Line'] = {};
object['Start Button'] = {'reducedMotion': 'boolean', 'Subtitle': 'string', 'StartButton Pressed': 'boolean',
'StartButton': 'string'};
object2 = {};
object2['Checkpoint Intro Desktop'] = ['default', 'reducedMotion'];
object2.Globe = [];
object2['Globe Single Line'] = [];
object2['Start Button'] = ['default', 'reducedMotion'];
object2 = {};
object2['Checkpoint Intro Desktop'] = CheckpointIntroDesktopBindings;
object2['Start Button'] = StartButtonBindings;
object = {};
object['Checkpoint Intro Desktop'] = ['default', 'reducedMotion'];
object.Globe = [];
object['Globe Single Line'] = [];
object['Start Button'] = ['default', 'reducedMotion'];
object = {};
object['Checkpoint Intro Desktop'] = CheckpointIntroDesktopBindings;
object['Start Button'] = StartButtonBindings;
const env0_10 = value.forwardRef(CheckpointIntroRiveInner);
value = value.forwardRef(CheckpointIntroRiveWithBoundary);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CheckpointIntroRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CheckpointIntroRive.tsx');
exports.CheckpointIntroRive = value;
function CheckpointIntroDesktopBindings({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4094:678, offset: 0x0101352d, size: 307 bytes, params: 2, frame: 25
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useStringBinding = BaseRiveModule.useStringBinding;
const Subtitle = dataBinding?.Subtitle;
const Subtitle2 = onDataBindingChange?.Subtitle;
Reflect.apply(useStringBinding, BaseRiveModule, ['Subtitle', instance, Subtitle, Subtitle2, playIfNeeded]);
BaseRiveModule.useBooleanBinding('StartButton Pressed', instance, dataBinding?.['StartButton Pressed'],
onDataBindingChange?.['StartButton Pressed'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const StartButton = dataBinding?.StartButton;
const StartButton2 = onDataBindingChange?.StartButton;
Reflect.apply(useStringBinding, BaseRiveModule, ['StartButton', instance, StartButton, StartButton2, playIfNeeded]);
return null;
}
function StartButtonBindings({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4094:1230, offset: 0x0101352d, size: 307 bytes, params: 2, frame: 25
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
let useStringBinding = BaseRiveModule.useStringBinding;
const Subtitle = dataBinding?.Subtitle;
const Subtitle2 = onDataBindingChange?.Subtitle;
Reflect.apply(useStringBinding, BaseRiveModule, ['Subtitle', instance, Subtitle, Subtitle2, playIfNeeded]);
BaseRiveModule.useBooleanBinding('StartButton Pressed', instance, dataBinding?.['StartButton Pressed'],
onDataBindingChange?.['StartButton Pressed'], playIfNeeded);
useStringBinding = BaseRiveModule.useStringBinding;
const StartButton = dataBinding?.StartButton;
const StartButton2 = onDataBindingChange?.StartButton;
Reflect.apply(useStringBinding, BaseRiveModule, ['StartButton', instance, StartButton, StartButton2, playIfNeeded]);
return null;
}
function CheckpointIntroRiveInner(a0, a1) { // fn#32356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4094:1777, offset: 0x01013660, size: 246 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Checkpoint Intro Desktop' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'default' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = ObjectWithoutProperties(a0, env0_3);
const value3 = env0_5.useCallback(_fun32357, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (BaseRiveModule).BaseRive;
return (
<BaseRive
ref={a1}
src={CheckpointIntroRiv}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
function _fun32357(a0) { // fn#32357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4094:2023, offset: 0x0100afc1, size: 79 bytes, params: 2, frame: 16
const value = environment.__proto__;
const property = env1_9[env0_0];
const value3 = null;
return (
value3 == property
? value3
: ((Component) => <Component {...a0} {...{['dataBinding']: dataBinding}} {...{['onDataBindingChange']: onDataBindingChange}} />)(property)
);
}
}
function CheckpointIntroRiveWithBoundary(a0, a1) { // fn#32358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4094:2315, offset: 0x0100b010, size: 92 bytes, params: 3, frame: 17
const RiveErrorBoundary = (RiveErrorBoundaryModule).RiveErrorBoundary;
return (
<RiveErrorBoundary fallback={a0.fallback}>
{((Component) => <Component ref={a1} {...a0} />)(env0_10)}
</RiveErrorBoundary>
);
}
}
function CheckpointIntroDesktopBindings({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4094:678, offset: 0x0101352d, size: 307 bytes, params: 2, frame: 25
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
const baseRiveModule = require(3885) /* metro dependency 3885: BaseRive */;
let useStringBinding = baseRiveModule.useStringBinding;
const Subtitle = dataBinding?.Subtitle;
const Subtitle2 = onDataBindingChange?.Subtitle;
Reflect.apply(useStringBinding, baseRiveModule, ['Subtitle', instance, Subtitle, Subtitle2, playIfNeeded]);
baseRiveModule.useBooleanBinding('StartButton Pressed', instance, dataBinding?.['StartButton Pressed'],
onDataBindingChange?.['StartButton Pressed'], playIfNeeded);
const value = baseRiveModule;
useStringBinding = value.useStringBinding;
const StartButton = dataBinding?.StartButton;
const StartButton2 = onDataBindingChange?.StartButton;
Reflect.apply(useStringBinding, value, ['StartButton', instance, StartButton, StartButton2, playIfNeeded]);
return null;
}
function CheckpointIntroRiveInner(a0, a1) { // fn#32356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4094:1777, offset: 0x01013660, size: 246 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Checkpoint Intro Desktop' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'default' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = env0_4(a0, env0_3);
const value3 = env0_5.useCallback(_fun32357, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
return (
<BaseRive
ref={a1}
src={importDefault(3946) /* metro dependency 3946: CheckpointIntroRiv */}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
}
global.__d(_fun32353, 3945, [29, 31, 33, 3885, 3946, 3936,
2]) /* metro module 3945, dependencies: [29, 31, 33, 3885, 3946, 3936, 2] */;
@@ -1,88 +1,211 @@
/* Metro module 3947; source: ../discord_common/js/packages/design/components/Rive/native/generated/CheckpointKnickKnacksRive.tsx; dependencies: [29, 31, 33, 3885, 3948, 3936, 2] */
import ObjectWithoutProperties from '../../../../../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import CheckpointKnickKnacksRiv from '../../../../../../../../discord_assets/assets/mana/rive/native/CheckpointKnickKnacks.riv.js'; /* Metro dependency 3948 */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseRiveModule from '../BaseRive.tsx'; /* Metro dependency 3885 */
import * as RiveErrorBoundaryModule from '../RiveErrorBoundary.tsx'; /* Metro dependency 3936 */
function _fun32360(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:6, offset: 0x010137bd, size: 809 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
'onDataBindingChange'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
object2 = {Preview: {'reducedMotion': 'boolean', 'iconColor': 'color'}, Friends: {'reducedMotion': 'boolean',
let value = ReactModule;
object = {Preview: {'reducedMotion': 'boolean', 'iconColor': 'color'}, Friends: {'reducedMotion': 'boolean',
'iconColor': 'color'}, Globe: {'reducedMotion': 'boolean', 'iconColor': 'color'}};
object2['Globe Single Line'] = {};
object2.Emojis = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object2['Wave Line'] = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object2.Games = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object2.Voice = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object2['Looping Checkboard'] = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object2.CheckRow = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object2.Quests = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object2.Entry = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object2.Messages = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object2.Servers = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object2 = {Preview: ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'], Friends: ['Pink', 'Orange', 'Green',
object['Globe Single Line'] = {};
object.Emojis = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object['Wave Line'] = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object.Games = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object.Voice = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object['Looping Checkboard'] = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object.CheckRow = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object.Quests = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object.Entry = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object.Messages = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object.Servers = {'reducedMotion': 'boolean', 'iconColor': 'color'};
object = {Preview: ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'], Friends: ['Pink', 'Orange', 'Green',
'Lavender', 'Yellow', 'Cyan'], Globe: ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan']};
object2['Globe Single Line'] = [];
object2.Emojis = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object2['Wave Line'] = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object2.Games = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object2.Voice = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object2['Looping Checkboard'] = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object2.CheckRow = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object2.Quests = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object2.Entry = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object2.Messages = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object2.Servers = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object2 = {Preview: Preview, Friends: Friends, Globe: Globe, Emojis: Emojis};
object2['Wave Line'] = WaveLineBindings;
object2.Games = Games;
object2.Voice = Voice;
object2['Looping Checkboard'] = LoopingCheckboardBindings;
object2.CheckRow = CheckRow;
object2.Quests = Quests;
object2.Entry = Entry_32371;
object2.Messages = Messages;
object2.Servers = Servers;
object['Globe Single Line'] = [];
object.Emojis = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object['Wave Line'] = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object.Games = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object.Voice = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object['Looping Checkboard'] = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object.CheckRow = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object.Quests = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object.Entry = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object.Messages = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object.Servers = ['Pink', 'Orange', 'Green', 'Lavender', 'Yellow', 'Cyan'];
object = {Preview: Preview, Friends: Friends, Globe: Globe, Emojis: Emojis};
object['Wave Line'] = WaveLineBindings;
object.Games = Games;
object.Voice = Voice;
object['Looping Checkboard'] = LoopingCheckboardBindings;
object.CheckRow = CheckRow;
object.Quests = Quests;
object.Entry = Entry_32371;
object.Messages = Messages;
object.Servers = Servers;
const env0_10 = value.forwardRef(CheckpointKnickKnacksRiveInner);
value = value.forwardRef(CheckpointKnickKnacksRiveWithBoundary);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CheckpointKnickKnacksRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/CheckpointKnickKnacksRive.tsx');
exports.CheckpointKnickKnacksRive = value;
function Preview({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:1794, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function Friends({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:2091, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function Globe({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:2386, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function Emojis({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:2680, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function WaveLineBindings({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:2980, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function Games({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:3276, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function Voice({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:3569, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function LoopingCheckboardBindings({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:3877, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function CheckRow({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:4185, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function Quests({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:4482, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function Entry_32371({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:4776, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function Messages({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:5072, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function Servers({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:5370, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function CheckpointKnickKnacksRiveInner(a0, a1) { // fn#32374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:5680, offset: 0x01013b81, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Preview' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Pink' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = ObjectWithoutProperties(a0, env0_3);
const value3 = env0_5.useCallback(_fun32375, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (BaseRiveModule).BaseRive;
return (
<BaseRive
ref={a1}
src={CheckpointKnickKnacksRiv}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
function _fun32375(a0) { // fn#32375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:5912, offset: 0x0100afc1, size: 79 bytes, params: 2, frame: 16
const value = environment.__proto__;
const property = env1_9[env0_0];
const value3 = null;
return (
value3 == property
? value3
: ((Component) => <Component {...a0} {...{['dataBinding']: dataBinding}} {...{['onDataBindingChange']: onDataBindingChange}} />)(property)
);
}
}
function CheckpointKnickKnacksRiveWithBoundary(a0, a1) { // fn#32376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:6204, offset: 0x0100b010, size: 92 bytes, params: 3, frame: 17
const RiveErrorBoundary = (RiveErrorBoundaryModule).RiveErrorBoundary;
return (
<RiveErrorBoundary fallback={a0.fallback}>
{((Component) => <Component ref={a1} {...a0} />)(env0_10)}
</RiveErrorBoundary>
);
}
}
function Preview({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:1794, offset: 0x01013ae6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('iconColor', instance, dataBinding?.iconColor,
onDataBindingChange?.iconColor, playIfNeeded);
return null;
}
function CheckpointKnickKnacksRiveInner(a0, a1) { // fn#32374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4096:5680, offset: 0x01013b81, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Preview' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Pink' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = env0_4(a0, env0_3);
const value3 = env0_5.useCallback(_fun32375, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
return (
<BaseRive
ref={a1}
src={importDefault(3948) /* metro dependency 3948: CheckpointKnickKnacksRiv */}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
}
global.__d(_fun32360, 3947, [29, 31, 33, 3885, 3948, 3936,
2]) /* metro module 3947, dependencies: [29, 31, 33, 3885, 3948, 3936, 2] */;
@@ -1,77 +1,146 @@
/* Metro module 3949; source: ../discord_common/js/packages/design/components/Rive/native/generated/ExpressiveButtonRive.tsx; dependencies: [29, 31, 33, 3885, 3950, 3936, 2] */
import ObjectWithoutProperties from '../../../../../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import ExpressiveButtonRiv from '../../../../../../../../discord_assets/assets/mana/rive/native/ExpressiveButton.riv.js'; /* Metro dependency 3950 */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseRiveModule from '../BaseRive.tsx'; /* Metro dependency 3885 */
import * as RiveErrorBoundaryModule from '../RiveErrorBoundary.tsx'; /* Metro dependency 3936 */
function _fun32378(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4098:6, offset: 0x01013ce0, size: 395 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
'onDataBindingChange'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
object2 = {};
object2['Mobile Expressive Button Lightmode'] = {'posy': 'number', 'posx': 'number', 'buttonColor': 'color',
let value = ReactModule;
object = {};
object['Mobile Expressive Button Lightmode'] = {'posy': 'number', 'posx': 'number', 'buttonColor': 'color',
'cornerRadius': 'number', 'pressed': 'boolean'};
object2.Ambient_Lightmode = {'posy': 'number', 'posx': 'number', 'buttonColor': 'color', 'cornerRadius': 'number',
object.Ambient_Lightmode = {'posy': 'number', 'posx': 'number', 'buttonColor': 'color', 'cornerRadius': 'number',
'pressed': 'boolean'};
object2['Mobile Expressive Button Dark Mode'] = {'posy': 'number', 'posx': 'number', 'buttonColor': 'color',
object['Mobile Expressive Button Dark Mode'] = {'posy': 'number', 'posx': 'number', 'buttonColor': 'color',
'cornerRadius': 'number', 'pressed': 'boolean'};
object2.Ambient = {'posy': 'number', 'posx': 'number', 'buttonColor': 'color', 'cornerRadius': 'number',
object.Ambient = {'posy': 'number', 'posx': 'number', 'buttonColor': 'color', 'cornerRadius': 'number',
'pressed': 'boolean'};
object2 = {};
object2['Mobile Expressive Button Lightmode'] = ['Instance'];
object2.Ambient_Lightmode = ['Instance'];
object2['Mobile Expressive Button Dark Mode'] = ['Instance'];
object2.Ambient = ['Instance'];
object2 = {};
object2['Mobile Expressive Button Lightmode'] = MobileExpressiveButtonLightmodeBindings;
object2.Ambient_Lightmode = Ambient_Lightmode;
object2['Mobile Expressive Button Dark Mode'] = MobileExpressiveButtonDarkModeBindings;
object2.Ambient = Ambient;
object = {};
object['Mobile Expressive Button Lightmode'] = ['Instance'];
object.Ambient_Lightmode = ['Instance'];
object['Mobile Expressive Button Dark Mode'] = ['Instance'];
object.Ambient = ['Instance'];
object = {};
object['Mobile Expressive Button Lightmode'] = MobileExpressiveButtonLightmodeBindings;
object.Ambient_Lightmode = Ambient_Lightmode;
object['Mobile Expressive Button Dark Mode'] = MobileExpressiveButtonDarkModeBindings;
object.Ambient = Ambient;
const env0_10 = value.forwardRef(ExpressiveButtonRiveInner);
value = value.forwardRef(ExpressiveButtonRiveWithBoundary);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/ExpressiveButtonRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/ExpressiveButtonRive.tsx');
exports.ExpressiveButtonRive = value;
function MobileExpressiveButtonLightmodeBindings({instance, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4098:902, offset: 0x01013e6b, size: 419 bytes, params: 2, frame: 25
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('posy', instance, dataBinding?.posy,
onDataBindingChange?.posy, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('posx', instance, dataBinding?.posx,
onDataBindingChange?.posx, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('buttonColor', instance,
dataBinding?.buttonColor, onDataBindingChange?.buttonColor, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('cornerRadius', instance,
dataBinding?.cornerRadius, onDataBindingChange?.cornerRadius, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('pressed', instance, dataBinding?.pressed,
onDataBindingChange?.pressed, playIfNeeded);
return null;
}
function Ambient_Lightmode({instance, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4098:1518, offset: 0x01013e6b, size: 419 bytes, params: 2, frame: 25
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('posy', instance, dataBinding?.posy,
onDataBindingChange?.posy, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('posx', instance, dataBinding?.posx,
onDataBindingChange?.posx, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('buttonColor', instance,
dataBinding?.buttonColor, onDataBindingChange?.buttonColor, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('cornerRadius', instance,
dataBinding?.cornerRadius, onDataBindingChange?.cornerRadius, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('pressed', instance, dataBinding?.pressed,
onDataBindingChange?.pressed, playIfNeeded);
return null;
}
function MobileExpressiveButtonDarkModeBindings({instance, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4098:2138, offset: 0x01013e6b, size: 419 bytes, params: 2, frame: 25
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('posy', instance, dataBinding?.posy,
onDataBindingChange?.posy, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('posx', instance, dataBinding?.posx,
onDataBindingChange?.posx, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('buttonColor', instance,
dataBinding?.buttonColor, onDataBindingChange?.buttonColor, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('cornerRadius', instance,
dataBinding?.cornerRadius, onDataBindingChange?.cornerRadius, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('pressed', instance, dataBinding?.pressed,
onDataBindingChange?.pressed, playIfNeeded);
return null;
}
function Ambient({instance, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4098:2743, offset: 0x01013e6b, size: 419 bytes, params: 2, frame: 25
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('posy', instance, dataBinding?.posy,
onDataBindingChange?.posy, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('posx', instance, dataBinding?.posx,
onDataBindingChange?.posx, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('buttonColor', instance,
dataBinding?.buttonColor, onDataBindingChange?.buttonColor, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('cornerRadius', instance,
dataBinding?.cornerRadius, onDataBindingChange?.cornerRadius, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('pressed', instance, dataBinding?.pressed,
onDataBindingChange?.pressed, playIfNeeded);
return null;
}
function ExpressiveButtonRiveInner(a0, a1) { // fn#32383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4098:3338, offset: 0x0101400e, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Mobile Expressive Button Lightmode' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = ObjectWithoutProperties(a0, env0_3);
const value3 = env0_5.useCallback(_fun32384, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (BaseRiveModule).BaseRive;
return (
<BaseRive
ref={a1}
src={ExpressiveButtonRiv}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
function _fun32384(a0) { // fn#32384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4098:3596, offset: 0x0100afc1, size: 79 bytes, params: 2, frame: 16
const value = environment.__proto__;
const property = env1_9[env0_0];
const value3 = null;
return (
value3 == property
? value3
: ((Component) => <Component {...a0} {...{['dataBinding']: dataBinding}} {...{['onDataBindingChange']: onDataBindingChange}} />)(property)
);
}
}
function ExpressiveButtonRiveWithBoundary(a0, a1) { // fn#32385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4098:3888, offset: 0x0100b010, size: 92 bytes, params: 3, frame: 17
const RiveErrorBoundary = (RiveErrorBoundaryModule).RiveErrorBoundary;
return (
<RiveErrorBoundary fallback={a0.fallback}>
{((Component) => <Component ref={a1} {...a0} />)(env0_10)}
</RiveErrorBoundary>
);
}
}
function MobileExpressiveButtonLightmodeBindings({instance, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4098:902, offset: 0x01013e6b, size: 419 bytes, params: 2, frame: 25
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('posy', instance, dataBinding?.posy,
onDataBindingChange?.posy, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('posx', instance, dataBinding?.posx,
onDataBindingChange?.posx, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('buttonColor', instance,
dataBinding?.buttonColor, onDataBindingChange?.buttonColor, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useNumberBinding('cornerRadius', instance,
dataBinding?.cornerRadius, onDataBindingChange?.cornerRadius, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('pressed', instance, dataBinding?.pressed,
onDataBindingChange?.pressed, playIfNeeded);
return null;
}
function ExpressiveButtonRiveInner(a0, a1) { // fn#32383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4098:3338, offset: 0x0101400e, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Mobile Expressive Button Lightmode' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = env0_4(a0, env0_3);
const value3 = env0_5.useCallback(_fun32384, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
return (
<BaseRive
ref={a1}
src={importDefault(3950) /* metro dependency 3950: ExpressiveButtonRiv */}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
}
global.__d(_fun32378, 3949, [29, 31, 33, 3885, 3950, 3936,
2]) /* metro module 3949, dependencies: [29, 31, 33, 3885, 3950, 3936, 2] */;
@@ -1,55 +1,94 @@
/* Metro module 3951; source: ../discord_common/js/packages/design/components/Rive/native/generated/GameServerHostingRive.tsx; dependencies: [29, 31, 33, 3885, 3952, 3936, 2] */
import ObjectWithoutProperties from '../../../../../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import GameServerHostingRiv from '../../../../../../../../discord_assets/assets/mana/rive/native/GameServerHosting.riv.js'; /* Metro dependency 3952 */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseRiveModule from '../BaseRive.tsx'; /* Metro dependency 3885 */
import * as RiveErrorBoundaryModule from '../RiveErrorBoundary.tsx'; /* Metro dependency 3936 */
function _fun32387(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4100:6, offset: 0x0101416d, size: 377 bytes, params: 8, frame: 20
var object2;
const env0_0 = require;
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
'onDataBindingChange'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
object2 = {};
object2.Game_Server_Hosting_Main = {reducedMotion: 'boolean'};
object2.c_chara_5 = {};
object2.hytale_gameplay = {reducedMotion: 'boolean'};
object2.c_chara_1 = {};
object2.c_chara_4 = {};
object2.c_chara_2 = {};
object2.c_chara_3 = {};
object2 = {Game_Server_Hosting_Main: ['Instance'], c_chara_5: [], hytale_gameplay: ['Instance'], c_chara_1: [],
let value = ReactModule;
object = {};
object.Game_Server_Hosting_Main = {reducedMotion: 'boolean'};
object.c_chara_5 = {};
object.hytale_gameplay = {reducedMotion: 'boolean'};
object.c_chara_1 = {};
object.c_chara_4 = {};
object.c_chara_2 = {};
object.c_chara_3 = {};
object = {Game_Server_Hosting_Main: ['Instance'], c_chara_5: [], hytale_gameplay: ['Instance'], c_chara_1: [],
c_chara_4: [], c_chara_2: [], c_chara_3: []};
object2 = {Game_Server_Hosting_Main: Game_Server_Hosting_Main, hytale_gameplay: hytale_gameplay};
object = {Game_Server_Hosting_Main: Game_Server_Hosting_Main, hytale_gameplay: hytale_gameplay};
const env0_10 = value.forwardRef(GameServerHostingRiveInner);
value = value.forwardRef(GameServerHostingRiveWithBoundary);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/GameServerHostingRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/GameServerHostingRive.tsx');
exports.GameServerHostingRive = value;
function Game_Server_Hosting_Main({instance, reducedMotionEnabled, playIfNeeded}) { // fn#32388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4100:568, offset: 0x0100ae84, size: 69 bytes, params: 2, frame: 19
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
return null;
}
function hytale_gameplay({instance, reducedMotionEnabled, playIfNeeded}) { // fn#32389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4100:744, offset: 0x0100ae84, size: 69 bytes, params: 2, frame: 19
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
return null;
}
function GameServerHostingRiveInner(a0, a1) { // fn#32390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4100:918, offset: 0x010142e6, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Game_Server_Hosting_Main' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = ObjectWithoutProperties(a0, env0_3);
const value3 = env0_5.useCallback(_fun32391, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (BaseRiveModule).BaseRive;
return (
<BaseRive
ref={a1}
src={GameServerHostingRiv}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
function _fun32391(a0) { // fn#32391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4100:1167, offset: 0x0100afc1, size: 79 bytes, params: 2, frame: 16
const value = environment.__proto__;
const property = env1_9[env0_0];
const value3 = null;
return (
value3 == property
? value3
: ((Component) => <Component {...a0} {...{['dataBinding']: dataBinding}} {...{['onDataBindingChange']: onDataBindingChange}} />)(property)
);
}
}
function GameServerHostingRiveWithBoundary(a0, a1) { // fn#32392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4100:1459, offset: 0x0100b010, size: 92 bytes, params: 3, frame: 17
const RiveErrorBoundary = (RiveErrorBoundaryModule).RiveErrorBoundary;
return (
<RiveErrorBoundary fallback={a0.fallback}>
{((Component) => <Component ref={a1} {...a0} />)(env0_10)}
</RiveErrorBoundary>
);
}
}
function GameServerHostingRiveInner(a0, a1) { // fn#32390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4100:918, offset: 0x010142e6, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Game_Server_Hosting_Main' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = env0_4(a0, env0_3);
const value3 = env0_5.useCallback(_fun32391, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
return (
<BaseRive
ref={a1}
src={importDefault(3952) /* metro dependency 3952: GameServerHostingRiv */}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
}
global.__d(_fun32387, 3951, [29, 31, 33, 3885, 3952, 3936,
2]) /* metro module 3951, dependencies: [29, 31, 33, 3885, 3952, 3936, 2] */;
@@ -1,53 +1,100 @@
/* Metro module 3953; source: ../discord_common/js/packages/design/components/Rive/native/generated/MicrophoneRive.tsx; dependencies: [29, 31, 33, 3885, 3954, 3936, 2] */
import ObjectWithoutProperties from '../../../../../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import MicrophoneRiv from '../../../../../../../../discord_assets/assets/mana/rive/native/Microphone.riv.js'; /* Metro dependency 3954 */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseRiveModule from '../BaseRive.tsx'; /* Metro dependency 3885 */
import * as RiveErrorBoundaryModule from '../RiveErrorBoundary.tsx'; /* Metro dependency 3936 */
function _fun32394(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4102:6, offset: 0x01014445, size: 307 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
'onDataBindingChange'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
object2 = {};
object2['Icon Microphone'] = {'reducedMotion': 'boolean', 'fill': 'color', 'on': 'boolean'};
object2['Animation Main'] = {'reducedMotion': 'boolean', 'fill': 'color', 'on': 'boolean'};
object2 = {};
object2['Icon Microphone'] = ['Off', 'On'];
object2['Animation Main'] = ['Off', 'On'];
object2 = {};
object2['Icon Microphone'] = IconMicrophoneBindings;
object2['Animation Main'] = AnimationMainBindings;
let value = ReactModule;
object = {};
object['Icon Microphone'] = {'reducedMotion': 'boolean', 'fill': 'color', 'on': 'boolean'};
object['Animation Main'] = {'reducedMotion': 'boolean', 'fill': 'color', 'on': 'boolean'};
object = {};
object['Icon Microphone'] = ['Off', 'On'];
object['Animation Main'] = ['Off', 'On'];
object = {};
object['Icon Microphone'] = IconMicrophoneBindings;
object['Animation Main'] = AnimationMainBindings;
const env0_10 = value.forwardRef(MicrophoneRiveInner);
value = value.forwardRef(MicrophoneRiveWithBoundary);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/MicrophoneRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/MicrophoneRive.tsx');
exports.MicrophoneRive = value;
function IconMicrophoneBindings({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4102:471, offset: 0x01011868, size: 231 bytes, params: 2, frame: 25
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('fill', instance, dataBinding?.fill,
onDataBindingChange?.fill, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('on', instance, dataBinding?.on,
onDataBindingChange?.on, playIfNeeded);
return null;
}
function AnimationMainBindings({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4102:845, offset: 0x01011868, size: 231 bytes, params: 2, frame: 25
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('fill', instance, dataBinding?.fill,
onDataBindingChange?.fill, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('on', instance, dataBinding?.on,
onDataBindingChange?.on, playIfNeeded);
return null;
}
function MicrophoneRiveInner(a0, a1) { // fn#32397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4102:1222, offset: 0x01014578, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Icon Microphone' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Off' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = ObjectWithoutProperties(a0, env0_3);
const value3 = env0_5.useCallback(_fun32398, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (BaseRiveModule).BaseRive;
return (
<BaseRive
ref={a1}
src={MicrophoneRiv}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
function _fun32398(a0) { // fn#32398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4102:1450, offset: 0x0100afc1, size: 79 bytes, params: 2, frame: 16
const value = environment.__proto__;
const property = env1_9[env0_0];
const value3 = null;
return (
value3 == property
? value3
: ((Component) => <Component {...a0} {...{['dataBinding']: dataBinding}} {...{['onDataBindingChange']: onDataBindingChange}} />)(property)
);
}
}
function MicrophoneRiveWithBoundary(a0, a1) { // fn#32399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4102:1742, offset: 0x0100b010, size: 92 bytes, params: 3, frame: 17
const RiveErrorBoundary = (RiveErrorBoundaryModule).RiveErrorBoundary;
return (
<RiveErrorBoundary fallback={a0.fallback}>
{((Component) => <Component ref={a1} {...a0} />)(env0_10)}
</RiveErrorBoundary>
);
}
}
function MicrophoneRiveInner(a0, a1) { // fn#32397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4102:1222, offset: 0x01014578, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Icon Microphone' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Off' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = env0_4(a0, env0_3);
const value3 = env0_5.useCallback(_fun32398, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
return (
<BaseRive
ref={a1}
src={importDefault(3954) /* metro dependency 3954: MicrophoneRiv */}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
}
global.__d(_fun32394, 3953, [29, 31, 33, 3885, 3954, 3936,
2]) /* metro module 3953, dependencies: [29, 31, 33, 3885, 3954, 3936, 2] */;
@@ -1,55 +1,106 @@
/* Metro module 3955; source: ../discord_common/js/packages/design/components/Rive/native/generated/NitroQuestOrbsMultiplierRive.tsx; dependencies: [29, 31, 33, 3885, 3956, 3936, 2] */
import ObjectWithoutProperties from '../../../../../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import NitroQuestOrbsMultiplierRiv from '../../../../../../../../discord_assets/assets/mana/rive/native/NitroQuestOrbsMultiplier.riv.js'; /* Metro dependency 3956 */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseRiveModule from '../BaseRive.tsx'; /* Metro dependency 3885 */
import * as RiveErrorBoundaryModule from '../RiveErrorBoundary.tsx'; /* Metro dependency 3936 */
function _fun32401(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4104:6, offset: 0x010146d7, size: 371 bytes, params: 8, frame: 20
var object2;
const env0_0 = require;
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
'onDataBindingChange'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
object2 = {};
object2.Torbs_Multiply = {reducedMotion: 'boolean'};
object2.Shards_All_Nitro = {reducedMotion: 'boolean'};
object2['Orb Mid Shine'] = {reducedMotion: 'boolean'};
object2.Torbs_Shine = {reducedMotion: 'boolean'};
object2 = {Torbs_Multiply: ['Instance'], Shards_All_Nitro: ['Instance']};
object2['Orb Mid Shine'] = ['Instance'];
object2.Torbs_Shine = ['Instance'];
object2 = {Torbs_Multiply: Torbs_Multiply, Shards_All_Nitro: Shards_All_Nitro};
object2['Orb Mid Shine'] = OrbMidShineBindings;
object2.Torbs_Shine = Torbs_Shine;
let value = ReactModule;
object = {};
object.Torbs_Multiply = {reducedMotion: 'boolean'};
object.Shards_All_Nitro = {reducedMotion: 'boolean'};
object['Orb Mid Shine'] = {reducedMotion: 'boolean'};
object.Torbs_Shine = {reducedMotion: 'boolean'};
object = {Torbs_Multiply: ['Instance'], Shards_All_Nitro: ['Instance']};
object['Orb Mid Shine'] = ['Instance'];
object.Torbs_Shine = ['Instance'];
object = {Torbs_Multiply: Torbs_Multiply, Shards_All_Nitro: Shards_All_Nitro};
object['Orb Mid Shine'] = OrbMidShineBindings;
object.Torbs_Shine = Torbs_Shine;
const env0_10 = value.forwardRef(NitroQuestOrbsMultiplierRiveInner);
value = value.forwardRef(NitroQuestOrbsMultiplierRiveWithBoundary);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/NitroQuestOrbsMultiplierRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/NitroQuestOrbsMultiplierRive.tsx');
exports.NitroQuestOrbsMultiplierRive = value;
function Torbs_Multiply({instance, reducedMotionEnabled, playIfNeeded}) { // fn#32402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4104:544, offset: 0x0100ae84, size: 69 bytes, params: 2, frame: 19
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
return null;
}
function Shards_All_Nitro({instance, reducedMotionEnabled, playIfNeeded}) { // fn#32403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4104:713, offset: 0x0100ae84, size: 69 bytes, params: 2, frame: 19
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
return null;
}
function OrbMidShineBindings({instance, reducedMotionEnabled, playIfNeeded}) { // fn#32404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4104:882, offset: 0x0100ae84, size: 69 bytes, params: 2, frame: 19
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
return null;
}
function Torbs_Shine({instance, reducedMotionEnabled, playIfNeeded}) { // fn#32405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4104:1044, offset: 0x0100ae84, size: 69 bytes, params: 2, frame: 19
(BaseRiveModule).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
return null;
}
function NitroQuestOrbsMultiplierRiveInner(a0, a1) { // fn#32406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4104:1214, offset: 0x0101484a, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Torbs_Multiply' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = ObjectWithoutProperties(a0, env0_3);
const value3 = env0_5.useCallback(_fun32407, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (BaseRiveModule).BaseRive;
return (
<BaseRive
ref={a1}
src={NitroQuestOrbsMultiplierRiv}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
function _fun32407(a0) { // fn#32407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4104:1460, offset: 0x0100afc1, size: 79 bytes, params: 2, frame: 16
const value = environment.__proto__;
const property = env1_9[env0_0];
const value3 = null;
return (
value3 == property
? value3
: ((Component) => <Component {...a0} {...{['dataBinding']: dataBinding}} {...{['onDataBindingChange']: onDataBindingChange}} />)(property)
);
}
}
function NitroQuestOrbsMultiplierRiveWithBoundary(a0, a1) { // fn#32408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4104:1752, offset: 0x0100b010, size: 92 bytes, params: 3, frame: 17
const RiveErrorBoundary = (RiveErrorBoundaryModule).RiveErrorBoundary;
return (
<RiveErrorBoundary fallback={a0.fallback}>
{((Component) => <Component ref={a1} {...a0} />)(env0_10)}
</RiveErrorBoundary>
);
}
}
function NitroQuestOrbsMultiplierRiveInner(a0, a1) { // fn#32406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4104:1214, offset: 0x0101484a, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Torbs_Multiply' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = env0_4(a0, env0_3);
const value3 = env0_5.useCallback(_fun32407, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
return (
<BaseRive
ref={a1}
src={importDefault(3956) /* metro dependency 3956: NitroQuestOrbsMultiplierRiv */}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
}
global.__d(_fun32401, 3955, [29, 31, 33, 3885, 3956, 3936,
2]) /* metro module 3955, dependencies: [29, 31, 33, 3885, 3956, 3936, 2] */;
@@ -1,51 +1,67 @@
/* Metro module 3957; source: ../discord_common/js/packages/design/components/Rive/native/generated/TeenScreenTimeRive.tsx; dependencies: [29, 31, 33, 3885, 3958, 3936, 2] */
import ObjectWithoutProperties from '../../../../../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import TeenScreenTimeRiv from '../../../../../../../../discord_assets/assets/mana/rive/native/TeenScreenTime.riv.js'; /* Metro dependency 3958 */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseRiveModule from '../BaseRive.tsx'; /* Metro dependency 3885 */
import * as RiveErrorBoundaryModule from '../RiveErrorBoundary.tsx'; /* Metro dependency 3936 */
function _fun32410(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4106:6, offset: 0x010149a9, size: 273 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
object2 = {};
object2['Teen Screen Time Illo'] = {};
object2['Gradient Vertical'] = {};
object2['RAW ILLO (Do not deploy)'] = {};
object2['Gradient Horizontal'] = {};
object2 = {};
object2['Teen Screen Time Illo'] = [];
object2['Gradient Vertical'] = [];
object2['RAW ILLO (Do not deploy)'] = [];
object2['Gradient Horizontal'] = [];
let value = ReactModule;
object = {};
object['Teen Screen Time Illo'] = {};
object['Gradient Vertical'] = {};
object['RAW ILLO (Do not deploy)'] = {};
object['Gradient Horizontal'] = {};
object = {};
object['Teen Screen Time Illo'] = [];
object['Gradient Vertical'] = [];
object['RAW ILLO (Do not deploy)'] = [];
object['Gradient Horizontal'] = [];
const env0_8 = value.forwardRef(TeenScreenTimeRiveInner);
value = value.forwardRef(TeenScreenTimeRiveWithBoundary);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/TeenScreenTimeRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/TeenScreenTimeRive.tsx');
exports.TeenScreenTimeRive = value;
function TeenScreenTimeRiveInner(a0, a1) { // fn#32411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4106:440, offset: 0x01014aba, size: 174 bytes, params: 3, frame: 21
a0.fallback;
const artboard = a0.artboard;
const value = 'Teen Screen Time Illo';
const value2 = undefined;
const r8 = value2 === artboard ? value : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r6 = value2 === defaultViewModelInstance ? value2 : defaultViewModelInstance;
const value3 = ObjectWithoutProperties(a0, env0_3);
const BaseRive = (BaseRiveModule).BaseRive;
return (
<BaseRive
ref={a1}
src={TeenScreenTimeRiv}
artboard={r8}
artboardProperties={env0_6}
artboardViewModelInstances={env0_7}
defaultViewModelInstance={r6}
stateMachine={stateMachine}
{...value3}
/>
);
}
function TeenScreenTimeRiveWithBoundary(a0, a1) { // fn#32412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4106:800, offset: 0x0101168e, size: 92 bytes, params: 3, frame: 17
const RiveErrorBoundary = (RiveErrorBoundaryModule).RiveErrorBoundary;
return (
<RiveErrorBoundary fallback={a0.fallback}>
{((Component) => <Component ref={a1} {...a0} />)(env0_8)}
</RiveErrorBoundary>
);
}
}
function TeenScreenTimeRiveInner(a0, a1) { // fn#32411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4106:440, offset: 0x01014aba, size: 174 bytes, params: 3, frame: 21
a0.fallback;
const artboard = a0.artboard;
const value = 'Teen Screen Time Illo';
const value2 = undefined;
const r8 = value2 === artboard ? value : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r6 = value2 === defaultViewModelInstance ? value2 : defaultViewModelInstance;
const value3 = env0_4(a0, env0_3);
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
return (
<BaseRive
ref={a1}
src={importDefault(3958) /* metro dependency 3958: TeenScreenTimeRiv */}
artboard={r8}
artboardProperties={env0_6}
artboardViewModelInstances={env0_7}
defaultViewModelInstance={r6}
stateMachine={stateMachine}
{...value3}
/>
);
}
global.__d(_fun32410, 3957, [29, 31, 33, 3885, 3958, 3936,
2]) /* metro module 3957, dependencies: [29, 31, 33, 3885, 3958, 3936, 2] */;
@@ -1,54 +1,82 @@
/* Metro module 3959; source: ../discord_common/js/packages/design/components/Rive/native/generated/ThemeAwareNitroWishlistingWumpusRive.tsx; dependencies: [29, 31, 33, 3885, 3960, 3936, 2] */
import ObjectWithoutProperties from '../../../../../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import ThemeAwareNitroWishlistingWumpusRiv from '../../../../../../../../discord_assets/assets/mana/rive/native/ThemeAwareNitroWishlistingWumpus.riv.js'; /* Metro dependency 3960 */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseRiveModule from '../BaseRive.tsx'; /* Metro dependency 3885 */
import * as RiveErrorBoundaryModule from '../RiveErrorBoundary.tsx'; /* Metro dependency 3936 */
function _fun32414(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4108:6, offset: 0x01014bcf, size: 263 bytes, params: 8, frame: 19
const env0_0 = require;
const env0_3 = ['fallback', 'artboard', 'stateMachine', 'defaultViewModelInstance', 'dataBinding',
'onDataBindingChange'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
({})['Nitro Wishlist'] = {'reducedMotion': 'boolean', 'logoColor': 'color'};
({})['Nitro Wishlist'] = ['Instance'];
({})['Nitro Wishlist'] = NitroWishlistBindings;
const env0_10 = value.forwardRef(ThemeAwareNitroWishlistingWumpusRiveInner);
value = value.forwardRef(ThemeAwareNitroWishlistingWumpusRiveWithBoundary);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/ThemeAwareNitroWishlistingWumpusRive.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/ThemeAwareNitroWishlistingWumpusRive.tsx');
exports.ThemeAwareNitroWishlistingWumpusRive = value;
function NitroWishlistBindings({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4108:361, offset: 0x01014cd6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('logoColor', instance, dataBinding?.logoColor,
onDataBindingChange?.logoColor, playIfNeeded);
return null;
}
function ThemeAwareNitroWishlistingWumpusRiveInner(a0, a1) { // fn#32416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4108:677, offset: 0x01014d71, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Nitro Wishlist' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = ObjectWithoutProperties(a0, env0_3);
const value3 = env0_5.useCallback(_fun32417, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (BaseRiveModule).BaseRive;
return (
<BaseRive
ref={a1}
src={ThemeAwareNitroWishlistingWumpusRiv}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
function _fun32417(a0) { // fn#32417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4108:931, offset: 0x0100afc1, size: 79 bytes, params: 2, frame: 16
const value = environment.__proto__;
const property = env1_9[env0_0];
const value3 = null;
return (
value3 == property
? value3
: ((Component) => <Component {...a0} {...{['dataBinding']: dataBinding}} {...{['onDataBindingChange']: onDataBindingChange}} />)(property)
);
}
}
function ThemeAwareNitroWishlistingWumpusRiveWithBoundary(a0, a1) { // fn#32418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4108:1223, offset: 0x0100b010, size: 92 bytes, params: 3, frame: 17
const RiveErrorBoundary = (RiveErrorBoundaryModule).RiveErrorBoundary;
return (
<RiveErrorBoundary fallback={a0.fallback}>
{((Component) => <Component ref={a1} {...a0} />)(env0_10)}
</RiveErrorBoundary>
);
}
}
function NitroWishlistBindings({instance, reducedMotionEnabled, dataBinding, onDataBindingChange, playIfNeeded}) { // fn#32415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4108:361, offset: 0x01014cd6, size: 155 bytes, params: 2, frame: 24
(require(3885) /* metro dependency 3885: BaseRive */).useBooleanBinding('reducedMotion', instance,
reducedMotionEnabled, undefined, playIfNeeded);
(require(3885) /* metro dependency 3885: BaseRive */).useColorBinding('logoColor', instance, dataBinding?.logoColor,
onDataBindingChange?.logoColor, playIfNeeded);
return null;
}
function ThemeAwareNitroWishlistingWumpusRiveInner(a0, a1) { // fn#32416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4108:677, offset: 0x01014d71, size: 248 bytes, params: 3, frame: 22
a0.fallback;
const artboard = a0.artboard;
const r9 = artboard === undefined ? 'Nitro Wishlist' : artboard;
const stateMachine = a0.stateMachine;
const defaultViewModelInstance = a0.defaultViewModelInstance;
const r7 = defaultViewModelInstance === undefined ? 'Instance' : defaultViewModelInstance;
const dataBinding = a0.dataBinding;
const onDataBindingChange = a0.onDataBindingChange;
const value2 = env0_4(a0, env0_3);
const value3 = env0_5.useCallback(_fun32417, [r9, dataBinding, onDataBindingChange]);
const BaseRive = (require(3885) /* metro dependency 3885: BaseRive */).BaseRive;
return (
<BaseRive
ref={a1}
src={importDefault(3960) /* metro dependency 3960: ThemeAwareNitroWishlistingWumpusRiv */}
artboard={r9}
artboardProperties={env0_7}
artboardViewModelInstances={env0_8}
defaultViewModelInstance={r7}
stateMachine={stateMachine}
renderDataBinding={value3}
{...value2}
/>
);
}
global.__d(_fun32414, 3959, [29, 31, 33, 3885, 3960, 3936,
2]) /* metro module 3959, dependencies: [29, 31, 33, 3885, 3960, 3936, 2] */;
@@ -1,9 +1,11 @@
/* Metro module 3883; source: ../discord_common/js/packages/design/components/Rive/native/generated/index.tsx; dependencies: [2, 3884, 3937, 3939, 3941, 3943, 3945, 3947, 3949, 3951, 3953, 3955, 3957, 3959] */
import * as FileImportTrackerModule from '../../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun32048(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4022:6, offset: 0x0100aa37, size: 735 bytes, params: 8, frame: 22
var propertyName;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/index.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/generated/index.tsx');
for (propertyName in require(3884) /* metro dependency 3884: BoostThisServerRive */) {
exports[propertyName] = (require(3884) /* metro dependency 3884: BoostThisServerRive */)[propertyName];
}
@@ -45,3 +47,5 @@ function _fun32048(global, require, importDefault, importAll, module, exports, d
}
}
global.__d(_fun32048, 3883, [2, 3884, 3937, 3939, 3941, 3943, 3945, 3947, 3949, 3951, 3953, 3955, 3957,
3959]) /* metro module 3883, dependencies: [2, 3884, 3937, 3939, 3941, 3943, 3945, 3947, 3949, 3951, 3953, 3955, 3957, 3959] */;
@@ -1,122 +1,133 @@
/* Metro module 3933; source: ../discord_common/js/packages/design/components/Rive/native/useRivePlayback.tsx; dependencies: [31, 27, 2] */
import * as FileImportTrackerModule from '../../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun32290(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:6, offset: 0x01010b8b, size: 126 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importAll(31) /* metro dependency 31 */;
const env0_1 = (require(27) /* metro dependency 27 */).AppState;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/useRivePlayback.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Rive/native/useRivePlayback.tsx');
exports.useRivePlayback = useRivePlayback;
}
function useRivePlayback(a0, {isReady, appStatePlaybackEnabled, shouldShortLoopForReducedMotion}) { // fn#32291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:256, offset: 0x01010c09, size: 394 bytes, params: 3, frame: 21
const binding = a0;
const env0_4 = binding.useRef(false);
const env0_5 = binding.useRef(AppState.currentState === 'background');
const env0_6 = binding.useRef(false);
const env0_7 = binding.useRef(null);
const value = binding.useCallback(_fun32292, []);
const value2 = binding.useCallback(_fun32293, [value, a0]);
const value3 = binding.useCallback(_fun32294, [value, shouldShortLoopForReducedMotion, value2]);
const value4 = binding.useCallback(_fun32296, [a0, value3]);
const value5 = binding.useCallback(_fun32297, [appStatePlaybackEnabled, a0, value3]);
binding.useEffect(_fun32298, [isReady]);
binding.useEffect(_fun32299, [isReady, value3, value]);
binding.useEffect(_fun32300, [appStatePlaybackEnabled, isReady, value4, value2]);
return {play: value4, pause: value2, playIfNeeded: value5};
function _fun32292() { // fn#32292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:466, offset: 0x01010d93, size: 52 bytes, params: 1, frame: 13
var clearTimeout;
var binding;
if (env0_7.current != null) {
clearTimeout = global.clearTimeout;
binding = env0_7;
clearTimeout(binding.current);
binding.current = null;
}
}
function useRivePlayback(a0, {isReady, appStatePlaybackEnabled, shouldShortLoopForReducedMotion}) { // fn#32291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:256, offset: 0x01010c09, size: 394 bytes, params: 3, frame: 21
const binding = a0;
const env0_4 = binding.useRef(false);
const env0_5 = binding.useRef(AppState.currentState === 'background');
const env0_6 = binding.useRef(false);
const env0_7 = binding.useRef(null);
const value = binding.useCallback(_fun32292, []);
const value2 = binding.useCallback(_fun32293, [value, a0]);
const value3 = binding.useCallback(_fun32294, [value, shouldShortLoopForReducedMotion, value2]);
const value4 = binding.useCallback(_fun32296, [a0, value3]);
const value5 = binding.useCallback(_fun32297, [appStatePlaybackEnabled, a0, value3]);
binding.useEffect(_fun32298, [isReady]);
binding.useEffect(_fun32299, [isReady, value3, value]);
binding.useEffect(_fun32300, [appStatePlaybackEnabled, isReady, value4, value2]);
return {play: value4, pause: value2, playIfNeeded: value5};
}
function _fun32293() { // fn#32293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:552, offset: 0x01010dc7, size: 51 bytes, params: 1, frame: 11
env0_8();
if (ReactModule != null) {
ReactModule.pause();
}
env0_4.current = false;
}
function _fun32292() { // fn#32292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:466, offset: 0x01010d93, size: 52 bytes, params: 1, frame: 13
var clearTimeout;
var binding;
if (env0_7.current != null) {
clearTimeout = global.clearTimeout;
binding = env0_7;
clearTimeout(binding.current);
binding.current = null;
}
}
function _fun32294() { // fn#32294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:619, offset: 0x01010dfa, size: 59 bytes, params: 1, frame: 14
env0_8();
if (shouldShortLoopForReducedMotion) {
env0_7.current = global.setTimeout(_fun32295, 5000);
}
function _fun32295() { // fn#32295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:654, offset: 0x01010e35, size: 15 bytes, params: 1, frame: 9
return env1_9();
}
function _fun32293() { // fn#32293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:552, offset: 0x01010dc7, size: 51 bytes, params: 1, frame: 11
env0_8();
if (env0_0 != null) {
env0_0.pause();
}
env0_4.current = false;
}
}
function _fun32294() { // fn#32294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:619, offset: 0x01010dfa, size: 59 bytes, params: 1, frame: 14
env0_8();
if (shouldShortLoopForReducedMotion) {
env0_7.current = global.setTimeout(_fun32295, 5000);
}
}
function _fun32296() { // fn#32296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:697, offset: 0x01010e44, size: 51 bytes, params: 1, frame: 10
if (env0_0 != null) {
env0_0.play();
}
env0_4.current = true;
env0_10();
}
function _fun32297() { // fn#32297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:763, offset: 0x01010e77, size: 86 bytes, params: 1, frame: 10
if (appStatePlaybackEnabled) {
if (env0_5.current) {
env0_6.current = true;
} else {
if (env0_0 != null) {
env0_0.playIfNeeded();
function _fun32296() { // fn#32296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:697, offset: 0x01010e44, size: 51 bytes, params: 1, frame: 10
if (ReactModule != null) {
ReactModule.play();
}
env0_4.current = true;
env0_10();
}
} else {
if (env0_0 != null) {
env0_0.playIfNeeded();
function _fun32297() { // fn#32297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:763, offset: 0x01010e77, size: 86 bytes, params: 1, frame: 10
if (appStatePlaybackEnabled) {
if (env0_5.current) {
env0_6.current = true;
} else {
if (ReactModule != null) {
ReactModule.playIfNeeded();
}
env0_4.current = true;
env0_10();
}
} else {
if (ReactModule != null) {
ReactModule.playIfNeeded();
}
env0_4.current = true;
env0_10();
}
}
env0_4.current = true;
env0_10();
}
}
function _fun32298() { // fn#32298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:870, offset: 0x01010ecd, size: 26 bytes, params: 1, frame: 2
if (isReady) {
env0_4.current = true;
}
}
function _fun32299() { // fn#32299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:913, offset: 0x01010ee7, size: 28 bytes, params: 1, frame: 10
if (isReady) {
env0_10();
return env0_8;
}
}
function _fun32300() { // fn#32300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:960, offset: 0x01010f03, size: 55 bytes, params: 1, frame: 14
var environment;
if (appStatePlaybackEnabled) {
value = environment.__proto__;
var env0_0 = AppState.addEventListener('change', _fun32301);
return _fun32302;
}
}
function _fun32301(a0) { // fn#32301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:1006, offset: 0x01010f3a, size: 133 bytes, params: 2, frame: 11
var value;
if (a0 === 'background') {
value = environment.__proto__;
env1_5.current = true;
if (isReady && env1_4.current) {
env1_6.current = true;
env1_9();
function _fun32298() { // fn#32298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:870, offset: 0x01010ecd, size: 26 bytes, params: 1, frame: 2
if (isReady) {
env0_4.current = true;
}
}
} else if (a0 === 'active') {
value = environment.__proto__;
env1_5.current = false;
if (isReady && env1_6.current) {
env1_6.current = false;
env1_11();
function _fun32299() { // fn#32299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:913, offset: 0x01010ee7, size: 28 bytes, params: 1, frame: 10
if (isReady) {
env0_10();
return env0_8;
}
}
function _fun32300() { // fn#32300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:960, offset: 0x01010f03, size: 55 bytes, params: 1, frame: 14
var environment;
if (appStatePlaybackEnabled) {
value = environment.__proto__;
var env0_0 = AppState.addEventListener('change', _fun32301);
return _fun32302;
}
function _fun32301(a0) { // fn#32301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:1006, offset: 0x01010f3a, size: 133 bytes, params: 2, frame: 11
var value;
if (a0 === 'background') {
value = environment.__proto__;
env1_5.current = true;
if (isReady && env1_4.current) {
env1_6.current = true;
env1_9();
}
} else if (a0 === 'active') {
value = environment.__proto__;
env1_5.current = false;
if (isReady && env1_6.current) {
env1_6.current = false;
env1_11();
}
}
}
function _fun32302() { // fn#32302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4082:1146, offset: 0x00cef11e, size: 19 bytes, params: 1, frame: 9
return env0_0.remove();
}
}
}
}
global.__d(_fun32290, 3933, [31, 27, 2]) /* metro module 3933, dependencies: [31, 27, 2] */;
@@ -1,22 +1,24 @@
/* Metro module 4786; source: ../discord_common/js/packages/design/components/Stickers/StickerTypes.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun41350(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4964:6, offset: 0x0111ca71, size: 184 bytes, params: 8, frame: 17
var object3;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object3 = {STANDARD: 1};
object3[1] = 'STANDARD';
object3.GUILD = 2;
object3[2] = 'GUILD';
const object4 = {PNG: 1};
object4[1] = 'PNG';
object4.APNG = 2;
object4[2] = 'APNG';
object4.LOTTIE = 3;
object4[3] = 'LOTTIE';
object4.GIF = 4;
object4[4] = 'GIF';
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Stickers/StickerTypes.tsx');
exports.MetaStickerType = object3;
exports.StickerFormat = object4;
object = {STANDARD: 1};
object[1] = 'STANDARD';
object.GUILD = 2;
object[2] = 'GUILD';
const object2 = {PNG: 1};
object2[1] = 'PNG';
object2.APNG = 2;
object2[2] = 'APNG';
object2.LOTTIE = 3;
object2[3] = 'LOTTIE';
object2.GIF = 4;
object2[4] = 'GIF';
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Stickers/StickerTypes.tsx');
exports.MetaStickerType = object;
exports.StickerFormat = object2;
}
global.__d(_fun41350, 4786, [2]) /* metro module 4786, dependencies: [2] */;
@@ -1,4 +1,6 @@
/* Metro module 4576; source: ../discord_common/js/packages/design/components/Text/typographyVariantRemap.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun38832(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4754:6, offset: 0x010cc401, size: 1139 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
@@ -45,18 +47,19 @@ function _fun38832(global, require, importDefault, importAll, module, exports, d
map = new Map([['text-md/bold', 'experimental/heading-sm/bold'], ['text-md/semibold',
'experimental/heading-sm/semibold'], ['text-sm/bold', 'experimental/heading-xs/bold'], ['text-sm/semibold',
'experimental/heading-xs/semibold']]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Text/typographyVariantRemap.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Text/typographyVariantRemap.tsx');
exports.remapTypographyVariant = remapTypographyVariant;
}
function remapTypographyVariant(a0, a1, a2) { // fn#38833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4754:4152, offset: 0x010cc874, size: 68 bytes, params: 4, frame: 13
var r1;
const value = a1;
if (a0) {
r1 = a2 ? env0_1.get(value) : undefined;
r1 = r1 ?? env0_0.get(value);
return r1 ?? value;
function remapTypographyVariant(a0, a1, a2) { // fn#38833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4754:4152, offset: 0x010cc874, size: 68 bytes, params: 4, frame: 13
var r1;
const value = a1;
if (a0) {
r1 = a2 ? env0_1.get(value) : undefined;
r1 = r1 ?? env0_0.get(value);
return r1 ?? value;
}
return value;
}
return value;
}
global.__d(_fun38832, 4576, [2]) /* metro module 4576, dependencies: [2] */;
@@ -1,19 +1,22 @@
/* Metro module 4575; source: ../discord_common/js/packages/design/components/Text/useTypographyVariantRemap.native.tsx; dependencies: [3932, 4576, 2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ManaContextNativeModule from '../ManaContext/ManaContext.native.tsx'; /* Metro dependency 3932 */
import * as TypographyVariantRemapModule from './typographyVariantRemap.tsx'; /* Metro dependency 4576 */
function _fun38830(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4753:6, offset: 0x010cc31e, size: 94 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/Text/useTypographyVariantRemap.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/Text/useTypographyVariantRemap.native.tsx');
exports.useTypographyVariantRemap = useTypographyVariantRemap;
function useTypographyVariantRemap(a0, a1) { // fn#38831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4753:243, offset: 0x010cc37c, size: 133 bytes, params: 3, frame: 17
const value2 = undefined;
const useManaContext = ManaContextNativeModule.useManaContext;
const experiments = Reflect.apply(useManaContext, ManaContextNativeModule, []).experiments;
const r0 = experiments == null || experiments.enabledExperiments == null ? value2 : experiments.enabledExperiments.includes('mana-type-consolidation');
return TypographyVariantRemapModule.remapTypographyVariant(r0 != null && r0, a0, a1);
}
}
function useTypographyVariantRemap(a0, a1) { // fn#38831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4753:243, offset: 0x010cc37c, size: 133 bytes, params: 3, frame: 17
const value2 = undefined;
const manaContextNativeModule = require(3932) /* metro dependency 3932: ManaContextNative */;
const useManaContext = manaContextNativeModule.useManaContext;
const experiments = Reflect.apply(useManaContext, manaContextNativeModule, []).experiments;
const r0 = experiments == null || experiments.enabledExperiments == null ? value2 : experiments.enabledExperiments.includes('mana-type-consolidation');
const value = require(4576) /* metro dependency 4576: typographyVariantRemap */;
return value.remapTypographyVariant(r0 != null && r0, a0, a1);
}
global.__d(_fun38830, 4575, [3932, 4576, 2]) /* metro module 4575, dependencies: [3932, 4576, 2] */;
@@ -1,4 +1,8 @@
/* Metro module 3879; source: ../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContext.tsx; dependencies: [31, 33, 2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun32036(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4018:6, offset: 0x0100a3b9, size: 207 bytes, params: 8, frame: 20
const closure = function(a0) {
var JSON = global.JSON;
@@ -8,38 +12,36 @@ function _fun32036(global, require, importDefault, importAll, module, exports, d
object['key'] = value;
return object;
};
const closure2 = useThemeContext;
const useThemeContext2 = useThemeContext;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(33) /* metro dependency 33 */;
const env0_1 = value2.Fragment;
const env0_2 = value2.jsx;
let value = ReactModule;
const value3 = closure({'theme': 'light', 'primaryColor': null, 'secondaryColor': null, 'gradient': null,
'flags': 0, 'contrast': 1, 'saturation': 1, 'density': 'compact', 'disableAdaptiveTheme': false,
'reduceAdaptiveTheme': false});
value = value.createContext(value3);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContext.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContext.tsx');
exports.createThemedContext = closure;
exports.useThemeContext = closure2;
exports.useThemeContext = useThemeContext2;
exports.FALLBACK_THEME_CONTEXT_VALUE = value3;
exports.ThemeContext = value;
exports.UseThemeContext = UseThemeContext;
}
function useThemeContext() { // fn#32038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4018:212, offset: 0x0100a4b5, size: 66 bytes, params: 1, frame: 11
const value = env0_0.useContext(env0_3);
if (value == null) {
throw new global.Error('useThemeContext must be used within a ThemeContext.Provider');
}
return value;
}
function useThemeContext() { // fn#32038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4018:212, offset: 0x0100a4b5, size: 66 bytes, params: 1, frame: 11
const value = env0_0.useContext(env0_3);
if (value == null) {
throw new global.Error('useThemeContext must be used within a ThemeContext.Provider');
function UseThemeContext({children}) { // fn#32039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4018:836, offset: 0x0100a4f7, size: 48 bytes, params: 2, frame: 15
return (
<>
{children(useThemeContext())}
</>
);
}
return value;
}
function UseThemeContext({children}) { // fn#32039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4018:836, offset: 0x0100a4f7, size: 48 bytes, params: 2, frame: 15
return (
<>
{children(useThemeContext())}
</>
);
}
global.__d(_fun32036, 3879, [31, 33, 2]) /* metro module 3879, dependencies: [31, 33, 2] */;
@@ -1,35 +1,38 @@
/* Metro module 3882; source: ../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContextFlags.tsx; dependencies: [3879, 2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ThemeContextModule from './ThemeContext.tsx'; /* Metro dependency 3879 */
function _fun32044(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4021:6, offset: 0x0100a91a, size: 215 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const closure = function(a0, a1) {
return (a0.flags & a1) === a1;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {MOBILE_DARK_GRADIENT_THEME_ENABLED: 4};
object2[4] = 'MOBILE_DARK_GRADIENT_THEME_ENABLED';
object2.MOBILE_LIGHT_GRADIENT_THEME_ENABLED = 8;
object2[8] = 'MOBILE_LIGHT_GRADIENT_THEME_ENABLED';
object2.REDUCED_CONTRAST_ENABLED = 16;
object2[16] = 'REDUCED_CONTRAST_ENABLED';
object2.INCREASED_CONTRAST_ENABLED = 32;
object2[32] = 'INCREASED_CONTRAST_ENABLED';
object2.REDUCE_SATURATION_ENABLED = 64;
object2[64] = 'REDUCE_SATURATION_ENABLED';
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContextFlags.tsx');
exports.ThemeContextFlags = object2;
object = {MOBILE_DARK_GRADIENT_THEME_ENABLED: 4};
object[4] = 'MOBILE_DARK_GRADIENT_THEME_ENABLED';
object.MOBILE_LIGHT_GRADIENT_THEME_ENABLED = 8;
object[8] = 'MOBILE_LIGHT_GRADIENT_THEME_ENABLED';
object.REDUCED_CONTRAST_ENABLED = 16;
object[16] = 'REDUCED_CONTRAST_ENABLED';
object.INCREASED_CONTRAST_ENABLED = 32;
object[32] = 'INCREASED_CONTRAST_ENABLED';
object.REDUCE_SATURATION_ENABLED = 64;
object[64] = 'REDUCE_SATURATION_ENABLED';
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContextFlags.tsx');
exports.ThemeContextFlags = object;
exports.hasThemeFlag = closure;
exports.setThemeFlag = function(a0, a1) {
return a0 | a1;
};
exports.useThemeFlag = useThemeFlag;
function useThemeFlag(a0) { // fn#32047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4021:762, offset: 0x0100aa06, size: 49 bytes, params: 2, frame: 13
const hasThemeFlagBinding = hasThemeFlag;
let value = ThemeContextModule;
value = value.useThemeContext();
return hasThemeFlagBinding(value, a0);
}
}
function useThemeFlag(a0) { // fn#32047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4021:762, offset: 0x0100aa06, size: 49 bytes, params: 2, frame: 13
const hasThemeFlagBinding = hasThemeFlag;
let value = require(3879) /* metro dependency 3879: ThemeContext */;
value = value.useThemeContext();
return hasThemeFlagBinding(value, a0);
}
global.__d(_fun32044, 3882, [3879, 2]) /* metro module 3882, dependencies: [3879, 2] */;
@@ -1,40 +1,44 @@
/* Metro module 3880; source: ../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContextProvider.tsx; dependencies: [31, 33, 3879, 2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ThemeContextModule from './ThemeContext.tsx'; /* Metro dependency 3879 */
function _fun32040(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4019:6, offset: 0x0100a527, size: 133 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 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContextProvider.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/ThemeContextProvider/ThemeContextProvider.tsx');
exports.ThemeContextProvider = ThemeContextProvider;
function ThemeContextProvider({children, theme, primaryColor, secondaryColor, gradient, flags, contrast, saturation, enabledExperiments, density, disableAdaptiveTheme, reduceAdaptiveTheme}) { // fn#32041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4019:270, offset: 0x0100a5ac, size: 400 bytes, params: 2, frame: 31
const binding = secondaryColor;
const useContext = binding.useContext;
const ThemeContext = (ThemeContextModule).ThemeContext;
const value2 = Reflect.apply(useContext, binding, [ThemeContext]);
(ThemeContextModule).FALLBACK_THEME_CONTEXT_VALUE;
const value3 = binding.useMemo(_fun32042, [theme, value2.theme, value2.primaryColor, value2.secondaryColor,
value2.gradient, value2.flags, value2.contrast, value2.saturation, value2.enabledExperiments, value2.density,
value2.disableAdaptiveTheme, value2.reduceAdaptiveTheme, primaryColor, secondaryColor, gradient, flags,
contrast, saturation, enabledExperiments, density, disableAdaptiveTheme, reduceAdaptiveTheme]);
const Provider = ThemeContext.Provider;
return (
<Provider value={value3}>
{children}
</Provider>
);
function _fun32042() { // fn#32042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4019:568, offset: 0x0100a73c, size: 362 bytes, params: 1, frame: 15
const value = environment.__proto__;
return (require(3879) /* metro dependency 3879: ThemeContext */).createThemedContext({theme: theme ?? env0_11.theme,
primaryColor: primaryColor ?? env0_11.primaryColor, secondaryColor: secondaryColor ?? env0_11.secondaryColor,
gradient: gradient ?? env0_11.gradient, flags: flags ?? env0_11.flags, contrast: contrast ?? env0_11.contrast,
saturation: saturation ?? env0_11.saturation,
enabledExperiments: enabledExperiments ?? env0_11.enabledExperiments, density: density ?? env0_11.density,
disableAdaptiveTheme: disableAdaptiveTheme ?? env0_11.disableAdaptiveTheme,
reduceAdaptiveTheme: reduceAdaptiveTheme ?? env0_11.reduceAdaptiveTheme});
}
}
}
function ThemeContextProvider({children, theme, primaryColor, secondaryColor, gradient, flags, contrast, saturation, enabledExperiments, density, disableAdaptiveTheme, reduceAdaptiveTheme}) { // fn#32041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4019:270, offset: 0x0100a5ac, size: 400 bytes, params: 2, frame: 31
const binding = secondaryColor;
const useContext = binding.useContext;
const ThemeContext = (require(3879) /* metro dependency 3879: ThemeContext */).ThemeContext;
const value2 = Reflect.apply(useContext, binding, [ThemeContext]);
(require(3879) /* metro dependency 3879: ThemeContext */).FALLBACK_THEME_CONTEXT_VALUE;
const value3 = binding.useMemo(_fun32042, [theme, value2.theme, value2.primaryColor, value2.secondaryColor,
value2.gradient, value2.flags, value2.contrast, value2.saturation, value2.enabledExperiments, value2.density,
value2.disableAdaptiveTheme, value2.reduceAdaptiveTheme, primaryColor, secondaryColor, gradient, flags,
contrast, saturation, enabledExperiments, density, disableAdaptiveTheme, reduceAdaptiveTheme]);
const Provider = ThemeContext.Provider;
return (
<Provider value={value3}>
{children}
</Provider>
);
}
function _fun32042() { // fn#32042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4019:568, offset: 0x0100a73c, size: 362 bytes, params: 1, frame: 15
const value = environment.__proto__;
return (require(3879) /* metro dependency 3879: ThemeContext */).createThemedContext({theme: theme ?? env0_11.theme,
primaryColor: primaryColor ?? env0_11.primaryColor, secondaryColor: secondaryColor ?? env0_11.secondaryColor,
gradient: gradient ?? env0_11.gradient, flags: flags ?? env0_11.flags, contrast: contrast ?? env0_11.contrast,
saturation: saturation ?? env0_11.saturation,
enabledExperiments: enabledExperiments ?? env0_11.enabledExperiments, density: density ?? env0_11.density,
disableAdaptiveTheme: disableAdaptiveTheme ?? env0_11.disableAdaptiveTheme,
reduceAdaptiveTheme: reduceAdaptiveTheme ?? env0_11.reduceAdaptiveTheme});
}
global.__d(_fun32040, 3880, [31, 33, 3879, 2]) /* metro module 3880, dependencies: [31, 33, 3879, 2] */;
@@ -1,9 +1,12 @@
/* Metro module 3881; source: ../discord_common/js/packages/design/components/ThemeContextProvider/ThemeTypes.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun32043(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4020:6, offset: 0x0100a8a6, size: 116 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/components/ThemeContextProvider/ThemeTypes.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/components/ThemeContextProvider/ThemeTypes.tsx');
exports.ClientThemeType = {BACKGROUND_GRADIENT_PRESET: 'backgroundGradientPreset',
STANDARD_BACKGROUND_THEME: 'standardBackgroundTheme', CUSTOM_BACKGROUND_GRADIENT: 'customBackgroundGradient'};
}
global.__d(_fun32043, 3881, [2]) /* metro module 3881, dependencies: [2] */;
@@ -1,9 +1,12 @@
/* Metro module 3874; source: ../discord_common/js/packages/design/hooks/useA11yRolesNative.tsx; dependencies: [27, 2] */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
function _fun32027(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4013:6, offset: 0x0100a099, size: 114 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(27) /* metro dependency 27 */).Platform;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/hooks/useA11yRolesNative.tsx');
(ReactNativeModule).Platform;
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/hooks/useA11yRolesNative.tsx');
exports.useCheckboxA11yNative = function(a0) {
var r4;
var checked = a0.checked;
@@ -26,3 +29,4 @@ function _fun32027(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun32027, 3874, [27, 2]) /* metro module 3874, dependencies: [27, 2] */;
@@ -1,9 +1,12 @@
/* Metro module 3868; source: ../discord_common/js/packages/design/native.tsx; dependencies: [2, 3869, 3874, 3875, 3876, 3870, 3877, 3878, 3879, 3880, 3881, 3882, 3883, 3961, 3932, 3962] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ManaContextNativeModule from './components/ManaContext/ManaContext.native.tsx'; /* Metro dependency 3932 */
function _fun31996(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4007:6, offset: 0x010097a7, size: 819 bytes, params: 8, frame: 22
var propertyName;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/native.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/native.tsx');
for (propertyName in require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */) {
exports[propertyName] = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */)[propertyName];
}
@@ -44,12 +47,14 @@ function _fun31996(global, require, importDefault, importAll, module, exports, d
for (propertyName in require(3961) /* metro dependency 3961: Colors */) {
exports[propertyName] = (require(3961) /* metro dependency 3961: Colors */)[propertyName];
}
const ManaContext = (require(3932) /* metro dependency 3932: ManaContextNative */).ManaContext;
const ManaContext = (ManaContextNativeModule).ManaContext;
exports.ManaContext = ManaContext;
const ManaContextProvider = (require(3932) /* metro dependency 3932: ManaContextNative */).ManaContextProvider;
const ManaContextProvider = (ManaContextNativeModule).ManaContextProvider;
exports.ManaContextProvider = ManaContextProvider;
const useManaContext = (require(3932) /* metro dependency 3932: ManaContextNative */).useManaContext;
const useManaContext = (ManaContextNativeModule).useManaContext;
exports.useManaContext = useManaContext;
exports.isImage = (require(3962) /* metro dependency 3962: GraphicTypesNative */).isImage;
}
global.__d(_fun31996, 3868, [2, 3869, 3874, 3875, 3876, 3870, 3877, 3878, 3879, 3880, 3881, 3882, 3883, 3961, 3932,
3962]) /* metro module 3868, dependencies: [2, 3869, 3874, 3875, 3876, 3870, 3877, 3878, 3879, 3880, 3881, 3882, 3883, 3961, 3932, 3962] */;
@@ -1,9 +1,11 @@
/* Metro module 3967; source: ../discord_common/js/packages/design/shared.tsx; dependencies: [2, 3869, 3875, 3876, 3877, 3879, 3880, 3881, 3882] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun32506(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4116:6, offset: 0x01018236, size: 474 bytes, params: 8, frame: 22
var propertyName;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/shared.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/shared.tsx');
for (propertyName in require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */) {
exports[propertyName] = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */)[propertyName];
}
@@ -31,3 +33,5 @@ function _fun32506(global, require, importDefault, importAll, module, exports, d
}
}
global.__d(_fun32506, 3967, [2, 3869, 3875, 3876, 3877, 3879, 3880, 3881,
3882]) /* metro module 3967, dependencies: [2, 3869, 3875, 3876, 3877, 3879, 3880, 3881, 3882] */;
@@ -1,21 +1,23 @@
/* Metro module 13551; source: ../discord_common/js/packages/design/shared/ThemeTypes.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun102936(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13741:6, offset: 0x022502f0, size: 194 bytes, params: 8, frame: 18
var object3;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object3 = {'DARK': 'dark', 'LIGHT': 'light', 'MIDNIGHT': 'midnight', 'DARKER': 'darker'};
object = {'DARK': 'dark', 'LIGHT': 'light', 'MIDNIGHT': 'midnight', 'DARKER': 'darker'};
const Map = global.Map;
const MIDNIGHT = object3.MIDNIGHT;
let DARK = object3.DARK;
const MIDNIGHT = object.MIDNIGHT;
let DARK = object.DARK;
const items2 = [[MIDNIGHT, DARK]];
const DARKER = object3.DARKER;
DARK = object3.DARK;
const DARKER = object.DARKER;
DARK = object.DARK;
items2[1] = [DARKER, DARK];
const map = new Map(items2);
const object4 = {Themes: object3};
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/shared/ThemeTypes.tsx');
exports.ThemeTypes = object3;
const object2 = {Themes: object};
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/shared/ThemeTypes.tsx');
exports.ThemeTypes = object;
exports.ThemeExtends = map;
exports._private = object4;
exports._private = object2;
}
global.__d(_fun102936, 13551, [2]) /* metro module 13551, dependencies: [2] */;
@@ -1,9 +1,11 @@
/* Metro module 3877; source: ../discord_common/js/packages/design/utils/ThemeUtils.tsx; dependencies: [698, 2] */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun32032(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4016:6, offset: 0x0100a28b, size: 105 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/utils/ThemeUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/utils/ThemeUtils.tsx');
exports.isThemeLight = function(a0) {
var LIGHT = require(dependencyMap[0]).ThemeTypes.LIGHT;
return a0 === LIGHT;
@@ -22,3 +24,4 @@ function _fun32032(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun32032, 3877, [698, 2]) /* metro module 3877, dependencies: [698, 2] */;
@@ -1,66 +1,70 @@
/* Metro module 681; source: ../discord_common/js/packages/design/utils/requestSafeIdleCallback.tsx; dependencies: [682, 2] */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as GlobalUtilsModule from '../../../shared/utils/GlobalUtils.tsx'; /* Metro dependency 682 */
function _fun8272(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#8272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:6, offset: 0x00d3dd14, size: 122 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let env0_0 = (require(682) /* metro dependency 682: GlobalUtils */).getGlobalObject();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/design/utils/requestSafeIdleCallback.tsx');
let env0_0 = (GlobalUtilsModule).getGlobalObject();
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/design/utils/requestSafeIdleCallback.tsx');
exports.setOriginWindow = function(a0) {
env0_0 = a0;
};
exports.requestSafeIdleCallback = requestSafeIdleCallback;
}
function requestSafeIdleCallback(a0, a1) { // fn#8274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:305, offset: 0x00d3dd8e, size: 168 bytes, params: 3, frame: 17
var timeout;
var setTimeout;
const env0_0 = a0;
const binding = env0_0;
let value = undefined;
if (value === binding) {
var env0_6 = binding.setTimeout(a0, 0);
} else {
if (binding.requestIdleCallback == null) {
function requestSafeIdleCallback(a0, a1) { // fn#8274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:305, offset: 0x00d3dd8e, size: 168 bytes, params: 3, frame: 17
var timeout;
var setTimeout;
const env0_0 = a0;
const binding = env0_0;
let value = undefined;
if (value === binding) {
var env0_6 = binding.setTimeout(a0, 0);
} else {
if (binding.requestIdleCallback == null) {
var env0_6 = binding.setTimeout(a0, 0);
return _fun8278;
}
if (binding.cancelIdleCallback != null) {
var env0_3;
var env0_5 = binding.requestIdleCallback(runOnce, a1);
setTimeout = binding.setTimeout;
timeout = a1 == null ? value : a1.timeout;
value = 1000;
env0_3 = Reflect.apply(setTimeout, binding, [_fun8276, timeout ?? value]);
return _fun8277;
}
var env0_6 = binding.setTimeout(a0, 0);
return _fun8278;
}
if (binding.cancelIdleCallback != null) {
var env0_3;
var env0_5 = binding.requestIdleCallback(requestSafeIdleCallbackRunOnce, a1);
setTimeout = binding.setTimeout;
timeout = a1 == null ? value : a1.timeout;
value = 1000;
env0_3 = Reflect.apply(setTimeout, binding, [_fun8276, timeout ?? value]);
return _fun8277;
return _fun8278;
function runOnce() { // fn#8275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:449, owner: requestSafeIdleCallback.runOnce, offset: 0x00d3de36, size: 63 bytes, params: 1, frame: 13
if (!env0_2) {
if (env0_3 != null) {
env0_1.clearTimeout(env0_3);
}
env0_0();
}
}
var env0_6 = binding.setTimeout(a0, 0);
}
return _fun8278;
}
function requestSafeIdleCallbackRunOnce() { // fn#8275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:449, owner: requestSafeIdleCallback.runOnce, offset: 0x00d3de36, size: 63 bytes, params: 1, frame: 13
if (!env0_2) {
if (env0_3 != null) {
env0_1.clearTimeout(env0_3);
function _fun8276() { // fn#8276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:563, offset: 0x00d3de75, size: 41 bytes, params: 1, frame: 12
if (!env0_2) {
env0_1.cancelIdleCallback(env0_5);
}
runOnce();
}
env0_0();
function _fun8277() { // fn#8277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:649, offset: 0x00d3de9e, size: 59 bytes, params: 1, frame: 13
env0_1.cancelIdleCallback(env0_5);
if (env0_3 != null) {
env0_1.clearTimeout(env0_3);
}
}
function _fun8278() { // fn#8278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:745, offset: 0x00d3ded9, size: 26 bytes, params: 1, frame: 11
env0_1.clearTimeout(env0_6);
}
}
}
function _fun8276() { // fn#8276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:563, offset: 0x00d3de75, size: 41 bytes, params: 1, frame: 12
if (!env0_2) {
env0_1.cancelIdleCallback(env0_5);
}
requestSafeIdleCallbackRunOnce();
}
function _fun8277() { // fn#8277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:649, offset: 0x00d3de9e, size: 59 bytes, params: 1, frame: 13
env0_1.cancelIdleCallback(env0_5);
if (env0_3 != null) {
env0_1.clearTimeout(env0_3);
}
}
function _fun8278() { // fn#8278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:788:745, offset: 0x00d3ded9, size: 26 bytes, params: 1, frame: 11
env0_1.clearTimeout(env0_6);
}
global.__d(_fun8272, 681, [682, 2]) /* metro module 681, dependencies: [682, 2] */;
@@ -1,91 +1,95 @@
/* Metro module 4292; source: ../discord_common/js/packages/discord-native-types/DiscordNative.tsx; dependencies: [7, 6, 15, 17, 18, 162, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00162 from '../../../../../by-id/module-00162.js'; /* Metro dependency 162 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun36354(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#36354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4464:6, offset: 0x0108a943, size: 514 bytes, params: 8, frame: 23
var object3;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(7) /* metro dependency 7 */;
const env0_1 = importDefault(6) /* metro dependency 6 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
let value = importDefault(162) /* metro dependency 162 */;
let value = Module00162;
const Error = global.Error;
value = value(Error);
value = _fun36358(value);
object3 = {HasRTCConnection: 0};
object3[0] = 'HasRTCConnection';
object3.IsSendingVideo = 1;
object3[1] = 'IsSendingVideo';
object3.IsSendingStream = 2;
object3[2] = 'IsSendingStream';
object3.IsReceivingVideo = 3;
object3[3] = 'IsReceivingVideo';
object3.IsReceivingStream = 4;
object3[4] = 'IsReceivingStream';
object3.VideoMediaSessionId = 5;
object3[5] = 'VideoMediaSessionId';
object3.StreamMediaSessionId = 6;
object3[6] = 'StreamMediaSessionId';
object3.IntentionalCrashReason = 7;
object3[7] = 'IntentionalCrashReason';
const object4 = {RendererProcessDelayed: 0};
object4[0] = 'RendererProcessDelayed';
object4.RendererProcess = 1;
object4[1] = 'RendererProcess';
object4.MainProcess = 2;
object4[2] = 'MainProcess';
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/discord-native-types/DiscordNative.tsx');
object = {HasRTCConnection: 0};
object[0] = 'HasRTCConnection';
object.IsSendingVideo = 1;
object[1] = 'IsSendingVideo';
object.IsSendingStream = 2;
object[2] = 'IsSendingStream';
object.IsReceivingVideo = 3;
object[3] = 'IsReceivingVideo';
object.IsReceivingStream = 4;
object[4] = 'IsReceivingStream';
object.VideoMediaSessionId = 5;
object[5] = 'VideoMediaSessionId';
object.StreamMediaSessionId = 6;
object[6] = 'StreamMediaSessionId';
object.IntentionalCrashReason = 7;
object[7] = 'IntentionalCrashReason';
const object2 = {RendererProcessDelayed: 0};
object2[0] = 'RendererProcessDelayed';
object2.RendererProcess = 1;
object2[1] = 'RendererProcess';
object2.MainProcess = 2;
object2[2] = 'MainProcess';
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/discord-native-types/DiscordNative.tsx');
exports.SystemServiceNotAvailableError = value;
exports.StoredCrashInformation = object3;
exports.JSExceptionLocation = object4;
exports.StoredCrashInformation = object;
exports.JSExceptionLocation = object2;
exports.DesktopSources = {WINDOW: 'window', SCREEN: 'screen', CAMERA: 'camera'};
exports.ThumbarButtonName = {VIDEO: 'VIDEO', MUTE: 'MUTE', DEAFEN: 'DEAFEN', DISCONNECT: 'DISCONNECT'};
}
function _isNativeReflectConstruct_36355() { // fn#36355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4464:148, offset: 0x0108ab45, size: 94 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) {
function _isNativeReflectConstruct_36355() { // fn#36355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4464:148, offset: 0x0108ab45, size: 94 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_36355_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_36355_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun36358(a0) { // fn#36358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4464:347, offset: 0x0108aba3, size: 40 bytes, params: 2, frame: 14
const closure = SystemServiceNotAvailableError;
env0_4(closure, a0);
return env0_0(closure);
}
function _fun36358(a0) { // fn#36358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4464:347, offset: 0x0108aba3, size: 40 bytes, params: 2, frame: 14
const SystemServiceNotAvailableError2 = SystemServiceNotAvailableError;
Inherits(SystemServiceNotAvailableError2, a0);
return CreateClass(SystemServiceNotAvailableError2);
function SystemServiceNotAvailableError() { // fn#36359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4464:359, offset: 0x0108abcb, size: 124 bytes, params: 1, frame: 19
let value = environment.__proto__;
env1_1(this, SystemServiceNotAvailableError);
const items2 = ['System service not available'];
const value3 = env1_3(SystemServiceNotAvailableError);
value = env1_2(this, _isNativeReflectConstruct_36355() ? global.Reflect.construct(value3, items2,
env1_3(this).constructor) : value3.apply(this, items2));
value.name = 'SystemServiceNotAvailableError';
return value;
}
}
function SystemServiceNotAvailableError() { // fn#36359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4464:359, offset: 0x0108abcb, size: 124 bytes, params: 1, frame: 19
let value = environment.__proto__;
env1_1(this, SystemServiceNotAvailableError);
const items2 = ['System service not available'];
const value3 = env1_3(SystemServiceNotAvailableError);
value = env1_2(this, _isNativeReflectConstruct_36355() ? global.Reflect.construct(value3, items2,
env1_3(this).constructor) : value3.apply(this, items2));
value.name = 'SystemServiceNotAvailableError';
return value;
}
global.__d(_fun36354, 4292, [7, 6, 15, 17, 18, 162,
2]) /* metro module 4292, dependencies: [7, 6, 15, 17, 18, 162, 2] */;
@@ -1,8 +1,10 @@
/* Metro module 6733; source: ../discord_common/js/packages/discord-native-types/IPCEvents.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun53136(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6911:6, offset: 0x0133e0cb, size: 2194 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/discord-native-types/IPCEvents.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/discord-native-types/IPCEvents.tsx');
exports.IPCEvents = {ACCESSIBILITY_GET_ENABLED: 'DISCORD_ACCESSIBILITY_GET_ENABLED',
APP_ASYNC_INDEX_TSX_LOADED: 'DISCORD_APP_ASYNC_INDEX_TSX_LOADED', APP_BADGE_SET: 'DISCORD_APP_BADGE_SET',
APP_GET_RELEASE_CHANNEL_SYNC: 'DISCORD_APP_GET_RELEASE_CHANNEL_SYNC',
@@ -130,3 +132,4 @@ function _fun53136(global, require, importDefault, importAll, module, exports, d
WINDOW_SET_FRAME_RATE: 'DISCORD_WINDOW_SET_FRAME_RATE', GET_MOUSE_COORDINATES: 'DISCORD_GET_MOUSE_COORDINATES'};
}
global.__d(_fun53136, 6733, [2]) /* metro module 6733, dependencies: [2] */;
@@ -1,8 +1,10 @@
/* Metro module 9462; source: ../discord_common/js/packages/dynamic-links/DynamicLinkTemplates.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun73584(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9648:6, offset: 0x01d72360, size: 130 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/dynamic-links/DynamicLinkTemplates.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/dynamic-links/DynamicLinkTemplates.tsx');
exports.getInviteDynamicLinkTemplate = function(a0) {
var protocol = global.location.protocol;
var INVITE_HOST = global.window.GLOBAL_ENV.INVITE_HOST;
@@ -26,3 +28,4 @@ function _fun73584(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun73584, 9462, [2]) /* metro module 9462, dependencies: [2] */;
@@ -1,4 +1,10 @@
/* Metro module 9463; source: ../discord_common/js/packages/dynamic-links/generateDynamicLink.tsx; dependencies: [29, 57, 654, 491, 9464, 2] */
import ObjectWithoutProperties from '../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import GetDescription from './getDescription.tsx'; /* Metro dependency 9464 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module00491Module from '../../../../../by-id/module-00491.js'; /* Metro dependency 491 */
function _fun73589(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9649:6, offset: 0x01d724fd, size: 196 bytes, params: 8, frame: 19
const env0_0 = require;
const _arrayLikeToArray_73592 = function(a0, a1) {
@@ -47,362 +53,370 @@ function _fun73589(global, require, importDefault, importAll, module, exports, d
const env0_3 = ['utmSource', 'androidFallbackLink', 'iosFallbackLink'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
const env0_5 = importDefault(57) /* metro dependency 57 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/dynamic-links/generateDynamicLink.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/dynamic-links/generateDynamicLink.tsx');
exports.default = generateDynamicLink;
exports.generateAttemptId = generateAttemptId;
exports.parseDynamicLink = parseDynamicLink;
}
function _createForOfIteratorHelperLoose_73590(a0, a1) { // fn#73590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9649:180, offset: 0x01d725c1, 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)) {
function _createForOfIteratorHelperLoose_73590(a0, a1) { // fn#73590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9649:180, offset: 0x01d725c1, 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);
}
return _fun73591;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_73592(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') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun73591;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_73592(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
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_73592(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_73592(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
if (r5) {
}
return _fun73591;
}
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 _fun73591() { // fn#73591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9649:751, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
return _fun73591;
}
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 generateDynamicLink(a0, a1) { // fn#73593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9649:1241, offset: 0x01d72735, size: 704 bytes, params: 3, frame: 36
var r9;
var r6;
var family;
var r2;
var propertyName;
var propertyName2;
var property;
var searchParams;
var ua;
var os;
const utmSource = a1.utmSource;
const androidFallbackLink = a1.androidFallbackLink;
const iosFallbackLink = a1.iosFallbackLink;
const binding = env0_4;
const value2 = undefined;
const value3 = binding(a1, env0_3);
const URL = global.URL;
const uRL = new URL(a0);
const value6 = null;
for (propertyName in value3) {
property = value3[propertyName];
if (value6 == property) {
}
function generateDynamicLink(a0, a1) { // fn#73593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9649:1241, offset: 0x01d72735, size: 704 bytes, params: 3, frame: 36
var r9;
var r6;
var family;
var r2;
var propertyName;
var propertyName2;
var property;
var searchParams;
var ua;
var os;
const utmSource = a1.utmSource;
const androidFallbackLink = a1.androidFallbackLink;
const iosFallbackLink = a1.iosFallbackLink;
const value2 = undefined;
const value3 = ObjectWithoutProperties(a1, env0_3);
const URL = global.URL;
const uRL = new URL(a0);
const value6 = null;
for (propertyName in value3) {
property = value3[propertyName];
if (value6 == property) {
r9 = propertyName2;
continue;
}
searchParams = uRL.searchParams;
searchParams.set(propertyName, property);
r9 = propertyName2;
continue;
}
searchParams = uRL.searchParams;
searchParams.set(propertyName, property);
r9 = propertyName2;
const value7 = global.encodeURIComponent(uRL.toString());
const value9 = global.encodeURIComponent('discord://app/open#' + uRL.toString());
const value10 = global.encodeURIComponent((GetDescription)());
const RegExp = global.RegExp;
const value12 = '(' + ['WebView', '(iPhone|iPod|iPad)(?!.*Safari/)'].join('|') + ')';
const value13 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
const regExp = new RegExp(value12, 'ig');
if (value6 == (importDefault(654) /* metro dependency 654 */)) {
r6 = value2;
} else {
ua = (importDefault(654) /* metro dependency 654 */).ua;
r6 = value6 == ua ? value2 : ua.match(regExp instanceof Object ? regExp : value13);
}
r6 = (value6 == (importDefault(654) /* metro dependency 654 */) ? value2 : (importDefault(654) /* metro dependency 654 */).name) === 'Safari' && !(value6 != r6);
if (value6 == (importDefault(654) /* metro dependency 654 */)) {
family = value2;
} else {
os = (importDefault(654) /* metro dependency 654 */).os;
family = value6 == os ? value2 : os.family;
}
const r12 = family !== 'iOS' || r6 ? 'true' : 'false';
const r7 = value6 != androidFallbackLink ? global.encodeURIComponent(androidFallbackLink) : value6;
const r4 = value6 != iosFallbackLink ? global.encodeURIComponent(iosFallbackLink) : value6;
let value = '' + 'https://discordapp.onelink.me' + '/Hs5r/?deep_link_value=' + value7 + '&pid=' + utmSource + '&af_force_deeplink=' + r12 + '&af_og_description=' + value10 + '&af_dp=' + value9;
if (value6 == r7) {
r2 = value;
} else {
value += '&af_android_url=' + r7;
r2 = value;
}
return value6 == r4 ? r2 : r2 + ('&af_ios_url=' + r4);
}
const value7 = global.encodeURIComponent(uRL.toString());
const value9 = global.encodeURIComponent('discord://app/open#' + uRL.toString());
const value10 = global.encodeURIComponent((importDefault(9464) /* metro dependency 9464: getDescription */)());
const RegExp = global.RegExp;
const value12 = '(' + ['WebView', '(iPhone|iPod|iPad)(?!.*Safari/)'].join('|') + ')';
const value13 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
const regExp = new RegExp(value12, 'ig');
if (value6 == (importDefault(654) /* metro dependency 654 */)) {
r6 = value2;
} else {
ua = (importDefault(654) /* metro dependency 654 */).ua;
r6 = value6 == ua ? value2 : ua.match(regExp instanceof Object ? regExp : value13);
function generateAttemptId() { // fn#73594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9649:2152, offset: 0x01d729f5, size: 37 bytes, params: 1, frame: 11
return (Module00491Module).v4();
}
r6 = (value6 == (importDefault(654) /* metro dependency 654 */) ? value2 : (importDefault(654) /* metro dependency 654 */).name) === 'Safari' && !(value6 != r6);
if (value6 == (importDefault(654) /* metro dependency 654 */)) {
family = value2;
} else {
os = (importDefault(654) /* metro dependency 654 */).os;
family = value6 == os ? value2 : os.family;
function parseDynamicLink(a0) { // fn#73595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9649:2223, offset: 0x01d72a1a, size: 311 bytes, params: 2, frame: 21
var r8;
var URL;
var prototype;
var uRL;
var value3;
var searchParams;
var get;
var value4;
var value5;
var decodeURIComponent;
var value6;
var value8;
var searchParams2;
var value9;
var object;
var value10;
var _createForOfIteratorHelperLoose_73590Binding;
var entries;
var value12;
var value13;
var value14;
var done;
var value15;
var binding;
var value16;
var property;
var property2;
var value17;
var error;
const value = undefined;
if (!a0.startsWith('https://discordapp.onelink.me')) {
return null;
}
try {
URL = global.URL;
} catch (error) {
return null;
}
try {
prototype = URL.prototype;
} catch (error) {
return null;
}
try {
} catch (error) {
return null;
}
try {
uRL = new URL(a0);
} catch (error) {
return null;
}
try {
value3 = uRL instanceof Object ? uRL : undefined;
} catch (error) {
return null;
}
try {
searchParams = value3.searchParams;
} catch (error) {
return null;
}
try {
get = searchParams.get;
} catch (error) {
return null;
}
try {
value4 = Reflect.apply(get, searchParams, ['deep_link_value']);
} catch (error) {
return null;
}
try {
value5 = value4 == null;
} catch (error) {
return null;
}
if (value5) {
return null;
}
try {
decodeURIComponent = global.decodeURIComponent;
} catch (error) {
return null;
}
try {
value6 = decodeURIComponent(value4);
} catch (error) {
return null;
}
try {
URL = global.URL;
} catch (error) {
return null;
}
try {
prototype = URL.prototype;
} catch (error) {
return null;
}
try {
} catch (error) {
return null;
}
try {
uRL = new URL();
} catch (error) {
return null;
}
try {
value8 = uRL instanceof Object ? uRL : undefined;
} catch (error) {
return null;
}
try {
searchParams2 = value8.searchParams;
} catch (error) {
return null;
}
try {
get = searchParams.get;
} catch (error) {
return null;
}
try {
value9 = Reflect.apply(get, searchParams, ['pid']);
} catch (error) {
return null;
}
try {
object = {};
} catch (error) {
return null;
}
try {
value10 = value9 != null;
} catch (error) {
return null;
}
try {
object.utmSource = value10 ? value9 : value;
} catch (error) {
return null;
}
try {
_createForOfIteratorHelperLoose_73590Binding = _createForOfIteratorHelperLoose_73590;
} catch (error) {
return null;
}
try {
entries = searchParams2.entries;
} catch (error) {
return null;
}
try {
value12 = Reflect.apply(entries, searchParams2, []);
} catch (error) {
return null;
}
try {
value13 = _createForOfIteratorHelperLoose_73590Binding(value12);
} catch (error) {
return null;
}
try {
value14 = value13();
} catch (error) {
return null;
}
try {
done = value14.done;
} catch (error) {
return null;
}
if (!done) {
r8 = value14;
while (true) {
try {
value15 = r8.value;
} catch (error) {
return null;
}
try {
binding = Module00057;
} catch (error) {
return null;
}
try {
value16 = binding(value15, 2);
} catch (error) {
return null;
}
try {
property = value16[0];
} catch (error) {
return null;
}
try {
property2 = value16[1];
} catch (error) {
return null;
}
try {
object[property] = property2;
} catch (error) {
return null;
}
try {
value17 = value13();
} catch (error) {
return null;
}
try {
done = value17.done;
} catch (error) {
return null;
}
if (done) {
break;
}
r8 = value17;
continue;
}
}
return object;
}
const r12 = family !== 'iOS' || r6 ? 'true' : 'false';
const r7 = value6 != androidFallbackLink ? global.encodeURIComponent(androidFallbackLink) : value6;
const r4 = value6 != iosFallbackLink ? global.encodeURIComponent(iosFallbackLink) : value6;
let value = '' + 'https://discordapp.onelink.me' + '/Hs5r/?deep_link_value=' + value7 + '&pid=' + utmSource + '&af_force_deeplink=' + r12 + '&af_og_description=' + value10 + '&af_dp=' + value9;
if (value6 == r7) {
r2 = value;
} else {
value += '&af_android_url=' + r7;
r2 = value;
}
return value6 == r4 ? r2 : r2 + ('&af_ios_url=' + r4);
}
function parseDynamicLink(a0) { // fn#73595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9649:2223, offset: 0x01d72a1a, size: 311 bytes, params: 2, frame: 21
var r8;
var URL;
var prototype;
var uRL;
var value3;
var searchParams;
var get;
var value4;
var value5;
var decodeURIComponent;
var value6;
var value8;
var searchParams2;
var value9;
var object2;
var value10;
var _createForOfIteratorHelperLoose_73590Binding;
var entries;
var value12;
var value13;
var value14;
var done;
var value15;
var binding;
var value16;
var property;
var property2;
var value17;
var error;
const value = undefined;
if (!a0.startsWith('https://discordapp.onelink.me')) {
return null;
}
try {
URL = global.URL;
} catch (error) {
return null;
}
try {
prototype = URL.prototype;
} catch (error) {
return null;
}
try {
} catch (error) {
return null;
}
try {
uRL = new URL(a0);
} catch (error) {
return null;
}
try {
value3 = uRL instanceof Object ? uRL : undefined;
} catch (error) {
return null;
}
try {
searchParams = value3.searchParams;
} catch (error) {
return null;
}
try {
get = searchParams.get;
} catch (error) {
return null;
}
try {
value4 = Reflect.apply(get, searchParams, ['deep_link_value']);
} catch (error) {
return null;
}
try {
value5 = value4 == null;
} catch (error) {
return null;
}
if (value5) {
return null;
}
try {
decodeURIComponent = global.decodeURIComponent;
} catch (error) {
return null;
}
try {
value6 = decodeURIComponent(value4);
} catch (error) {
return null;
}
try {
URL = global.URL;
} catch (error) {
return null;
}
try {
prototype = URL.prototype;
} catch (error) {
return null;
}
try {
} catch (error) {
return null;
}
try {
uRL = new URL();
} catch (error) {
return null;
}
try {
value8 = uRL instanceof Object ? uRL : undefined;
} catch (error) {
return null;
}
try {
searchParams2 = value8.searchParams;
} catch (error) {
return null;
}
try {
get = searchParams.get;
} catch (error) {
return null;
}
try {
value9 = Reflect.apply(get, searchParams, ['pid']);
} catch (error) {
return null;
}
try {
object2 = {};
} catch (error) {
return null;
}
try {
value10 = value9 != null;
} catch (error) {
return null;
}
try {
object2.utmSource = value10 ? value9 : value;
} catch (error) {
return null;
}
try {
_createForOfIteratorHelperLoose_73590Binding = _createForOfIteratorHelperLoose_73590;
} catch (error) {
return null;
}
try {
entries = searchParams2.entries;
} catch (error) {
return null;
}
try {
value12 = Reflect.apply(entries, searchParams2, []);
} catch (error) {
return null;
}
try {
value13 = _createForOfIteratorHelperLoose_73590Binding(value12);
} catch (error) {
return null;
}
try {
value14 = value13();
} catch (error) {
return null;
}
try {
done = value14.done;
} catch (error) {
return null;
}
if (!done) {
r8 = value14;
while (true) {
try {
value15 = r8.value;
} catch (error) {
return null;
}
try {
binding = env0_5;
} catch (error) {
return null;
}
try {
value16 = binding(value15, 2);
} catch (error) {
return null;
}
try {
property = value16[0];
} catch (error) {
return null;
}
try {
property2 = value16[1];
} catch (error) {
return null;
}
try {
object2[property] = property2;
} catch (error) {
return null;
}
try {
value17 = value13();
} catch (error) {
return null;
}
try {
done = value17.done;
} catch (error) {
return null;
}
if (done) {
break;
}
r8 = value17;
continue;
}
}
return object2;
}
global.__d(_fun73589, 9463, [29, 57, 654, 491, 9464,
2]) /* metro module 9463, dependencies: [29, 57, 654, 491, 9464, 2] */;
@@ -1,10 +1,13 @@
/* Metro module 9464; source: ../discord_common/js/packages/dynamic-links/getDescription.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun73596(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9650:6, offset: 0x01d72b51, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/dynamic-links/getDescription.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/dynamic-links/getDescription.tsx');
exports.default = function() {
return '';
};
}
global.__d(_fun73596, 9464, [2]) /* metro module 9464, dependencies: [2] */;
@@ -1,17 +1,20 @@
/* Metro module 490; source: ../discord_common/js/packages/fingerprint-utils/FingerprintUtils.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun6413(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:540:6, offset: 0x00cf9a9f, size: 100 bytes, params: 8, frame: 17
const closure = function(a0) {
return a0.split('.')[0];
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/fingerprint-utils/FingerprintUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/fingerprint-utils/FingerprintUtils.tsx');
exports.extractId = closure;
exports.maybeExtractId = maybeExtractId;
function maybeExtractId(a0) { // fn#6415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:540:278, offset: 0x00cf9b1c, size: 28 bytes, params: 2, frame: 12
const value = null;
return value == a0 ? value : extractId(a0);
}
}
function maybeExtractId(a0) { // fn#6415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:540:278, offset: 0x00cf9b1c, size: 28 bytes, params: 2, frame: 12
const value = null;
return value == a0 ? value : extractId(a0);
}
global.__d(_fun6413, 490, [2]) /* metro module 490, dependencies: [2] */;
@@ -1,45 +0,0 @@
/* Metro module 8416; source: ../discord_common/js/packages/flash-list/index.js; dependencies: [31, 27, 33, 6361, 4017, 6277, 2, 6360] */
function _fun66854(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8601:6, offset: 0x01c0cdfc, size: 361 bytes, params: 8, frame: 26
var propertyName;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
(require(27) /* metro dependency 27 */).ScrollView;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
const value2 = value.forwardRef(_fun66855);
const reanimatedRexport = importDefault(4017) /* metro dependency 4017: ReanimatedRexport */;
let createAnimatedComponent = reanimatedRexport.createAnimatedComponent;
const FlashList = (require(6361) /* metro dependency 6361 */).FlashList;
const env0_3 = Reflect.apply(createAnimatedComponent, reanimatedRexport, [FlashList]);
const value4 = value.forwardRef(_fun66856);
const value5 = reanimatedRexport;
createAnimatedComponent = value5.createAnimatedComponent;
const MasonryFlashList = (require(6361) /* metro dependency 6361 */).MasonryFlashList;
const env0_4 = Reflect.apply(createAnimatedComponent, value5, [MasonryFlashList]);
value = value.forwardRef(_fun66857);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flash-list/index.js');
for (propertyName in require(6361) /* metro dependency 6361 */) {
exports[propertyName] = (require(6361) /* metro dependency 6361 */)[propertyName];
}
exports.FlashList = value2;
exports.AnimatedFlashList = value4;
exports.BottomSheetFlashList = importDefault(6360) /* metro dependency 6360 */;
exports.BottomSheetMasonryFlashList = value;
}
function _fun66855(a0, a1) { // fn#66855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8601:157, offset: 0x01c0cf65, size: 62 bytes, params: 3, frame: 14
const FlashList = (require(6361) /* metro dependency 6361 */).FlashList;
return <FlashList ref={a1} {...a0} />;
}
function _fun66856(a0, a1) { // fn#66856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8601:269, offset: 0x01c0cfa3, size: 40 bytes, params: 3, frame: 13
return ((Component) => <Component ref={a1} {...a0} />)(env0_3);
}
function _fun66857(a0, a1) { // fn#66857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8601:372, offset: 0x01c0cfcb, size: 71 bytes, params: 3, frame: 15
const binding = env0_4;
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
return ((Component) => <Component ref={a1} renderScrollComponent={BottomSheetScrollView} {...a0} />)(binding);
}
@@ -0,0 +1,52 @@
/* Metro module 8416; source: ../discord_common/js/packages/flash-list/index.js; dependencies: [31, 27, 33, 6361, 4017, 6277, 2, 6360] */
import ReanimatedRexport from '../../../../../modules/reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as Module06277Module from '../../../../../by-id/module-06277.js'; /* Metro dependency 6277 */
import * as Module06361Module from '../../../../../by-id/module-06361.js'; /* Metro dependency 6361 */
function _fun66854(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8601:6, offset: 0x01c0cdfc, size: 361 bytes, params: 8, frame: 26
var propertyName;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ReactModule;
(ReactNativeModule).ScrollView;
const value2 = value.forwardRef(_fun66855);
let createAnimatedComponent = ReanimatedRexport.createAnimatedComponent;
const FlashList = (require(6361) /* metro dependency 6361 */).FlashList;
const env0_3 = Reflect.apply(createAnimatedComponent, ReanimatedRexport, [FlashList]);
const value4 = value.forwardRef(_fun66856);
createAnimatedComponent = ReanimatedRexport.createAnimatedComponent;
const MasonryFlashList = (require(6361) /* metro dependency 6361 */).MasonryFlashList;
const env0_4 = Reflect.apply(createAnimatedComponent, ReanimatedRexport, [MasonryFlashList]);
value = value.forwardRef(_fun66857);
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/flash-list/index.js');
for (propertyName in require(6361) /* metro dependency 6361 */) {
exports[propertyName] = (require(6361) /* metro dependency 6361 */)[propertyName];
}
exports.FlashList = value2;
exports.AnimatedFlashList = value4;
exports.BottomSheetFlashList = importDefault(6360) /* metro dependency 6360 */;
exports.BottomSheetMasonryFlashList = value;
function _fun66855(a0, a1) { // fn#66855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8601:157, offset: 0x01c0cf65, size: 62 bytes, params: 3, frame: 14
const FlashList = (Module06361Module).FlashList;
return <FlashList ref={a1} {...a0} />;
}
function _fun66856(a0, a1) { // fn#66856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8601:269, offset: 0x01c0cfa3, size: 40 bytes, params: 3, frame: 13
return ((Component) => <Component ref={a1} {...a0} />)(env0_3);
}
function _fun66857(a0, a1) { // fn#66857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8601:372, offset: 0x01c0cfcb, size: 71 bytes, params: 3, frame: 15
const binding = env0_4;
const BottomSheetScrollView = (Module06277Module).BottomSheetScrollView;
return ((Component) => <Component ref={a1} renderScrollComponent={BottomSheetScrollView} {...a0} />)(binding);
}
}
global.__d(_fun66854, 8416, [31, 27, 33, 6361, 4017, 6277, 2,
6360]) /* metro module 8416, dependencies: [31, 27, 33, 6361, 4017, 6277, 2, 6360] */;
@@ -1,65 +1,68 @@
/* Metro module 633; source: ../discord_common/js/packages/flux/BatchedStoreListener.tsx; dependencies: [6, 7, 570, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun7149(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:6, offset: 0x00d0ffe2, size: 132 bytes, params: 8, frame: 18
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 value = _fun7150();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/BatchedStoreListener.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/flux/BatchedStoreListener.tsx');
exports.BatchedStoreListener = value;
}
function _fun7150() { // fn#7150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:121, offset: 0x00d10066, size: 78 bytes, params: 1, frame: 15
return CreateClass(BatchedStoreListener, [{key: 'attach', value: function(a0) {
var env0_0 = this;
var env0_1 = a0;
this.stores.forEach(_fun7154);
}}, {key: 'detach', value: function() {
var env0_0 = this;
this.stores.forEach(_fun7156);
}}]);
function BatchedStoreListener(a0, a1) { // fn#7151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:142, offset: 0x00d100b4, size: 62 bytes, params: 3, frame: 14
env1_2(this, BatchedStoreListener);
this.handleStoreChange = handleStoreChange;
this.stores = a0;
this.changeCallback = a1;
function handleStoreChange() { // fn#7152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:229, owner: BatchedStoreListener.handleStoreChange, offset: 0x00d100f2, size: 74 bytes, params: 1, frame: 12
var binding;
let value = environment.__proto__.__proto__;
value = importDefault(570) /* metro dependency 570: Emitter */;
value = value.getChangeSentinel();
if (env0_0.storeVersionHandled !== value) {
binding = env0_0;
binding.changeCallback();
binding.storeVersionHandled = value;
}
}
function _fun7150() { // fn#7150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:121, offset: 0x00d10066, size: 78 bytes, params: 1, frame: 15
return env0_3(BatchedStoreListener, [{key: 'attach', value: function(a0) {
var env0_0 = this;
var env0_1 = a0;
this.stores.forEach(_fun7154);
}}, {key: 'detach', value: function() {
var env0_0 = this;
this.stores.forEach(_fun7156);
}}]);
}
}
function BatchedStoreListener(a0, a1) { // fn#7151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:142, offset: 0x00d100b4, size: 62 bytes, params: 3, frame: 14
env1_2(this, BatchedStoreListener);
this.handleStoreChange = handleStoreChange_7152;
this.stores = a0;
this.changeCallback = a1;
}
function value_7153(a0) { // fn#7153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:410, offset: 0x00d1013c, size: 41 bytes, params: 2, frame: 11
const env0_1 = a0;
this.stores.forEach(_fun7154);
function _fun7154(a0, a1) { // fn#7154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:443, offset: 0x00d10165, size: 108 bytes, params: 3, frame: 18
var value;
var Error;
if (a0 == null) {
Error = global.Error;
value = '' + env0_1 + " tried to load a non-existent store. Either it isn't defined or there is a circular dependency. Loaded " + a1 + ' stores before error.';
throw new Error();
}
a0.addReactChangeListener(env0_0.handleStoreChange);
}
function value_7153(a0) { // fn#7153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:410, offset: 0x00d1013c, size: 41 bytes, params: 2, frame: 11
const env0_1 = a0;
this.stores.forEach(_fun7154);
}
}
function value_7155() { // fn#7155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:688, offset: 0x00d101d1, size: 34 bytes, params: 1, frame: 11
this.stores.forEach(_fun7156);
}
function value_7155() { // fn#7155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:688, offset: 0x00d101d1, size: 34 bytes, params: 1, frame: 11
this.stores.forEach(_fun7156);
function _fun7156(a0) { // fn#7156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:720, offset: 0x00d101f3, size: 29 bytes, params: 2, frame: 11
return a0.removeReactChangeListener(env0_0.handleStoreChange);
}
}
function BatchedStoreListenerHandleStoreChange() { // fn#7152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:229, owner: BatchedStoreListener.handleStoreChange, offset: 0x00d100f2, size: 74 bytes, params: 1, frame: 12
var binding;
let value = environment.__proto__.__proto__;
value = importDefault(570) /* metro dependency 570: Emitter */;
value = value.getChangeSentinel();
if (env0_0.storeVersionHandled !== value) {
binding = env0_0;
binding.changeCallback();
binding.storeVersionHandled = value;
}
}
function _fun7154(a0, a1) { // fn#7154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:443, offset: 0x00d10165, size: 108 bytes, params: 3, frame: 18
var value;
var Error;
if (a0 == null) {
Error = global.Error;
value = '' + env0_1 + " tried to load a non-existent store. Either it isn't defined or there is a circular dependency. Loaded " + a1 + ' stores before error.';
throw new Error();
}
a0.addReactChangeListener(env0_0.handleStoreChange);
}
function _fun7156(a0) { // fn#7156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:683:720, offset: 0x00d101f3, size: 29 bytes, params: 2, frame: 11
return a0.removeReactChangeListener(env0_0.handleStoreChange);
}
global.__d(_fun7149, 633, [6, 7, 570, 2]) /* metro module 633, dependencies: [6, 7, 570, 2] */;
@@ -1,91 +1,96 @@
/* Metro module 569; source: ../discord_common/js/packages/flux/ChangeListeners.tsx; dependencies: [6, 7, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun6898(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:6, offset: 0x00d0b3f3, size: 124 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const value = _fun6899();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/ChangeListeners.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/flux/ChangeListeners.tsx');
exports.ChangeListeners = value;
}
function _fun6899() { // fn#6899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:118, offset: 0x00d0b46f, size: 101 bytes, params: 1, frame: 15
return CreateClass(ChangeListeners, [{key: 'has', value: function(a0) {
return this.listeners.has(a0);
}}, {key: 'hasAny', value: function() {
return this.listeners.size > 0;
}}, {key: 'invokeAll', value: function() {
this.listeners.forEach(_fun6910);
}}]);
function ChangeListeners() { // fn#6900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:139, offset: 0x00d0b4d4, size: 143 bytes, params: 1, frame: 15
var environment;
const value = environment.__proto__;
env1_0(this, ChangeListeners);
let Set = global.Set;
this.listeners = new Set();
Set = global.Set;
this.conditionalListeners = new Set();
this.add = add_6901;
this.remove = remove_6902;
this.addConditional = addConditional;
this.removeAllConditional = removeAllConditional;
function ChangeListenersAdd(a0) { // fn#6901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:256, owner: ChangeListeners.add, offset: 0x00d0b563, size: 30 bytes, params: 2, frame: 11
ClassCallCheck.listeners.add(a0);
}
function _fun6899() { // fn#6899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:118, offset: 0x00d0b46f, size: 101 bytes, params: 1, frame: 15
return env0_1(ChangeListeners, [{key: 'has', value: function(a0) {
return this.listeners.has(a0);
}}, {key: 'hasAny', value: function() {
return this.listeners.size > 0;
}}, {key: 'invokeAll', value: function() {
this.listeners.forEach(_fun6910);
}}]);
}
function ChangeListenersRemove(a0) { // fn#6902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:295, owner: ChangeListeners.remove, offset: 0x00d0b581, size: 46 bytes, params: 2, frame: 12
ClassCallCheck.listeners.delete(a0);
ClassCallCheck.conditionalListeners.delete(a0);
}
function ChangeListeners() { // fn#6900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:139, offset: 0x00d0b4d4, size: 143 bytes, params: 1, frame: 15
var environment;
const value = environment.__proto__;
env1_0(this, ChangeListeners);
let Set = global.Set;
this.listeners = new Set();
Set = global.Set;
this.conditionalListeners = new Set();
this.add = add_6901;
this.remove = remove_6902;
this.addConditional = addConditional;
this.removeAllConditional = removeAllConditional;
}
function addConditional(a0) { // fn#6903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:381, owner: ChangeListeners.addConditional, offset: 0x00d0b5af, size: 81 bytes, params: 2, frame: 13
var conditionalCallback2;
var binding;
const value = a1;
const env0_0 = a0;
if (!(value !== undefined) || value) {
if (a0() !== false) {
conditionalCallback2 = conditionalCallback;
binding = env0_0;
binding.add(conditionalCallback2);
binding.conditionalListeners.add(conditionalCallback2);
}
} else {
conditionalCallback2 = conditionalCallback;
binding = env0_0;
binding.add(conditionalCallback2);
binding.conditionalListeners.add(conditionalCallback2);
}
function conditionalCallback() { // fn#6904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:433, owner: ChangeListeners.addConditional.conditionalCallback, offset: 0x00d0b600, size: 43 bytes, params: 1, frame: 12
var value3;
var binding;
if (env0_0() === false) {
value3 = environment.__proto__;
binding = env1_0;
binding.remove(conditionalCallback);
}
}
function value_6909() { // fn#6909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:844, offset: 0x00d0b6a7, size: 30 bytes, params: 1, frame: 11
this.listeners.forEach(function(a0) {
return a0();
});
}
}
function ChangeListenersAdd(a0) { // fn#6901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:256, owner: ChangeListeners.add, offset: 0x00d0b563, size: 30 bytes, params: 2, frame: 11
env0_0.listeners.add(a0);
}
function removeAllConditional() { // fn#6905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:591, owner: ChangeListeners.removeAllConditional, offset: 0x00d0b62b, size: 50 bytes, params: 1, frame: 12
ClassCallCheck.conditionalListeners.forEach(_fun6906);
ClassCallCheck.conditionalListeners.clear();
function _fun6906(a0) { // fn#6906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:631, offset: 0x00d0b65d, size: 28 bytes, params: 2, frame: 11
return env1_0.listeners.delete(a0);
}
function ChangeListenersRemove(a0) { // fn#6902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:295, owner: ChangeListeners.remove, offset: 0x00d0b581, size: 46 bytes, params: 2, frame: 12
const binding = env0_0;
binding.listeners.delete(a0);
binding.conditionalListeners.delete(a0);
}
}
function addConditional(a0) { // fn#6903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:381, owner: ChangeListeners.addConditional, offset: 0x00d0b5af, size: 81 bytes, params: 2, frame: 13
var closure;
var binding;
const value = a1;
const env0_0 = a0;
if (!(value !== undefined) || value) {
if (a0() !== false) {
closure = conditionalCallback;
binding = env0_0;
binding.add(closure);
binding.conditionalListeners.add(closure);
}
} else {
closure = conditionalCallback;
binding = env0_0;
binding.add(closure);
binding.conditionalListeners.add(closure);
function value_6909() { // fn#6909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:844, offset: 0x00d0b6a7, size: 30 bytes, params: 1, frame: 11
this.listeners.forEach(function(a0) {
return a0();
});
}
}
}
function removeAllConditional() { // fn#6905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:591, owner: ChangeListeners.removeAllConditional, offset: 0x00d0b62b, size: 50 bytes, params: 1, frame: 12
const binding = env0_0;
binding.conditionalListeners.forEach(_fun6906);
binding.conditionalListeners.clear();
}
function conditionalCallback() { // fn#6904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:433, owner: ChangeListeners.addConditional.conditionalCallback, offset: 0x00d0b600, size: 43 bytes, params: 1, frame: 12
var value3;
var binding;
if (env0_0() === false) {
value3 = environment.__proto__;
binding = env1_0;
binding.remove(conditionalCallback);
}
}
function _fun6906(a0) { // fn#6906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:631, offset: 0x00d0b65d, size: 28 bytes, params: 2, frame: 11
return env1_0.listeners.delete(a0);
function _fun6910(a0) { // fn#6910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:619:879, offset: 0x00c78604, size: 11 bytes, params: 2, frame: 9
return a0();
}
global.__d(_fun6898, 569, [6, 7, 2]) /* metro module 569, dependencies: [6, 7, 2] */;
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -1,42 +1,45 @@
/* Metro module 571; source: ../discord_common/js/packages/flux/LastFewActions.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun6934(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:621:6, offset: 0x00d0bfbc, size: 126 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = [];
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/LastFewActions.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/flux/LastFewActions.tsx');
exports.add = add_6935;
exports.clear = clear_6936;
exports.serialize = serialize_6937;
exports.last = last;
}
function add_6935(a0) { // fn#6935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:621:194, offset: 0x00d0c03a, size: 67 bytes, params: 2, frame: 12
let binding = env0_0;
binding.push(a0);
let length = env0_0.length;
if (length > 10) {
while (true) {
binding = env0_0;
binding.shift();
length = env0_0.length;
if (!(length > 10)) {
break;
exports.last = last_6938;
function add_6935(a0) { // fn#6935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:621:194, offset: 0x00d0c03a, size: 67 bytes, params: 2, frame: 12
let binding = env0_0;
binding.push(a0);
let length = env0_0.length;
if (length > 10) {
while (true) {
binding = env0_0;
binding.shift();
length = env0_0.length;
if (!(length > 10)) {
break;
}
}
}
}
function clear_6936() { // fn#6936, offset: 0x00d0c07d, size: 17 bytes, params: 1, frame: 3
const binding = items2;
items2 = [];
return binding;
}
function serialize_6937() { // fn#6937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:621:308, offset: 0x00d0c08e, size: 25 bytes, params: 1, frame: 11
return env0_0.join(' -> ');
}
function last_6938() { // fn#6938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:621:359, offset: 0x00d0c0a7, size: 45 bytes, params: 1, frame: 4
return env0_0.length > 0 ? env0_0[env0_0.length - 1] : null;
}
}
function clear_6936() { // fn#6936, offset: 0x00d0c07d, size: 17 bytes, params: 1, frame: 3
const binding = env0_0;
env0_0 = [];
return binding;
}
function serialize_6937() { // fn#6937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:621:308, offset: 0x00d0c08e, size: 25 bytes, params: 1, frame: 11
return env0_0.join(' -> ');
}
function last() { // fn#6938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:621:359, offset: 0x00d0c0a7, size: 45 bytes, params: 1, frame: 4
return env0_0.length > 0 ? env0_0[env0_0.length - 1] : null;
}
global.__d(_fun6934, 571, [2]) /* metro module 571, dependencies: [2] */;
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+234 -215
View File
@@ -1,10 +1,15 @@
/* Metro module 568; source: ../discord_common/js/packages/flux/Store.tsx; dependencies: [6, 7, 569, 570, 20, 44, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import Module00044 from '../../../../../by-id/module-00044.js'; /* Metro dependency 44 */
import Emitter from './Emitter.tsx'; /* Metro dependency 570 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ChangeListenersModule from './ChangeListeners.tsx'; /* Metro dependency 569 */
function _fun6867(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:6, offset: 0x00d0aacb, size: 187 bytes, params: 8, frame: 20
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(6) /* metro dependency 6 */;
const env0_5 = importDefault(7) /* metro dependency 7 */;
const env0_6 = [];
const Promise = global.Promise;
const promise = new Promise(function(a0) {
@@ -13,231 +18,245 @@ function _fun6867(global, require, importDefault, importAll, module, exports, de
});
const value2 = _fun6870();
value2.initialized = promise;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/Store.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/flux/Store.tsx');
exports.Store = value2;
}
function _fun6868(a0) { // fn#6868, offset: 0x00d0ab86, size: 25 bytes, params: 2, frame: 2
const env0_0 = a0;
}
function _fun6870() { // fn#6870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:178, offset: 0x00d0abb7, size: 332 bytes, params: 1, frame: 17
return env0_5(Store, [{key: 'registerActionHandlers', value: function(a0, a1) {
this._dispatcher.register(this.getName(), a0, this.doEmitChanges, a1, this._dispatchToken);
}}, {key: 'getName', value: function() {
return this.constructor.displayName ?? this.constructor.name;
}}, {key: 'initializeIfNeeded', value: value_6875}, {key: 'initialize', value: function() {
}}, {key: 'syncWith', value: value_6877}, {key: 'waitFor', value: function(a0) {
var r6;
var env0_0 = this;
var value = copyRestArgs(0, r6);
value = value.map(_fun6886);
this._dispatcher.addDependencies(this.getDispatchToken(), value.filter(_fun6887));
}}, {key: 'emitChange', value: value_6888}, {key: 'getDispatchToken', value: function() {
return this._dispatchToken;
}}, {key: 'mustEmitChanges', value: function() {
var value = a0;
this._mustEmitChanges = value !== undefined ? value : _fun6891;
}}], [{key: 'initialize', value: value_6892}, {key: 'destroy', value: value_6894}, {key: 'getAll',
value: value_6895}, {key: 'removeAllConditionalListeners', value: value_6896}]);
}
function t_6869() { // fn#6869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:152, offset: 0x00d0ab9f, size: 24 bytes, params: 1, frame: 10
env0_0();
}
function Store(a0, a1, a2) { // fn#6871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:199, offset: 0x00d0ad03, size: 349 bytes, params: 4, frame: 19
const value = a1;
env1_4(this, Store);
const ChangeListeners = (require(569) /* metro dependency 569: ChangeListeners */).ChangeListeners;
const value4 = Object.create(ChangeListeners.prototype, {constructor: {value: ChangeListeners}});
let changeListeners = new ChangeListeners();
this._changeCallbacks = changeListeners instanceof Object ? changeListeners : value4;
const value6 = Object.create(ChangeListeners.prototype, {constructor: {value: ChangeListeners}});
changeListeners = new ChangeListeners();
this._reactChangeCallbacks = changeListeners instanceof Object ? changeListeners : value6;
this._syncWiths = [];
this._isInitialized = false;
this.doEmitChanges = doEmitChanges;
this.addChangeListener = this._changeCallbacks.add;
this.removeChangeListener = this._changeCallbacks.remove;
this.addConditionalChangeListener = this._changeCallbacks.addConditional;
this.removeAllConditionalChangeListeners = this._changeCallbacks.removeAllConditional;
this.addReactChangeListener = this._reactChangeCallbacks.add;
this.removeReactChangeListener = this._reactChangeCallbacks.remove;
this._dispatcher = a0;
const _dispatcher = this._dispatcher;
this._dispatchToken = _dispatcher.createToken();
this.registerActionHandlers(value ?? ({}), a2);
env1_6.push(this);
if (env1_7) {
this.initializeIfNeeded();
}
}
function value_6875() { // fn#6875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1454, offset: 0x00d0af89, size: 142 bytes, params: 1, frame: 15
var Date;
var value;
var value2;
var defaultImport;
if (!this._isInitialized) {
Date = global.Date;
value = Date.now();
this.initialize();
this._isInitialized = true;
Date = global.Date;
value = Date.now() - value;
if (value > 5) {
value2 = environment.__proto__;
defaultImport = importDefault(20) /* metro dependency 20: AppStartPerformance */;
defaultImport.mark('🦥', this.getName() + '.initialize()', value);
function _fun6868(a0) { // fn#6868, offset: 0x00d0ab86, size: 25 bytes, params: 2, frame: 2
const env0_0 = a0;
function t_6869() { // fn#6869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:152, offset: 0x00d0ab9f, size: 24 bytes, params: 1, frame: 10
env0_0();
}
}
}
function value_6877(a0, a1, a2) { // fn#6877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1690, offset: 0x00d0b017, size: 143 bytes, params: 4, frame: 18
var closure;
const value = a2;
let env0_1 = a1;
const waitFor = this.waitFor;
const items2 = [];
const value2 = 0;
apply(waitFor, items2, this, arraySpread(items2, a0, value2, undefined));
if (value != null) {
closure = value_6877Wrapper;
var env0_3;
env0_3 = ((a0, a1) => {
var env0_0 = a0;
var env0_1 = a1;
var env0_2 = null;
return a0 === 0 ? _fun6880 : _fun6881;
})(value ?? value2, closure);
a0.forEach(function(a0) {
return a0.addChangeListener(value_6877Wrapper);
});
} else {
a0.forEach(_fun6884);
}
}
function _fun6870() { // fn#6870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:178, offset: 0x00d0abb7, size: 332 bytes, params: 1, frame: 17
return CreateClass(Store, [{key: 'registerActionHandlers', value: function(a0, a1) {
this._dispatcher.register(this.getName(), a0, this.doEmitChanges, a1, this._dispatchToken);
}}, {key: 'getName', value: function() {
return this.constructor.displayName ?? this.constructor.name;
}}, {key: 'initializeIfNeeded', value: value_6875}, {key: 'initialize', value: function() {
}}, {key: 'syncWith', value: value_6877}, {key: 'waitFor', value: function(a0) {
var r6;
var env0_0 = this;
var value = copyRestArgs(0, r6);
value = value.map(_fun6886);
this._dispatcher.addDependencies(this.getDispatchToken(), value.filter(_fun6887));
}}, {key: 'emitChange', value: value_6888}, {key: 'getDispatchToken', value: function() {
return this._dispatchToken;
}}, {key: 'mustEmitChanges', value: function() {
var value = a0;
this._mustEmitChanges = value !== undefined ? value : _fun6891;
}}], [{key: 'initialize', value: value_6892}, {key: 'destroy', value: value_6894}, {key: 'getAll',
value: value_6895}, {key: 'removeAllConditionalListeners', value: value_6896}]);
function Store(a0, a1, a2) { // fn#6871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:199, offset: 0x00d0ad03, size: 349 bytes, params: 4, frame: 19
const value = a1;
env1_4(this, Store);
const ChangeListeners = (ChangeListenersModule).ChangeListeners;
const value4 = Object.create(ChangeListeners.prototype, {constructor: {value: ChangeListeners}});
let changeListeners = new ChangeListeners();
this._changeCallbacks = changeListeners instanceof Object ? changeListeners : value4;
const value6 = Object.create(ChangeListeners.prototype, {constructor: {value: ChangeListeners}});
changeListeners = new ChangeListeners();
this._reactChangeCallbacks = changeListeners instanceof Object ? changeListeners : value6;
this._syncWiths = [];
this._isInitialized = false;
this.doEmitChanges = doEmitChanges;
this.addChangeListener = this._changeCallbacks.add;
this.removeChangeListener = this._changeCallbacks.remove;
this.addConditionalChangeListener = this._changeCallbacks.addConditional;
this.removeAllConditionalChangeListeners = this._changeCallbacks.removeAllConditional;
this.addReactChangeListener = this._reactChangeCallbacks.add;
this.removeReactChangeListener = this._reactChangeCallbacks.remove;
this._dispatcher = a0;
const _dispatcher = this._dispatcher;
this._dispatchToken = _dispatcher.createToken();
this.registerActionHandlers(value ?? ({}), a2);
env1_6.push(this);
if (env1_7) {
this.initializeIfNeeded();
}
function doEmitChanges(a0) { // fn#6872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:403, owner: Store.doEmitChanges, offset: 0x00d0ae60, size: 212 bytes, params: 2, frame: 17
var r1;
var value3;
let r0 = env0_0._changeCallbacks.hasAny() || env0_0._reactChangeCallbacks.hasAny();
r0 = !r0 ? env0_0._syncWiths.length > 0 : r0;
if (r0) {
value3 = environment.__proto__.__proto__;
(importDefault(570) /* metro dependency 570: Emitter */).markChanged(env0_0);
r1 = (importDefault(570) /* metro dependency 570: Emitter */).getIsPaused() && env0_0._mustEmitChanges != null;
r1 = r1 && env0_0._mustEmitChanges(a0);
if (r1) {
(importDefault(570) /* metro dependency 570: Emitter */).resume(false);
}
}
}
function value_6885(a0) { // fn#6885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2180, offset: 0x00d0b1fd, size: 77 bytes, params: 2, frame: 15
let value = copyRestArgs(0, undefined);
value = value.map(_fun6886);
const _dispatcher = this._dispatcher;
_dispatcher.addDependencies(this.getDispatchToken(), value.filter(function(a0) {
return a0 != null;
}));
}
function value_6888() { // fn#6888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2566, offset: 0x00d0b2fb, size: 41 bytes, params: 1, frame: 12
const value = environment.__proto__;
(importDefault(570) /* metro dependency 570: Emitter */).markChanged(this);
}
function value_6890() { // fn#6890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2705, offset: 0x00d0b32f, size: 27 bytes, params: 1, frame: 3
const value = a0;
this._mustEmitChanges = value !== undefined ? value : function() {
return true;
};
}
function value_6892() { // fn#6892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2776, offset: 0x00d0b34a, size: 54 bytes, params: 1, frame: 12
env1_6.forEach(function(a0) {
return a0.initializeIfNeeded();
});
if (env1_3 != null) {
env1_3();
}
}
function value_6894() { // fn#6894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2867, offset: 0x00d0b38f, size: 49 bytes, params: 1, frame: 11
const value = environment.__proto__;
env1_6.length = 0;
(importDefault(570) /* metro dependency 570: Emitter */).destroy();
}
function value_6896() { // fn#6896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2995, offset: 0x00d0b3c0, size: 28 bytes, params: 1, frame: 11
env1_6.forEach(function({_changeCallbacks}) {
_changeCallbacks.removeAllConditional();
});
}
function doEmitChanges(a0) { // fn#6872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:403, owner: Store.doEmitChanges, offset: 0x00d0ae60, size: 212 bytes, params: 2, frame: 17
var r1;
var value3;
let r0 = env0_0._changeCallbacks.hasAny() || env0_0._reactChangeCallbacks.hasAny();
r0 = !r0 ? env0_0._syncWiths.length > 0 : r0;
if (r0) {
value3 = environment.__proto__.__proto__;
(importDefault(570) /* metro dependency 570: Emitter */).markChanged(env0_0);
r1 = (importDefault(570) /* metro dependency 570: Emitter */).getIsPaused() && env0_0._mustEmitChanges != null;
r1 = r1 && env0_0._mustEmitChanges(a0);
if (r1) {
(importDefault(570) /* metro dependency 570: Emitter */).resume(false);
}
}
}
function value_6877Wrapper() { // fn#6878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1753, owner: value_6877.wrapper, offset: 0x00d0b0a6, size: 107 bytes, params: 1, frame: 15
const binding = env0_2;
const defaultImport = importDefault(570) /* metro dependency 570: Emitter */;
const getChangeSentinel = defaultImport.getChangeSentinel;
if (binding !== Reflect.apply(getChangeSentinel, defaultImport, [])) {
env0_2 = defaultImport.getChangeSentinel();
if (require() !== false) {
env0_0.emitChange();
function value_6875() { // fn#6875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1454, offset: 0x00d0af89, size: 142 bytes, params: 1, frame: 15
var Date;
var value;
var value2;
var defaultImport;
if (!this._isInitialized) {
Date = global.Date;
value = Date.now();
this.initialize();
this._isInitialized = true;
Date = global.Date;
value = Date.now() - value;
if (value > 5) {
value2 = environment.__proto__;
defaultImport = importDefault(20) /* metro dependency 20: AppStartPerformance */;
defaultImport.mark('🦥', this.getName() + '.initialize()', value);
}
}
}
function value_6877(a0, a1, a2) { // fn#6877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1690, offset: 0x00d0b017, size: 143 bytes, params: 4, frame: 18
var value_6877Wrapper2;
const value = a2;
let env0_1 = a1;
const waitFor = this.waitFor;
const items2 = [];
const value2 = 0;
apply(waitFor, items2, this, arraySpread(items2, a0, value2, undefined));
if (value != null) {
value_6877Wrapper2 = value_6877Wrapper;
var env0_3;
env0_3 = ((a0, a1) => {
var env0_0 = a0;
var env0_1 = a1;
var env0_2 = null;
return a0 === 0 ? _fun6880 : _fun6881;
})(value ?? value2, value_6877Wrapper2);
a0.forEach(function(a0) {
return a0.addChangeListener(value_6877Wrapper);
});
} else {
a0.forEach(_fun6884);
}
function value_6877Wrapper() { // fn#6878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1753, owner: value_6877.wrapper, offset: 0x00d0b0a6, size: 107 bytes, params: 1, frame: 15
const binding = changeSentinel;
const defaultImport = Emitter;
const getChangeSentinel = defaultImport.getChangeSentinel;
if (binding !== Reflect.apply(getChangeSentinel, defaultImport, [])) {
changeSentinel = defaultImport.getChangeSentinel();
if (require() !== false) {
env0_0.emitChange();
}
}
}
function value_6877Debounce(a0, a1) { // fn#6879, owner: value_6877.debounce, offset: 0x00d0b111, size: 42 bytes, params: 3, frame: 3
const env0_0 = a0;
const env0_1 = a1;
return a0 === 0 ? _fun6880 : _fun6881;
function _fun6880() { // fn#6880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1909, offset: 0x00d0b13b, size: 43 bytes, params: 1, frame: 13
global.clearImmediate(env0_2);
env0_2 = global.setImmediate(require);
}
function _fun6881() { // fn#6881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1957, offset: 0x00d0b166, size: 48 bytes, params: 1, frame: 14
if (env0_2 == null) {
env0_2 = global.setTimeout(_fun6882, env0_0);
}
function _fun6882() { // fn#6882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1992, offset: 0x00d0b196, size: 34 bytes, params: 1, frame: 10
var value;
var error;
try {
value = environment.__proto__;
require();
} catch (error) {
env1_2 = null;
throw error;
}
}
}
}
function _fun6884({_syncWiths}) { // fn#6884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2111, offset: 0x00d0b1cf, size: 46 bytes, params: 2, frame: 13
_syncWiths.push({func: require, store: env0_0});
}
}
function value_6885(a0) { // fn#6885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2180, offset: 0x00d0b1fd, size: 77 bytes, params: 2, frame: 15
let value = copyRestArgs(0, undefined);
value = value.map(_fun6886);
const _dispatcher = this._dispatcher;
_dispatcher.addDependencies(this.getDispatchToken(), value.filter(function(a0) {
return a0 != null;
}));
function _fun6886(a0, a1) { // fn#6886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2208, offset: 0x00d0b24a, size: 166 bytes, params: 3, frame: 23
var r0;
let value = environment.__proto__.__proto__;
const defaultImport = Module00044;
const value2 = null;
defaultImport(value2 != a0,
'Store.waitFor(...) called with null Store at index ' + a1 + ' for store ' + env0_0.getName());
if (value2 != a0._dispatcher) {
value = defaultImport;
value(a0._dispatcher === env0_0._dispatcher, 'Stores belong to two separate dispatchers.');
value = a0.getDispatchToken();
r0 = value;
} else {
r0 = value2;
}
return r0;
}
}
function value_6888() { // fn#6888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2566, offset: 0x00d0b2fb, size: 41 bytes, params: 1, frame: 12
const value = environment.__proto__;
(Emitter).markChanged(this);
}
function value_6890() { // fn#6890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2705, offset: 0x00d0b32f, size: 27 bytes, params: 1, frame: 3
const value = a0;
this._mustEmitChanges = value !== undefined ? value : function() {
return true;
};
}
function value_6892() { // fn#6892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2776, offset: 0x00d0b34a, size: 54 bytes, params: 1, frame: 12
env1_6.forEach(function(a0) {
return a0.initializeIfNeeded();
});
if (env1_3 != null) {
env1_3();
}
}
function value_6894() { // fn#6894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2867, offset: 0x00d0b38f, size: 49 bytes, params: 1, frame: 11
const value = environment.__proto__;
env1_6.length = 0;
(Emitter).destroy();
}
function value_6895() { // fn#6895, offset: 0x00c82288, size: 9 bytes, params: 1, frame: 1
return env1_6;
}
function value_6896() { // fn#6896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2995, offset: 0x00d0b3c0, size: 28 bytes, params: 1, frame: 11
env1_6.forEach(function({_changeCallbacks}) {
_changeCallbacks.removeAllConditional();
});
}
}
}
function value_6877Debounce(a0, a1) { // fn#6879, owner: value_6877.debounce, offset: 0x00d0b111, size: 42 bytes, params: 3, frame: 3
const env0_0 = a0;
const env0_1 = a1;
return a0 === 0 ? _fun6880 : _fun6881;
function _fun6887(a0) { // fn#6887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2526, offset: 0x00d0b2f0, size: 11 bytes, params: 2, frame: 2
return a0 != null;
}
function _fun6884({_syncWiths}) { // fn#6884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2111, offset: 0x00d0b1cf, size: 46 bytes, params: 2, frame: 13
_syncWiths.push({func: require, store: env0_0});
}
function _fun6886(a0, a1) { // fn#6886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:2208, offset: 0x00d0b24a, size: 166 bytes, params: 3, frame: 23
var r0;
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(44) /* metro dependency 44 */;
const value2 = null;
defaultImport(value2 != a0,
'Store.waitFor(...) called with null Store at index ' + a1 + ' for store ' + env0_0.getName());
if (value2 != a0._dispatcher) {
value = defaultImport;
value(a0._dispatcher === env0_0._dispatcher, 'Stores belong to two separate dispatchers.');
value = a0.getDispatchToken();
r0 = value;
} else {
r0 = value2;
}
return r0;
}
function _fun6880() { // fn#6880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1909, offset: 0x00d0b13b, size: 43 bytes, params: 1, frame: 13
global.clearImmediate(env0_2);
env0_2 = global.setImmediate(require);
}
function _fun6881() { // fn#6881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1957, offset: 0x00d0b166, size: 48 bytes, params: 1, frame: 14
if (env0_2 == null) {
env0_2 = global.setTimeout(_fun6882, env0_0);
}
}
function _fun6882() { // fn#6882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:618:1992, offset: 0x00d0b196, size: 34 bytes, params: 1, frame: 10
var value;
var error;
try {
value = environment.__proto__;
require();
} catch (error) {
env1_2 = null;
throw error;
}
function value_6890T() { // fn#6891, owner: value_6890.t, offset: 0x00c4c231, size: 4 bytes, params: 1, frame: 1
return true;
}
global.__d(_fun6867, 568, [6, 7, 569, 570, 20, 44,
2]) /* metro module 568, dependencies: [6, 7, 569, 570, 20, 44, 2] */;
@@ -1,4 +1,15 @@
/* Metro module 634; source: ../discord_common/js/packages/flux/connectStores.tsx; dependencies: [29, 6, 7, 15, 17, 18, 31, 33, 633, 628, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import ObjectWithoutProperties from '../../../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BatchedStoreListenerModule from './BatchedStoreListener.tsx'; /* Metro dependency 633 */
function _fun7157(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:6, offset: 0x00d10210, size: 268 bytes, params: 8, frame: 19
let env0_0 = require;
const getDisplayName = function(a0) {
@@ -17,248 +28,267 @@ function _fun7157(global, require, importDefault, importAll, module, exports, de
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importDefault(29) /* metro dependency 29 */;
let env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const env0_8 = importAll(31) /* metro dependency 31 */;
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/connectStores.tsx');
ObjectWithoutProperties;
let env0_3 = ClassCallCheck;
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/flux/connectStores.tsx');
exports.default = function(a0, a1, a2) {
return a2 == null ? _fun7177(a0, a1) : a2.forwardRef ? _fun7168(a0, a1) : _fun7177(a0, a1);
};
}
function _callSuper_7158(a0, a1, a2) { // fn#7158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:180, offset: 0x00d1031c, size: 100 bytes, params: 4, frame: 20
var r0;
var Reflect;
let value = a2;
const value3 = Module00017(a1);
if (_isNativeReflectConstruct_7159()) {
Reflect = global.Reflect;
value = Reflect.construct(value3, value || [], Module00017(a0).constructor);
r0 = value;
} else {
value = value3.apply(a0, value);
r0 = value;
}
return PossibleConstructorReturn(a0, r0);
}
function _isNativeReflectConstruct_7159() { // fn#7159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:311, offset: 0x00d10380, size: 94 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() {
function _isNativeReflectConstruct_7159() { // fn#7159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:311, offset: 0x00d10380, size: 94 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_7159_isNativeReflectConstruct = function() {
return !!result;
})();
}
function memoizeGetStateFromStores(a0) { // fn#7163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:2616, offset: 0x00d10403, size: 52 bytes, params: 2, frame: 3
const env0_0 = a0;
const getCachedResult2 = getCachedResult;
const memoizedFunction2 = memoizedFunction;
memoizedFunction2.getCachedResult = getCachedResult2;
memoizedFunction2.clear = function() {
env0_1 = null;
env0_2 = null;
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
return memoizedFunction2;
function getCachedResult(a0) { // fn#7164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:2688, owner: memoizeGetStateFromStores.getCachedResult, offset: 0x00d10437, size: 144 bytes, params: 2, frame: 16
const value2 = null;
return value2 == env0_1 || value2 == env0_2 ? value2 != env0_1 && value2 != env0_2 && (importDefault(628) /* metro dependency 628: shallowEqual */)(env0_1,
a0) ? env0_2 : value2 : (importDefault(628) /* metro dependency 628: shallowEqual */)(env0_1,
a0) || value2 != env0_1 && value2 != env0_2 && (importDefault(628) /* metro dependency 628: shallowEqual */)(env0_1,
a0) ? env0_2 : value2;
}
function memoizedFunction(a0) { // fn#7165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:2785, owner: memoizeGetStateFromStores.memoizedFunction, offset: 0x00d104c7, size: 45 bytes, params: 2, frame: 14
return getCachedResult(a0) ?? env0_0(a0);
}
function memoizeGetStateFromStoresClear() { // fn#7166, owner: memoizeGetStateFromStores.clear, offset: 0x00d104f4, size: 17 bytes, params: 1, frame: 3
}
}
return (_isNativeReflectConstruct_7159_isNativeReflectConstruct = function() {
return !!result;
})();
}
function memoizeGetStateFromStores(a0) { // fn#7163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:2616, offset: 0x00d10403, size: 52 bytes, params: 2, frame: 3
const env0_0 = a0;
const closure = getCachedResult;
const closure2 = memoizedFunction;
closure2.getCachedResult = closure;
closure2.clear = function() {
env0_1 = null;
env0_2 = null;
};
return closure2;
}
function connectStores(a0, a1, a2) { // fn#7167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:510, offset: 0x00d10505, size: 56 bytes, params: 4, frame: 14
return a2 == null ? ((a0, a1) => {
var env0_0 = a0;
var env0_1 = a1;
return _fun7178;
})(a0, a1) : a2.forwardRef ? ((a0, a1) => {
var env0_0 = a0;
var env0_1 = a1;
return _fun7169;
})(a0, a1) : ((a0, a1) => {
var env0_0 = a0;
var env0_1 = a1;
return _fun7178;
})(a0, a1);
function connectStoresWithRef(a0, a1) { // fn#7168, owner: connectStores.connectStoresWithRef, offset: 0x00d1053d, size: 23 bytes, params: 3, frame: 2
const env0_0 = a0;
const env0_1 = a1;
return _fun7169;
function _fun7169(a0) { // fn#7169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:611, offset: 0x00d10554, size: 135 bytes, params: 2, frame: 17
var environment;
const env0_0 = a0;
let value = environment.__proto__.__proto__;
const value3 = 'FluxContainer(' + getDisplayName(a0) + ')';
const binding = env2_8;
const Component = binding.Component;
_fun7170(Component).displayName = value3;
value = binding.forwardRef(_fun7176);
value.displayName = 'ForwardRef(' + value3 + ')';
return value;
function _fun7170(a0) { // fn#7170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:661, offset: 0x00d105db, size: 114 bytes, params: 2, frame: 16
const FluxContainer2 = FluxContainer;
env3_7(FluxContainer2, a0);
return env3_4(FluxContainer2, [{key: 'componentDidMount', value: value_7173}, {key: 'componentWillUnmount',
value: function() {
this.listener.detach();
this.memoizedGetStateFromStores.clear();
}}, {key: 'render', value: value_7175}]);
function FluxContainer(a0) { // fn#7171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:673, offset: 0x00d1064d, size: 149 bytes, params: 2, frame: 19
let value = copyRestArgs(0, undefined);
let binding = env4_3;
binding(this, FluxContainer);
const _callSuper_7158Binding = _callSuper_7158;
const items2 = [];
arraySpread(items2, value, 0, undefined);
value = _callSuper_7158Binding(this, FluxContainer, items2);
value.memoizedGetStateFromStores = memoizeGetStateFromStores(require);
const BatchedStoreListener = (BatchedStoreListenerModule).BatchedStoreListener;
binding = env2_0;
const value5 = Object.create(BatchedStoreListener.prototype, {constructor: {value: BatchedStoreListener}});
const batchedStoreListener = new BatchedStoreListener(binding, _fun7172);
value.listener = batchedStoreListener instanceof Object ? batchedStoreListener : value5;
return value;
function _fun7172() { // fn#7172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:883, offset: 0x00d106e2, size: 138 bytes, params: 1, frame: 17
var r1;
var value4;
var defaultImport;
let binding = env0_0;
let memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
const cachedResult = memoizedGetStateFromStores.getCachedResult(binding.props.childProps);
const value3 = cachedResult != null;
if (value3) {
binding = env0_0;
memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
memoizedGetStateFromStores.clear();
value4 = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
defaultImport = importDefault(628) /* metro dependency 628: shallowEqual */;
memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
r1 = defaultImport(Reflect.apply(memoizedGetStateFromStores, binding, [binding.props.childProps]),
cachedResult);
} else {
r1 = value3;
}
if (!r1) {
env0_0.forceUpdate();
}
}
function connectStores(a0, a1, a2) { // fn#7167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:510, offset: 0x00d10505, size: 56 bytes, params: 4, frame: 14
return a2 == null ? ((a0, a1) => {
var env0_0 = a0;
var env0_1 = a1;
return _fun7178;
})(a0, a1) : a2.forwardRef ? ((a0, a1) => {
var env0_0 = a0;
var env0_1 = a1;
return _fun7169;
})(a0, a1) : ((a0, a1) => {
var env0_0 = a0;
var env0_1 = a1;
return _fun7178;
})(a0, a1);
}
}
function getCachedResult(a0) { // fn#7164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:2688, owner: memoizeGetStateFromStores.getCachedResult, offset: 0x00d10437, size: 144 bytes, params: 2, frame: 16
const value2 = null;
return value2 == env0_1 || value2 == env0_2 ? value2 != env0_1 && value2 != env0_2 && (importDefault(628) /* metro dependency 628: shallowEqual */)(env0_1,
a0) ? env0_2 : value2 : (importDefault(628) /* metro dependency 628: shallowEqual */)(env0_1,
a0) || value2 != env0_1 && value2 != env0_2 && (importDefault(628) /* metro dependency 628: shallowEqual */)(env0_1,
a0) ? env0_2 : value2;
}
function value_7173() { // fn#7173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1163, offset: 0x00d1076c, size: 31 bytes, params: 1, frame: 11
this.listener.attach(env1_1);
}
function memoizedFunction(a0) { // fn#7165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:2785, owner: memoizeGetStateFromStores.memoizedFunction, offset: 0x00d104c7, size: 45 bytes, params: 2, frame: 14
return getCachedResult(a0) ?? env0_0(a0);
}
function value_7175() { // fn#7175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1330, offset: 0x00d107b2, size: 81 bytes, params: 1, frame: 15
const {forwardedConnectStoresRef, childProps} = this.props;
return ((Component) => <Component ref={forwardedConnectStoresRef} {...childProps} {...this.memoizedGetStateFromStores(childProps)} />)(env1_0);
}
function connectStoresWithRef(a0, a1) { // fn#7168, owner: connectStores.connectStoresWithRef, offset: 0x00d1053d, size: 23 bytes, params: 3, frame: 2
const env0_0 = a0;
const env0_1 = a1;
return _fun7169;
}
}
function connectStoresWithoutRef(a0, a1) { // fn#7177, owner: connectStores.connectStoresWithoutRef, offset: 0x00d1082d, size: 23 bytes, params: 3, frame: 2
const env0_0 = a0;
const env0_1 = a1;
return _fun7178;
}
function _fun7176(a0, a1) { // fn#7176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1524, offset: 0x00d10803, size: 42 bytes, params: 3, frame: 13
return ((Component) => <Component childProps={a0} forwardedConnectStoresRef={a1} />)(env0_2);
}
function _fun7169(a0) { // fn#7169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:611, offset: 0x00d10554, size: 135 bytes, params: 2, frame: 17
var environment;
const env0_0 = a0;
let value = environment.__proto__.__proto__;
const value3 = 'FluxContainer(' + getDisplayName(a0) + ')';
const binding = env2_8;
const Component = binding.Component;
_fun7170(Component).displayName = value3;
value = binding.forwardRef(_fun7176);
value.displayName = 'ForwardRef(' + value3 + ')';
return value;
}
}
function _fun7178(a0) { // fn#7178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1675, offset: 0x00d10844, size: 86 bytes, params: 2, frame: 16
var environment;
const env0_0 = a0;
let value = environment.__proto__.__proto__;
const value3 = 'FluxContainer(' + getDisplayName(a0) + ')';
const Component = env2_8.Component;
value = _fun7179(Component);
value.displayName = value3;
return value;
}
}
function _fun7170(a0) { // fn#7170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:661, offset: 0x00d105db, size: 114 bytes, params: 2, frame: 16
const closure = FluxContainer;
env3_7(closure, a0);
return env3_4(closure, [{key: 'componentDidMount', value: value_7173}, {key: 'componentWillUnmount',
value: function() {
this.listener.detach();
this.memoizedGetStateFromStores.clear();
}}, {key: 'render', value: value_7175}]);
}
function connectStoresWithoutRef(a0, a1) { // fn#7177, owner: connectStores.connectStoresWithoutRef, offset: 0x00d1082d, size: 23 bytes, params: 3, frame: 2
const env0_0 = a0;
const env0_1 = a1;
return _fun7178;
function _fun7178(a0) { // fn#7178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1675, offset: 0x00d10844, size: 86 bytes, params: 2, frame: 16
var environment;
const env0_0 = a0;
let value = environment.__proto__.__proto__;
const value3 = 'FluxContainer(' + getDisplayName(a0) + ')';
const Component = env2_8.Component;
value = _fun7179(Component);
value.displayName = value3;
return value;
function _fun7179(a0) { // fn#7179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1725, offset: 0x00d1089a, size: 114 bytes, params: 2, frame: 16
const FluxContainer_71802 = FluxContainer_7180;
env3_7(FluxContainer_71802, a0);
return env3_4(FluxContainer_71802, [{key: 'componentDidMount', value: value_7182}, {key: 'componentWillUnmount',
value: function() {
this.listener.detach();
this.memoizedGetStateFromStores.clear();
}}, {key: 'render', value: value_7184}]);
function FluxContainer_7180(a0) { // fn#7180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1737, offset: 0x00d1090c, size: 149 bytes, params: 2, frame: 19
let value = copyRestArgs(0, undefined);
let binding = env4_3;
binding(this, FluxContainer_7180);
const _callSuper_7158Binding = _callSuper_7158;
const items2 = [];
arraySpread(items2, value, 0, undefined);
value = _callSuper_7158Binding(this, FluxContainer_7180, items2);
value.memoizedGetStateFromStores = memoizeGetStateFromStores(require);
const BatchedStoreListener = (BatchedStoreListenerModule).BatchedStoreListener;
binding = env2_0;
const value5 = Object.create(BatchedStoreListener.prototype, {constructor: {value: BatchedStoreListener}});
const batchedStoreListener = new BatchedStoreListener(binding, _fun7181);
value.listener = batchedStoreListener instanceof Object ? batchedStoreListener : value5;
return value;
function _fun7181() { // fn#7181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1947, offset: 0x00d109a1, size: 126 bytes, params: 1, frame: 17
var r1;
var value4;
var defaultImport;
let binding = env0_0;
let memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
const cachedResult = memoizedGetStateFromStores.getCachedResult(binding.props);
const value3 = cachedResult != null;
if (value3) {
binding = env0_0;
memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
memoizedGetStateFromStores.clear();
value4 = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
defaultImport = importDefault(628) /* metro dependency 628: shallowEqual */;
memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
r1 = defaultImport(Reflect.apply(memoizedGetStateFromStores, binding, [binding.props]), cachedResult);
} else {
r1 = value3;
}
if (!r1) {
env0_0.forceUpdate();
}
}
function _fun7176(a0, a1) { // fn#7176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1524, offset: 0x00d10803, size: 42 bytes, params: 3, frame: 13
return ((Component) => <Component childProps={a0} forwardedConnectStoresRef={a1} />)(env0_2);
}
}
function _fun7179(a0) { // fn#7179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1725, offset: 0x00d1089a, size: 114 bytes, params: 2, frame: 16
const closure = FluxContainer_7180;
env3_7(closure, a0);
return env3_4(closure, [{key: 'componentDidMount', value: value_7182}, {key: 'componentWillUnmount',
value: function() {
this.listener.detach();
this.memoizedGetStateFromStores.clear();
}}, {key: 'render', value: value_7184}]);
}
function value_7182() { // fn#7182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:2205, offset: 0x00d1076c, size: 31 bytes, params: 1, frame: 11
this.listener.attach(env1_1);
}
function FluxContainer(a0) { // fn#7171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:673, offset: 0x00d1064d, size: 149 bytes, params: 2, frame: 19
let value = copyRestArgs(0, undefined);
let binding = env4_3;
binding(this, FluxContainer);
const _callSuper_7158Binding = _callSuper_7158;
const items2 = [];
arraySpread(items2, value, 0, undefined);
value = _callSuper_7158Binding(this, FluxContainer, items2);
value.memoizedGetStateFromStores = memoizeGetStateFromStores(require);
const BatchedStoreListener = (require(633) /* metro dependency 633: BatchedStoreListener */).BatchedStoreListener;
binding = env2_0;
const value5 = Object.create(BatchedStoreListener.prototype, {constructor: {value: BatchedStoreListener}});
const batchedStoreListener = new BatchedStoreListener(binding, _fun7172);
value.listener = batchedStoreListener instanceof Object ? batchedStoreListener : value5;
return value;
}
function value_7184() { // fn#7184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:2372, offset: 0x00d10a1f, size: 67 bytes, params: 1, frame: 14
const memoizedGetStateFromStores = this.memoizedGetStateFromStores;
let props = this.props;
const value = Reflect.apply(memoizedGetStateFromStores, this, [props]);
const binding = env1_0;
props = this.props;
return ((Component) => <Component {...value} />)(binding);
}
function value_7173() { // fn#7173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1163, offset: 0x00d1076c, size: 31 bytes, params: 1, frame: 11
this.listener.attach(env1_1);
}
}
function value_7175() { // fn#7175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1330, offset: 0x00d107b2, size: 81 bytes, params: 1, frame: 15
const {forwardedConnectStoresRef, childProps} = this.props;
return ((Component) => <Component ref={forwardedConnectStoresRef} {...childProps} {...this.memoizedGetStateFromStores(childProps)} />)(env1_0);
}
}
function FluxContainer_7180(a0) { // fn#7180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1737, offset: 0x00d1090c, size: 149 bytes, params: 2, frame: 19
let value = copyRestArgs(0, undefined);
let binding = env4_3;
binding(this, FluxContainer_7180);
const _callSuper_7158Binding = _callSuper_7158;
const items2 = [];
arraySpread(items2, value, 0, undefined);
value = _callSuper_7158Binding(this, FluxContainer_7180, items2);
value.memoizedGetStateFromStores = memoizeGetStateFromStores(require);
const BatchedStoreListener = (require(633) /* metro dependency 633: BatchedStoreListener */).BatchedStoreListener;
binding = env2_0;
const value5 = Object.create(BatchedStoreListener.prototype, {constructor: {value: BatchedStoreListener}});
const batchedStoreListener = new BatchedStoreListener(binding, _fun7181);
value.listener = batchedStoreListener instanceof Object ? batchedStoreListener : value5;
return value;
}
}
function value_7184() { // fn#7184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:2372, offset: 0x00d10a1f, size: 67 bytes, params: 1, frame: 14
const memoizedGetStateFromStores = this.memoizedGetStateFromStores;
let props = this.props;
const value = Reflect.apply(memoizedGetStateFromStores, this, [props]);
const binding = env1_0;
props = this.props;
return ((Component) => <Component {...value} />)(binding);
}
function _fun7172() { // fn#7172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:883, offset: 0x00d106e2, size: 138 bytes, params: 1, frame: 17
var r1;
var value4;
var defaultImport;
let binding = env0_0;
let memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
const cachedResult = memoizedGetStateFromStores.getCachedResult(binding.props.childProps);
const value3 = cachedResult != null;
if (value3) {
binding = env0_0;
memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
memoizedGetStateFromStores.clear();
value4 = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
defaultImport = importDefault(628) /* metro dependency 628: shallowEqual */;
memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
r1 = defaultImport(Reflect.apply(memoizedGetStateFromStores, binding, [binding.props.childProps]),
cachedResult);
} else {
r1 = value3;
}
if (!r1) {
env0_0.forceUpdate();
}
}
function _fun7181() { // fn#7181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:684:1947, offset: 0x00d109a1, size: 126 bytes, params: 1, frame: 17
var r1;
var value4;
var defaultImport;
let binding = env0_0;
let memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
const cachedResult = memoizedGetStateFromStores.getCachedResult(binding.props);
const value3 = cachedResult != null;
if (value3) {
binding = env0_0;
memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
memoizedGetStateFromStores.clear();
value4 = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
defaultImport = importDefault(628) /* metro dependency 628: shallowEqual */;
memoizedGetStateFromStores = binding.memoizedGetStateFromStores;
r1 = defaultImport(Reflect.apply(memoizedGetStateFromStores, binding, [binding.props]), cachedResult);
} else {
r1 = value3;
}
if (!r1) {
env0_0.forceUpdate();
}
}
global.__d(_fun7157, 634, [29, 6, 7, 15, 17, 18, 31, 33, 633, 628,
2]) /* metro module 634, dependencies: [29, 6, 7, 15, 17, 18, 31, 33, 633, 628, 2] */;
File diff suppressed because it is too large. Load diff
+16 -9
View File
@@ -1,32 +1,37 @@
/* Metro module 566; source: ../discord_common/js/packages/flux/index.tsx; dependencies: [567, 568, 627, 570, 634, 2, 635, 633, 632] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PersistedStoreModule from './PersistedStore.tsx'; /* Metro dependency 567 */
import * as StoreModule from './Store.tsx'; /* Metro dependency 568 */
import * as BatchedStoreListenerModule from './BatchedStoreListener.tsx'; /* Metro dependency 633 */
import * as DispatcherModule from './Dispatcher.tsx'; /* Metro dependency 635 */
function _fun6818(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:616:6, offset: 0x00d09759, size: 413 bytes, params: 8, frame: 25
var object2;
const closure = function() {
Store.initialize();
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(567) /* metro dependency 567: PersistedStore */;
let value = PersistedStoreModule;
const PersistedStore = value.PersistedStore;
const DeviceSettingsStore = value.DeviceSettingsStore;
const OfflineCacheStore = value.OfflineCacheStore;
const Store = (require(568) /* metro dependency 568: Store */).Store;
const Store = (StoreModule).Store;
value = require(627) /* metro dependency 627: createFetchStore */;
const createFetchStore = value.createFetchStore;
const NO_DATA = value.NO_DATA;
object2 = {Emitter: importDefault(570) /* metro dependency 570: Emitter */, Store: Store,
object = {Emitter: importDefault(570) /* metro dependency 570: Emitter */, Store: Store,
PersistedStore: PersistedStore, DeviceSettingsStore: DeviceSettingsStore, OfflineCacheStore: OfflineCacheStore,
connectStores: importDefault(634) /* metro dependency 634: connectStores */, initialize: closure};
Object.defineProperty(object2, 'initialized', {get: function() {
Object.defineProperty(object, 'initialized', {get: function() {
return Store.initialized;
}, set: undefined, enumerable: true, configurable: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/index.tsx');
exports.default = object2;
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/flux/index.tsx');
exports.default = object;
exports.NO_DATA = NO_DATA;
exports.Store = Store;
const Dispatcher = (require(635) /* metro dependency 635: Dispatcher */).Dispatcher;
const Dispatcher = (DispatcherModule).Dispatcher;
exports.Dispatcher = Dispatcher;
const BatchedStoreListener = (require(633) /* metro dependency 633: BatchedStoreListener */).BatchedStoreListener;
const BatchedStoreListener = (BatchedStoreListenerModule).BatchedStoreListener;
exports.BatchedStoreListener = BatchedStoreListener;
exports.createFetchStore = createFetchStore;
exports.statesWillNeverBeEqual = (require(632) /* metro dependency 632: useStateFromStores */).statesWillNeverBeEqual;
@@ -42,3 +47,5 @@ function _fun6818(global, require, importDefault, importAll, module, exports, de
};
}
global.__d(_fun6818, 566, [567, 568, 627, 570, 634, 2, 635, 633,
632]) /* metro module 566, dependencies: [567, 568, 627, 570, 634, 2, 635, 633, 632] */;
@@ -1,85 +1,91 @@
/* Metro module 632; source: ../discord_common/js/packages/flux/useStateFromStores.tsx; dependencies: [57, 31, 628, 633, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ShallowEqual from '../shallow-equal/shallowEqual.tsx'; /* Metro dependency 628 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as BatchedStoreListenerModule from './BatchedStoreListener.tsx'; /* Metro dependency 633 */
function _fun7139(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:6, offset: 0x00d0fcc5, size: 202 bytes, params: 8, frame: 20
const env0_0 = require;
const defaultAreStatesEqual = function(a0, a1) {
return a0 === a1;
};
const closure = useStateFromStores;
const useStateFromStores2 = useStateFromStores;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const value = require(31) /* metro dependency 31 */;
const env0_4 = value.useState;
const env0_5 = value.useRef;
const env0_6 = value.useInsertionEffect;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/useStateFromStores.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/flux/useStateFromStores.tsx');
exports.statesWillNeverBeEqual = function() {
return false;
};
exports.useStateFromStores = closure;
exports.useStateFromStores = useStateFromStores2;
exports.useStateFromStoresObject = useStateFromStoresObject;
exports.useStateFromStoresArray = function(a0, a1, a2) {
return useStateFromStores(a0, a1, a2, require(dependencyMap[2]).areArraysShallowEqual);
};
}
function useStateFromStores(a0, a1, a2) { // fn#7141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:212, offset: 0x00d0fd8f, size: 274 bytes, params: 4, frame: 21
var r0;
var moduleValue;
var value3;
const value = a3;
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const r8 = value !== undefined ? value : defaultAreStatesEqual;
const env0_3 = r8;
const value2 = useRef(null);
let current = value2.current;
if (current == null) {
value2.current = {stores: a0, areStatesEqual: r8, getStateFromStores: a1, prevDeps: undefined,
state: undefined};
}
current = value2.current;
const state = current.state;
if (a2 == null) {
value3 = a1();
r0 = state != null && r8(state, value3) ? state : value3;
} else {
moduleValue = require(628) /* metro dependency 628: shallowEqual */;
if (moduleValue.areArraysShallowEqual(a2, current.prevDeps)) {
r0 = state;
} else {
function useStateFromStores(a0, a1, a2) { // fn#7141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:212, offset: 0x00d0fd8f, size: 274 bytes, params: 4, frame: 21
var r0;
var moduleValue;
var value3;
const value = a3;
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const r8 = value !== undefined ? value : defaultAreStatesEqual;
const env0_3 = r8;
const value2 = useRef(null);
let current = value2.current;
if (current == null) {
value2.current = {stores: a0, areStatesEqual: r8, getStateFromStores: a1, prevDeps: undefined,
state: undefined};
}
current = value2.current;
const state = current.state;
if (a2 == null) {
value3 = a1();
r0 = state != null && r8(state, value3) ? state : value3;
} else {
moduleValue = require(628) /* metro dependency 628: shallowEqual */;
if (moduleValue.areArraysShallowEqual(a2, current.prevDeps)) {
r0 = state;
} else {
value3 = a1();
r0 = state != null && r8(state, value3) ? state : value3;
}
}
useInsertionEffect(function() {
current.getStateFromStores = require;
current.prevDeps = importDefault;
current.state = state;
});
const env0_6 = env0_3(useState(null), 2)[1];
useInsertionEffect(_fun7143, []);
return r0;
function _fun7143() { // fn#7143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:602, offset: 0x00d0fed2, size: 91 bytes, params: 1, frame: 14
var environment;
const value = environment.__proto__;
const BatchedStoreListener = (BatchedStoreListenerModule).BatchedStoreListener;
new BatchedStoreListener(env0_0, _fun7144).attach('useStateFromStores');
return _fun7145;
function _fun7144() { // fn#7144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:650, offset: 0x00d0ff2d, size: 64 bytes, params: 1, frame: 14
const stateFromStores = current.getStateFromStores();
if (!env1_3(current.state, stateFromStores)) {
current.state = stateFromStores;
env1_6({});
}
}
function _fun7145() { // fn#7145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:757, offset: 0x00d0ff6d, size: 19 bytes, params: 1, frame: 9
return env0_0.detach();
}
}
}
useInsertionEffect(function() {
current.getStateFromStores = require;
current.prevDeps = importDefault;
current.state = state;
});
const env0_6 = env0_3(useState(null), 2)[1];
useInsertionEffect(_fun7143, []);
return r0;
}
function useStateFromStoresObject(a0, a1, a2) { // fn#7147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:1007, offset: 0x00d0ff80, size: 46 bytes, params: 4, frame: 17
return useStateFromStores(a0, a1, a2, importDefault(628) /* metro dependency 628: shallowEqual */);
}
function _fun7143() { // fn#7143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:602, offset: 0x00d0fed2, size: 91 bytes, params: 1, frame: 14
var environment;
const value = environment.__proto__;
const BatchedStoreListener = (require(633) /* metro dependency 633: BatchedStoreListener */).BatchedStoreListener;
new BatchedStoreListener(env0_0, _fun7144).attach('useStateFromStores');
return _fun7145;
}
function _fun7144() { // fn#7144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:650, offset: 0x00d0ff2d, size: 64 bytes, params: 1, frame: 14
const stateFromStores = current.getStateFromStores();
if (!env1_3(current.state, stateFromStores)) {
current.state = stateFromStores;
env1_6({});
function useStateFromStoresObject(a0, a1, a2) { // fn#7147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:682:1007, offset: 0x00d0ff80, size: 46 bytes, params: 4, frame: 17
return useStateFromStores(a0, a1, a2, ShallowEqual);
}
}
global.__d(_fun7139, 632, [57, 31, 628, 633, 2]) /* metro module 632, dependencies: [57, 31, 628, 633, 2] */;
@@ -1,4 +1,9 @@
/* Metro module 14204; source: ../discord_common/js/packages/flux/useStateFromStoresPerformanceDebugging.tsx; dependencies: [57, 4, 587, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as LoggerModule from '../logger/Logger.tsx'; /* Metro dependency 4 */
import * as StorageModule from '../storage/Storage.tsx'; /* Metro dependency 587 */
function _fun107397(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:6, offset: 0x022fb04a, size: 459 bytes, params: 8, frame: 25
const env0_0 = require;
const _arrayLikeToArray_107400 = function(a0, a1) {
@@ -64,11 +69,10 @@ function _fun107397(global, require, importDefault, importAll, module, exports,
var value = a0;
return value !== undefined ? value : false;
};
const closure6 = flushViolators;
const flushViolators2 = flushViolators;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const Logger = (require(4) /* metro dependency 4: Logger */).Logger;
const Logger = (LoggerModule).Logger;
let logger = new Logger('useStateFromStores');
const env0_4 = closure();
let env0_5 = closure2();
@@ -77,11 +81,11 @@ function _fun107397(global, require, importDefault, importAll, module, exports,
logger = closure5();
var env0_9;
if (logger) {
env0_9 = global.setInterval(closure6, env0_4);
env0_9 = global.setInterval(flushViolators2, env0_4);
}
const Map = global.Map;
const map = new Map();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/flux/useStateFromStoresPerformanceDebugging.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/flux/useStateFromStoresPerformanceDebugging.tsx');
exports.getUseStateFromStoresExecutionWindowThresholdMs = closure;
exports.setUseStateFromStoresExecutionWindowThresholdMs = setUseStateFromStoresExecutionWindowThresholdMs;
exports.getUseStateFromStoresExecutionTimeWarningThresholdMs = closure2;
@@ -106,391 +110,397 @@ function _fun107397(global, require, importDefault, importAll, module, exports,
exports.setUseStateFromStoresDebuggingEnabled = setUseStateFromStoresDebuggingEnabled;
exports.getUseStateFromStoresHookInfo = getUseStateFromStoresHookInfo;
exports.trackGetStateFromStoresPerformance = trackGetStateFromStoresPerformance;
}
function _createForOfIteratorHelperLoose_107398(a0, a1) { // fn#107398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:112, offset: 0x022fb215, 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)) {
function _createForOfIteratorHelperLoose_107398(a0, a1) { // fn#107398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:112, offset: 0x022fb215, 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);
}
return _fun107399;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_107400(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') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun107399;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_107400(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
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_107400(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun107399;
}
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 hasExceededThreshold(a0) { // fn#107406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:1751, offset: 0x022fb3d5, size: 94 bytes, params: 2, frame: 6
var r1;
var r0;
const value = a0.name !== 'anonymous';
if (value) {
r1 = env0_7 === '' || a0.name === env0_7;
r1 = r1 && (a0.execCount > env0_6 || a0.execTime > env0_5);
r0 = r1;
} else {
r0 = value;
}
return r0;
}
function flushViolators() { // fn#107407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:1866, offset: 0x022fb433, size: 228 bytes, params: 1, frame: 21
var r3;
var r1;
var r2;
var value5;
var value6;
var hasExceededThreshold2;
var value7;
var value8;
var binding;
var log;
var value11;
var value12;
var property;
var value13;
const value2 = _createForOfIteratorHelperLoose_107398(env0_10);
const value3 = value2();
let done = value3.done;
const value4 = false;
if (done) {
r1 = value4;
} else {
r3 = value3;
reducibleLoop1: while (true) {
value5 = r3.value;
value6 = env0_2(value5, 2);
value6[0];
hasExceededThreshold2 = hasExceededThreshold(value6[1]);
value7 = true;
if (hasExceededThreshold2) {
r1 = value7;
break reducibleLoop1;
}
value8 = value2();
done = value8.done;
if (done) {
r1 = value4;
break reducibleLoop1;
}
r3 = value8;
continue reducibleLoop1;
}
}
reducibleJoin7: while (true) {
reducibleJoin6: while (true) {
if (r1) {
break reducibleJoin6;
}
if (env0_7 !== '') {
break reducibleJoin6;
}
binding = env0_3;
log = binding.log;
Reflect.apply(log, binding, ['No violators found']);
break reducibleJoin7;
}
printViolators();
break reducibleJoin7;
}
const value9 = _createForOfIteratorHelperLoose_107398(env0_10);
const value10 = value9();
done = value10.done;
if (!done) {
r2 = value10;
reducibleLoop8: while (true) {
value11 = r2.value;
value12 = env0_2(value11, 2);
value12[0];
property = value12[1];
property.warned = value4;
property.execTime = 0;
property.execCount = 0;
value13 = value9();
done = value13.done;
if (done) {
break reducibleLoop8;
}
r2 = value13;
continue reducibleLoop8;
}
}
}
function printViolators() { // fn#107408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:2272, offset: 0x022fb517, size: 577 bytes, params: 1, frame: 37
var r3;
var r19;
var value10;
var value11;
var property;
var property2;
var value12;
var value13;
var hasExceededThreshold2;
var value14;
var execTime;
var toFixed;
var value15;
var value16;
var execCount;
var value17;
var value18;
var value19;
const value = a0;
const value2 = a1;
const value3 = a2;
const value4 = a3;
const r18 = value !== undefined ? value : 34;
const r17 = value2 !== undefined ? value2 : 20;
const r16 = value3 !== undefined ? value3 : 20;
const r5 = value4 !== undefined ? value4 : r18 + r17 + r16 + 6;
let binding = env0_3;
let log = binding.log;
Reflect.apply(log, binding, ['|'.padEnd(r5, '-') + '|']);
binding = env0_3;
binding.log('| Consumers of `useStateFromStores` exceeding warning thresholds:'.padEnd(r5, ' ') + '|');
binding = env0_3;
binding.log('|'.padEnd(r5, '-') + '|');
binding = env0_3;
binding.log('| ' + 'Function/Component Name'.padEnd(r18, ' ') + '| ' + 'Total Exec Time'.padEnd(r17,
' ') + '| ' + 'Total Exec Count'.padEnd(r16, ' ') + '|');
binding = env0_3;
binding.log('|'.padEnd(r5, '-') + '|');
const value8 = _createForOfIteratorHelperLoose_107398(env0_10);
const value9 = value8();
let done = value9.done;
if (!done) {
r3 = value9;
while (true) {
value10 = r3.value;
value11 = env0_2(value10, 2);
property = value11[0];
property2 = value11[1];
value12 = env0_7 !== '';
if (value12) {
value13 = property === env0_7;
r19 = value13;
} else {
r19 = value12;
}
if (r19) {
continue;
}
hasExceededThreshold2 = hasExceededThreshold(property2);
r19 = hasExceededThreshold2;
if (!r19) {
continue;
}
binding = env0_3;
log = binding.log;
value14 = property.padEnd(r18, ' ');
execTime = property2.execTime;
toFixed = execTime.toFixed;
value15 = Reflect.apply(toFixed, execTime, [2]) + 'ms';
value16 = value15.padEnd(r17, ' ');
execCount = property2.execCount;
value17 = execCount.toString();
value18 = value17.padEnd(r16, ' ');
Reflect.apply(log, binding, ['| ' + value14 + '| ' + value16 + '| ' + value18 + '|']);
value19 = value8();
done = value19.done;
if (done) {
break;
}
r3 = value19;
continue;
}
}
binding = env0_3;
binding.log('|'.padEnd(r5, '-') + '|');
}
function setUseStateFromStoresExecutionWindowThresholdMs(a0) { // fn#107409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:3162, offset: 0x022fb758, size: 105 bytes, params: 2, frame: 15
env0_4 = a0;
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
Storage.set('useStateFromStoresExecutionWindowThresholdMs', a0);
global.clearInterval(env0_9);
if (env0_8) {
env0_9 = global.setInterval(flushViolators, env0_4);
}
}
function setUseStateFromStoresDebuggingEnabled(a0) { // fn#107413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:4335, offset: 0x022fb86c, size: 111 bytes, params: 2, frame: 15
env0_8 = a0;
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
Storage.set('useStateFromStoresDebuggingEnabled', a0);
if (env0_8) {
env0_9 = global.setInterval(flushViolators, env0_4);
} else {
global.clearInterval(env0_9);
}
}
function getUseStateFromStoresHookInfo() { // fn#107414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:4546, offset: 0x022fb8db, size: 243 bytes, params: 1, frame: 22
var r11;
var r10;
var r3;
var r0;
var Error;
var value2;
var error;
var stack;
var split;
var value5;
var length;
var value6;
var value7;
var property;
var trim;
var value8;
var value9;
var binding;
var value10;
if (env0_8) {
Error = global.Error;
value2 = Object.create(Error.prototype, {constructor: {value: Error}});
error = new Error();
stack = (error instanceof Object ? error : value2).stack;
reducibleJoin4: while (true) {
if (stack == null) {
r11 = undefined;
break reducibleJoin4;
}
split = stack.split;
value5 = Reflect.apply(split, stack, ['\n']);
r11 = value5;
break reducibleJoin4;
}
reducibleJoin6: while (true) {
if (r11 != null) {
break reducibleJoin6;
}
r11 = [];
break reducibleJoin6;
}
length = r11.length;
value6 = 3;
value7 = 'unknown';
if (value6 < length) {
r10 = value6;
reducibleLoop7: while (true) {
property = r11[r10];
trim = property.trim;
value8 = Reflect.apply(trim, property, []);
split = value8.split;
property = Reflect.apply(split, value8, [' '])[1];
if (property !== 'useStateFromStores') {
reducibleJoin10: while (true) {
if (property === 'useStateFromStoresArray') {
break reducibleJoin10;
}
if (property !== 'useStateFromStoresObject') {
r3 = property;
break reducibleLoop7;
}
break reducibleJoin10;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_107400(a0, value);
r6 = value;
} else {
r6 = value;
}
}
value9 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
length = r11.length;
if (value9 < length) {
r10 = value9;
continue reducibleLoop7;
}
r3 = value7;
break reducibleLoop7;
r5 = r6;
}
} else {
r3 = value7;
r5 = value;
}
binding = env0_10;
value10 = binding.get(r3);
reducibleJoin13: while (true) {
if (value10 != null) {
r0 = value10;
break reducibleJoin13;
if (r5) {
if (r5) {
}
r0 = {'name': null, 'execCount': 0, 'execTime': 0, 'warned': false, name: r3};
break reducibleJoin13;
return _fun107399;
}
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 _fun107399() { // fn#107399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:683, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
function hasExceededThreshold(a0) { // fn#107406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:1751, offset: 0x022fb3d5, size: 94 bytes, params: 2, frame: 6
var r1;
var r0;
const value = a0.name !== 'anonymous';
if (value) {
r1 = env0_7 === '' || a0.name === env0_7;
r1 = r1 && (a0.execCount > env0_6 || a0.execTime > env0_5);
r0 = r1;
} else {
r0 = value;
}
binding = env0_10;
binding.set(r3, r0);
return r0;
}
}
function trackGetStateFromStoresPerformance(a0, a1) { // fn#107415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:5024, offset: 0x022fb9ce, size: 212 bytes, params: 3, frame: 25
var performance;
var value2;
var value3;
var execCount;
if (env0_8) {
if (a0 == null) {
return a1();
function flushViolators() { // fn#107407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:1866, offset: 0x022fb433, size: 228 bytes, params: 1, frame: 21
var r3;
var r1;
var r2;
var value5;
var value6;
var hasExceededThreshold2;
var value7;
var value8;
var binding;
var log;
var value11;
var value12;
var property;
var value13;
const value2 = _createForOfIteratorHelperLoose_107398(env0_10);
const value3 = value2();
let done = value3.done;
const value4 = false;
if (done) {
r1 = value4;
} else {
r3 = value3;
reducibleLoop1: while (true) {
value5 = r3.value;
value6 = Module00057(value5, 2);
value6[0];
hasExceededThreshold2 = hasExceededThreshold(value6[1]);
value7 = true;
if (hasExceededThreshold2) {
r1 = value7;
break reducibleLoop1;
}
value8 = value2();
done = value8.done;
if (done) {
r1 = value4;
break reducibleLoop1;
}
r3 = value8;
continue reducibleLoop1;
}
}
performance = global.performance;
value2 = performance.now();
value3 = a1();
performance = global.performance;
a0.execTime = a0.execTime + (performance.now() - value2);
execCount = a0.execCount;
a0.execCount = typeof execCount === 'bigint' ? execCount + 1n : +execCount + 1;
if (a0.warned === false) {
if (hasExceededThreshold(a0)) {
a0.warned = true;
env0_3.log('' + a0.name + ' cumulatively used ' + a0.execTime + 'ms of execution time and ran ' + a0.execCount + ' times.');
reducibleJoin7: while (true) {
reducibleJoin6: while (true) {
if (r1) {
break reducibleJoin6;
}
if (env0_7 !== '') {
break reducibleJoin6;
}
binding = env0_3;
log = binding.log;
Reflect.apply(log, binding, ['No violators found']);
break reducibleJoin7;
}
printViolators();
break reducibleJoin7;
}
const value9 = _createForOfIteratorHelperLoose_107398(env0_10);
const value10 = value9();
done = value10.done;
if (!done) {
r2 = value10;
reducibleLoop8: while (true) {
value11 = r2.value;
value12 = Module00057(value11, 2);
value12[0];
property = value12[1];
property.warned = value4;
property.execTime = 0;
property.execCount = 0;
value13 = value9();
done = value13.done;
if (done) {
break reducibleLoop8;
}
r2 = value13;
continue reducibleLoop8;
}
}
return value3;
}
return a1();
function printViolators() { // fn#107408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:2272, offset: 0x022fb517, size: 577 bytes, params: 1, frame: 37
var r3;
var r19;
var value10;
var value11;
var property;
var property2;
var value12;
var value13;
var hasExceededThreshold2;
var value14;
var execTime;
var toFixed;
var value15;
var value16;
var execCount;
var value17;
var value18;
var value19;
const value = a0;
const value2 = a1;
const value3 = a2;
const value4 = a3;
const r18 = value !== undefined ? value : 34;
const r17 = value2 !== undefined ? value2 : 20;
const r16 = value3 !== undefined ? value3 : 20;
const r5 = value4 !== undefined ? value4 : r18 + r17 + r16 + 6;
let binding = env0_3;
let log = binding.log;
Reflect.apply(log, binding, ['|'.padEnd(r5, '-') + '|']);
binding = env0_3;
binding.log('| Consumers of `useStateFromStores` exceeding warning thresholds:'.padEnd(r5, ' ') + '|');
binding = env0_3;
binding.log('|'.padEnd(r5, '-') + '|');
binding = env0_3;
binding.log('| ' + 'Function/Component Name'.padEnd(r18, ' ') + '| ' + 'Total Exec Time'.padEnd(r17,
' ') + '| ' + 'Total Exec Count'.padEnd(r16, ' ') + '|');
binding = env0_3;
binding.log('|'.padEnd(r5, '-') + '|');
const value8 = _createForOfIteratorHelperLoose_107398(env0_10);
const value9 = value8();
let done = value9.done;
if (!done) {
r3 = value9;
while (true) {
value10 = r3.value;
value11 = Module00057(value10, 2);
property = value11[0];
property2 = value11[1];
value12 = env0_7 !== '';
if (value12) {
value13 = property === env0_7;
r19 = value13;
} else {
r19 = value12;
}
if (r19) {
continue;
}
hasExceededThreshold2 = hasExceededThreshold(property2);
r19 = hasExceededThreshold2;
if (!r19) {
continue;
}
binding = env0_3;
log = binding.log;
value14 = property.padEnd(r18, ' ');
execTime = property2.execTime;
toFixed = execTime.toFixed;
value15 = Reflect.apply(toFixed, execTime, [2]) + 'ms';
value16 = value15.padEnd(r17, ' ');
execCount = property2.execCount;
value17 = execCount.toString();
value18 = value17.padEnd(r16, ' ');
Reflect.apply(log, binding, ['| ' + value14 + '| ' + value16 + '| ' + value18 + '|']);
value19 = value8();
done = value19.done;
if (done) {
break;
}
r3 = value19;
continue;
}
}
binding = env0_3;
binding.log('|'.padEnd(r5, '-') + '|');
}
function setUseStateFromStoresExecutionWindowThresholdMs(a0) { // fn#107409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:3162, offset: 0x022fb758, size: 105 bytes, params: 2, frame: 15
env0_4 = a0;
const Storage = (StorageModule).Storage;
Storage.set('useStateFromStoresExecutionWindowThresholdMs', a0);
global.clearInterval(env0_9);
if (env0_8) {
env0_9 = global.setInterval(flushViolators, env0_4);
}
}
function setUseStateFromStoresDebuggingEnabled(a0) { // fn#107413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:4335, offset: 0x022fb86c, size: 111 bytes, params: 2, frame: 15
env0_8 = a0;
const Storage = (StorageModule).Storage;
Storage.set('useStateFromStoresDebuggingEnabled', a0);
if (env0_8) {
env0_9 = global.setInterval(flushViolators, env0_4);
} else {
global.clearInterval(env0_9);
}
}
function getUseStateFromStoresHookInfo() { // fn#107414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:4546, offset: 0x022fb8db, size: 243 bytes, params: 1, frame: 22
var r11;
var r10;
var r3;
var r0;
var Error;
var value2;
var error;
var stack;
var split;
var value5;
var length;
var value6;
var value7;
var property;
var trim;
var value8;
var value9;
var binding;
var value10;
if (env0_8) {
Error = global.Error;
value2 = Object.create(Error.prototype, {constructor: {value: Error}});
error = new Error();
stack = (error instanceof Object ? error : value2).stack;
reducibleJoin4: while (true) {
if (stack == null) {
r11 = undefined;
break reducibleJoin4;
}
split = stack.split;
value5 = Reflect.apply(split, stack, ['\n']);
r11 = value5;
break reducibleJoin4;
}
reducibleJoin6: while (true) {
if (r11 != null) {
break reducibleJoin6;
}
r11 = [];
break reducibleJoin6;
}
length = r11.length;
value6 = 3;
value7 = 'unknown';
if (value6 < length) {
r10 = value6;
reducibleLoop7: while (true) {
property = r11[r10];
trim = property.trim;
value8 = Reflect.apply(trim, property, []);
split = value8.split;
property = Reflect.apply(split, value8, [' '])[1];
if (property !== 'useStateFromStores') {
reducibleJoin10: while (true) {
if (property === 'useStateFromStoresArray') {
break reducibleJoin10;
}
if (property !== 'useStateFromStoresObject') {
r3 = property;
break reducibleLoop7;
}
break reducibleJoin10;
}
}
value9 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
length = r11.length;
if (value9 < length) {
r10 = value9;
continue reducibleLoop7;
}
r3 = value7;
break reducibleLoop7;
}
} else {
r3 = value7;
}
binding = env0_10;
value10 = binding.get(r3);
reducibleJoin13: while (true) {
if (value10 != null) {
r0 = value10;
break reducibleJoin13;
}
r0 = {'name': null, 'execCount': 0, 'execTime': 0, 'warned': false, name: r3};
break reducibleJoin13;
}
binding = env0_10;
binding.set(r3, r0);
return r0;
}
}
function trackGetStateFromStoresPerformance(a0, a1) { // fn#107415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14401:5024, offset: 0x022fb9ce, size: 212 bytes, params: 3, frame: 25
var performance;
var value2;
var value3;
var execCount;
if (env0_8) {
if (a0 == null) {
return a1();
}
performance = global.performance;
value2 = performance.now();
value3 = a1();
performance = global.performance;
a0.execTime = a0.execTime + (performance.now() - value2);
execCount = a0.execCount;
a0.execCount = typeof execCount === 'bigint' ? execCount + 1n : +execCount + 1;
if (a0.warned === false) {
if (hasExceededThreshold(a0)) {
a0.warned = true;
env0_3.log('' + a0.name + ' cumulatively used ' + a0.execTime + 'ms of execution time and ran ' + a0.execCount + ' times.');
}
}
return value3;
}
return a1();
}
}
global.__d(_fun107397, 14204, [57, 4, 587, 2]) /* metro module 14204, dependencies: [57, 4, 587, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,103 +1,106 @@
/* Metro module 565; source: ../discord_common/js/packages/http-utils/V6OrEarlierAPIError.tsx; dependencies: [6, 7, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun6814(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:615:6, offset: 0x00d094bd, size: 124 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const value = _fun6815();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/http-utils/V6OrEarlierAPIError.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/http-utils/V6OrEarlierAPIError.tsx');
exports.APIError = value;
}
function _fun6815() { // fn#6815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:615:122, offset: 0x00d09539, size: 55 bytes, params: 1, frame: 14
return env0_1(APIError_6816, [{key: 'getFieldMessage', value: function(a0) {
var value = null;
return value != this.fields[a0] ? this.fields[a0][0] : value;
}}]);
}
function APIError_6816(a0, a1) { // fn#6816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:615:143, offset: 0x00d09570, size: 446 bytes, params: 3, frame: 19
var r9;
var r1;
var body;
var object2;
var Array;
var isArray;
let value = a2;
const value2 = undefined;
const r8 = value !== value2 ? value : 'An unexpected error occurred.';
value = environment.__proto__;
env1_0(this, APIError_6816);
if (typeof a0 === 'string') {
r1 = {message: a0, code: a1};
} else {
body = a0.body;
value = null;
if (value != body) {
body = a0.body;
if (value == body.message) {
body = a0.body;
r9 = value != body ? global.Object.values(body)[0] : value;
r1 = {message: value != r9 ? r9[0] : value2, fields: body, status: a0.status};
function _fun6815() { // fn#6815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:615:122, offset: 0x00d09539, size: 55 bytes, params: 1, frame: 14
return CreateClass(APIError_6816, [{key: 'getFieldMessage', value: function(a0) {
var value = null;
return value != this.fields[a0] ? this.fields[a0][0] : value;
}}]);
function APIError_6816(a0, a1) { // fn#6816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:615:143, offset: 0x00d09570, size: 446 bytes, params: 3, frame: 19
var r9;
var r1;
var body;
var object;
var Array;
var isArray;
let value = a2;
const value2 = undefined;
const r8 = value !== value2 ? value : 'An unexpected error occurred.';
value = environment.__proto__;
env1_0(this, APIError_6816);
if (typeof a0 === 'string') {
r1 = {message: a0, code: a1};
} else {
Array = global.Array;
isArray = Array.isArray;
body = a0.body;
if (Reflect.apply(isArray, Array, [body.message])) {
value = null;
if (value != body) {
body = a0.body;
r9 = value != body ? global.Object.values(body)[0] : value;
r1 = {message: value != r9 ? r9[0] : value2, fields: body, status: a0.status};
} else {
body = a0.body;
if (value == body.code) {
object2 = {};
if (value == body.message) {
body = a0.body;
object2.message = body.message;
body = a0.body;
object2.code = body.code;
body = a0.body;
object2.retryAfter = body.retry_after;
object2.status = a0.status;
r1 = object2;
r9 = value != body ? global.Object.values(body)[0] : value;
r1 = {message: value != r9 ? r9[0] : value2, fields: body, status: a0.status};
} else {
Array = global.Array;
isArray = Array.isArray;
body = a0.body;
if (Reflect.apply(isArray, Array, [body.code])) {
if (Reflect.apply(isArray, Array, [body.message])) {
body = a0.body;
r9 = value != body ? global.Object.values(body)[0] : value;
r1 = {message: value != r9 ? r9[0] : value2, fields: body, status: a0.status};
} else {
object2 = {};
body = a0.body;
object2.message = body.message;
body = a0.body;
object2.code = body.code;
body = a0.body;
object2.retryAfter = body.retry_after;
object2.status = a0.status;
r1 = object2;
if (value == body.code) {
object = {};
body = a0.body;
object.message = body.message;
body = a0.body;
object.code = body.code;
body = a0.body;
object.retryAfter = body.retry_after;
object.status = a0.status;
r1 = object;
} else {
Array = global.Array;
isArray = Array.isArray;
body = a0.body;
if (Reflect.apply(isArray, Array, [body.code])) {
body = a0.body;
r9 = value != body ? global.Object.values(body)[0] : value;
r1 = {message: value != r9 ? r9[0] : value2, fields: body, status: a0.status};
} else {
object = {};
body = a0.body;
object.message = body.message;
body = a0.body;
object.code = body.code;
body = a0.body;
object.retryAfter = body.retry_after;
object.status = a0.status;
r1 = object;
}
}
}
}
} else {
r1 = {status: a0.status};
}
}
} else {
r1 = {status: a0.status};
const message = r1.message;
let code = r1.code;
const retryAfter = r1.retryAfter;
const fields = r1.fields;
const status = r1.status;
this.message = message || r8;
this.retryAfter = retryAfter;
code = !code ? -1 : code;
this.code = code;
this.fields = fields || ({});
this.status = status;
const Error = global.Error;
this.error = new Error();
return value2;
}
}
const message = r1.message;
let code = r1.code;
const retryAfter = r1.retryAfter;
const fields = r1.fields;
const status = r1.status;
this.message = message || r8;
this.retryAfter = retryAfter;
code = !code ? -1 : code;
this.code = code;
this.fields = fields || ({});
this.status = status;
const Error = global.Error;
this.error = new Error();
return value2;
}
global.__d(_fun6814, 565, [6, 7, 2]) /* metro module 565, dependencies: [6, 7, 2] */;
@@ -1,233 +1,189 @@
/* Metro module 562; source: ../discord_common/js/packages/http-utils/V8APIError.tsx; dependencies: [6, 7, 15, 17, 18, 162, 57, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Module00162 from '../../../../../by-id/module-00162.js'; /* Metro dependency 162 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun6788(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:6, offset: 0x00d089cc, size: 317 bytes, params: 8, frame: 19
const convertStringArrayToSkemaErrorItems = function(a0) {
return a0.map(_fun6793);
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
let value = importDefault(162) /* metro dependency 162 */;
const env0_5 = importDefault(57) /* metro dependency 57 */;
let value = Module00162;
const Error = global.Error;
value = value(Error);
value = _fun6795(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/http-utils/V8APIError.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/http-utils/V8APIError.tsx');
exports.INVALID_FORM_BODY_ERROR_CODE = 50035;
exports.ROOT_FORM_ERRORS_KEY = '__root_errors';
exports.CaptchaTypes = {HCAPTCHA: 'hcaptcha', RECAPTCHA: 'recaptcha', RECAPTCHA_ENTERPRISE: 'recaptcha_enterprise',
TURNSTILE: 'turnstile'};
exports.APIError = value;
}
function _isNativeReflectConstruct_6789() { // fn#6789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:168, offset: 0x00d08b09, size: 94 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_6789_isNativeReflectConstruct = function() {
return !!result;
})();
}
function convertStringArrayToSkemaErrorItems(a0) { // fn#6792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:527, offset: 0x00d08b67, size: 22 bytes, params: 2, frame: 11
return a0.map(function(a0) {
return {code: 'UNKNOWN', message: a0};
});
}
function convertOldFormError(a0) { // fn#6794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:623, offset: 0x00d08b90, size: 133 bytes, params: 2, frame: 22
var r2;
var property;
var value4;
var property2;
var object3;
var value5;
const object4 = {};
const Object = global.Object;
const value = Object.entries(a0);
let length = value.length;
const value2 = 0;
if (value2 < length) {
r2 = value2;
while (true) {
property = value[r2];
value4 = env0_5(property, 2);
property = value4[value2];
property2 = value4[1];
if (property !== '_misc') {
object3 = {};
object3._errors = convertStringArrayToSkemaErrorItems(property2);
object4[property] = object3;
} else {
object4._errors = convertStringArrayToSkemaErrorItems(property2);
}
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
length = value.length;
if (value5 < length) {
r2 = value5;
continue;
}
break;
function _isNativeReflectConstruct_6789() { // fn#6789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:168, offset: 0x00d08b09, size: 94 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_6789_isNativeReflectConstruct = function() {
return !!result;
})();
}
return object4;
}
function _fun6795(a0) { // fn#6795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:892, offset: 0x00d08c15, size: 208 bytes, params: 2, frame: 16
const closure = APIError;
env0_4(closure, a0);
return env0_1(closure, [{key: 'hasFieldErrors', value: function() {
var r0;
function convertStringArrayToSkemaErrorItems(a0) { // fn#6792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:527, offset: 0x00d08b67, size: 22 bytes, params: 2, frame: 11
return a0.map(function(a0) {
return {code: 'UNKNOWN', message: a0};
});
}
function convertOldFormError(a0) { // fn#6794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:623, offset: 0x00d08b90, size: 133 bytes, params: 2, frame: 22
var r2;
var property;
var value = this.errors != null;
if (value) {
property = global.Object;
property = property.keys(this.errors).length;
r0 = property > 0;
} else {
r0 = value;
}
return r0;
}}, {key: 'getFieldErrors', value: value_6798}, {key: 'getAllFieldErrors', value: function() {
return this.getAllFieldErrorsUnder(this.errors);
}}, {key: 'getAllFieldErrorsUnder', value: function(a0) {
var r3;
var env0_0 = this;
var object = {};
var env0_1 = object;
var value = undefined;
r3 = a0 == null ? value : a0._errors;
if (r3 != null && r3.length > 0) {
object.__root_errors = r3;
}
if (value !== a0) {
global.Object.entries(a0).forEach(_fun6801);
}
return object;
}}, {key: 'getFirstFieldErrorMessage', value: function(a0) {
var value = this.getFieldErrors(a0);
var value2 = null;
return value2 == value || value.length < 1 ? value2 : value[0].message;
}}, {key: 'getAnyErrorMessage', value: function() {
var r0;
r0 = this.getAnyErrorMessageAndField()?.error;
r0 = r0 ?? this.message;
return r0;
}}, {key: 'getAnyErrorMessageAndField', value: function() {
var r4;
var r6;
var value4;
var property2;
var property = this.errors;
var value = null;
if (value != property) {
r4 = value;
r6 = property;
loopExit1: while (true) {
if (value != r6._errors) {
return {fieldName: r4, error: r6._errors[0].message};
var object;
var value5;
const object2 = {};
const Object = global.Object;
const value = Object.entries(a0);
let length = value.length;
const value2 = 0;
if (value2 < length) {
r2 = value2;
while (true) {
property = value[r2];
value4 = Module00057(property, 2);
property = value4[value2];
property2 = value4[1];
if (property !== '_misc') {
object = {};
object._errors = convertStringArrayToSkemaErrorItems(property2);
object2[property] = object;
} else {
object2._errors = convertStringArrayToSkemaErrorItems(property2);
}
property = global.Object;
property = property.keys(r6)[0];
property2 = r6[property];
if (value != property2) {
r4 = property;
r6 = property2;
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
length = value.length;
if (value5 < length) {
r2 = value5;
continue;
}
break loopExit1;
break;
}
}
return value;
}}]);
}
return object2;
}
function APIError(a0, a1) { // fn#6796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:904, offset: 0x00d08ce5, size: 559 bytes, params: 3, frame: 26
var r3;
var r2;
var body;
var Array;
var object;
let value = a2;
const value2 = undefined;
let r0 = value !== value2 ? value : 'An unexpected error occurred.';
value = environment.__proto__;
env1_0(this, APIError);
if (typeof a0 === 'string') {
r2 = {message: a0, code: a1};
} else {
body = a0.body;
if (body == null) {
r2 = {status: a0.status};
} else {
body = a0.body;
if (a0.body.message == null) {
if (body == null) {
object = {};
object.status = a0.status;
object.code = 50035;
object.errors = convertOldFormError(body);
r3 = object;
} else if ('captcha_key' in body) {
r3 = {code: -1, captchaFields: body, status: a0.status,
message: body.captcha_key.length > 0 ? body.captcha_key[0] : value2};
} else {
object = {};
object.status = a0.status;
object.code = 50035;
object.errors = convertOldFormError(body);
r3 = object;
}
r2 = r3;
function _fun6795(a0) { // fn#6795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:892, offset: 0x00d08c15, size: 208 bytes, params: 2, frame: 16
const APIError2 = APIError;
Inherits(APIError2, a0);
return CreateClass(APIError2, [{key: 'hasFieldErrors', value: function() {
var r0;
var property;
var value = this.errors != null;
if (value) {
property = global.Object;
property = property.keys(this.errors).length;
r0 = property > 0;
} else {
Array = global.Array;
if (Array.isArray(a0.body.message)) {
if (body == null) {
object = {};
object.status = a0.status;
object.code = 50035;
object.errors = convertOldFormError(body);
r3 = object;
} else if ('captcha_key' in body) {
r3 = {code: -1, captchaFields: body, status: a0.status,
message: body.captcha_key.length > 0 ? body.captcha_key[0] : value2};
} else {
object = {};
object.status = a0.status;
object.code = 50035;
object.errors = convertOldFormError(body);
r3 = object;
r0 = value;
}
return r0;
}}, {key: 'getFieldErrors', value: value_6798}, {key: 'getAllFieldErrors', value: function() {
return this.getAllFieldErrorsUnder(this.errors);
}}, {key: 'getAllFieldErrorsUnder', value: function(a0) {
var r3;
var env0_0 = this;
var object = {};
var env0_1 = object;
var value = undefined;
r3 = a0 == null ? value : a0._errors;
if (r3 != null && r3.length > 0) {
object.__root_errors = r3;
}
if (value !== a0) {
global.Object.entries(a0).forEach(_fun6801);
}
return object;
}}, {key: 'getFirstFieldErrorMessage', value: function(a0) {
var value = this.getFieldErrors(a0);
var value2 = null;
return value2 == value || value.length < 1 ? value2 : value[0].message;
}}, {key: 'getAnyErrorMessage', value: function() {
var r0;
r0 = this.getAnyErrorMessageAndField()?.error;
r0 = r0 ?? this.message;
return r0;
}}, {key: 'getAnyErrorMessageAndField', value: function() {
var r4;
var r6;
var property2;
var property = this.errors;
var value = null;
if (value != property) {
r4 = value;
r6 = property;
loopExit1: while (true) {
if (value != r6._errors) {
return {fieldName: r4, error: r6._errors[0].message};
}
r2 = r3;
} else if (a0.body.code == null) {
r2 = {message: body.message, code: body.code, retryAfter: body.retry_after, errors: body.errors,
status: a0.status};
property = global.Object;
property = property.keys(r6)[0];
property2 = r6[property];
if (value != property2) {
r4 = property;
r6 = property2;
continue;
}
break loopExit1;
}
}
return value;
}}]);
function APIError(a0, a1) { // fn#6796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:904, offset: 0x00d08ce5, size: 559 bytes, params: 3, frame: 26
var r3;
var r2;
var body;
var Array;
var object;
let value = a2;
const value2 = undefined;
let r0 = value !== value2 ? value : 'An unexpected error occurred.';
value = environment.__proto__;
env1_0(this, APIError);
if (typeof a0 === 'string') {
r2 = {message: a0, code: a1};
} else {
body = a0.body;
if (body == null) {
r2 = {status: a0.status};
} else {
Array = global.Array;
if (Array.isArray(a0.body.code)) {
body = a0.body;
if (a0.body.message == null) {
if (body == null) {
object = {};
object.status = a0.status;
@@ -246,31 +202,192 @@ function APIError(a0, a1) { // fn#6796, source: /ci/build/discord/discord/discor
}
r2 = r3;
} else {
r2 = {message: body.message, code: body.code, retryAfter: body.retry_after, errors: body.errors,
status: a0.status};
Array = global.Array;
if (Array.isArray(a0.body.message)) {
if (body == null) {
object = {};
object.status = a0.status;
object.code = 50035;
object.errors = convertOldFormError(body);
r3 = object;
} else if ('captcha_key' in body) {
r3 = {code: -1, captchaFields: body, status: a0.status,
message: body.captcha_key.length > 0 ? body.captcha_key[0] : value2};
} else {
object = {};
object.status = a0.status;
object.code = 50035;
object.errors = convertOldFormError(body);
r3 = object;
}
r2 = r3;
} else if (a0.body.code == null) {
r2 = {message: body.message, code: body.code, retryAfter: body.retry_after, errors: body.errors,
status: a0.status};
} else {
Array = global.Array;
if (Array.isArray(a0.body.code)) {
if (body == null) {
object = {};
object.status = a0.status;
object.code = 50035;
object.errors = convertOldFormError(body);
r3 = object;
} else if ('captcha_key' in body) {
r3 = {code: -1, captchaFields: body, status: a0.status,
message: body.captcha_key.length > 0 ? body.captcha_key[0] : value2};
} else {
object = {};
object.status = a0.status;
object.code = 50035;
object.errors = convertOldFormError(body);
r3 = object;
}
r2 = r3;
} else {
r2 = {message: body.message, code: body.code, retryAfter: body.retry_after, errors: body.errors,
status: a0.status};
}
}
}
}
}
const message = r2.message;
const code = r2.code;
const retryAfter = r2.retryAfter;
const errors = r2.errors;
const status = r2.status;
const captchaFields = r2.captchaFields;
r0 = message ?? r0;
object = [r0];
const value4 = env1_3(APIError);
value = env1_2(this, _isNativeReflectConstruct_6789() ? global.Reflect.construct(value4, object,
env1_3(this).constructor) : value4.apply(this, object));
value.code = code ?? -1;
value.retryAfter = retryAfter;
value.errors = errors;
value.status = status;
value.captchaFields = captchaFields ?? ({});
value.cause = a0;
return value;
}
function value_6800(a0) { // fn#6800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:2294, offset: 0x00d08fe2, size: 104 bytes, params: 2, frame: 16
const object = {};
const value = undefined;
const _errors = a0 == null ? value : a0._errors;
if (_errors != null && _errors.length > 0) {
object.__root_errors = _errors;
}
if (value !== a0) {
global.Object.entries(a0).forEach(_fun6801);
}
return object;
function _fun6801(a0) { // fn#6801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:2418, offset: 0x00d0904a, size: 131 bytes, params: 2, frame: 17
var r2;
var r4;
var r6;
var item3;
var value3;
var Object;
var entries;
var binding;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r3 = value2 ? value : item;
const env0_0 = r3;
if (value2) {
r2 = item2;
r4 = value2;
r6 = value;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r2 = item3;
r4 = value3;
r6 = value;
} else {
r2 = item3;
r4 = value3;
r6 = item;
}
}
if (!r4) {
r2.return();
}
if (r3 !== '_errors') {
Object = global.Object;
entries = Object.entries;
binding = env0_0;
Reflect.apply(entries, Object, [binding.getAllFieldErrorsUnder(r6)]).forEach(_fun6802);
}
return value;
function _fun6802(a0) { // fn#6802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:2499, offset: 0x00d090cd, size: 139 bytes, params: 2, frame: 18
var r1;
var r2;
var r3;
var item3;
var value3;
var value4;
var value6;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r7 = value2 ? value : item;
if (value2) {
r1 = item2;
r2 = value2;
r3 = value;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r1 = item3;
r2 = value3;
r3 = value;
} else {
r1 = item3;
r2 = value3;
r3 = item;
}
}
if (!r2) {
r1.return();
}
if (r7 === '__root_errors') {
value6 = environment.__proto__;
env1_1[env0_0] = r3;
} else {
value4 = environment.__proto__;
env1_1['' + env0_0 + '.' + r7] = r3;
}
return value;
}
}
}
}
const message = r2.message;
const code = r2.code;
const retryAfter = r2.retryAfter;
const errors = r2.errors;
const status = r2.status;
const captchaFields = r2.captchaFields;
r0 = message ?? r0;
object = [r0];
const value4 = env1_3(APIError);
value = env1_2(this, _isNativeReflectConstruct_6789() ? global.Reflect.construct(value4, object,
env1_3(this).constructor) : value4.apply(this, object));
value.code = code ?? -1;
value.retryAfter = retryAfter;
value.errors = errors;
value.status = status;
value.captchaFields = captchaFields ?? ({});
value.cause = a0;
return value;
}
function _fun6793(a0) { // fn#6793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:589, offset: 0x00d08b7d, size: 19 bytes, params: 2, frame: 2
return {code: 'UNKNOWN', message: a0};
}
function value_6798(a0) { // fn#6798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:2015, offset: 0x00d08f4b, size: 129 bytes, params: 2, frame: 17
@@ -309,113 +426,5 @@ function value_6798(a0) { // fn#6798, source: /ci/build/discord/discord/discord_
return r1?._errors;
}
function value_6800(a0) { // fn#6800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:2294, offset: 0x00d08fe2, size: 104 bytes, params: 2, frame: 16
const object2 = {};
const value = undefined;
const _errors = a0 == null ? value : a0._errors;
if (_errors != null && _errors.length > 0) {
object2.__root_errors = _errors;
}
if (value !== a0) {
global.Object.entries(a0).forEach(_fun6801);
}
return object2;
}
function _fun6801(a0) { // fn#6801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:2418, offset: 0x00d0904a, size: 131 bytes, params: 2, frame: 17
var r2;
var r4;
var r6;
var item3;
var value3;
var Object;
var entries;
var binding;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r3 = value2 ? value : item;
const env0_0 = r3;
if (value2) {
r2 = item2;
r4 = value2;
r6 = value;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r2 = item3;
r4 = value3;
r6 = value;
} else {
r2 = item3;
r4 = value3;
r6 = item;
}
}
if (!r4) {
r2.return();
}
if (r3 !== '_errors') {
Object = global.Object;
entries = Object.entries;
binding = env0_0;
Reflect.apply(entries, Object, [binding.getAllFieldErrorsUnder(r6)]).forEach(_fun6802);
}
return value;
}
function _fun6802(a0) { // fn#6802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:612:2499, offset: 0x00d090cd, size: 139 bytes, params: 2, frame: 18
var r1;
var r2;
var r3;
var item3;
var value3;
var value4;
var value6;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r7 = value2 ? value : item;
if (value2) {
r1 = item2;
r2 = value2;
r3 = value;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r1 = item3;
r2 = value3;
r3 = value;
} else {
r1 = item3;
r2 = value3;
r3 = item;
}
}
if (!r2) {
r1.return();
}
if (r7 === '__root_errors') {
value6 = environment.__proto__;
env1_1[env0_0] = r3;
} else {
value4 = environment.__proto__;
env1_1['' + env0_0 + '.' + r7] = r3;
}
return value;
}
global.__d(_fun6788, 562, [6, 7, 15, 17, 18, 162, 57,
2]) /* metro module 562, dependencies: [6, 7, 15, 17, 18, 162, 57, 2] */;
@@ -1,57 +1,64 @@
/* Metro module 563; source: ../discord_common/js/packages/http-utils/convertSkemaError.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun6806(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:613:6, offset: 0x00d0921c, size: 85 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/http-utils/convertSkemaError.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/http-utils/convertSkemaError.tsx');
exports.convertSkemaError = convertSkemaError;
}
function convertSkemaError(a0) { // fn#6807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:613:224, offset: 0x00d09271, size: 173 bytes, params: 2, frame: 26
var r8;
var r14;
var propertyName;
var propertyName2;
var property;
var property2;
var Array;
var isArray;
var _errors;
var Object;
var keys;
var value;
const object2 = {};
for (propertyName in a0) {
property = a0[propertyName];
if (property == null) {
function convertSkemaError(a0) { // fn#6807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:613:224, offset: 0x00d09271, size: 173 bytes, params: 2, frame: 26
var r8;
var r14;
var propertyName;
var propertyName2;
var property;
var property2;
var Array;
var isArray;
var _errors;
var Object;
var keys;
var value;
const object = {};
for (propertyName in a0) {
property = a0[propertyName];
if (property == null) {
r8 = propertyName2;
continue;
}
if (propertyName !== '_errors') {
continue;
}
property2 = a0[propertyName];
object._misc = property2.map(function(a0) {
return a0.message;
});
Array = global.Array;
isArray = Array.isArray;
if (Reflect.apply(isArray, Array, [property])) {
r8 = propertyName2;
continue;
}
_errors = property._errors;
if (_errors != null) {
value = _errors.map(_fun6809);
r14 = value;
} else {
Object = global.Object;
keys = Object.keys;
property = Reflect.apply(keys, Object, [property])[0];
r14 = [property];
}
object[propertyName] = r14;
r8 = propertyName2;
continue;
}
if (propertyName !== '_errors') {
continue;
}
property2 = a0[propertyName];
object2._misc = property2.map(function(a0) {
return a0.message;
});
Array = global.Array;
isArray = Array.isArray;
if (Reflect.apply(isArray, Array, [property])) {
r8 = propertyName2;
continue;
}
_errors = property._errors;
if (_errors != null) {
value = _errors.map(_fun6809);
r14 = value;
} else {
Object = global.Object;
keys = Object.keys;
property = Reflect.apply(keys, Object, [property])[0];
r14 = [property];
}
object2[propertyName] = r14;
r8 = propertyName2;
return object;
}
return object2;
}
function _fun6809(a0) { // fn#6809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:613:396, offset: 0x00d0931e, size: 10 bytes, params: 2, frame: 1
return a0.message;
}
global.__d(_fun6806, 563, [2]) /* metro module 563, dependencies: [2] */;
@@ -1,81 +1,84 @@
/* Metro module 564; source: ../discord_common/js/packages/http-utils/stringifyErrors.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun6810(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:614:6, offset: 0x00d09328, size: 89 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const closure = stringifyErrors;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/http-utils/stringifyErrors.tsx');
exports.stringifyErrors = closure;
}
function stringifyErrors(a0) { // fn#6811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:614:112, offset: 0x00d09381, size: 196 bytes, params: 2, frame: 18
var r2;
var r1;
var r0;
var value3;
var Array;
let value = a0;
const value2 = '';
if (value == null) {
r0 = value2;
} else {
value3 = typeof value;
if (value3 === 'string') {
r1 = value;
const stringifyErrors2 = stringifyErrors;
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/http-utils/stringifyErrors.tsx');
exports.stringifyErrors = stringifyErrors2;
function stringifyErrors(a0) { // fn#6811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:614:112, offset: 0x00d09381, size: 196 bytes, params: 2, frame: 18
var r2;
var r1;
var r0;
var value3;
var Array;
let value = a0;
const value2 = '';
if (value == null) {
r0 = value2;
} else {
if (value == null) {
Array = global.Array;
if (Array.isArray(value)) {
value = value.reduce(function(a0, a1) {
return a0.concat(stringifyErrors(a1));
}, []);
value = value.join(', ');
r2 = value;
} else if (value3 !== 'object') {
r2 = value2;
} else {
value = global.Object.keys(value);
value = value.reduce(_fun6813, []);
value = value.join(', ');
r2 = value;
}
} else if (value.message) {
r2 = value.message;
value3 = typeof value;
if (value3 === 'string') {
r1 = value;
} else {
Array = global.Array;
if (Array.isArray(value)) {
value = value.reduce(_fun6812, []);
value = value.join(', ');
r2 = value;
} else if (value3 !== 'object') {
r2 = value2;
if (value == null) {
Array = global.Array;
if (Array.isArray(value)) {
value = value.reduce(function(a0, a1) {
return a0.concat(stringifyErrors(a1));
}, []);
value = value.join(', ');
r2 = value;
} else if (value3 !== 'object') {
r2 = value2;
} else {
value = global.Object.keys(value);
value = value.reduce(_fun6813, []);
value = value.join(', ');
r2 = value;
}
} else if (value.message) {
r2 = value.message;
} else {
value = global.Object.keys(value);
value = value.reduce(_fun6813, []);
value = value.join(', ');
r2 = value;
Array = global.Array;
if (Array.isArray(value)) {
value = value.reduce(_fun6812, []);
value = value.join(', ');
r2 = value;
} else if (value3 !== 'object') {
r2 = value2;
} else {
value = global.Object.keys(value);
value = value.reduce(_fun6813, []);
value = value.join(', ');
r2 = value;
}
}
r1 = r2;
}
r1 = r2;
r0 = r1;
}
r0 = r1;
return r0;
function _fun6812(a0, a1) { // fn#6812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:614:203, offset: 0x00d09445, size: 32 bytes, params: 3, frame: 13
return a0.concat(stringifyErrors(a1));
}
function _fun6813(a0, a1) { // fn#6813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:614:297, offset: 0x00d09465, size: 88 bytes, params: 3, frame: 20
var r0;
let value = a0;
const value4 = stringifyErrors(env0_0[a1]);
if (value4) {
value = value.concat('' + value4 + ' (' + a1 + ')');
r0 = value;
} else {
r0 = value;
}
return r0;
}
}
return r0;
}
function _fun6812(a0, a1) { // fn#6812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:614:203, offset: 0x00d09445, size: 32 bytes, params: 3, frame: 13
return a0.concat(stringifyErrors(a1));
}
function _fun6813(a0, a1) { // fn#6813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:614:297, offset: 0x00d09465, size: 88 bytes, params: 3, frame: 20
var r0;
let value = a0;
const value4 = stringifyErrors(env0_0[a1]);
if (value4) {
value = value.concat('' + value4 + ' (' + a1 + ')');
r0 = value;
} else {
r0 = value;
}
return r0;
}
global.__d(_fun6810, 564, [2]) /* metro module 564, dependencies: [2] */;
@@ -1,11 +1,14 @@
/* Metro module 15623; source: ../discord_common/js/packages/i18n/Constants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun119672(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15831:6, offset: 0x025147e8, size: 152 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/i18n/Constants.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/i18n/Constants.tsx');
exports.FORMAT_RE = RegExp('\\{.+?\\}', '');
exports.MARKDOWN_RE = RegExp('[~*_]{2}.+?[~*_]{2}|\\[.*?\\]\\(.+?\\)|\\n\\n', '');
exports.UNSAFE_RE = RegExp('!!', '');
exports.UNSAFE_RE_ALL = RegExp('!!', 'g');
}
global.__d(_fun119672, 15623, [2]) /* metro module 15623, dependencies: [2] */;
@@ -1,19 +1,22 @@
/* Metro module 650; source: ../discord_common/js/packages/i18n/getSystemLocale.tsx; dependencies: [27, 651, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
function _fun7362(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:700:6, offset: 0x00d16d2f, size: 94 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/i18n/getSystemLocale.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/i18n/getSystemLocale.tsx');
exports.getSystemLocale = getSystemLocale;
function getSystemLocale() { // fn#7363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:700:198, offset: 0x00d16d8d, size: 126 bytes, params: 1, frame: 13
const value2 = undefined;
const Platform = ReactNativeModule.Platform;
const OS = Platform.OS;
const r3 = OS === 'android' ? (require(651) /* metro dependency 651: NativeDeviceLocaleModule */).default : ReactNativeModule.NativeModules.LocalizationManager;
const Language = r3 != null ? r3.getConstants().Language : value2;
return Language ?? '';
}
}
function getSystemLocale() { // fn#7363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:700:198, offset: 0x00d16d8d, size: 126 bytes, params: 1, frame: 13
const value2 = undefined;
const moduleValue = require(27) /* metro dependency 27 */;
const Platform = moduleValue.Platform;
const OS = Platform.OS;
const r3 = OS === 'android' ? (require(651) /* metro dependency 651: NativeDeviceLocaleModule */).default : moduleValue.NativeModules.LocalizationManager;
const Language = r3 != null ? r3.getConstants().Language : value2;
return Language ?? '';
}
global.__d(_fun7362, 650, [27, 651, 2]) /* metro module 650, dependencies: [27, 651, 2] */;
File diff suppressed because it is too large. Load diff
+8 -4
View File
@@ -1,11 +1,14 @@
/* Metro module 15579; source: ../discord_common/js/packages/i18n/index.tsx; dependencies: [15580, 2, 15622] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as I18nModule from './i18n.tsx'; /* Metro dependency 15580 */
function _fun119401(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15776:6, offset: 0x02508ab9, size: 204 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const I18N = (require(15580) /* metro dependency 15580: i18n */).I18N;
const I18N2 = (require(15580) /* metro dependency 15580: i18n */).I18N;
const getSystemLocale = (require(15580) /* metro dependency 15580: i18n */).getSystemLocale;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/i18n/index.tsx');
const I18N = (I18nModule).I18N;
const I18N2 = (I18nModule).I18N;
const getSystemLocale = (I18nModule).getSystemLocale;
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/i18n/index.tsx');
exports.default = I18N;
const getMessage = (require(15622) /* metro dependency 15622: parse */).getMessage;
exports.getMessage = getMessage;
@@ -16,3 +19,4 @@ function _fun119401(global, require, importDefault, importAll, module, exports,
exports.getSystemLocale = getSystemLocale;
}
global.__d(_fun119401, 15579, [15580, 2, 15622]) /* metro module 15579, dependencies: [15580, 2, 15622] */;
@@ -1,53 +1,55 @@
/* Metro module 15624; source: ../discord_common/js/packages/i18n/markdownRules.tsx; dependencies: [3855, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun119673(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15832:6, offset: 0x02514880, size: 537 bytes, params: 8, frame: 27
var object5;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const {newline, paragraph, url, link, strong, u, br, em, image,
text} = (require(3855) /* metro dependency 3855 */).defaultRules;
object5 = {newline: newline, paragraph: paragraph, url: url};
const object6 = {};
copyDataProperties(object6, link, undefined);
object6['parse'] = parse_119674;
object5.link = object6;
object5.strong = strong;
object5.u = u;
object5.br = br;
object5.em = em;
object5.image = image;
const object7 = {};
object7.order = text.order;
object7.match = (require(3855) /* metro dependency 3855 */).inlineRegex(RegExp('^\\$\\[(.*?)\\]\\((\\w+)\\)', ''));
object7.parse = function(a0, a1, a2) {
object = {newline: newline, paragraph: paragraph, url: url};
const object2 = {};
copyDataProperties(object2, link, undefined);
object2['parse'] = parse_119674;
object.link = object2;
object.strong = strong;
object.u = u;
object.br = br;
object.em = em;
object.image = image;
const object3 = {};
object3.order = text.order;
object3.match = (require(3855) /* metro dependency 3855 */).inlineRegex(RegExp('^\\$\\[(.*?)\\]\\((\\w+)\\)', ''));
object3.parse = function(a0, a1, a2) {
var object = {};
object.render = a2.context[a0[2]];
object.content = a1(a0[1], a2);
return object;
};
object7.react = function(a0, a1, a2) {
object3.react = function(a0, a1, a2) {
return a0.render(a1(a0.content, a2), a2.key);
};
object5.hook = object7;
const object8 = {};
object8.order = text.order;
object8.match = (require(3855) /* metro dependency 3855 */).inlineRegex(RegExp('^!!(\\d+?)!!', ''));
object8.parse = function(a0, a1, {unsafeContext}) {
object.hook = object3;
const object4 = {};
object4.order = text.order;
object4.match = (require(3855) /* metro dependency 3855 */).inlineRegex(RegExp('^!!(\\d+?)!!', ''));
object4.parse = function(a0, a1, {unsafeContext}) {
unsafeContext = unsafeContext[a0[1]];
return {type: 'text',
content: typeof unsafeContext === 'string' ? unsafeContext : unsafeContext != null ? unsafeContext.toString() : ''};
};
object8.react = function(a0) {
object4.react = function(a0) {
return a0.content;
};
object5.noparse = object8;
object5.text = text;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/i18n/markdownRules.tsx');
exports.rules = object5;
}
object.noparse = object4;
object.text = text;
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/i18n/markdownRules.tsx');
exports.rules = object;
function parse_119674(a0, a1, a2) { // fn#119674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15832:421, offset: 0x02514a99, size: 42 bytes, params: 4, frame: 15
const value = link.parse(a0, a1, a2);
value.context = a2.context;
return value;
}
function parse_119674(a0, a1, a2) { // fn#119674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15832:421, offset: 0x02514a99, size: 42 bytes, params: 4, frame: 15
const value = link.parse(a0, a1, a2);
value.context = a2.context;
return value;
}
global.__d(_fun119673, 15624, [3855, 2]) /* metro module 15624, dependencies: [3855, 2] */;
+157 -150
View File
@@ -1,4 +1,12 @@
/* Metro module 15622; source: ../discord_common/js/packages/i18n/parse.tsx; dependencies: [57, 6, 7, 15623, 15581, 3855, 15624, 15625, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Module03855 from '../../../../../by-id/module-03855.js'; /* Metro dependency 3855 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from './Constants.tsx'; /* Metro dependency 15623 */
import * as MarkdownRulesModule from './markdownRules.tsx'; /* Metro dependency 15624 */
function _fun119659(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:6, offset: 0x0251423a, size: 240 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = function(a0) {
@@ -8,171 +16,170 @@ function _fun119659(global, require, importDefault, importAll, module, exports,
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_5 = importDefault(57) /* metro dependency 57 */;
const env0_6 = importDefault(6) /* metro dependency 6 */;
const env0_7 = importDefault(7) /* metro dependency 7 */;
let value = require(15623) /* metro dependency 15623: Constants */;
let value = ConstantsModule;
const env0_8 = value.FORMAT_RE;
const env0_9 = value.MARKDOWN_RE;
const env0_10 = value.UNSAFE_RE;
const env0_11 = value.UNSAFE_RE_ALL;
value = _fun119665();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/i18n/parse.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/i18n/parse.tsx');
exports.FormattedMessage = value;
exports.setUpdateRules = closure;
exports.getMessage = getMessage_119671;
}
function setUpdateRules(a0) { // fn#119660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1004, offset: 0x0251432a, size: 86 bytes, params: 2, frame: 18
const rules = (require(15624) /* metro dependency 15624: markdownRules */).rules;
env0_3 = setUpdateRulesParserFor(rules, a0);
env0_4 = parserForNonReact(rules);
}
function _fun119665() { // fn#119665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:212, offset: 0x025144ab, size: 138 bytes, params: 1, frame: 15
return env0_7(FormattedMessage, [{key: 'format', value: value_119667}, {key: 'astFormat', value: value_119668},
{key: 'plainFormat', value: function(a0) {
return this.intlMessage.format(a0);
}}, {key: 'getContext', value: value_119670}]);
}
function getMessage_119671(a0, a1) { // fn#119671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1557, offset: 0x02514742, size: 166 bytes, params: 3, frame: 16
if (a0 == null) {
return '';
}
if (env0_3 == null) {
setUpdateRules((require(15625) /* metro dependency 15625: updateRulesWeb */).default);
}
const value2 = a0.replace(RegExp('^\\n+|\\n+$', 'g'), '');
const value3 = FORMAT_RE.test(value2);
const value4 = MARKDOWN_RE.test(value2);
return value3 || value4 ? new env0_12(value2, a1, value4) : value2;
}
function setUpdateRulesParserFor(a0, a1) { // fn#119661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1033, owner: setUpdateRules.parserFor, offset: 0x02514380, size: 111 bytes, params: 3, frame: 18
var environment;
let value = environment.__proto__;
const env0_0 = (importDefault(3855) /* metro dependency 3855 */).parserFor(a1(a0));
value = importDefault(3855) /* metro dependency 3855 */;
const reactFor = value.reactFor;
const defaultImport = importDefault(3855) /* metro dependency 3855 */;
const env0_1 = Reflect.apply(reactFor, value, [defaultImport.ruleOutput(a0, 'react')]);
return _fun119662;
}
function parserForNonReact(a0) { // fn#119663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1273, owner: setUpdateRules.parserForNonReact, offset: 0x0251443f, size: 54 bytes, params: 2, frame: 12
var environment;
const value = environment.__proto__;
const env0_0 = (importDefault(3855) /* metro dependency 3855 */).parserFor(a0);
return _fun119664;
}
function FormattedMessage(a0, a1, a2) { // fn#119666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:233, offset: 0x02514535, size: 124 bytes, params: 4, frame: 18
let value = a0;
env1_6(this, FormattedMessage);
this.message = a2 ? value : value.replace(UNSAFE_RE_ALL, '');
this.hasMarkdown = a2;
value = importDefault(15581) /* metro dependency 15581 */;
value = new value(this.message, a1);
this.intlMessage = value;
}
function value_119667(a0) { // fn#119667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:414, offset: 0x025145b1, size: 104 bytes, params: 2, frame: 16
var intlMessage;
var value;
var value2;
var property;
var property2;
var binding;
if (this.hasMarkdown) {
value = this.getContext(a0);
value2 = environment.__proto__;
value = env1_5(value, 2);
property = value[0];
property2 = value[1];
binding = env1_3;
intlMessage = this.intlMessage;
return binding(intlMessage.format(property), property, property2);
}
return this.intlMessage.format(a0);
}
function value_119668(a0) { // fn#119668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:595, offset: 0x02514619, size: 77 bytes, params: 2, frame: 16
let value = this.getContext(a0);
value = env1_5(value, 2);
const property = value[0];
const property2 = value[1];
const binding = env1_4;
const intlMessage = this.intlMessage;
return binding(intlMessage.format(property), property, property2);
}
function value_119670(a0) { // fn#119670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:795, offset: 0x0251467e, size: 196 bytes, params: 2, frame: 28
var r3;
var r4;
var r15;
var value2;
var length;
var value3;
var property;
var value4;
var property2;
var includes;
var value5;
var value6;
const object2 = {};
const test = UNSAFE_RE.test;
let message = this.message;
if (Reflect.apply(test, UNSAFE_RE, [message])) {
value2 = global.Object.entries(a0);
length = value2.length;
value3 = 0;
if (value3 < length) {
r3 = value3;
r4 = value3;
while (true) {
property = value2[r3];
value4 = env1_5(property, 2);
property = value4[value3];
property2 = value4[1];
message = this.message;
includes = message.includes;
if (Reflect.apply(includes, message, ['!!{' + property + '}!!'])) {
value5 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
object2[value5] = property2;
a0[property] = value5;
r15 = value5;
function setUpdateRules(a0) { // fn#119660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1004, offset: 0x0251432a, size: 86 bytes, params: 2, frame: 18
const rules = (MarkdownRulesModule).rules;
env0_3 = setUpdateRulesParserFor(rules, a0);
env0_4 = parserForNonReact(rules);
function setUpdateRulesParserFor(a0, a1) { // fn#119661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1033, owner: setUpdateRules.parserFor, offset: 0x02514380, size: 111 bytes, params: 3, frame: 18
var environment;
let value = environment.__proto__;
const env0_0 = (importDefault(3855) /* metro dependency 3855 */).parserFor(a1(a0));
value = importDefault(3855) /* metro dependency 3855 */;
const reactFor = value.reactFor;
const defaultImport = importDefault(3855) /* metro dependency 3855 */;
const env0_1 = Reflect.apply(reactFor, value, [defaultImport.ruleOutput(a0, 'react')]);
return _fun119662;
function _fun119662(a0, a1, a2) { // fn#119662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1149, offset: 0x025143ef, size: 80 bytes, params: 4, frame: 14
var r4;
let value = a0;
const value2 = value.includes('\n\n');
if (value2) {
value += '\n\n';
r4 = value;
} else {
r15 = r4;
r4 = value;
}
value6 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
length = value2.length;
if (value6 < length) {
r3 = value6;
r4 = r15;
continue;
}
break;
return env0_1(env0_0(r4, {inline: !value2, context: a1, unsafeContext: a2}));
}
}
function parserForNonReact(a0) { // fn#119663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1273, owner: setUpdateRules.parserForNonReact, offset: 0x0251443f, size: 54 bytes, params: 2, frame: 12
var environment;
const value = environment.__proto__;
const env0_0 = (Module03855).parserFor(a0);
return _fun119664;
function _fun119664(a0, a1, a2) { // fn#119664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1338, offset: 0x02514475, size: 54 bytes, params: 4, frame: 13
return env0_0(a0 + '\n\n', {inline: false, context: a1, unsafeContext: a2});
}
}
}
return [a0, object2];
}
function _fun119662(a0, a1, a2) { // fn#119662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1149, offset: 0x025143ef, size: 80 bytes, params: 4, frame: 14
var r4;
let value = a0;
const value2 = value.includes('\n\n');
if (value2) {
value += '\n\n';
r4 = value;
} else {
r4 = value;
function _fun119665() { // fn#119665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:212, offset: 0x025144ab, size: 138 bytes, params: 1, frame: 15
return CreateClass(FormattedMessage, [{key: 'format', value: value_119667}, {key: 'astFormat', value: value_119668},
{key: 'plainFormat', value: function(a0) {
return this.intlMessage.format(a0);
}}, {key: 'getContext', value: value_119670}]);
function FormattedMessage(a0, a1, a2) { // fn#119666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:233, offset: 0x02514535, size: 124 bytes, params: 4, frame: 18
let value = a0;
env1_6(this, FormattedMessage);
this.message = a2 ? value : value.replace(UNSAFE_RE_ALL, '');
this.hasMarkdown = a2;
value = importDefault(15581) /* metro dependency 15581 */;
value = new value(this.message, a1);
this.intlMessage = value;
}
function value_119667(a0) { // fn#119667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:414, offset: 0x025145b1, size: 104 bytes, params: 2, frame: 16
var intlMessage;
var value;
var value2;
var property;
var property2;
var binding;
if (this.hasMarkdown) {
value = this.getContext(a0);
value2 = environment.__proto__;
value = env1_5(value, 2);
property = value[0];
property2 = value[1];
binding = env1_3;
intlMessage = this.intlMessage;
return binding(intlMessage.format(property), property, property2);
}
return this.intlMessage.format(a0);
}
function value_119668(a0) { // fn#119668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:595, offset: 0x02514619, size: 77 bytes, params: 2, frame: 16
let value = this.getContext(a0);
value = env1_5(value, 2);
const property = value[0];
const property2 = value[1];
const binding = env1_4;
const intlMessage = this.intlMessage;
return binding(intlMessage.format(property), property, property2);
}
function value_119670(a0) { // fn#119670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:795, offset: 0x0251467e, size: 196 bytes, params: 2, frame: 28
var r3;
var r4;
var r15;
var value2;
var length;
var value3;
var property;
var value4;
var property2;
var includes;
var value5;
var value6;
const object = {};
const test = UNSAFE_RE.test;
let message = this.message;
if (Reflect.apply(test, UNSAFE_RE, [message])) {
value2 = global.Object.entries(a0);
length = value2.length;
value3 = 0;
if (value3 < length) {
r3 = value3;
r4 = value3;
while (true) {
property = value2[r3];
value4 = env1_5(property, 2);
property = value4[value3];
property2 = value4[1];
message = this.message;
includes = message.includes;
if (Reflect.apply(includes, message, ['!!{' + property + '}!!'])) {
value5 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
object[value5] = property2;
a0[property] = value5;
r15 = value5;
} else {
r15 = r4;
}
value6 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
length = value2.length;
if (value6 < length) {
r3 = value6;
r4 = r15;
continue;
}
break;
}
}
}
return [a0, object];
}
}
function getMessage_119671(a0, a1) { // fn#119671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1557, offset: 0x02514742, size: 166 bytes, params: 3, frame: 16
if (a0 == null) {
return '';
}
if (env0_3 == null) {
setUpdateRules((require(15625) /* metro dependency 15625: updateRulesWeb */).default);
}
const value2 = a0.replace(RegExp('^\\n+|\\n+$', 'g'), '');
const value3 = FORMAT_RE.test(value2);
const value4 = MARKDOWN_RE.test(value2);
return value3 || value4 ? new env0_12(value2, a1, value4) : value2;
}
return env0_1(env0_0(r4, {inline: !value2, context: a1, unsafeContext: a2}));
}
function _fun119664(a0, a1, a2) { // fn#119664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15830:1338, offset: 0x02514475, size: 54 bytes, params: 4, frame: 13
return env0_0(a0 + '\n\n', {inline: false, context: a1, unsafeContext: a2});
}
global.__d(_fun119659, 15622, [57, 6, 7, 15623, 15581, 3855, 15624, 15625,
2]) /* metro module 15622, dependencies: [57, 6, 7, 15623, 15581, 3855, 15624, 15625, 2] */;
@@ -1,74 +1,79 @@
/* Metro module 15625; source: ../discord_common/js/packages/i18n/updateRules.web.tsx; dependencies: [31, 33, 3855, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as Module03855Module from '../../../../../by-id/module-03855.js'; /* Metro dependency 3855 */
function _fun119679(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15833:6, offset: 0x02514b6f, size: 131 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/i18n/updateRules.web.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/i18n/updateRules.web.tsx');
exports.default = updateRules;
}
function updateRules(a0) { // fn#119680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15833:216, offset: 0x02514bf2, size: 174 bytes, params: 2, frame: 16
const defaultRules = (require(3855) /* metro dependency 3855 */).defaultRules;
a0.heading = defaultRules.heading;
const lheading = defaultRules.lheading;
a0.lheading = lheading;
a0.list = defaultRules.list;
let object2 = {};
copyDataProperties(object2, a0.paragraph, lheading);
object2['react'] = updateRulesReact;
a0.paragraph = object2;
object2 = {};
copyDataProperties(object2, a0.link, lheading);
object2['react'] = updateRulesReact_119682;
a0.link = object2;
return a0;
}
function updateRulesReact(a0, a1, a2) { // fn#119681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15833:394, owner: updateRules.react, offset: 0x02514ca0, size: 53 bytes, params: 4, frame: 16
return (
<p key={a2.key}>
{a1(a0.content, a2)}
</p>
);
}
function updateRulesReact_119682(a0, a1, a2) { // fn#119682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15833:482, owner: updateRules.react, offset: 0x02514cd5, size: 244 bytes, params: 4, frame: 18
var property;
var value;
var moduleValue;
const object2 = {};
if (a0.context != null) {
property = a0.context[a0.target];
if (property) {
if (property.onClick) {
object2.onClick = property.onClick;
object2.onContextMenu = property.onContextMenu;
} else {
object2.onClick = property;
}
} else {
object2.onClick = property;
function updateRules(a0) { // fn#119680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15833:216, offset: 0x02514bf2, size: 174 bytes, params: 2, frame: 16
const defaultRules = (Module03855Module).defaultRules;
a0.heading = defaultRules.heading;
const lheading = defaultRules.lheading;
a0.lheading = lheading;
a0.list = defaultRules.list;
let object = {};
copyDataProperties(object, a0.paragraph, lheading);
object['react'] = updateRulesReact;
a0.paragraph = object;
object = {};
copyDataProperties(object, a0.link, lheading);
object['react'] = updateRulesReact_119682;
a0.link = object;
return a0;
function updateRulesReact(a0, a1, a2) { // fn#119681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15833:394, owner: updateRules.react, offset: 0x02514ca0, size: 53 bytes, params: 4, frame: 16
return (
<p key={a2.key}>
{a1(a0.content, a2)}
</p>
);
}
function updateRulesReact_119682(a0, a1, a2) { // fn#119682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15833:482, owner: updateRules.react, offset: 0x02514cd5, size: 244 bytes, params: 4, frame: 18
var property;
var value;
var moduleValue;
const object = {};
if (a0.context != null) {
property = a0.context[a0.target];
if (property) {
if (property.onClick) {
object.onClick = property.onClick;
object.onContextMenu = property.onContextMenu;
} else {
object.onClick = property;
}
} else {
object.onClick = property;
}
}
if (object.onClick == null) {
value = environment.__proto__;
value = undefined;
moduleValue = require(3855) /* metro dependency 3855 */;
object.href = moduleValue.sanitizeUrl(a0.target) ?? value;
object.target = '_blank';
}
value = environment.__proto__;
return (
<a
title={a0.title}
{...object}
{...{['rel']: 'noreferrer'}}
key={a2.key}
>
{a1(a0.content, a2)}
</a>
);
}
}
if (object2.onClick == null) {
value = environment.__proto__;
value = undefined;
moduleValue = require(3855) /* metro dependency 3855 */;
object2.href = moduleValue.sanitizeUrl(a0.target) ?? value;
object2.target = '_blank';
}
value = environment.__proto__;
return (
<a
title={a0.title}
{...object2}
{...{['rel']: 'noreferrer'}}
key={a2.key}
>
{a1(a0.content, a2)}
</a>
);
}
global.__d(_fun119679, 15625, [31, 33, 3855, 2]) /* metro module 15625, dependencies: [31, 33, 3855, 2] */;
@@ -1,4 +1,10 @@
/* Metro module 487; source: ../discord_common/js/packages/id-generator/IdGenerator.tsx; dependencies: [6, 7, 24, 488, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import Module00024 from '../../../../../by-id/module-00024.js'; /* Metro dependency 24 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module00488Module from '../../../../../by-id/module-00488.js'; /* Metro dependency 488 */
function _fun6303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:528:6, offset: 0x00cf517f, size: 154 bytes, params: 8, frame: 19
const env0_0 = require;
const getLowBits = function(a0) {
@@ -9,49 +15,48 @@ function _fun6303(global, require, importDefault, importAll, module, exports, de
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const value = _fun6306();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/id-generator/IdGenerator.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/id-generator/IdGenerator.tsx');
exports.IdGenerator = value;
function _fun6306() { // fn#6306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:528:248, offset: 0x00cf5260, size: 55 bytes, params: 1, frame: 14
return CreateClass(IdGenerator, [{key: 'generate', value: value_6308}]);
function IdGenerator() { // fn#6307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:528:269, offset: 0x00cf5297, size: 139 bytes, params: 1, frame: 17
let value = environment.__proto__;
env1_3(this, IdGenerator);
const Math = global.Math;
const floor = Math.floor;
const Math2 = global.Math;
this._randomPrefix = Reflect.apply(floor, Math, [4294967296 * Math2.random()]) | 0;
value = importDefault(24) /* metro dependency 24 */;
const Date = global.Date;
this._creationTime = value(Date.now());
this._sequenceNumber = 0;
}
function value_6308(a0) { // fn#6308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:528:457, offset: 0x00cf5322, size: 261 bytes, params: 2, frame: 21
const value = environment.__proto__;
const value2 = (Module00024)(a0);
const _sequenceNumber = this._sequenceNumber;
const value3 = typeof _sequenceNumber === 'bigint' ? _sequenceNumber : +_sequenceNumber;
this._sequenceNumber = typeof value3 === 'bigint' ? value3 + 1n : +value3 + 1;
const value4 = value3 | 0;
const Buffer = (Module00488Module).Buffer;
const buffer = new Buffer(24);
let writeInt32LE = buffer.writeInt32LE;
const getLowBitsBinding = getLowBits;
Reflect.apply(writeInt32LE, buffer, [getLowBitsBinding(value2), 0, true]);
writeInt32LE = buffer.writeInt32LE;
const getHighBitsBinding = getHighBits;
Reflect.apply(writeInt32LE, buffer, [getHighBitsBinding(value2), 4, true]);
buffer.writeInt32LE(this._randomPrefix, 8, true);
buffer.writeInt32LE(getLowBitsBinding(this._creationTime), 12, true);
buffer.writeInt32LE(getHighBitsBinding(this._creationTime), 16, true);
buffer.writeInt32LE(value4, 20, true);
return buffer.toString('base64');
}
}
}
function _fun6306() { // fn#6306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:528:248, offset: 0x00cf5260, size: 55 bytes, params: 1, frame: 14
return env0_4(IdGenerator, [{key: 'generate', value: value_6308}]);
}
function IdGenerator() { // fn#6307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:528:269, offset: 0x00cf5297, size: 139 bytes, params: 1, frame: 17
let value = environment.__proto__;
env1_3(this, IdGenerator);
const Math = global.Math;
const floor = Math.floor;
const Math2 = global.Math;
this._randomPrefix = Reflect.apply(floor, Math, [4294967296 * Math2.random()]) | 0;
value = importDefault(24) /* metro dependency 24 */;
const Date = global.Date;
this._creationTime = value(Date.now());
this._sequenceNumber = 0;
}
function value_6308(a0) { // fn#6308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:528:457, offset: 0x00cf5322, size: 261 bytes, params: 2, frame: 21
const value = environment.__proto__;
const value2 = (importDefault(24) /* metro dependency 24 */)(a0);
const _sequenceNumber = this._sequenceNumber;
const value3 = typeof _sequenceNumber === 'bigint' ? _sequenceNumber : +_sequenceNumber;
this._sequenceNumber = typeof value3 === 'bigint' ? value3 + 1n : +value3 + 1;
const value4 = value3 | 0;
const Buffer = (require(488) /* metro dependency 488 */).Buffer;
const buffer = new Buffer(24);
let writeInt32LE = buffer.writeInt32LE;
const getLowBitsBinding = getLowBits;
Reflect.apply(writeInt32LE, buffer, [getLowBitsBinding(value2), 0, true]);
writeInt32LE = buffer.writeInt32LE;
const getHighBitsBinding = getHighBits;
Reflect.apply(writeInt32LE, buffer, [getHighBitsBinding(value2), 4, true]);
buffer.writeInt32LE(this._randomPrefix, 8, true);
buffer.writeInt32LE(getLowBitsBinding(this._creationTime), 12, true);
buffer.writeInt32LE(getHighBitsBinding(this._creationTime), 16, true);
buffer.writeInt32LE(value4, 20, true);
return buffer.toString('base64');
}
global.__d(_fun6303, 487, [6, 7, 24, 488, 2]) /* metro module 487, dependencies: [6, 7, 24, 488, 2] */;
@@ -1,62 +1,114 @@
/* Metro module 1914; source: ../discord_common/js/packages/kv-storage/js/api/Dao.tsx; dependencies: [6, 7, 1915, 1917, 2] */
import ClassCallCheck from '../../../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as TableModule from './Table.tsx'; /* Metro dependency 1915 */
function _fun21001(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:6, offset: 0x00ee7a47, size: 153 bytes, params: 8, frame: 19
const env0_0 = require;
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 value = _fun21002();
const value2 = _fun21020();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/Dao.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/Dao.tsx');
exports.Dao = value;
exports.DaoTransaction = value2;
function _fun21002() { // fn#21002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:118, offset: 0x00ee7ae0, size: 379 bytes, params: 1, frame: 15
return CreateClass(Dao, [{key: 'prefix', get: function() {
return this.table.prefix;
}}, {key: 'withoutLogging', value: value_21005}, {key: 'get', value: function(a0) {
return this.table.get([a0]);
}}, {key: 'getMany', value: function(a0) {
return this.table.getMany([], a0);
}}, {key: 'getRange', value: function(a0, a1, a2) {
return this.table.getRange([a0], [a1], a2);
}}, {key: 'getKvEntries', value: function() {
return this.table.getKvEntries();
}}, {key: 'getMapEntries', value: function() {
return this.table.getMapEntries();
}}, {key: 'getIds', value: function() {
return this.table.getChildIds([]);
}}, {key: 'getParentId', value: function(a0) {
return this.table.getParentId([null, a0]);
}}, {key: 'put', value: function(a0, a1) {
var value = a2;
return this.table.put({key: [a0], data: a1, generation: null},
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'delete', value: function(a0) {
return arguments.length === 0 ? this.table.delete() : this.table.delete([a0]);
}}, {key: 'transaction', value: function(a0, a1) {
var env0_0 = a0;
return this.table.transaction(_fun21016, a1);
}}, {key: 'upgradeTransaction', value: value_21017}, {key: 'getManySyncUnsafe', value: function(a0) {
return this.table.getManySyncUnsafe([], a0);
}}, {key: 'getMapEntriesSyncUnsafe', value: function() {
return this.table.getMapEntriesSyncUnsafe();
}}]);
function Dao(a0, a1, a2) { // fn#21003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:129, offset: 0x00ee7c5b, size: 117 bytes, params: 4, frame: 19
let value = a3;
const r7 = !(value !== undefined) || value;
value = environment.__proto__;
env1_2(this, Dao);
this.originalPrefix = a0;
const Table = (TableModule).Table;
this.table = new Table([a0], a1, a2, r7);
}
function value_21005() { // fn#21005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:327, offset: 0x00ee7ce1, size: 64 bytes, params: 1, frame: 17
const originalPrefix = this.originalPrefix;
const tableId = this.table.tableId;
const database = this.table.database;
const value = Object.create(Dao.prototype, {constructor: {value: Dao}});
const dao = new Dao(originalPrefix, tableId, database, false);
return dao instanceof Object ? dao : value;
}
function value_21015(a0, a1) { // fn#21015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:1168, offset: 0x00ee7e97, size: 40 bytes, params: 3, frame: 13
const env0_0 = a0;
return this.table.transaction(_fun21016, a1);
function _fun21016(a0) { // fn#21016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:1213, offset: 0x00ee7ebf, size: 46 bytes, params: 2, frame: 12
const binding = env0_0;
const value = environment.__proto__.__proto__;
return binding(new env2_4(a0));
}
}
function value_21017(a0) { // fn#21017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:1266, offset: 0x00ee7eed, size: 52 bytes, params: 2, frame: 12
let value = environment.__proto__;
const binding = env1_4;
value = this.table.upgradeTransaction(a0);
const value2 = Object.create(binding.prototype, {constructor: {value: binding}});
value = new binding(value);
return value instanceof Object ? value : value2;
}
}
function _fun21020() { // fn#21020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:1515, offset: 0x00ee7f54, size: 108 bytes, params: 1, frame: 16
return CreateClass(DaoTransaction, [{key: 'put', value: function(a0, a1) {
var value = a2;
this.transaction.put({key: [a0], data: a1, generation: null},
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'delete', value: function(a0) {
return arguments.length === 0 ? this.transaction.delete() : this.transaction.delete([a0]);
}}], [{key: 'fromDatabaseTransaction', value: value_21024}]);
function DaoTransaction(a0) { // fn#21021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:1526, offset: 0x00ee7fc0, size: 36 bytes, params: 2, frame: 13
env1_2(this, DaoTransaction);
this.transaction = a0;
}
function value_21024(a0, a1, a2) { // fn#21024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:1900, offset: 0x00ee8082, size: 89 bytes, params: 4, frame: 16
const value = environment.__proto__;
const TableTransaction = (TableModule).TableTransaction;
const tableTransaction = new TableTransaction(a0, a1, a2);
const value2 = Object.create(DaoTransaction.prototype, {constructor: {value: DaoTransaction}});
const daoTransaction = new DaoTransaction(tableTransaction);
return daoTransaction instanceof Object ? daoTransaction : value2;
}
}
}
function _fun21002() { // fn#21002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:118, offset: 0x00ee7ae0, size: 379 bytes, params: 1, frame: 15
return env0_3(Dao, [{key: 'prefix', get: function() {
return this.table.prefix;
}}, {key: 'withoutLogging', value: value_21005}, {key: 'get', value: function(a0) {
return this.table.get([a0]);
}}, {key: 'getMany', value: function(a0) {
return this.table.getMany([], a0);
}}, {key: 'getRange', value: function(a0, a1, a2) {
return this.table.getRange([a0], [a1], a2);
}}, {key: 'getKvEntries', value: function() {
return this.table.getKvEntries();
}}, {key: 'getMapEntries', value: function() {
return this.table.getMapEntries();
}}, {key: 'getIds', value: function() {
return this.table.getChildIds([]);
}}, {key: 'getParentId', value: function(a0) {
return this.table.getParentId([null, a0]);
}}, {key: 'put', value: function(a0, a1) {
var value = a2;
return this.table.put({key: [a0], data: a1, generation: null},
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'delete', value: function(a0) {
return arguments.length === 0 ? this.table.delete() : this.table.delete([a0]);
}}, {key: 'transaction', value: function(a0, a1) {
var env0_0 = a0;
return this.table.transaction(_fun21016, a1);
}}, {key: 'upgradeTransaction', value: value_21017}, {key: 'getManySyncUnsafe', value: function(a0) {
return this.table.getManySyncUnsafe([], a0);
}}, {key: 'getMapEntriesSyncUnsafe', value: function() {
return this.table.getMapEntriesSyncUnsafe();
}}]);
}
function _fun21020() { // fn#21020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:1515, offset: 0x00ee7f54, size: 108 bytes, params: 1, frame: 16
return env0_3(DaoTransaction, [{key: 'put', value: function(a0, a1) {
var value = a2;
this.transaction.put({key: [a0], data: a1, generation: null},
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'delete', value: function(a0) {
return arguments.length === 0 ? this.transaction.delete() : this.transaction.delete([a0]);
}}], [{key: 'fromDatabaseTransaction', value: value_21024}]);
}
function value_21015(a0, a1) { // fn#21015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2041:1168, offset: 0x00ee7e97, size: 40 bytes, params: 3, frame: 13
const env0_0 = a0;
return this.table.transaction(_fun21016, a1);
}
global.__d(_fun21001, 1914, [6, 7, 1915, 1917, 2]) /* metro module 1914, dependencies: [6, 7, 1915, 1917, 2] */;
@@ -1,4 +1,12 @@
/* Metro module 1918; source: ../discord_common/js/packages/kv-storage/js/api/Database.tsx; dependencies: [5, 6, 7, 1917, 1919, 20, 1920, 2] */
import Module00005 from '../../../../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import ClassCallCheck from '../../../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as TypesModule from '../types/index.tsx'; /* Metro dependency 1917 */
import * as RuntimeModule from '../raw/Runtime.tsx'; /* Metro dependency 1919 */
import * as HostModule from '../raw/Host.tsx'; /* Metro dependency 1920 */
function _fun21072(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:6, offset: 0x00ee96de, size: 191 bytes, params: 8, frame: 19
const env0_0 = require;
const _arrayLikeToArray_21075 = function(a0, a1) {
@@ -46,332 +54,342 @@ function _fun21072(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(6) /* metro dependency 6 */;
const env0_5 = importDefault(7) /* metro dependency 7 */;
let value = _fun21076();
let value2 = _fun21101();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/Database.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/Database.tsx');
exports.Database = value;
exports.DatabaseTransaction = value2;
}
function _createForOfIteratorHelperLoose_21073(a0, a1) { // fn#21073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:130, offset: 0x00ee979d, size: 370 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)) {
function _createForOfIteratorHelperLoose_21073(a0, a1) { // fn#21073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:130, offset: 0x00ee979d, size: 370 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);
}
return _fun21074;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_21075(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') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun21074;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_21075(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
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_21075(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_21075(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun21074;
}
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 _fun21074() { // fn#21074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:701, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
function _fun21076() { // fn#21076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1046, offset: 0x00ee990f, size: 399 bytes, params: 1, frame: 18
const Database2 = Database;
const items2 = [{key: 'close', value: function() {
this.lastState = require(dependencyMap[3]).DatabaseState.Closed;
var property = this.raw;
if (property != null) {
property.close();
}
this.raw = null;
require(dependencyMap[4]).Runtime.removeCompletionCallback(this.databaseStateCallback);
}}];
items2[1] = {key: 'disable', value: value_21080};
items2[2] = {key: 'execute', value: value_21081};
items2[3] = {key: 'executeSync', value: value_21084};
items2[4] = {key: 'fullVacuum', value: function() {
return this.execute({'type': 'db.vacuum', 'handle': 0, 'complete': true});
}};
items2[5] = {key: 'fsInfo', value: function() {
return this.execute({'type': 'db.fs_info', 'handle': 0});
}};
items2[6] = {key: 'incrementalVacuum', value: function() {
return this.execute({'type': 'db.vacuum', 'handle': 0, 'complete': false});
}};
items2[7] = {key: 'instantaneousState', value: value_21089};
const env0_1 = Module00005(_fun21091);
items2[8] = {key: 'instantaneousStateAsync', value: value_21092};
items2[9] = {key: 'state', value: function() {
return this.lastState;
}};
items2[10] = {key: 'transaction', value: value_21094};
const env0_0 = Module00005(_fun21097);
return CreateClass(Database2, items2, [{key: 'open', value: value_21098}, {key: 'openSyncUnsafe', value: value_21099},
{key: 'delete', value: function(a0) {
var Host = require(dependencyMap[6]).Host;
return Host.delete(a0);
}}]);
function Database(a0) { // fn#21077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1057, offset: 0x00ee9a9e, size: 143 bytes, params: 2, frame: 16
env1_4(this, Database);
this.raw = a0;
this.name = a0.name;
const DatabaseState = (TypesModule).DatabaseState;
const Open = DatabaseState.Open;
this.lastState = Open;
this.handle = a0.handle;
const Runtime = (RuntimeModule).Runtime;
this.databaseStateCallback = Runtime.addDatabaseStateCallback(_fun21078);
function _fun21078(a0, a1) { // fn#21078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1257, offset: 0x00ee9b2d, size: 37 bytes, params: 3, frame: 3
if (env0_0.handle === a0) {
env0_0.lastState = a1;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun21074;
}
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 _fun21076() { // fn#21076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1046, offset: 0x00ee990f, size: 399 bytes, params: 1, frame: 18
const closure = Database;
const binding = env0_5;
const items2 = [{key: 'close', value: function() {
this.lastState = require(dependencyMap[3]).DatabaseState.Closed;
var property = this.raw;
if (property != null) {
property.close();
}
this.raw = null;
require(dependencyMap[4]).Runtime.removeCompletionCallback(this.databaseStateCallback);
}}];
items2[1] = {key: 'disable', value: value_21080};
items2[2] = {key: 'execute', value: value_21081};
items2[3] = {key: 'executeSync', value: value_21084};
items2[4] = {key: 'fullVacuum', value: function() {
return this.execute({'type': 'db.vacuum', 'handle': 0, 'complete': true});
}};
items2[5] = {key: 'fsInfo', value: function() {
return this.execute({'type': 'db.fs_info', 'handle': 0});
}};
items2[6] = {key: 'incrementalVacuum', value: function() {
return this.execute({'type': 'db.vacuum', 'handle': 0, 'complete': false});
}};
items2[7] = {key: 'instantaneousState', value: value_21089};
const binding2 = env0_3;
const env0_1 = binding2(_fun21091);
items2[8] = {key: 'instantaneousStateAsync', value: value_21092};
items2[9] = {key: 'state', value: function() {
return this.lastState;
}};
items2[10] = {key: 'transaction', value: value_21094};
const env0_0 = binding2(_fun21097);
return binding(closure, items2, [{key: 'open', value: value_21098}, {key: 'openSyncUnsafe', value: value_21099},
{key: 'delete', value: function(a0) {
var Host = require(dependencyMap[6]).Host;
return Host.delete(a0);
}}]);
}
function _fun21101() { // fn#21101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3584, offset: 0x00eea198, size: 101 bytes, params: 1, frame: 15
return env0_5(DatabaseTransaction, [{key: 'add', value: function(a0) {
this.operations.push(a0);
}}, {key: 'complete', value: value_21104}, {key: 'toString', value: function() {
return '[DatabaseTransaction ' + this.database.handle + ': ' + this.operations.length + ' ops]';
}}]);
}
function Database(a0) { // fn#21077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1057, offset: 0x00ee9a9e, size: 143 bytes, params: 2, frame: 16
env1_4(this, Database);
this.raw = a0;
this.name = a0.name;
const DatabaseState = (require(1917) /* metro dependency 1917: types */).DatabaseState;
const Open = DatabaseState.Open;
this.lastState = Open;
this.handle = a0.handle;
const Runtime = (require(1919) /* metro dependency 1919: Runtime */).Runtime;
this.databaseStateCallback = Runtime.addDatabaseStateCallback(_fun21078);
}
function value_21080(a0) { // fn#21080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1541, offset: 0x00ee9bca, size: 111 bytes, params: 2, frame: 12
var r0;
var value;
if (this.raw == null) {
r0 = global.Promise.resolve();
} else {
value = environment.__proto__;
this.lastState = (require(1917) /* metro dependency 1917: types */).DatabaseState.Disabled;
value = this.execute({'type': 'db.disable', 'handle': 0, reason: a0});
r0 = value;
}
return r0;
}
function value_21081(a0, a1) { // fn#21081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1717, offset: 0x00ee9c39, size: 232 bytes, params: 3, frame: 19
var environment;
var r8;
var value2;
var defaultImport;
var timeAsync;
let value = a1;
const env0_1 = a0;
if (this.raw == null) {
throw new global.Error('database is no longer open (database: ' + this);
}
let r0 = 'key' in a0 ? a0.key[0] : a0.table;
const closure = value_21081Callback;
if (value === null) {
r0 = closure();
} else {
value2 = environment.__proto__;
defaultImport = importDefault(20) /* metro dependency 20: AppStartPerformance */;
timeAsync = defaultImport.timeAsync;
r8 = value ?? a0.type;
value = '';
value = value + r8 + ' ' + (r0 ?? value);
value = Reflect.apply(timeAsync, defaultImport, ['💾', value, closure]);
r0 = value;
}
return r0;
}
function value_21084(a0) { // fn#21084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:2078, offset: 0x00ee9da8, size: 212 bytes, params: 2, frame: 19
var environment;
var value;
var Error;
const env0_1 = a0;
if (this.raw == null) {
Error = global.Error;
value = 'database is no longer open (database: ' + this;
throw new Error();
}
const r1 = 'key' in a0 ? a0.key[0] : a0.table;
value = environment.__proto__;
value = importDefault(20) /* metro dependency 20: AppStartPerformance */;
return value.time('💾', 'SYNC: ' + a0.type + ' ' + (r1 ?? ''), _fun21085);
}
function value_21089() { // fn#21089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:2650, offset: 0x00ee9f14, size: 84 bytes, params: 1, frame: 12
var r0;
var value;
if (this.raw == null) {
value = environment.__proto__;
r0 = (require(1917) /* metro dependency 1917: types */).DatabaseState.Closed;
} else {
value = this.executeSync({type: 'db.state'});
this.lastState = value;
r0 = value;
}
return r0;
}
function* _fun21091() { // fn#21091, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:2809, offset: 0x00ee9f71, size: 111 bytes, params: 1, frame: 13
if (false) {
return undefined;
}
if (this.raw == null) {
value = environment.__proto__.__proto__;
return env2_0(env2_2[3]).DatabaseState.Closed;
}
yield this.execute({type: 'db.state'});
value = undefined;
if (true) {
this.lastState = value;
}
return value;
}
function value_21094(a0, a1) { // fn#21094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3077, offset: 0x00ee9feb, size: 95 bytes, params: 3, frame: 12
var environment;
const env0_1 = a1;
const value = environment.__proto__;
let value2 = new env1_6(this);
value2 = a0(value2);
const Promise = global.Promise;
value2 = Promise.resolve(value2);
return value2.then(_fun21095);
}
function* _fun21097(a0, a1) { // fn#21097, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3286, offset: 0x00eea0b3, size: 105 bytes, params: 3, frame: 15
if (false) {
return undefined;
}
value = environment.__proto__;
value = environment.__proto__.__proto__;
const Host = env2_0(env2_2[6]).Host;
yield Host.open(a0, a1);
value = undefined;
if (false) {
return value;
}
const value4 = Object.create(dependencyMap.prototype, {constructor: {value: dependencyMap}});
const dependencyMap2 = new dependencyMap(value);
return dependencyMap2 instanceof Object ? dependencyMap2 : value4;
}
function value_21099(a0, a1) { // fn#21099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3433, offset: 0x00eea11c, size: 78 bytes, params: 3, frame: 14
let value = environment.__proto__;
const Host = (require(1920) /* metro dependency 1920: Host */).Host;
value = Host.openSyncUnsafe(a0, a1);
const value2 = Object.create(Database.prototype, {constructor: {value: Database}});
const database = new Database();
return database instanceof Object ? database : value2;
}
function DatabaseTransaction(a0) { // fn#21102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3605, offset: 0x00eea1fd, size: 46 bytes, params: 2, frame: 13
env1_4(this, DatabaseTransaction);
this.database = a0;
this.operations = [];
}
function value_21104() { // fn#21104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3780, offset: 0x00eea245, size: 71 bytes, params: 1, frame: 15
var r2;
var value3;
var value4;
let value = environment.__proto__;
value = _createForOfIteratorHelperLoose_21073(this.operations);
const value2 = value();
let done = value2.done;
if (!done) {
for (r2 = value2; true; r2 = value4) {
value3 = r2.value;
value3.handle = 0;
value4 = value();
done = value4.done;
if (done) {
break;
function value_21080(a0) { // fn#21080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1541, offset: 0x00ee9bca, size: 111 bytes, params: 2, frame: 12
var r0;
var value;
if (this.raw == null) {
r0 = global.Promise.resolve();
} else {
value = environment.__proto__;
this.lastState = (require(1917) /* metro dependency 1917: types */).DatabaseState.Disabled;
value = this.execute({'type': 'db.disable', 'handle': 0, reason: a0});
r0 = value;
}
return r0;
}
function value_21081(a0, a1) { // fn#21081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1717, offset: 0x00ee9c39, size: 232 bytes, params: 3, frame: 19
var environment;
var r8;
var value2;
var defaultImport;
var timeAsync;
let value = a1;
const env0_1 = a0;
if (this.raw == null) {
throw new global.Error('database is no longer open (database: ' + this);
}
let r0 = 'key' in a0 ? a0.key[0] : a0.table;
const value_21081Callback2 = value_21081Callback;
if (value === null) {
r0 = value_21081Callback2();
} else {
value2 = environment.__proto__;
defaultImport = importDefault(20) /* metro dependency 20: AppStartPerformance */;
timeAsync = defaultImport.timeAsync;
r8 = value ?? a0.type;
value = '';
value = value + r8 + ' ' + (r0 ?? value);
value = Reflect.apply(timeAsync, defaultImport, ['💾', value, value_21081Callback2]);
r0 = value;
}
return r0;
function value_21081Callback() { // fn#21082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1856, owner: value_21081.callback, offset: 0x00ee9d21, size: 80 bytes, params: 1, frame: 14
const Runtime = (RuntimeModule).Runtime;
return Runtime.executeAsync(require ?? env0_1.type, _fun21083);
function _fun21083(a0) { // fn#21083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1908, offset: 0x00ee9d71, size: 55 bytes, params: 2, frame: 14
const raw = env1_0.raw;
const execute = raw.execute;
const object = {};
copyDataProperties(object, env1_1, undefined);
object['handle'] = 0;
Reflect.apply(execute, raw, [a0, object]);
}
}
}
function value_21084(a0) { // fn#21084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:2078, offset: 0x00ee9da8, size: 212 bytes, params: 2, frame: 19
var environment;
var value;
var Error;
const env0_1 = a0;
if (this.raw == null) {
Error = global.Error;
value = 'database is no longer open (database: ' + this;
throw new Error();
}
const r1 = 'key' in a0 ? a0.key[0] : a0.table;
value = environment.__proto__;
value = importDefault(20) /* metro dependency 20: AppStartPerformance */;
return value.time('💾', 'SYNC: ' + a0.type + ' ' + (r1 ?? ''), _fun21085);
function _fun21085() { // fn#21085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:2268, offset: 0x00ee9e7c, size: 62 bytes, params: 1, frame: 15
const raw = env0_0.raw;
const execute = raw.execute;
const object = {};
copyDataProperties(object, env0_1, undefined);
object['handle'] = 0;
return Reflect.apply(execute, raw, [null, object, {synchronous: true}]);
}
}
function value_21089() { // fn#21089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:2650, offset: 0x00ee9f14, size: 84 bytes, params: 1, frame: 12
var r0;
var value;
if (this.raw == null) {
value = environment.__proto__;
r0 = (require(1917) /* metro dependency 1917: types */).DatabaseState.Closed;
} else {
value = this.executeSync({type: 'db.state'});
this.lastState = value;
r0 = value;
}
return r0;
}
function* _fun21091() { // fn#21091, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:2809, offset: 0x00ee9f71, size: 111 bytes, params: 1, frame: 13
if (false) {
return undefined;
}
if (this.raw == null) {
value = environment.__proto__.__proto__;
return env2_0(env2_2[3]).DatabaseState.Closed;
}
yield this.execute({type: 'db.state'});
value = undefined;
if (true) {
this.lastState = value;
}
return value;
}
function value_21092() { // fn#21092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:2929, offset: 0x00c3b2ba, size: 30 bytes, params: 1, frame: 13
return env0_1.apply(this, arguments);
}
function value_21094(a0, a1) { // fn#21094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3077, offset: 0x00ee9feb, size: 95 bytes, params: 3, frame: 12
var environment;
const env0_1 = a1;
const value = environment.__proto__;
let value2 = new env1_6(this);
value2 = a0(value2);
const Promise = global.Promise;
value2 = Promise.resolve(value2);
return value2.then(_fun21095);
function _fun21095() { // fn#21095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3148, offset: 0x00eea04a, size: 96 bytes, params: 1, frame: 16
var r0;
var binding;
var execute;
var object;
if (env0_2.operations.length > 0) {
binding = env0_0;
execute = binding.execute;
object = {type: 'db.transaction'};
object.operations = env0_2.complete();
r0 = Reflect.apply(execute, binding, [object, require]);
} else {
r0 = global.Promise.resolve();
}
return r0;
}
}
function* _fun21097(a0, a1) { // fn#21097, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3286, offset: 0x00eea0b3, size: 105 bytes, params: 3, frame: 15
if (false) {
return undefined;
}
value = environment.__proto__;
value = environment.__proto__.__proto__;
const Host = env2_0(env2_2[6]).Host;
yield Host.open(a0, a1);
value = undefined;
if (false) {
return value;
}
const value4 = Object.create(dependencyMap.prototype, {constructor: {value: dependencyMap}});
const dependencyMap2 = new dependencyMap(value);
return dependencyMap2 instanceof Object ? dependencyMap2 : value4;
}
function value_21098() { // fn#21098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3355, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
function value_21099(a0, a1) { // fn#21099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3433, offset: 0x00eea11c, size: 78 bytes, params: 3, frame: 14
let value = environment.__proto__;
const Host = (HostModule).Host;
value = Host.openSyncUnsafe(a0, a1);
const value2 = Object.create(Database.prototype, {constructor: {value: Database}});
const database = new Database();
return database instanceof Object ? database : value2;
}
}
return this.operations;
}
function _fun21078(a0, a1) { // fn#21078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1257, offset: 0x00ee9b2d, size: 37 bytes, params: 3, frame: 3
if (env0_0.handle === a0) {
env0_0.lastState = a1;
function _fun21101() { // fn#21101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3584, offset: 0x00eea198, size: 101 bytes, params: 1, frame: 15
return CreateClass(DatabaseTransaction, [{key: 'add', value: function(a0) {
this.operations.push(a0);
}}, {key: 'complete', value: value_21104}, {key: 'toString', value: function() {
return '[DatabaseTransaction ' + this.database.handle + ': ' + this.operations.length + ' ops]';
}}]);
function DatabaseTransaction(a0) { // fn#21102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3605, offset: 0x00eea1fd, size: 46 bytes, params: 2, frame: 13
env1_4(this, DatabaseTransaction);
this.database = a0;
this.operations = [];
}
function value_21104() { // fn#21104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3780, offset: 0x00eea245, size: 71 bytes, params: 1, frame: 15
var r2;
var value3;
var value4;
let value = environment.__proto__;
value = _createForOfIteratorHelperLoose_21073(this.operations);
const value2 = value();
let done = value2.done;
if (!done) {
for (r2 = value2; true; r2 = value4) {
value3 = r2.value;
value3.handle = 0;
value4 = value();
done = value4.done;
if (done) {
break;
}
}
}
return this.operations;
}
}
}
function value_21081Callback() { // fn#21082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1856, owner: value_21081.callback, offset: 0x00ee9d21, size: 80 bytes, params: 1, frame: 14
const Runtime = (require(1919) /* metro dependency 1919: Runtime */).Runtime;
return Runtime.executeAsync(require ?? env0_1.type, _fun21083);
}
function _fun21085() { // fn#21085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:2268, offset: 0x00ee9e7c, size: 62 bytes, params: 1, frame: 15
const raw = env0_0.raw;
const execute = raw.execute;
const object2 = {};
copyDataProperties(object2, env0_1, undefined);
object2['handle'] = 0;
return Reflect.apply(execute, raw, [null, object2, {synchronous: true}]);
}
function _fun21095() { // fn#21095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:3148, offset: 0x00eea04a, size: 96 bytes, params: 1, frame: 16
var r0;
var binding;
var execute;
var object2;
if (env0_2.operations.length > 0) {
binding = env0_0;
execute = binding.execute;
object2 = {type: 'db.transaction'};
object2.operations = env0_2.complete();
r0 = Reflect.apply(execute, binding, [object2, require]);
} else {
r0 = global.Promise.resolve();
}
return r0;
}
function _fun21083(a0) { // fn#21083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2045:1908, offset: 0x00ee9d71, size: 55 bytes, params: 2, frame: 14
const raw = env1_0.raw;
const execute = raw.execute;
const object2 = {};
copyDataProperties(object2, env1_1, undefined);
object2['handle'] = 0;
Reflect.apply(execute, raw, [a0, object2]);
}
global.__d(_fun21072, 1918, [5, 6, 7, 1917, 1919, 20, 1920,
2]) /* metro module 1918, dependencies: [5, 6, 7, 1917, 1919, 20, 1920, 2] */;
@@ -1,146 +1,202 @@
/* Metro module 1921; source: ../discord_common/js/packages/kv-storage/js/api/EntityDao.tsx; dependencies: [6, 7, 1915, 1917, 2] */
import ClassCallCheck from '../../../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as TableModule from './Table.tsx'; /* Metro dependency 1915 */
function _fun21146(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:6, offset: 0x00eeb0be, size: 157 bytes, params: 8, frame: 19
const env0_0 = require;
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 value = _fun21147();
const value2 = _fun21172();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/EntityDao.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/EntityDao.tsx');
exports.EntityDao = value;
exports.EntityDaoTransaction = value2;
}
function _fun21147() { // fn#21147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:118, offset: 0x00eeb15b, size: 453 bytes, params: 1, frame: 16
return CreateClass(EntityDao, [{key: 'prefix', get: function() {
return this.table.prefix;
}}, {key: 'withoutLogging', value: value_21150}, {key: 'get', value: function(a0) {
return this.table.get([a0]);
}}, {key: 'getMany', value: function(a0) {
return this.table.getMany([], a0);
}}, {key: 'getRange', value: function(a0, a1, a2) {
return this.table.getRange([a0], [a1], a2);
}}, {key: 'getKvEntries', value: function() {
return this.table.getKvEntries();
}}, {key: 'getMapEntries', value: function() {
return this.table.getMapEntries();
}}, {key: 'getIds', value: function() {
return this.table.getChildIds([]);
}}, {key: 'getParentId', value: function(a0) {
return this.table.getParentId([null, a0]);
}}, {key: 'put', value: function(a0) {
var value = a1;
var env0_0 = a0;
var env0_1 = value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace;
return this.transaction(_fun21159, '' + this.prefix + ' put');
}}, {key: 'putAll', value: function(a0) {
var value = a1;
var env0_0 = a0;
var env0_1 = value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace;
return this.transaction(_fun21161, '' + this.prefix + ' putAll');
}}, {key: 'replaceAll', value: function(a0) {
var env0_0 = a0;
return this.transaction(_fun21163, '' + this.prefix + ' replaceAll');
}}, {key: 'delete', value: function(a0) {
var env0_0 = a0;
return this.transaction(_fun21165, '' + this.prefix + ' delete');
}}, {key: 'transaction', value: function(a0, a1) {
var env0_0 = a0;
return this.table.transaction(_fun21167, a1);
}}, {key: 'upgradeTransaction', value: value_21168}, {key: 'getManySyncUnsafe', value: function(a0) {
return this.table.getManySyncUnsafe([], a0);
}}, {key: 'getMapEntriesSyncUnsafe', value: function() {
return this.table.getMapEntriesSyncUnsafe();
}}], [{key: 'cell', value: function(a0, a1) {
return {key: [a0.id], data: a0, generation: a1};
}}]);
function EntityDao(a0, a1, a2) { // fn#21148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:129, offset: 0x00ee7c5b, size: 117 bytes, params: 4, frame: 19
let value = a3;
const r7 = !(value !== undefined) || value;
value = environment.__proto__;
env1_2(this, EntityDao);
this.originalPrefix = a0;
const Table = (TableModule).Table;
this.table = new Table([a0], a1, a2, r7);
}
function _fun21147() { // fn#21147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:118, offset: 0x00eeb15b, size: 453 bytes, params: 1, frame: 16
return env0_3(EntityDao, [{key: 'prefix', get: function() {
return this.table.prefix;
}}, {key: 'withoutLogging', value: value_21150}, {key: 'get', value: function(a0) {
return this.table.get([a0]);
}}, {key: 'getMany', value: function(a0) {
return this.table.getMany([], a0);
}}, {key: 'getRange', value: function(a0, a1, a2) {
return this.table.getRange([a0], [a1], a2);
}}, {key: 'getKvEntries', value: function() {
return this.table.getKvEntries();
}}, {key: 'getMapEntries', value: function() {
return this.table.getMapEntries();
}}, {key: 'getIds', value: function() {
return this.table.getChildIds([]);
}}, {key: 'getParentId', value: function(a0) {
return this.table.getParentId([null, a0]);
}}, {key: 'put', value: function(a0) {
var value = a1;
var env0_0 = a0;
var env0_1 = value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace;
return this.transaction(_fun21159, '' + this.prefix + ' put');
}}, {key: 'putAll', value: function(a0) {
var value = a1;
var env0_0 = a0;
var env0_1 = value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace;
return this.transaction(_fun21161, '' + this.prefix + ' putAll');
}}, {key: 'replaceAll', value: function(a0) {
var env0_0 = a0;
return this.transaction(_fun21163, '' + this.prefix + ' replaceAll');
}}, {key: 'delete', value: function(a0) {
var env0_0 = a0;
return this.transaction(_fun21165, '' + this.prefix + ' delete');
}}, {key: 'transaction', value: function(a0, a1) {
var env0_0 = a0;
return this.table.transaction(_fun21167, a1);
}}, {key: 'upgradeTransaction', value: value_21168}, {key: 'getManySyncUnsafe', value: function(a0) {
return this.table.getManySyncUnsafe([], a0);
}}, {key: 'getMapEntriesSyncUnsafe', value: function() {
return this.table.getMapEntriesSyncUnsafe();
}}], [{key: 'cell', value: function(a0, a1) {
return {key: [a0.id], data: a0, generation: a1};
}}]);
}
function value_21150() { // fn#21150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:345, offset: 0x00ee7ce1, size: 64 bytes, params: 1, frame: 17
const originalPrefix = this.originalPrefix;
const tableId = this.table.tableId;
const database = this.table.database;
const value = Object.create(EntityDao.prototype, {constructor: {value: EntityDao}});
const entityDao = new EntityDao(originalPrefix, tableId, database, false);
return entityDao instanceof Object ? entityDao : value;
}
function _fun21172() { // fn#21172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1859, offset: 0x00eeb59b, size: 177 bytes, params: 1, frame: 16
return env0_3(EntityDaoTransaction, [{key: 'put', value: value_21174}, {key: 'putAll', value: function(a0) {
var value = a1;
return this.transaction.putAll(a0.map(_fun21176),
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'replaceAll', value: function(a0) {
this.delete();
this.putAll(a0);
}}, {key: 'delete', value: function(a0) {
return arguments.length === 0 ? this.transaction.delete([]) : this.transaction.delete([a0]);
}}, {key: 'deleteAllExcept', value: function(a0) {
this.transaction.deleteAllExcept([], a0);
}}], [{key: 'fromDatabaseTransaction', value: value_21180}]);
}
function value_21158(a0) { // fn#21158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:954, offset: 0x00eeb320, size: 114 bytes, params: 2, frame: 16
var environment;
var Replace;
let value = a1;
const env0_0 = a0;
if (value === undefined) {
value = environment.__proto__;
Replace = (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
}
return this.transaction(_fun21159, '' + this.prefix + ' put');
function _fun21159(a0) { // fn#21159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1025, offset: 0x00eeb392, size: 28 bytes, params: 2, frame: 13
return a0.put(env0_0, env0_1);
}
}
function value_21160(a0) { // fn#21160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1084, offset: 0x00eeb3ae, size: 114 bytes, params: 2, frame: 16
var environment;
var Replace;
let value = a1;
const env0_0 = a0;
if (value === undefined) {
value = environment.__proto__;
Replace = (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
}
return this.transaction(_fun21161, '' + this.prefix + ' putAll');
function _fun21161(a0) { // fn#21161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1155, offset: 0x00eeb420, size: 28 bytes, params: 2, frame: 13
return a0.putAll(env0_0, env0_1);
}
}
function value_21162(a0) { // fn#21162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1224, offset: 0x00eeb43c, size: 66 bytes, params: 2, frame: 16
const env0_0 = a0;
return this.transaction(_fun21163, '' + this.prefix + ' replaceAll');
function _fun21163(a0) { // fn#21163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1261, offset: 0x00eeb47e, size: 23 bytes, params: 2, frame: 11
return a0.replaceAll(env0_0);
}
}
function value_21164(a0) { // fn#21164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1332, offset: 0x00eeb495, size: 66 bytes, params: 2, frame: 16
const env0_0 = a0;
return this.transaction(_fun21165, '' + this.prefix + ' delete');
function _fun21165(a0) { // fn#21165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1369, offset: 0x00eeb4d7, size: 22 bytes, params: 2, frame: 11
return a0.delete(env0_0);
}
}
function value_21166(a0, a1) { // fn#21166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1437, offset: 0x00eeb4ed, size: 40 bytes, params: 3, frame: 13
const env0_0 = a0;
return this.table.transaction(_fun21167, a1);
function _fun21167(a0) { // fn#21167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1482, offset: 0x00eeb515, size: 46 bytes, params: 2, frame: 12
const binding = env0_0;
const value = environment.__proto__.__proto__;
return binding(new env2_5(a0));
}
}
function value_21168(a0) { // fn#21168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1535, offset: 0x00eeb543, size: 52 bytes, params: 2, frame: 12
let value = environment.__proto__;
const binding = env1_5;
value = this.table.upgradeTransaction(a0);
const value2 = Object.create(binding.prototype, {constructor: {value: binding}});
value = new binding(value);
return value instanceof Object ? value : value2;
}
function value_21158(a0) { // fn#21158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:954, offset: 0x00eeb320, size: 114 bytes, params: 2, frame: 16
var environment;
var Replace;
let value = a1;
const env0_0 = a0;
if (value === undefined) {
value = environment.__proto__;
Replace = (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
}
return this.transaction(_fun21159, '' + this.prefix + ' put');
}
function value_21160(a0) { // fn#21160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1084, offset: 0x00eeb3ae, size: 114 bytes, params: 2, frame: 16
var environment;
var Replace;
let value = a1;
const env0_0 = a0;
if (value === undefined) {
value = environment.__proto__;
Replace = (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
function _fun21172() { // fn#21172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1859, offset: 0x00eeb59b, size: 177 bytes, params: 1, frame: 16
return CreateClass(EntityDaoTransaction, [{key: 'put', value: value_21174}, {key: 'putAll', value: function(a0) {
var value = a1;
return this.transaction.putAll(a0.map(_fun21176),
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'replaceAll', value: function(a0) {
this.delete();
this.putAll(a0);
}}, {key: 'delete', value: function(a0) {
return arguments.length === 0 ? this.transaction.delete([]) : this.transaction.delete([a0]);
}}, {key: 'deleteAllExcept', value: function(a0) {
this.transaction.deleteAllExcept([], a0);
}}], [{key: 'fromDatabaseTransaction', value: value_21180}]);
function EntityDaoTransaction(a0) { // fn#21173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1870, offset: 0x00ee7fc0, size: 36 bytes, params: 2, frame: 13
env1_2(this, EntityDaoTransaction);
this.transaction = a0;
}
function value_21174(a0) { // fn#21174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1999, offset: 0x00eeb64c, size: 91 bytes, params: 2, frame: 16
let value = a1;
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
const transaction = this.transaction;
const put = transaction.put;
value = environment.__proto__;
const binding = env1_4;
return Reflect.apply(put, transaction, [binding.cell(a0, null), r3]);
}
function value_21175(a0) { // fn#21175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:2113, offset: 0x00eeb6a7, size: 87 bytes, params: 2, frame: 15
const value = a1;
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
const transaction = this.transaction;
return transaction.putAll(a0.map(_fun21176), r3);
function _fun21176(a0) { // fn#21176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:2197, offset: 0x00eeb6fe, size: 26 bytes, params: 2, frame: 13
return env2_4.cell(a0, null);
}
}
function value_21180(a0, a1, a2) { // fn#21180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:2529, offset: 0x00ee8082, size: 89 bytes, params: 4, frame: 16
const value = environment.__proto__;
const TableTransaction = (TableModule).TableTransaction;
const tableTransaction = new TableTransaction(a0, a1, a2);
const value2 = Object.create(EntityDaoTransaction.prototype, {constructor: {value: EntityDaoTransaction}});
const entityDaoTransaction = new EntityDaoTransaction(tableTransaction);
return entityDaoTransaction instanceof Object ? entityDaoTransaction : value2;
}
}
return this.transaction(_fun21161, '' + this.prefix + ' putAll');
}
function value_21162(a0) { // fn#21162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1224, offset: 0x00eeb43c, size: 66 bytes, params: 2, frame: 16
const env0_0 = a0;
return this.transaction(_fun21163, '' + this.prefix + ' replaceAll');
}
function value_21164(a0) { // fn#21164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1332, offset: 0x00eeb495, size: 66 bytes, params: 2, frame: 16
const env0_0 = a0;
return this.transaction(_fun21165, '' + this.prefix + ' delete');
}
function value_21166(a0, a1) { // fn#21166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1437, offset: 0x00eeb4ed, size: 40 bytes, params: 3, frame: 13
const env0_0 = a0;
return this.table.transaction(_fun21167, a1);
}
function value_21174(a0) { // fn#21174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1999, offset: 0x00eeb64c, size: 91 bytes, params: 2, frame: 16
let value = a1;
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
const transaction = this.transaction;
const put = transaction.put;
value = environment.__proto__;
const binding = env1_4;
return Reflect.apply(put, transaction, [binding.cell(a0, null), r3]);
}
function value_21175(a0) { // fn#21175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:2113, offset: 0x00eeb6a7, size: 87 bytes, params: 2, frame: 15
const value = a1;
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
const transaction = this.transaction;
return transaction.putAll(a0.map(_fun21176), r3);
}
function _fun21159(a0) { // fn#21159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1025, offset: 0x00eeb392, size: 28 bytes, params: 2, frame: 13
return a0.put(env0_0, env0_1);
}
function _fun21161(a0) { // fn#21161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1155, offset: 0x00eeb420, size: 28 bytes, params: 2, frame: 13
return a0.putAll(env0_0, env0_1);
}
function _fun21163(a0) { // fn#21163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:1261, offset: 0x00eeb47e, size: 23 bytes, params: 2, frame: 11
return a0.replaceAll(env0_0);
}
function _fun21176(a0) { // fn#21176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2048:2197, offset: 0x00eeb6fe, size: 26 bytes, params: 2, frame: 13
return env2_4.cell(a0, null);
}
global.__d(_fun21146, 1921, [6, 7, 1915, 1917, 2]) /* metro module 1921, dependencies: [6, 7, 1915, 1917, 2] */;
@@ -1,95 +1,142 @@
/* Metro module 1922; source: ../discord_common/js/packages/kv-storage/js/api/GuildDao.tsx; dependencies: [6, 7, 1915, 1917, 2] */
import ClassCallCheck from '../../../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as TableModule from './Table.tsx'; /* Metro dependency 1915 */
function _fun21181(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:6, offset: 0x00eeb797, size: 153 bytes, params: 8, frame: 19
const env0_0 = require;
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 value = _fun21182();
const value2 = _fun21203();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/GuildDao.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/GuildDao.tsx');
exports.GuildDao = value;
exports.GuildDaoTransaction = value2;
}
function _fun21182() { // fn#21182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:118, offset: 0x00eeb830, size: 448 bytes, params: 1, frame: 15
return env0_3(GuildDao, [{key: 'prefix', get: function() {
return this.table.prefix;
}}, {key: 'withoutLogging', value: value_21185}, {key: 'get', value: function(a0, a1) {
return this.table.get([a0, a1]);
}}, {key: 'getMany', value: function(a0, a1) {
return this.table.getMany([a0], a1);
}}, {key: 'getRange', value: function(a0, a1, a2, a3) {
return this.table.getRange([a0, a1], [a0, a2], a3);
}}, {key: 'getKvEntries', value: function() {
return this.table.getKvEntries();
}}, {key: 'getMapEntries', value: function() {
return this.table.getMapEntries();
}}, {key: 'getIds', value: function(a0) {
return this.table.getChildIds([a0]);
}}, {key: 'getGuildIds', value: function() {
return this.table.getChildIds([]);
}}, {key: 'getGuildId', value: function(a0) {
return this.table.getParentId([null, a0]);
}}, {key: 'put', value: function(a0, a1, a2) {
var value = a3;
return this.putWithGeneration(a0, a1, a2, null,
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'putWithGeneration', value: function(a0, a1, a2, a3) {
var value = a4;
return this.table.put({key: [a0, a1], data: a2, generation: a3},
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'delete', value: function(a0, a1) {
var value = arguments.length;
if (value === 0) {
return this.table.delete([]);
function _fun21182() { // fn#21182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:118, offset: 0x00eeb830, size: 448 bytes, params: 1, frame: 15
return CreateClass(GuildDao, [{key: 'prefix', get: function() {
return this.table.prefix;
}}, {key: 'withoutLogging', value: value_21185}, {key: 'get', value: function(a0, a1) {
return this.table.get([a0, a1]);
}}, {key: 'getMany', value: function(a0, a1) {
return this.table.getMany([a0], a1);
}}, {key: 'getRange', value: function(a0, a1, a2, a3) {
return this.table.getRange([a0, a1], [a0, a2], a3);
}}, {key: 'getKvEntries', value: function() {
return this.table.getKvEntries();
}}, {key: 'getMapEntries', value: function() {
return this.table.getMapEntries();
}}, {key: 'getIds', value: function(a0) {
return this.table.getChildIds([a0]);
}}, {key: 'getGuildIds', value: function() {
return this.table.getChildIds([]);
}}, {key: 'getGuildId', value: function(a0) {
return this.table.getParentId([null, a0]);
}}, {key: 'put', value: function(a0, a1, a2) {
var value = a3;
return this.putWithGeneration(a0, a1, a2, null,
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'putWithGeneration', value: function(a0, a1, a2, a3) {
var value = a4;
return this.table.put({key: [a0, a1], data: a2, generation: a3},
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'delete', value: function(a0, a1) {
var value = arguments.length;
if (value === 0) {
return this.table.delete([]);
}
if (value === 1) {
return this.table.delete([a0]);
}
return this.table.delete([a0, a1]);
}}, {key: 'deleteGeneration', value: function(a0, a1) {
return this.table.deleteGeneration([], a0, a1);
}}, {key: 'transaction', value: function(a0, a1) {
var env0_0 = a0;
return this.table.transaction(_fun21199, a1);
}}, {key: 'upgradeTransaction', value: value_21200}, {key: 'getManySyncUnsafe', value: function(a0, a1) {
return this.table.getManySyncUnsafe([a0], a1);
}}, {key: 'getMapEntriesSyncUnsafe', value: function() {
return this.table.getMapEntriesSyncUnsafe();
}}]);
function GuildDao(a0, a1, a2) { // fn#21183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:129, offset: 0x00ee7c5b, size: 117 bytes, params: 4, frame: 19
let value = a3;
const r7 = !(value !== undefined) || value;
value = environment.__proto__;
env1_2(this, GuildDao);
this.originalPrefix = a0;
const Table = (TableModule).Table;
this.table = new Table([a0], a1, a2, r7);
}
if (value === 1) {
return this.table.delete([a0]);
function value_21185() { // fn#21185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:342, offset: 0x00ee7ce1, size: 64 bytes, params: 1, frame: 17
const originalPrefix = this.originalPrefix;
const tableId = this.table.tableId;
const database = this.table.database;
const value = Object.create(GuildDao.prototype, {constructor: {value: GuildDao}});
const guildDao = new GuildDao(originalPrefix, tableId, database, false);
return guildDao instanceof Object ? guildDao : value;
}
return this.table.delete([a0, a1]);
}}, {key: 'deleteGeneration', value: function(a0, a1) {
return this.table.deleteGeneration([], a0, a1);
}}, {key: 'transaction', value: function(a0, a1) {
var env0_0 = a0;
return this.table.transaction(_fun21199, a1);
}}, {key: 'upgradeTransaction', value: value_21200}, {key: 'getManySyncUnsafe', value: function(a0, a1) {
return this.table.getManySyncUnsafe([a0], a1);
}}, {key: 'getMapEntriesSyncUnsafe', value: function() {
return this.table.getMapEntriesSyncUnsafe();
}}]);
}
function _fun21203() { // fn#21203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:1913, offset: 0x00eebc27, size: 154 bytes, params: 1, frame: 16
return env0_3(GuildDaoTransaction, [{key: 'put', value: function(a0, a1, a2) {
var value = a3;
this.putWithGeneration(a0, a1, a2, null,
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'putWithGeneration', value: function(a0, a1, a2, a3) {
var value = a4;
return this.state.put({key: [a0, a1], data: a2, generation: a3},
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'delete', value: function(a0, a1) {
var value = arguments.length;
if (value === 0) {
this.state.delete([]);
} else if (value === 1) {
this.state.delete([a0]);
} else {
this.state.delete([a0, a1]);
function value_21198(a0, a1) { // fn#21198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:1563, offset: 0x00eebbda, size: 40 bytes, params: 3, frame: 13
const env0_0 = a0;
return this.table.transaction(_fun21199, a1);
function _fun21199(a0) { // fn#21199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:1608, offset: 0x00ee7ebf, size: 46 bytes, params: 2, frame: 12
const binding = env0_0;
const value = environment.__proto__.__proto__;
return binding(new env2_4(a0));
}
}
}}, {key: 'deleteGeneration', value: function(a0, a1) {
return this.state.deleteGeneration([], a0, a1);
}}], [{key: 'fromDatabaseTransaction', value: value_21209}]);
}
function value_21198(a0, a1) { // fn#21198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:1563, offset: 0x00eebbda, size: 40 bytes, params: 3, frame: 13
const env0_0 = a0;
return this.table.transaction(_fun21199, a1);
}
function GuildDaoTransaction(a0) { // fn#21204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:1924, offset: 0x00eebcc1, size: 36 bytes, params: 2, frame: 13
env1_2(this, GuildDaoTransaction);
this.state = a0;
function value_21200(a0) { // fn#21200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:1661, offset: 0x00ee7eed, size: 52 bytes, params: 2, frame: 12
let value = environment.__proto__;
const binding = env1_4;
value = this.table.upgradeTransaction(a0);
const value2 = Object.create(binding.prototype, {constructor: {value: binding}});
value = new binding(value);
return value instanceof Object ? value : value2;
}
}
function _fun21203() { // fn#21203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:1913, offset: 0x00eebc27, size: 154 bytes, params: 1, frame: 16
return CreateClass(GuildDaoTransaction, [{key: 'put', value: function(a0, a1, a2) {
var value = a3;
this.putWithGeneration(a0, a1, a2, null,
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'putWithGeneration', value: function(a0, a1, a2, a3) {
var value = a4;
return this.state.put({key: [a0, a1], data: a2, generation: a3},
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'delete', value: function(a0, a1) {
var value = arguments.length;
if (value === 0) {
this.state.delete([]);
} else if (value === 1) {
this.state.delete([a0]);
} else {
this.state.delete([a0, a1]);
}
}}, {key: 'deleteGeneration', value: function(a0, a1) {
return this.state.deleteGeneration([], a0, a1);
}}], [{key: 'fromDatabaseTransaction', value: value_21209}]);
function GuildDaoTransaction(a0) { // fn#21204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:1924, offset: 0x00eebcc1, size: 36 bytes, params: 2, frame: 13
env1_2(this, GuildDaoTransaction);
this.state = a0;
}
function value_21209(a0, a1, a2) { // fn#21209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2049:2569, offset: 0x00ee8082, size: 89 bytes, params: 4, frame: 16
const value = environment.__proto__;
const TableTransaction = (TableModule).TableTransaction;
const tableTransaction = new TableTransaction(a0, a1, a2);
const value2 = Object.create(GuildDaoTransaction.prototype, {constructor: {value: GuildDaoTransaction}});
const guildDaoTransaction = new GuildDaoTransaction(tableTransaction);
return guildDaoTransaction instanceof Object ? guildDaoTransaction : value2;
}
}
}
global.__d(_fun21181, 1922, [6, 7, 1915, 1917, 2]) /* metro module 1922, dependencies: [6, 7, 1915, 1917, 2] */;
@@ -1,191 +1,243 @@
/* Metro module 1923; source: ../discord_common/js/packages/kv-storage/js/api/GuildEntityDao.tsx; dependencies: [6, 7, 1915, 1917, 2] */
import ClassCallCheck from '../../../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as TableModule from './Table.tsx'; /* Metro dependency 1915 */
function _fun21210(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:6, offset: 0x00eebe23, size: 157 bytes, params: 8, frame: 19
const env0_0 = require;
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 value = _fun21211();
const value2 = _fun21240();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/GuildEntityDao.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/GuildEntityDao.tsx');
exports.GuildEntityDao = value;
exports.GuildEntityDaoTransaction = value2;
}
function _fun21211() { // fn#21211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:118, offset: 0x00eebec0, size: 522 bytes, params: 1, frame: 16
return env0_3(GuildEntityDao, [{key: 'prefix', get: function() {
return this.table.prefix;
}}, {key: 'withoutLogging', value: value_21214}, {key: 'get', value: function(a0, a1) {
return this.table.get([a0, a1]);
}}, {key: 'getMany', value: function(a0, a1) {
return this.table.getMany([a0], a1);
}}, {key: 'getRange', value: function(a0, a1, a2, a3) {
return this.table.getRange([a0, a1], [a0, a2], a3);
}}, {key: 'getKvEntries', value: function() {
return this.table.getKvEntries();
}}, {key: 'getMapEntries', value: function() {
return this.table.getMapEntries();
}}, {key: 'getIds', value: function(a0) {
return this.table.getChildIds([a0]);
}}, {key: 'getGuildIds', value: function() {
return this.table.getChildIds([]);
}}, {key: 'getGuildId', value: function(a0) {
return this.table.getParentId([null, a0]);
}}, {key: 'put', value: function(a0, a1) {
var value = a2;
var env0_0 = a0;
var env0_1 = a1;
var env0_2 = value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace;
return this.transaction(_fun21224, '' + this.prefix + ' put');
}}, {key: 'putAll', value: function(a0, a1) {
var value = a2;
var env0_0 = a0;
var env0_1 = a1;
var env0_2 = value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace;
return this.transaction(_fun21226, '' + this.prefix + ' putAll');
}}, {key: 'replaceAll', value: function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
return this.transaction(_fun21228, '' + this.prefix + ' replaceAll');
}}, {key: 'delete', value: function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
return this.transaction(_fun21230, '' + this.prefix + ' delete');
}}, {key: 'deleteGeneration', value: function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
return this.transaction(_fun21232, '' + this.prefix + ' deleteGeneration');
}}, {key: 'transaction', value: function(a0, a1) {
var env0_0 = a0;
return this.table.transaction(_fun21234, a1);
}}, {key: 'upgradeTransaction', value: value_21235}, {key: 'getManySyncUnsafe', value: function(a0, a1) {
return this.table.getManySyncUnsafe([a0], a1);
}}, {key: 'getMapEntriesSyncUnsafe', value: function() {
return this.table.getMapEntriesSyncUnsafe();
}}, {key: 'deleteSyncUnsafe', value: function(a0) {
return this.table.deleteSyncUnsafe([a0]);
}}], [{key: 'cell', value: function(a0, a1, a2) {
return {key: [a0, a1.id], data: a1, generation: a2};
}}]);
}
function _fun21240() { // fn#21240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:2206, offset: 0x00eec3a0, size: 223 bytes, params: 1, frame: 16
return env0_3(GuildEntityDaoTransaction, [{key: 'put', value: function(a0, a1) {
var value = a2;
return this.putWithGeneration(a0, a1, null,
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'putWithGeneration', value: value_21243}, {key: 'putAll', value: function(a0, a1) {
var value = a2;
var env0_0 = a0;
return this.transaction.putAll(a1.map(_fun21245),
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'replaceAll', value: function(a0, a1) {
this.delete(a0);
this.putAll(a0, a1);
}}, {key: 'delete', value: function(a0, a1) {
var value = arguments.length;
if (value === 0) {
return this.transaction.delete([]);
function _fun21211() { // fn#21211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:118, offset: 0x00eebec0, size: 522 bytes, params: 1, frame: 16
return CreateClass(GuildEntityDao, [{key: 'prefix', get: function() {
return this.table.prefix;
}}, {key: 'withoutLogging', value: value_21214}, {key: 'get', value: function(a0, a1) {
return this.table.get([a0, a1]);
}}, {key: 'getMany', value: function(a0, a1) {
return this.table.getMany([a0], a1);
}}, {key: 'getRange', value: function(a0, a1, a2, a3) {
return this.table.getRange([a0, a1], [a0, a2], a3);
}}, {key: 'getKvEntries', value: function() {
return this.table.getKvEntries();
}}, {key: 'getMapEntries', value: function() {
return this.table.getMapEntries();
}}, {key: 'getIds', value: function(a0) {
return this.table.getChildIds([a0]);
}}, {key: 'getGuildIds', value: function() {
return this.table.getChildIds([]);
}}, {key: 'getGuildId', value: function(a0) {
return this.table.getParentId([null, a0]);
}}, {key: 'put', value: function(a0, a1) {
var value = a2;
var env0_0 = a0;
var env0_1 = a1;
var env0_2 = value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace;
return this.transaction(_fun21224, '' + this.prefix + ' put');
}}, {key: 'putAll', value: function(a0, a1) {
var value = a2;
var env0_0 = a0;
var env0_1 = a1;
var env0_2 = value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace;
return this.transaction(_fun21226, '' + this.prefix + ' putAll');
}}, {key: 'replaceAll', value: function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
return this.transaction(_fun21228, '' + this.prefix + ' replaceAll');
}}, {key: 'delete', value: function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
return this.transaction(_fun21230, '' + this.prefix + ' delete');
}}, {key: 'deleteGeneration', value: function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
return this.transaction(_fun21232, '' + this.prefix + ' deleteGeneration');
}}, {key: 'transaction', value: function(a0, a1) {
var env0_0 = a0;
return this.table.transaction(_fun21234, a1);
}}, {key: 'upgradeTransaction', value: value_21235}, {key: 'getManySyncUnsafe', value: function(a0, a1) {
return this.table.getManySyncUnsafe([a0], a1);
}}, {key: 'getMapEntriesSyncUnsafe', value: function() {
return this.table.getMapEntriesSyncUnsafe();
}}, {key: 'deleteSyncUnsafe', value: function(a0) {
return this.table.deleteSyncUnsafe([a0]);
}}], [{key: 'cell', value: function(a0, a1, a2) {
return {key: [a0, a1.id], data: a1, generation: a2};
}}]);
function GuildEntityDao(a0, a1, a2) { // fn#21212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:129, offset: 0x00ee7c5b, size: 117 bytes, params: 4, frame: 19
let value = a3;
const r7 = !(value !== undefined) || value;
value = environment.__proto__;
env1_2(this, GuildEntityDao);
this.originalPrefix = a0;
const Table = (TableModule).Table;
this.table = new Table([a0], a1, a2, r7);
}
if (value === 1) {
return this.transaction.delete([a0]);
function value_21214() { // fn#21214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:360, offset: 0x00ee7ce1, size: 64 bytes, params: 1, frame: 17
const originalPrefix = this.originalPrefix;
const tableId = this.table.tableId;
const database = this.table.database;
const value = Object.create(GuildEntityDao.prototype, {constructor: {value: GuildEntityDao}});
const guildEntityDao = new GuildEntityDao(originalPrefix, tableId, database, false);
return guildEntityDao instanceof Object ? guildEntityDao : value;
}
function value_21223(a0, a1) { // fn#21223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1060, offset: 0x00eec0ca, size: 121 bytes, params: 3, frame: 16
var environment;
var Replace;
let value = a2;
const env0_0 = a0;
const env0_1 = a1;
if (value === undefined) {
value = environment.__proto__;
Replace = (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
}
return this.transaction(_fun21224, '' + this.prefix + ' put');
function _fun21224(a0) { // fn#21224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1133, offset: 0x00eec143, size: 33 bytes, params: 2, frame: 15
return a0.put(env0_0, require, ClassCallCheck);
}
}
function value_21225(a0, a1) { // fn#21225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1194, offset: 0x00eec164, size: 121 bytes, params: 3, frame: 16
var environment;
var Replace;
let value = a2;
const env0_0 = a0;
const env0_1 = a1;
if (value === undefined) {
value = environment.__proto__;
Replace = (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
}
return this.transaction(_fun21226, '' + this.prefix + ' putAll');
function _fun21226(a0) { // fn#21226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1267, offset: 0x00eec1dd, size: 33 bytes, params: 2, frame: 15
return a0.putAll(env0_0, require, ClassCallCheck);
}
}
function value_21227(a0, a1) { // fn#21227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1338, offset: 0x00eec1fe, size: 73 bytes, params: 3, frame: 16
const env0_0 = a0;
const env0_1 = a1;
return this.transaction(_fun21228, '' + this.prefix + ' replaceAll');
function _fun21228(a0) { // fn#21228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1377, offset: 0x00eec247, size: 28 bytes, params: 2, frame: 13
return a0.replaceAll(env0_0, require);
}
}
function value_21229(a0, a1) { // fn#21229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1450, offset: 0x00eec263, size: 73 bytes, params: 3, frame: 16
const env0_0 = a0;
const env0_1 = a1;
return this.transaction(_fun21230, '' + this.prefix + ' delete');
function _fun21230(a0) { // fn#21230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1489, offset: 0x00eec2ac, size: 27 bytes, params: 2, frame: 13
return a0.delete(env0_0, require);
}
}
function value_21231(a0, a1) { // fn#21231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1564, offset: 0x00eec2c7, size: 73 bytes, params: 3, frame: 16
const env0_0 = a0;
const env0_1 = a1;
return this.transaction(_fun21232, '' + this.prefix + ' deleteGeneration');
function _fun21232(a0) { // fn#21232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1603, offset: 0x00eec310, size: 28 bytes, params: 2, frame: 13
return a0.deleteGeneration(env0_0, require);
}
}
function value_21233(a0, a1) { // fn#21233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1693, offset: 0x00eec32c, size: 40 bytes, params: 3, frame: 13
const env0_0 = a0;
return this.table.transaction(_fun21234, a1);
function _fun21234(a0) { // fn#21234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1738, offset: 0x00eeb515, size: 46 bytes, params: 2, frame: 12
const binding = env0_0;
const value = environment.__proto__.__proto__;
return binding(new env2_5(a0));
}
}
function value_21235(a0) { // fn#21235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1791, offset: 0x00eeb543, size: 52 bytes, params: 2, frame: 12
let value = environment.__proto__;
const binding = env1_5;
value = this.table.upgradeTransaction(a0);
const value2 = Object.create(binding.prototype, {constructor: {value: binding}});
value = new binding(value);
return value instanceof Object ? value : value2;
}
return this.transaction.delete([a0, a1]);
}}, {key: 'deleteAllExcept', value: function(a0) {
this.transaction.deleteAllExcept([], a0);
}}, {key: 'deleteGeneration', value: function(a0, a1) {
return this.transaction.deleteGeneration([], a0, a1);
}}], [{key: 'fromDatabaseTransaction', value: value_21250}]);
}
function value_21223(a0, a1) { // fn#21223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1060, offset: 0x00eec0ca, size: 121 bytes, params: 3, frame: 16
var environment;
var Replace;
let value = a2;
const env0_0 = a0;
const env0_1 = a1;
if (value === undefined) {
value = environment.__proto__;
Replace = (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
}
return this.transaction(_fun21224, '' + this.prefix + ' put');
}
function value_21225(a0, a1) { // fn#21225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1194, offset: 0x00eec164, size: 121 bytes, params: 3, frame: 16
var environment;
var Replace;
let value = a2;
const env0_0 = a0;
const env0_1 = a1;
if (value === undefined) {
value = environment.__proto__;
Replace = (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
function _fun21240() { // fn#21240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:2206, offset: 0x00eec3a0, size: 223 bytes, params: 1, frame: 16
return CreateClass(GuildEntityDaoTransaction, [{key: 'put', value: function(a0, a1) {
var value = a2;
return this.putWithGeneration(a0, a1, null,
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'putWithGeneration', value: value_21243}, {key: 'putAll', value: function(a0, a1) {
var value = a2;
var env0_0 = a0;
return this.transaction.putAll(a1.map(_fun21245),
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'replaceAll', value: function(a0, a1) {
this.delete(a0);
this.putAll(a0, a1);
}}, {key: 'delete', value: function(a0, a1) {
var value = arguments.length;
if (value === 0) {
return this.transaction.delete([]);
}
if (value === 1) {
return this.transaction.delete([a0]);
}
return this.transaction.delete([a0, a1]);
}}, {key: 'deleteAllExcept', value: function(a0) {
this.transaction.deleteAllExcept([], a0);
}}, {key: 'deleteGeneration', value: function(a0, a1) {
return this.transaction.deleteGeneration([], a0, a1);
}}], [{key: 'fromDatabaseTransaction', value: value_21250}]);
function GuildEntityDaoTransaction(a0) { // fn#21241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:2217, offset: 0x00ee7fc0, size: 36 bytes, params: 2, frame: 13
env1_2(this, GuildEntityDaoTransaction);
this.transaction = a0;
}
function value_21243(a0, a1, a2) { // fn#21243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:2484, offset: 0x00eec4c8, size: 96 bytes, params: 4, frame: 18
let value = a3;
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
const transaction = this.transaction;
const put = transaction.put;
value = environment.__proto__;
const binding = env1_4;
return Reflect.apply(put, transaction, [binding.cell(a0, a1, a2), r3]);
}
function value_21244(a0, a1) { // fn#21244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:2601, offset: 0x00eec528, size: 94 bytes, params: 3, frame: 16
const value = a2;
const env0_0 = a0;
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
const transaction = this.transaction;
return transaction.putAll(a1.map(_fun21245), r3);
function _fun21245(a0) { // fn#21245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:2687, offset: 0x00eec586, size: 34 bytes, params: 2, frame: 15
return env2_4.cell(env0_0, a0, null);
}
}
function value_21250(a0, a1, a2) { // fn#21250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:3195, offset: 0x00ee8082, size: 89 bytes, params: 4, frame: 16
const value = environment.__proto__;
const TableTransaction = (TableModule).TableTransaction;
const tableTransaction = new TableTransaction(a0, a1, a2);
const value2 = Object.create(GuildEntityDaoTransaction.prototype, {constructor: {value: GuildEntityDaoTransaction}});
const guildEntityDaoTransaction = new GuildEntityDaoTransaction(tableTransaction);
return guildEntityDaoTransaction instanceof Object ? guildEntityDaoTransaction : value2;
}
}
return this.transaction(_fun21226, '' + this.prefix + ' putAll');
}
function value_21227(a0, a1) { // fn#21227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1338, offset: 0x00eec1fe, size: 73 bytes, params: 3, frame: 16
const env0_0 = a0;
const env0_1 = a1;
return this.transaction(_fun21228, '' + this.prefix + ' replaceAll');
}
function value_21229(a0, a1) { // fn#21229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1450, offset: 0x00eec263, size: 73 bytes, params: 3, frame: 16
const env0_0 = a0;
const env0_1 = a1;
return this.transaction(_fun21230, '' + this.prefix + ' delete');
}
function value_21231(a0, a1) { // fn#21231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1564, offset: 0x00eec2c7, size: 73 bytes, params: 3, frame: 16
const env0_0 = a0;
const env0_1 = a1;
return this.transaction(_fun21232, '' + this.prefix + ' deleteGeneration');
}
function value_21233(a0, a1) { // fn#21233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1693, offset: 0x00eec32c, size: 40 bytes, params: 3, frame: 13
const env0_0 = a0;
return this.table.transaction(_fun21234, a1);
}
function value_21243(a0, a1, a2) { // fn#21243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:2484, offset: 0x00eec4c8, size: 96 bytes, params: 4, frame: 18
let value = a3;
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
const transaction = this.transaction;
const put = transaction.put;
value = environment.__proto__;
const binding = env1_4;
return Reflect.apply(put, transaction, [binding.cell(a0, a1, a2), r3]);
}
function value_21244(a0, a1) { // fn#21244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:2601, offset: 0x00eec528, size: 94 bytes, params: 3, frame: 16
const value = a2;
const env0_0 = a0;
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
const transaction = this.transaction;
return transaction.putAll(a1.map(_fun21245), r3);
}
function _fun21224(a0) { // fn#21224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1133, offset: 0x00eec143, size: 33 bytes, params: 2, frame: 15
return a0.put(env0_0, require, env0_2);
}
function _fun21226(a0) { // fn#21226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1267, offset: 0x00eec1dd, size: 33 bytes, params: 2, frame: 15
return a0.putAll(env0_0, require, env0_2);
}
function _fun21228(a0) { // fn#21228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1377, offset: 0x00eec247, size: 28 bytes, params: 2, frame: 13
return a0.replaceAll(env0_0, require);
}
function _fun21230(a0) { // fn#21230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1489, offset: 0x00eec2ac, size: 27 bytes, params: 2, frame: 13
return a0.delete(env0_0, require);
}
function _fun21232(a0) { // fn#21232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:1603, offset: 0x00eec310, size: 28 bytes, params: 2, frame: 13
return a0.deleteGeneration(env0_0, require);
}
function _fun21245(a0) { // fn#21245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2050:2687, offset: 0x00eec586, size: 34 bytes, params: 2, frame: 15
return env2_4.cell(env0_0, a0, null);
}
global.__d(_fun21210, 1923, [6, 7, 1915, 1917, 2]) /* metro module 1923, dependencies: [6, 7, 1915, 1917, 2] */;
@@ -1,22 +1,29 @@
/* Metro module 1924; source: ../discord_common/js/packages/kv-storage/js/api/Kv.tsx; dependencies: [6, 7, 1920, 2] */
import ClassCallCheck from '../../../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun21251(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2051:6, offset: 0x00eec656, size: 132 bytes, params: 8, frame: 19
const env0_0 = require;
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 value = _fun21252();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/Kv.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/Kv.tsx');
exports.Kv = value;
function _fun21252() { // fn#21252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2051:118, offset: 0x00eec6da, size: 81 bytes, params: 1, frame: 16
return CreateClass(Kv, null, [{key: 'databases', value: function() {
var Host = require(dependencyMap[2]).Host;
return Host.list();
}}, {key: 'optimize', value: function(a0) {
var Host = require(dependencyMap[2]).Host;
return Host.optimize(a0);
}}]);
function Kv() { // fn#21253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2051:139, offset: 0x00c618a4, size: 27 bytes, params: 1, frame: 13
env1_2(this, Kv);
}
}
}
function _fun21252() { // fn#21252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2051:118, offset: 0x00eec6da, size: 81 bytes, params: 1, frame: 16
return env0_3(Kv, null, [{key: 'databases', value: function() {
var Host = require(dependencyMap[2]).Host;
return Host.list();
}}, {key: 'optimize', value: function(a0) {
var Host = require(dependencyMap[2]).Host;
return Host.optimize(a0);
}}]);
}
global.__d(_fun21251, 1924, [6, 7, 1920, 2]) /* metro module 1924, dependencies: [6, 7, 1920, 2] */;
@@ -1,4 +1,9 @@
/* Metro module 1925; source: ../discord_common/js/packages/kv-storage/js/api/MessageDao.tsx; dependencies: [6, 7, 1915, 1917, 2] */
import ClassCallCheck from '../../../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as TableModule from './Table.tsx'; /* Metro dependency 1915 */
function _fun21256(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:6, offset: 0x00eec785, size: 171 bytes, params: 8, frame: 19
const env0_0 = require;
const makeStorageId = function(a0) {
@@ -6,138 +11,195 @@ function _fun21256(global, require, importDefault, importAll, module, exports, d
};
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 value = _fun21259();
const value2 = _fun21277();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/MessageDao.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/MessageDao.tsx');
exports.MessageDao = value;
exports.MessageDaoTransaction = value2;
function makeCell(a0, a1, a2) { // fn#21257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:2917, offset: 0x00eec830, size: 61 bytes, params: 4, frame: 13
const storageId = makeStorageId(a2.id);
return {key: [a0, a1, storageId], data: a2, generation: storageId};
}
function _fun21259() { // fn#21259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:118, offset: 0x00eec887, size: 356 bytes, params: 1, frame: 15
return CreateClass(MessageDao, [{key: 'prefix', get: function() {
return this.table.prefix;
}}, {key: 'withoutLogging', value: value_21262}, {key: 'get', value: function(a0, a1, a2) {
var table = this.table;
var items = [a0, a1];
items[2] = makeStorageId(a2);
return table.get(items);
}}, {key: 'getLatest', value: function(a0, a1, a2) {
var table = this.table;
var object = {};
object.ordering = require(dependencyMap[3]).Ordering.Descending;
object.limit = a2;
return table.getMany([a0, a1], object);
}}, {key: 'getRange', value: function(a0, a1, a2, a3, a4) {
var table = this.table;
var items = [a0, a1];
var makeStorageIdBinding = makeStorageId;
items[2] = makeStorageIdBinding(a2);
return table.getRange(items, [a0, a1, makeStorageIdBinding(a3)], a4);
}}, {key: 'getMostRecents', value: function(a0) {
return this.table.messages.getLatest(a0);
}}, {key: 'put', value: value_21267}, {key: 'putAll', value: function(a0, a1, a2) {
var value = a3;
var env0_0 = a0;
var env0_1 = a1;
return this.table.putAll(a2.map(_fun21269),
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'deleteAll', value: function() {
return this.table.delete();
}}, {key: 'deleteGuild', value: function(a0) {
return this.table.delete([a0]);
}}, {key: 'deleteChannel', value: function(a0, a1) {
return this.table.delete([a0, a1]);
}}, {key: 'deleteMessage', value: function(a0, a1, a2) {
var table = this.table;
var items = [a0, a1];
items[2] = makeStorageId(a2);
return table.delete(items);
}}, {key: 'transaction', value: function(a0, a1) {
var env0_0 = a0;
return this.table.transaction(_fun21275, a1);
}}, {key: 'upgradeTransaction', value: value_21276}]);
function MessageDao(a0, a1, a2) { // fn#21260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:129, offset: 0x00ee7c5b, size: 117 bytes, params: 4, frame: 19
let value = a3;
const r7 = !(value !== undefined) || value;
value = environment.__proto__;
env1_2(this, MessageDao);
this.originalPrefix = a0;
const Table = (TableModule).Table;
this.table = new Table([a0], a1, a2, r7);
}
function value_21262() { // fn#21262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:348, offset: 0x00ee7ce1, size: 64 bytes, params: 1, frame: 17
const originalPrefix = this.originalPrefix;
const tableId = this.table.tableId;
const database = this.table.database;
const value = Object.create(MessageDao.prototype, {constructor: {value: MessageDao}});
const messageDao = new MessageDao(originalPrefix, tableId, database, false);
return messageDao instanceof Object ? messageDao : value;
}
function value_21267(a0, a1, a2) { // fn#21267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:867, offset: 0x00eecafc, size: 90 bytes, params: 4, frame: 18
let value = a3;
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
const table = this.table;
const put = table.put;
value = environment.__proto__;
return Reflect.apply(put, table, [makeCell(a0, a1, a2), r3]);
}
function value_21268(a0, a1, a2) { // fn#21268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:980, offset: 0x00eecb56, size: 101 bytes, params: 4, frame: 16
const value = a3;
const env0_0 = a0;
const env0_1 = a1;
return this.table.putAll(a2.map(_fun21269),
value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace);
function _fun21269(a0) { // fn#21269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1043, offset: 0x00eecbbb, size: 32 bytes, params: 2, frame: 15
return makeCell(env0_0, require, a0);
}
}
function value_21274(a0, a1) { // fn#21274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1422, offset: 0x00eecc72, size: 40 bytes, params: 3, frame: 13
const env0_0 = a0;
return this.table.transaction(_fun21275, a1);
function _fun21275(a0) { // fn#21275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1467, offset: 0x00ee7ebf, size: 46 bytes, params: 2, frame: 12
const binding = env0_0;
const value = environment.__proto__.__proto__;
return binding(new env2_4(a0));
}
}
function value_21276(a0) { // fn#21276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1520, offset: 0x00ee7eed, size: 52 bytes, params: 2, frame: 12
let value = environment.__proto__;
const binding = env1_4;
value = this.table.upgradeTransaction(a0);
const value2 = Object.create(binding.prototype, {constructor: {value: binding}});
value = new binding(value);
return value instanceof Object ? value : value2;
}
}
function _fun21277() { // fn#21277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1588, offset: 0x00eecc9a, size: 342 bytes, params: 1, frame: 17
return CreateClass(MessageDaoTransaction, [{key: 'put', value: value_21279}, {key: 'putAll', value: function(a0, a1,
a2) {
var value = a3;
var env0_0 = a0;
var env0_1 = a1;
this.transaction.putAll(a2.map(_fun21281),
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'replaceChannel', value: function(a0, a1, a2) {
this.deleteChannel(a0, a1);
this.putAll(a0, a1, a2);
}}, {key: 'deleteAll', value: function() {
this.transaction.delete();
}}, {key: 'deleteGuild', value: function(a0) {
this.transaction.delete([a0]);
}}, {key: 'deleteChannel', value: function(a0, a1) {
this.transaction.delete([a0, a1]);
}}, {key: 'deleteMessage', value: function(a0, a1, a2) {
var transaction = this.transaction;
var items = [a0, a1];
items[2] = makeStorageId(a2);
transaction.delete(items);
}}, {key: 'trimOrphans', value: function(a0) {
this.transaction.messages.trimOrphans(a0);
}}, {key: 'trimChannel', value: function(a0, a1, a2) {
this.transaction.messages.trimChannel([a0, a1], a2);
}}, {key: 'trimChannelsIn', value: function(a0, a1) {
this.transaction.messages.trimChannelsIn(a0, a1);
}}, {key: 'trimChannelsNotIn', value: function(a0, a1) {
this.transaction.messages.trimChannelsNotIn(a0, a1);
}}], [{key: 'fromTableTransaction', value: value_21291}, {key: 'fromDatabaseTransaction', value: value_21292}]);
function MessageDaoTransaction(a0) { // fn#21278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1599, offset: 0x00ee7fc0, size: 36 bytes, params: 2, frame: 13
env1_2(this, MessageDaoTransaction);
this.transaction = a0;
}
function value_21279(a0, a1, a2) { // fn#21279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1731, offset: 0x00eecdf0, size: 90 bytes, params: 4, frame: 18
let value = a3;
const r4 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
const transaction = this.transaction;
const put = transaction.put;
value = environment.__proto__;
Reflect.apply(put, transaction, [makeCell(a0, a1, a2), r4]);
}
function value_21280(a0, a1, a2) { // fn#21280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1843, offset: 0x00eece4a, size: 101 bytes, params: 4, frame: 16
const value = a3;
const env0_0 = a0;
const env0_1 = a1;
this.transaction.putAll(a2.map(_fun21281),
value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace);
function _fun21281(a0) { // fn#21281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1906, offset: 0x00eecbbb, size: 32 bytes, params: 2, frame: 15
return makeCell(env0_0, require, a0);
}
}
function value_21291(a0) { // fn#21291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:2736, offset: 0x00edd39f, size: 32 bytes, params: 2, frame: 11
const value = Object.create(MessageDaoTransaction.prototype, {constructor: {value: MessageDaoTransaction}});
const messageDaoTransaction = new MessageDaoTransaction(a0);
return messageDaoTransaction instanceof Object ? messageDaoTransaction : value;
}
function value_21292(a0, a1, a2) { // fn#21292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:2823, offset: 0x00ee8082, size: 89 bytes, params: 4, frame: 16
const value = environment.__proto__;
const TableTransaction = (TableModule).TableTransaction;
const tableTransaction = new TableTransaction(a0, a1, a2);
const value2 = Object.create(MessageDaoTransaction.prototype, {constructor: {value: MessageDaoTransaction}});
const messageDaoTransaction = new MessageDaoTransaction(tableTransaction);
return messageDaoTransaction instanceof Object ? messageDaoTransaction : value2;
}
}
}
function makeCell(a0, a1, a2) { // fn#21257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:2917, offset: 0x00eec830, size: 61 bytes, params: 4, frame: 13
const storageId = makeStorageId(a2.id);
return {key: [a0, a1, storageId], data: a2, generation: storageId};
}
function _fun21259() { // fn#21259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:118, offset: 0x00eec887, size: 356 bytes, params: 1, frame: 15
return env0_3(MessageDao, [{key: 'prefix', get: function() {
return this.table.prefix;
}}, {key: 'withoutLogging', value: value_21262}, {key: 'get', value: function(a0, a1, a2) {
var table = this.table;
var items = [a0, a1];
items[2] = makeStorageId(a2);
return table.get(items);
}}, {key: 'getLatest', value: function(a0, a1, a2) {
var table = this.table;
var object = {};
object.ordering = require(dependencyMap[3]).Ordering.Descending;
object.limit = a2;
return table.getMany([a0, a1], object);
}}, {key: 'getRange', value: function(a0, a1, a2, a3, a4) {
var table = this.table;
var items = [a0, a1];
var makeStorageIdBinding = makeStorageId;
items[2] = makeStorageIdBinding(a2);
return table.getRange(items, [a0, a1, makeStorageIdBinding(a3)], a4);
}}, {key: 'getMostRecents', value: function(a0) {
return this.table.messages.getLatest(a0);
}}, {key: 'put', value: value_21267}, {key: 'putAll', value: function(a0, a1, a2) {
var value = a3;
var env0_0 = a0;
var env0_1 = a1;
return this.table.putAll(a2.map(_fun21269),
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'deleteAll', value: function() {
return this.table.delete();
}}, {key: 'deleteGuild', value: function(a0) {
return this.table.delete([a0]);
}}, {key: 'deleteChannel', value: function(a0, a1) {
return this.table.delete([a0, a1]);
}}, {key: 'deleteMessage', value: function(a0, a1, a2) {
var table = this.table;
var items = [a0, a1];
items[2] = makeStorageId(a2);
return table.delete(items);
}}, {key: 'transaction', value: function(a0, a1) {
var env0_0 = a0;
return this.table.transaction(_fun21275, a1);
}}, {key: 'upgradeTransaction', value: value_21276}]);
}
function _fun21277() { // fn#21277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1588, offset: 0x00eecc9a, size: 342 bytes, params: 1, frame: 17
return env0_3(MessageDaoTransaction, [{key: 'put', value: value_21279}, {key: 'putAll', value: function(a0, a1,
a2) {
var value = a3;
var env0_0 = a0;
var env0_1 = a1;
this.transaction.putAll(a2.map(_fun21281),
value !== undefined ? value : require(dependencyMap[3]).ConflictOptions.Replace);
}}, {key: 'replaceChannel', value: function(a0, a1, a2) {
this.deleteChannel(a0, a1);
this.putAll(a0, a1, a2);
}}, {key: 'deleteAll', value: function() {
this.transaction.delete();
}}, {key: 'deleteGuild', value: function(a0) {
this.transaction.delete([a0]);
}}, {key: 'deleteChannel', value: function(a0, a1) {
this.transaction.delete([a0, a1]);
}}, {key: 'deleteMessage', value: function(a0, a1, a2) {
var transaction = this.transaction;
var items = [a0, a1];
items[2] = makeStorageId(a2);
transaction.delete(items);
}}, {key: 'trimOrphans', value: function(a0) {
this.transaction.messages.trimOrphans(a0);
}}, {key: 'trimChannel', value: function(a0, a1, a2) {
this.transaction.messages.trimChannel([a0, a1], a2);
}}, {key: 'trimChannelsIn', value: function(a0, a1) {
this.transaction.messages.trimChannelsIn(a0, a1);
}}, {key: 'trimChannelsNotIn', value: function(a0, a1) {
this.transaction.messages.trimChannelsNotIn(a0, a1);
}}], [{key: 'fromTableTransaction', value: value_21291}, {key: 'fromDatabaseTransaction', value: value_21292}]);
}
function value_21267(a0, a1, a2) { // fn#21267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:867, offset: 0x00eecafc, size: 90 bytes, params: 4, frame: 18
let value = a3;
const r3 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
const table = this.table;
const put = table.put;
value = environment.__proto__;
return Reflect.apply(put, table, [makeCell(a0, a1, a2), r3]);
}
function value_21268(a0, a1, a2) { // fn#21268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:980, offset: 0x00eecb56, size: 101 bytes, params: 4, frame: 16
const value = a3;
const env0_0 = a0;
const env0_1 = a1;
return this.table.putAll(a2.map(_fun21269),
value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace);
}
function value_21274(a0, a1) { // fn#21274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1422, offset: 0x00eecc72, size: 40 bytes, params: 3, frame: 13
const env0_0 = a0;
return this.table.transaction(_fun21275, a1);
}
function value_21279(a0, a1, a2) { // fn#21279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1731, offset: 0x00eecdf0, size: 90 bytes, params: 4, frame: 18
let value = a3;
const r4 = value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace;
const transaction = this.transaction;
const put = transaction.put;
value = environment.__proto__;
Reflect.apply(put, transaction, [makeCell(a0, a1, a2), r4]);
}
function value_21280(a0, a1, a2) { // fn#21280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1843, offset: 0x00eece4a, size: 101 bytes, params: 4, frame: 16
const value = a3;
const env0_0 = a0;
const env0_1 = a1;
this.transaction.putAll(a2.map(_fun21281),
value !== undefined ? value : (require(1917) /* metro dependency 1917: types */).ConflictOptions.Replace);
}
function _fun21269(a0) { // fn#21269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2052:1043, offset: 0x00eecbbb, size: 32 bytes, params: 2, frame: 15
return makeCell(env0_0, require, a0);
}
global.__d(_fun21256, 1925, [6, 7, 1915, 1917, 2]) /* metro module 1925, dependencies: [6, 7, 1915, 1917, 2] */;
@@ -1,4 +1,11 @@
/* Metro module 1915; source: ../discord_common/js/packages/kv-storage/js/api/Table.tsx; dependencies: [5, 6, 7, 1916, 1917, 2] */
import Module00005 from '../../../../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import ClassCallCheck from '../../../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as KeyModule from '../util/Key.tsx'; /* Metro dependency 1916 */
import * as TypesModule from '../types/index.tsx'; /* Metro dependency 1917 */
function _fun21025(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:6, offset: 0x00ee80db, size: 185 bytes, params: 8, frame: 19
let env0_0 = require;
const prefixCells = function(a0, a1) {
@@ -15,84 +22,455 @@ function _fun21025(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
let value = _fun21029();
const value2 = _fun21055();
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/Table.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/api/Table.tsx');
exports.Table = value;
exports.TableTransaction = value2;
}
function prefixCell(a0, a1) { // fn#21026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:127, offset: 0x00ee8194, size: 93 bytes, params: 3, frame: 16
var r0;
var moduleValue;
const value = a0;
if (a1.length === 0) {
r0 = value;
} else {
moduleValue = require(1916) /* metro dependency 1916: Key */;
r0 = {key: moduleValue.combineKey(a1, value.key), data: value.data, generation: value.generation};
function prefixCell(a0, a1) { // fn#21026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:127, offset: 0x00ee8194, size: 93 bytes, params: 3, frame: 16
var r0;
var moduleValue;
const value = a0;
if (a1.length === 0) {
r0 = value;
} else {
moduleValue = require(1916) /* metro dependency 1916: Key */;
r0 = {key: moduleValue.combineKey(a1, value.key), data: value.data, generation: value.generation};
}
return r0;
}
return r0;
}
function prefixCells(a0, a1) { // fn#21027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:244, offset: 0x00ee81f1, size: 43 bytes, params: 3, frame: 13
var r0;
let value = a0;
const env0_0 = a1;
if (a1.length === 0) {
r0 = value;
} else {
value = value.map(function(a0) {
function prefixCells(a0, a1) { // fn#21027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:244, offset: 0x00ee81f1, size: 43 bytes, params: 3, frame: 13
var r0;
let value = a0;
const env0_0 = a1;
if (a1.length === 0) {
r0 = value;
} else {
value = value.map(function(a0) {
return prefixCell(a0, require);
});
r0 = value;
}
return r0;
function _fun21028(a0) { // fn#21028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:299, offset: 0x00ee821c, size: 27 bytes, params: 2, frame: 13
return prefixCell(a0, require);
});
r0 = value;
}
}
return r0;
}
function _fun21029() { // fn#21029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:326, offset: 0x00ee8237, size: 489 bytes, params: 1, frame: 17
const binding = env0_4;
const closure = Table;
let env0_0 = env0_2(_fun21034);
return binding(closure, [{key: 'close', value: function() {
this.database.close();
}}, {key: 'get', value: value_21035}, {key: 'getMany', value: value_21036}, {key: 'getRange', value: value_21037},
{key: 'getKvEntries', value: value_21038}, {key: 'getMapEntries', value: value_21039}, {key: 'getChildIds',
value: value_21040}, {key: 'getParentId', value: value_21041}, {key: 'put', value: value_21042}, {key: 'putAll',
value: value_21043}, {key: 'replaceAll', value: function(a0) {
var env0_0 = a0;
return this.transaction(_fun21045, this.defaultDebugTag);
}}, {key: 'delete', value: value_21046}, {key: 'deleteRange', value: value_21047}, {key: 'deleteGeneration',
value: value_21048}, {key: 'transaction', value: function(a0, a1) {
var env0_0 = this;
var env0_1 = a0;
return this.database.transaction(_fun21050, a1);
}}, {key: 'upgradeTransaction', value: value_21051}, {key: 'getManySyncUnsafe', value: value_21052},
{key: 'getMapEntriesSyncUnsafe', value: value_21053}, {key: 'deleteSyncUnsafe', value: value_21054}]);
}
function _fun21029() { // fn#21029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:326, offset: 0x00ee8237, size: 489 bytes, params: 1, frame: 17
const Table2 = Table;
let env0_0 = Module00005(_fun21034);
return CreateClass(Table2, [{key: 'close', value: function() {
this.database.close();
}}, {key: 'get', value: value_21035}, {key: 'getMany', value: value_21036}, {key: 'getRange', value: value_21037},
{key: 'getKvEntries', value: value_21038}, {key: 'getMapEntries', value: value_21039}, {key: 'getChildIds',
value: value_21040}, {key: 'getParentId', value: value_21041}, {key: 'put', value: value_21042}, {key: 'putAll',
value: value_21043}, {key: 'replaceAll', value: function(a0) {
var env0_0 = a0;
return this.transaction(_fun21045, this.defaultDebugTag);
}}, {key: 'delete', value: value_21046}, {key: 'deleteRange', value: value_21047}, {key: 'deleteGeneration',
value: value_21048}, {key: 'transaction', value: function(a0, a1) {
var env0_0 = this;
var env0_1 = a0;
return this.database.transaction(_fun21050, a1);
}}, {key: 'upgradeTransaction', value: value_21051}, {key: 'getManySyncUnsafe', value: value_21052},
{key: 'getMapEntriesSyncUnsafe', value: value_21053}, {key: 'deleteSyncUnsafe', value: value_21054}]);
function Table(a0, a1, a2, a3) { // fn#21030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:347, offset: 0x00ee8420, size: 94 bytes, params: 5, frame: 14
var environment;
let value = environment.__proto__;
const binding = env1_3;
value = undefined;
binding(this, Table);
this.messages = {getLatest: getLatest};
this.prefix = a0;
this.tableId = a1;
this.database = a2;
this.defaultDebugTag = a3 ? value : null;
return value;
function getLatest(a0) { // fn#21031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:410, owner: Table.getLatest, offset: 0x00ee847e, size: 63 bytes, params: 2, frame: 14
const binding = env0_0;
return binding.database.execute({type: 'messages.get_latest', table: binding.tableId, guildId: a0},
binding.defaultDebugTag);
}
function _fun21055() { // fn#21055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4052, offset: 0x00ee8d36, size: 202 bytes, params: 1, frame: 16
return env0_4(TableTransaction, [{key: 'put', value: value_21061}, {key: 'putAll', value: value_21062},
{key: 'delete', value: value_21063}, {key: 'deleteRange', value: value_21064}, {key: 'deleteAllExcept',
value: value_21065}, {key: 'deleteGeneration', value: value_21066}], [{key: 'fromDatabaseTransaction',
value: value_21067}]);
}
}
function value_21035() { // fn#21035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:759, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
function value_21036() { // fn#21036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:829, offset: 0x00ee8524, size: 153 bytes, params: 1, frame: 19
let value = a0;
const value2 = undefined;
const r9 = value !== value2 ? value : [];
const database = this.database;
const execute = database.execute;
const object = {type: 'kv.get_many'};
object.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKeyPrefix(this.prefix, r9);
object.ordering = a1 == null ? value2 : a1.ordering;
object.limit = a1 == null ? value2 : a1.limit;
return Reflect.apply(execute, database, [object, this.defaultDebugTag]);
}
function value_21037(a0, a1, a2) { // fn#21037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1069, offset: 0x00ee85bd, size: 188 bytes, params: 4, frame: 19
let value = environment.__proto__;
value = undefined;
const value2 = KeyModule.combineKey(this.prefix, a0);
return this.database.execute({type: 'kv.get_range', table: this.tableId, range: [value2,
KeyModule.combineKey(this.prefix, a1)], ordering: a2 == null ? value : a2.ordering,
limit: a2 == null ? value : a2.limit}, this.defaultDebugTag);
}
function value_21038() { // fn#21038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1357, offset: 0x00ee8679, size: 110 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const execute = database.execute;
const object = {type: 'kv.get_kv_entries'};
object.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKeyPrefix(this.prefix, r7);
return Reflect.apply(execute, database, [object, this.defaultDebugTag]);
}
function value_21039() { // fn#21039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1542, offset: 0x00ee86e7, size: 110 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const execute = database.execute;
const object = {type: 'kv.get_map_entries'};
object.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKeyPrefix(this.prefix, r7);
return Reflect.apply(execute, database, [object, this.defaultDebugTag]);
}
function value_21040() { // fn#21040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1726, offset: 0x00ee8755, size: 110 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const execute = database.execute;
const object = {type: 'kv.get_child_ids'};
object.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKeyPrefix(this.prefix, r7);
return Reflect.apply(execute, database, [object, this.defaultDebugTag]);
}
function value_21041() { // fn#21041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1908, offset: 0x00ee87c3, size: 110 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const execute = database.execute;
const object = {type: 'kv.get_parent_id'};
object.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKey(this.prefix, r7);
return Reflect.apply(execute, database, [object, this.defaultDebugTag]);
}
function value_21042(a0) { // fn#21042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2076, offset: 0x00ee8831, size: 164 bytes, params: 2, frame: 19
const ConflictOptions = (TypesModule).ConflictOptions;
let value = a1;
const r5 = value !== undefined ? value : ConflictOptions.Replace;
const database = this.database;
const execute = database.execute;
const object = {type: 'kv.put_one'};
object.table = this.tableId;
value = environment.__proto__;
object.cell = prefixCell(a0, this.prefix);
const Replace = ConflictOptions.Replace;
object.overwrite = r5 === Replace;
return Reflect.apply(execute, database, [object, this.defaultDebugTag]);
}
function value_21043(a0) { // fn#21043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2311, offset: 0x00ee88d5, size: 164 bytes, params: 2, frame: 19
const ConflictOptions = (TypesModule).ConflictOptions;
let value = a1;
const r5 = value !== undefined ? value : ConflictOptions.Replace;
const database = this.database;
const execute = database.execute;
const object = {type: 'kv.put_many'};
object.table = this.tableId;
value = environment.__proto__;
object.cells = prefixCells(a0, this.prefix);
const Replace = ConflictOptions.Replace;
object.overwrite = r5 === Replace;
return Reflect.apply(execute, database, [object, this.defaultDebugTag]);
}
function value_21044(a0) { // fn#21044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2553, offset: 0x00ee8979, size: 37 bytes, params: 2, frame: 13
const env0_0 = a0;
return this.transaction(_fun21045, this.defaultDebugTag);
function _fun21045(a0) { // fn#21045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2590, offset: 0x00ee899e, size: 34 bytes, params: 2, frame: 11
a0.delete();
a0.putAll(env0_0);
}
}
function value_21046() { // fn#21046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2663, offset: 0x00ee89c0, size: 110 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const execute = database.execute;
const object = {type: 'kv.delete_many'};
object.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKeyPrefix(this.prefix, r7);
return Reflect.apply(execute, database, [object, this.defaultDebugTag]);
}
function value_21047(a0, a1) { // fn#21047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2843, offset: 0x00ee8a2e, size: 145 bytes, params: 3, frame: 18
let value = environment.__proto__;
value = Reflect.apply((require(1916) /* metro dependency 1916: Key */).combineKey, value, [this.prefix, a0]);
const keyModule = require(1916) /* metro dependency 1916: Key */;
return this.database.execute({type: 'kv.delete_range', table: this.tableId, range: [value,
keyModule.combineKey(this.prefix, a1)]}, this.defaultDebugTag);
}
function value_21048() { // fn#21048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3072, offset: 0x00ee8abf, size: 126 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const execute = database.execute;
const object = {type: 'kv.delete_generation'};
object.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKeyPrefix(this.prefix, r7);
object.generation = a2;
object.comparer = a1;
return Reflect.apply(execute, database, [object, this.defaultDebugTag]);
}
function value_21049(a0, a1) { // fn#21049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3286, offset: 0x00ee8b3d, size: 44 bytes, params: 3, frame: 13
const env0_1 = a0;
return this.database.transaction(_fun21050, a1);
function _fun21050(a0) { // fn#21050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3334, offset: 0x00ee8b69, size: 62 bytes, params: 2, frame: 16
const binding = env0_1;
const binding2 = env2_5;
const {prefix, tableId} = env0_0;
return binding(new binding2(prefix, tableId, a0));
}
}
function value_21051(a0) { // fn#21051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3412, offset: 0x00ee8ba7, size: 47 bytes, params: 2, frame: 15
let value = environment.__proto__;
const binding = env1_5;
const prefix = this.prefix;
const tableId = this.tableId;
value = Object.create(binding.prototype, {constructor: {value: binding}});
const binding2 = new binding(prefix, tableId, a0);
return binding2 instanceof Object ? binding2 : value;
}
function value_21052() { // fn#21052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3498, offset: 0x00ee8bd6, size: 146 bytes, params: 1, frame: 19
let value = a0;
const value2 = undefined;
const r8 = value !== value2 ? value : [];
const database = this.database;
const executeSync = database.executeSync;
const object = {type: 'kv.get_many'};
object.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKeyPrefix(this.prefix, r8);
object.ordering = a1 == null ? value2 : a1.ordering;
object.limit = a1 == null ? value2 : a1.limit;
return Reflect.apply(executeSync, database, [object]);
}
function value_21053() { // fn#21053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3736, offset: 0x00ee8c68, size: 103 bytes, params: 1, frame: 18
let value = a0;
const r6 = value !== undefined ? value : [];
const database = this.database;
const executeSync = database.executeSync;
const object = {type: 'kv.get_map_entries'};
object.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKeyPrefix(this.prefix, r6);
return Reflect.apply(executeSync, database, [object]);
}
function value_21054() { // fn#21054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3908, offset: 0x00ee8ccf, size: 103 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const executeSync = database.executeSync;
const object = {type: 'kv.delete_many'};
object.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKeyPrefix(this.prefix, r7);
Reflect.apply(executeSync, database, [object]);
}
}
function _fun21055() { // fn#21055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4052, offset: 0x00ee8d36, size: 202 bytes, params: 1, frame: 16
return CreateClass(TableTransaction, [{key: 'put', value: value_21061}, {key: 'putAll', value: value_21062},
{key: 'delete', value: value_21063}, {key: 'deleteRange', value: value_21064}, {key: 'deleteAllExcept',
value: value_21065}, {key: 'deleteGeneration', value: value_21066}], [{key: 'fromDatabaseTransaction',
value: value_21067}]);
function TableTransaction(a0, a1, a2) { // fn#21056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4063, offset: 0x00ee8e00, size: 108 bytes, params: 4, frame: 14
env1_3(this, TableTransaction);
this.messages = {trimOrphans: trimOrphans, trimChannel: trimChannel, trimChannelsIn: trimChannelsIn,
trimChannelsNotIn: trimChannelsNotIn};
this.prefix = a0;
this.tableId = a1;
this.transaction = a2;
function trimOrphans(a0) { // fn#21057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4148, owner: TableTransaction.trimOrphans, offset: 0x00ee8e6c, size: 146 bytes, params: 2, frame: 14
if (env0_0.prefix.length !== 1) {
throw new global.Error('trimOrphans: only one prefix component is supported at this time');
}
if (a0.length !== 1) {
throw new global.Error('trimOrphans: only one prefix component is supported at this time');
}
const binding = env0_0;
binding.transaction.add({type: 'messages.trim_orphans', table: binding.tableId, channelKey: a0[0],
messageKey: binding.prefix[0]});
}
function trimChannel(a0, a1) { // fn#21058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4403, owner: TableTransaction.trimChannel, offset: 0x00ee8efe, size: 105 bytes, params: 3, frame: 17
const binding = env0_0;
const transaction = binding.transaction;
const add = transaction.add;
const object = {type: 'messages.trim_channel'};
object.table = binding.tableId;
let value = environment.__proto__.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKey(binding.prefix, a0);
object.limit = a1;
Reflect.apply(add, transaction, [object]);
}
function trimChannelsIn(a0, a1) { // fn#21059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4545, owner: TableTransaction.trimChannelsIn, offset: 0x00ee8f67, size: 153 bytes, params: 3, frame: 14
if (env0_0.prefix.length !== 1) {
throw new global.Error('trimChannelsIn: only one prefix component is supported at this time');
}
if (a0.length !== 1) {
throw new global.Error('trimChannelsIn: only one prefix component is supported at this time');
}
const binding = env0_0;
binding.transaction.add({type: 'messages.trim_channels_in', table: binding.tableId, channelKey: a0[0],
messageKey: binding.prefix[0], limit: a1});
}
function trimChannelsNotIn(a0, a1) { // fn#21060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4825, owner: TableTransaction.trimChannelsNotIn, offset: 0x00ee9000, size: 153 bytes, params: 3, frame: 14
if (env0_0.prefix.length !== 1) {
throw new global.Error('trimChannelsNotIn: only one prefix component is supported at this time');
}
if (a0.length !== 1) {
throw new global.Error('trimChannelsNotIn: only one prefix component is supported at this time');
}
const binding = env0_0;
binding.transaction.add({type: 'messages.trim_channels_not_in', table: binding.tableId, channelKey: a0[0],
messageKey: binding.prefix[0], limit: a1});
}
}
function value_21061(a0) { // fn#21061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5187, offset: 0x00ee9099, size: 156 bytes, params: 2, frame: 18
const ConflictOptions = (TypesModule).ConflictOptions;
let value = a1;
const r5 = value !== undefined ? value : ConflictOptions.Replace;
const transaction = this.transaction;
const add = transaction.add;
const object = {type: 'kv.put_one'};
object.table = this.tableId;
value = environment.__proto__;
object.cell = prefixCell(a0, this.prefix);
const Replace = ConflictOptions.Replace;
object.overwrite = r5 === Replace;
Reflect.apply(add, transaction, [object]);
}
function value_21062(a0) { // fn#21062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5393, offset: 0x00ee9135, size: 156 bytes, params: 2, frame: 18
const ConflictOptions = (TypesModule).ConflictOptions;
let value = a1;
const r5 = value !== undefined ? value : ConflictOptions.Replace;
const transaction = this.transaction;
const add = transaction.add;
const object = {type: 'kv.put_many'};
object.table = this.tableId;
value = environment.__proto__;
object.cells = prefixCells(a0, this.prefix);
const Replace = ConflictOptions.Replace;
object.overwrite = r5 === Replace;
Reflect.apply(add, transaction, [object]);
}
function value_21063() { // fn#21063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5602, offset: 0x00ee91d1, size: 102 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const transaction = this.transaction;
const add = transaction.add;
const object = {type: 'kv.delete_many'};
object.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKeyPrefix(this.prefix, r7);
Reflect.apply(add, transaction, [object]);
}
function value_21064(a0, a1) { // fn#21064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5753, offset: 0x00ee9237, size: 137 bytes, params: 3, frame: 18
let value = environment.__proto__;
value = Reflect.apply((require(1916) /* metro dependency 1916: Key */).combineKey, value, [this.prefix, a0]);
const keyModule = require(1916) /* metro dependency 1916: Key */;
this.transaction.add({type: 'kv.delete_range', table: this.tableId, range: [value, keyModule.combineKey(this.prefix,
a1)]});
}
function value_21065() { // fn#21065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5952, offset: 0x00ee92c0, size: 112 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const transaction = this.transaction;
const add = transaction.add;
const object = {type: 'kv.delete_all_except'};
object.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKeyPrefix(this.prefix, r7);
object.retain = a1;
Reflect.apply(add, transaction, [object]);
}
function value_21066() { // fn#21066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:6125, offset: 0x00ee9330, size: 118 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const transaction = this.transaction;
const add = transaction.add;
const object = {type: 'kv.delete_generation'};
object.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object.key = value.combineKeyPrefix(this.prefix, r7);
object.generation = a2;
object.comparer = a1;
Reflect.apply(add, transaction, [object]);
}
function value_21067(a0, a1, a2) { // fn#21067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:6324, offset: 0x00ee93a6, size: 38 bytes, params: 4, frame: 15
const value = Object.create(TableTransaction.prototype, {constructor: {value: TableTransaction}});
const tableTransaction = new TableTransaction(a0, a1, a2);
return tableTransaction instanceof Object ? tableTransaction : value;
}
}
function Table(a0, a1, a2, a3) { // fn#21030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:347, offset: 0x00ee8420, size: 94 bytes, params: 5, frame: 14
var environment;
let value = environment.__proto__;
const binding = env1_3;
value = undefined;
binding(this, Table);
this.messages = {getLatest: getLatest};
this.prefix = a0;
this.tableId = a1;
this.database = a2;
this.defaultDebugTag = a3 ? value : null;
return value;
}
function* _fun21034(a0) { // fn#21034, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:676, offset: 0x00ee84dd, size: 71 bytes, params: 2, frame: 14
@@ -110,372 +488,5 @@ function* _fun21034(a0) { // fn#21034, original name: ?anon_0_, source: /ci/buil
return value != property ? property : value;
}
function value_21036() { // fn#21036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:829, offset: 0x00ee8524, size: 153 bytes, params: 1, frame: 19
let value = a0;
const value2 = undefined;
const r9 = value !== value2 ? value : [];
const database = this.database;
const execute = database.execute;
const object2 = {type: 'kv.get_many'};
object2.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKeyPrefix(this.prefix, r9);
object2.ordering = a1 == null ? value2 : a1.ordering;
object2.limit = a1 == null ? value2 : a1.limit;
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
}
function value_21037(a0, a1, a2) { // fn#21037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1069, offset: 0x00ee85bd, size: 188 bytes, params: 4, frame: 19
let value = environment.__proto__;
value = undefined;
const keyModule = require(1916) /* metro dependency 1916: Key */;
const value2 = keyModule.combineKey(this.prefix, a0);
const moduleValue2 = keyModule;
return this.database.execute({type: 'kv.get_range', table: this.tableId, range: [value2,
moduleValue2.combineKey(this.prefix, a1)], ordering: a2 == null ? value : a2.ordering,
limit: a2 == null ? value : a2.limit}, this.defaultDebugTag);
}
function value_21038() { // fn#21038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1357, offset: 0x00ee8679, size: 110 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const execute = database.execute;
const object2 = {type: 'kv.get_kv_entries'};
object2.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKeyPrefix(this.prefix, r7);
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
}
function value_21039() { // fn#21039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1542, offset: 0x00ee86e7, size: 110 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const execute = database.execute;
const object2 = {type: 'kv.get_map_entries'};
object2.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKeyPrefix(this.prefix, r7);
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
}
function value_21040() { // fn#21040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1726, offset: 0x00ee8755, size: 110 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const execute = database.execute;
const object2 = {type: 'kv.get_child_ids'};
object2.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKeyPrefix(this.prefix, r7);
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
}
function value_21041() { // fn#21041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:1908, offset: 0x00ee87c3, size: 110 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const execute = database.execute;
const object2 = {type: 'kv.get_parent_id'};
object2.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKey(this.prefix, r7);
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
}
function value_21042(a0) { // fn#21042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2076, offset: 0x00ee8831, size: 164 bytes, params: 2, frame: 19
const ConflictOptions = (require(1917) /* metro dependency 1917: types */).ConflictOptions;
let value = a1;
const r5 = value !== undefined ? value : ConflictOptions.Replace;
const database = this.database;
const execute = database.execute;
const object2 = {type: 'kv.put_one'};
object2.table = this.tableId;
value = environment.__proto__;
object2.cell = prefixCell(a0, this.prefix);
const Replace = ConflictOptions.Replace;
object2.overwrite = r5 === Replace;
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
}
function value_21043(a0) { // fn#21043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2311, offset: 0x00ee88d5, size: 164 bytes, params: 2, frame: 19
const ConflictOptions = (require(1917) /* metro dependency 1917: types */).ConflictOptions;
let value = a1;
const r5 = value !== undefined ? value : ConflictOptions.Replace;
const database = this.database;
const execute = database.execute;
const object2 = {type: 'kv.put_many'};
object2.table = this.tableId;
value = environment.__proto__;
object2.cells = prefixCells(a0, this.prefix);
const Replace = ConflictOptions.Replace;
object2.overwrite = r5 === Replace;
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
}
function value_21044(a0) { // fn#21044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2553, offset: 0x00ee8979, size: 37 bytes, params: 2, frame: 13
const env0_0 = a0;
return this.transaction(_fun21045, this.defaultDebugTag);
}
function value_21046() { // fn#21046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2663, offset: 0x00ee89c0, size: 110 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const execute = database.execute;
const object2 = {type: 'kv.delete_many'};
object2.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKeyPrefix(this.prefix, r7);
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
}
function value_21047(a0, a1) { // fn#21047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2843, offset: 0x00ee8a2e, size: 145 bytes, params: 3, frame: 18
let value = environment.__proto__;
value = Reflect.apply((require(1916) /* metro dependency 1916: Key */).combineKey, value, [this.prefix, a0]);
const keyModule = require(1916) /* metro dependency 1916: Key */;
return this.database.execute({type: 'kv.delete_range', table: this.tableId, range: [value,
keyModule.combineKey(this.prefix, a1)]}, this.defaultDebugTag);
}
function value_21048() { // fn#21048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3072, offset: 0x00ee8abf, size: 126 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const execute = database.execute;
const object2 = {type: 'kv.delete_generation'};
object2.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKeyPrefix(this.prefix, r7);
object2.generation = a2;
object2.comparer = a1;
return Reflect.apply(execute, database, [object2, this.defaultDebugTag]);
}
function value_21049(a0, a1) { // fn#21049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3286, offset: 0x00ee8b3d, size: 44 bytes, params: 3, frame: 13
const env0_1 = a0;
return this.database.transaction(_fun21050, a1);
}
function value_21051(a0) { // fn#21051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3412, offset: 0x00ee8ba7, size: 47 bytes, params: 2, frame: 15
let value = environment.__proto__;
const binding = env1_5;
const prefix = this.prefix;
const tableId = this.tableId;
value = Object.create(binding.prototype, {constructor: {value: binding}});
const binding2 = new binding(prefix, tableId, a0);
return binding2 instanceof Object ? binding2 : value;
}
function value_21052() { // fn#21052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3498, offset: 0x00ee8bd6, size: 146 bytes, params: 1, frame: 19
let value = a0;
const value2 = undefined;
const r8 = value !== value2 ? value : [];
const database = this.database;
const executeSync = database.executeSync;
const object2 = {type: 'kv.get_many'};
object2.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKeyPrefix(this.prefix, r8);
object2.ordering = a1 == null ? value2 : a1.ordering;
object2.limit = a1 == null ? value2 : a1.limit;
return Reflect.apply(executeSync, database, [object2]);
}
function value_21053() { // fn#21053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3736, offset: 0x00ee8c68, size: 103 bytes, params: 1, frame: 18
let value = a0;
const r6 = value !== undefined ? value : [];
const database = this.database;
const executeSync = database.executeSync;
const object2 = {type: 'kv.get_map_entries'};
object2.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKeyPrefix(this.prefix, r6);
return Reflect.apply(executeSync, database, [object2]);
}
function value_21054() { // fn#21054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3908, offset: 0x00ee8ccf, size: 103 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const database = this.database;
const executeSync = database.executeSync;
const object2 = {type: 'kv.delete_many'};
object2.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKeyPrefix(this.prefix, r7);
Reflect.apply(executeSync, database, [object2]);
}
function TableTransaction(a0, a1, a2) { // fn#21056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4063, offset: 0x00ee8e00, size: 108 bytes, params: 4, frame: 14
env1_3(this, TableTransaction);
this.messages = {trimOrphans: trimOrphans, trimChannel: trimChannel, trimChannelsIn: trimChannelsIn,
trimChannelsNotIn: trimChannelsNotIn};
this.prefix = a0;
this.tableId = a1;
this.transaction = a2;
}
function value_21061(a0) { // fn#21061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5187, offset: 0x00ee9099, size: 156 bytes, params: 2, frame: 18
const ConflictOptions = (require(1917) /* metro dependency 1917: types */).ConflictOptions;
let value = a1;
const r5 = value !== undefined ? value : ConflictOptions.Replace;
const transaction = this.transaction;
const add = transaction.add;
const object2 = {type: 'kv.put_one'};
object2.table = this.tableId;
value = environment.__proto__;
object2.cell = prefixCell(a0, this.prefix);
const Replace = ConflictOptions.Replace;
object2.overwrite = r5 === Replace;
Reflect.apply(add, transaction, [object2]);
}
function value_21062(a0) { // fn#21062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5393, offset: 0x00ee9135, size: 156 bytes, params: 2, frame: 18
const ConflictOptions = (require(1917) /* metro dependency 1917: types */).ConflictOptions;
let value = a1;
const r5 = value !== undefined ? value : ConflictOptions.Replace;
const transaction = this.transaction;
const add = transaction.add;
const object2 = {type: 'kv.put_many'};
object2.table = this.tableId;
value = environment.__proto__;
object2.cells = prefixCells(a0, this.prefix);
const Replace = ConflictOptions.Replace;
object2.overwrite = r5 === Replace;
Reflect.apply(add, transaction, [object2]);
}
function value_21063() { // fn#21063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5602, offset: 0x00ee91d1, size: 102 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const transaction = this.transaction;
const add = transaction.add;
const object2 = {type: 'kv.delete_many'};
object2.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKeyPrefix(this.prefix, r7);
Reflect.apply(add, transaction, [object2]);
}
function value_21064(a0, a1) { // fn#21064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5753, offset: 0x00ee9237, size: 137 bytes, params: 3, frame: 18
let value = environment.__proto__;
value = Reflect.apply((require(1916) /* metro dependency 1916: Key */).combineKey, value, [this.prefix, a0]);
const keyModule = require(1916) /* metro dependency 1916: Key */;
this.transaction.add({type: 'kv.delete_range', table: this.tableId, range: [value, keyModule.combineKey(this.prefix,
a1)]});
}
function value_21065() { // fn#21065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:5952, offset: 0x00ee92c0, size: 112 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const transaction = this.transaction;
const add = transaction.add;
const object2 = {type: 'kv.delete_all_except'};
object2.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKeyPrefix(this.prefix, r7);
object2.retain = a1;
Reflect.apply(add, transaction, [object2]);
}
function value_21066() { // fn#21066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:6125, offset: 0x00ee9330, size: 118 bytes, params: 1, frame: 18
let value = a0;
const r7 = value !== undefined ? value : [];
const transaction = this.transaction;
const add = transaction.add;
const object2 = {type: 'kv.delete_generation'};
object2.table = this.tableId;
value = environment.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKeyPrefix(this.prefix, r7);
object2.generation = a2;
object2.comparer = a1;
Reflect.apply(add, transaction, [object2]);
}
function value_21067(a0, a1, a2) { // fn#21067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:6324, offset: 0x00ee93a6, size: 38 bytes, params: 4, frame: 15
const value = Object.create(TableTransaction.prototype, {constructor: {value: TableTransaction}});
const tableTransaction = new TableTransaction(a0, a1, a2);
return tableTransaction instanceof Object ? tableTransaction : value;
}
function getLatest(a0) { // fn#21031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:410, owner: Table.getLatest, offset: 0x00ee847e, size: 63 bytes, params: 2, frame: 14
const binding = env0_0;
return binding.database.execute({type: 'messages.get_latest', table: binding.tableId, guildId: a0},
binding.defaultDebugTag);
}
function _fun21045(a0) { // fn#21045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:2590, offset: 0x00ee899e, size: 34 bytes, params: 2, frame: 11
a0.delete();
a0.putAll(env0_0);
}
function _fun21050(a0) { // fn#21050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:3334, offset: 0x00ee8b69, size: 62 bytes, params: 2, frame: 16
const binding = env0_1;
const binding2 = env2_5;
const {prefix, tableId} = env0_0;
return binding(new binding2(prefix, tableId, a0));
}
function trimOrphans(a0) { // fn#21057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4148, owner: TableTransaction.trimOrphans, offset: 0x00ee8e6c, size: 146 bytes, params: 2, frame: 14
if (env0_0.prefix.length !== 1) {
throw new global.Error('trimOrphans: only one prefix component is supported at this time');
}
if (a0.length !== 1) {
throw new global.Error('trimOrphans: only one prefix component is supported at this time');
}
const binding = env0_0;
binding.transaction.add({type: 'messages.trim_orphans', table: binding.tableId, channelKey: a0[0],
messageKey: binding.prefix[0]});
}
function trimChannel(a0, a1) { // fn#21058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4403, owner: TableTransaction.trimChannel, offset: 0x00ee8efe, size: 105 bytes, params: 3, frame: 17
const binding = env0_0;
const transaction = binding.transaction;
const add = transaction.add;
const object2 = {type: 'messages.trim_channel'};
object2.table = binding.tableId;
let value = environment.__proto__.__proto__;
value = require(1916) /* metro dependency 1916: Key */;
object2.key = value.combineKey(binding.prefix, a0);
object2.limit = a1;
Reflect.apply(add, transaction, [object2]);
}
function trimChannelsIn(a0, a1) { // fn#21059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4545, owner: TableTransaction.trimChannelsIn, offset: 0x00ee8f67, size: 153 bytes, params: 3, frame: 14
if (env0_0.prefix.length !== 1) {
throw new global.Error('trimChannelsIn: only one prefix component is supported at this time');
}
if (a0.length !== 1) {
throw new global.Error('trimChannelsIn: only one prefix component is supported at this time');
}
const binding = env0_0;
binding.transaction.add({type: 'messages.trim_channels_in', table: binding.tableId, channelKey: a0[0],
messageKey: binding.prefix[0], limit: a1});
}
function trimChannelsNotIn(a0, a1) { // fn#21060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2042:4825, owner: TableTransaction.trimChannelsNotIn, offset: 0x00ee9000, size: 153 bytes, params: 3, frame: 14
if (env0_0.prefix.length !== 1) {
throw new global.Error('trimChannelsNotIn: only one prefix component is supported at this time');
}
if (a0.length !== 1) {
throw new global.Error('trimChannelsNotIn: only one prefix component is supported at this time');
}
const binding = env0_0;
binding.transaction.add({type: 'messages.trim_channels_not_in', table: binding.tableId, channelKey: a0[0],
messageKey: binding.prefix[0], limit: a1});
}
global.__d(_fun21025, 1915, [5, 6, 7, 1916, 1917,
2]) /* metro module 1915, dependencies: [5, 6, 7, 1916, 1917, 2] */;
@@ -1,8 +1,10 @@
/* Metro module 1913; source: ../discord_common/js/packages/kv-storage/js/implementation/Classic.native.tsx; dependencies: [27, 2] */
import * as ReactNativeModule from '../../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
function _fun21000(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2040:6, offset: 0x00ee78fc, size: 331 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const NativeModules = (require(27) /* metro dependency 27 */).NativeModules;
const NativeModules = (ReactNativeModule).NativeModules;
let __KvStorage = global.__KvStorage;
if (__KvStorage != null) {
__KvStorage = global.__KvStorage;
@@ -35,3 +37,4 @@ function _fun21000(global, require, importDefault, importAll, module, exports, d
throw new Error("couldn't start the storage subsystem: native module exists, but jsi might not be available?");
}
global.__d(_fun21000, 1913, [27, 2]) /* metro module 1913, dependencies: [27, 2] */;
@@ -1,11 +1,14 @@
/* Metro module 1912; source: ../discord_common/js/packages/kv-storage/js/implementation/index.tsx; dependencies: [2, 1913] */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun20999(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2039:6, offset: 0x00ee7881, size: 123 bytes, params: 8, frame: 22
var propertyName;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/implementation/index.tsx');
(FileImportTrackerModule).fileFinishedImporting('../discord_common/js/packages/kv-storage/js/implementation/index.tsx');
for (propertyName in require(1913) /* metro dependency 1913: ClassicNative */) {
exports[propertyName] = (require(1913) /* metro dependency 1913: ClassicNative */)[propertyName];
}
}
global.__d(_fun20999, 1912, [2, 1913]) /* metro module 1912, dependencies: [2, 1913] */;
Loaded 100 of 22448 files, more files were not shown because too many files have changed in this diff. Show more