Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,18 @@
|
||||
/* Metro module 1587; source: modules/safe_area/SafeAreaConstants.native.tsx; dependencies: [1588, 2] */
|
||||
function _fun17611(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1714:6, offset: 0x00e7123b, size: 189 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {'top': 0, 'bottom': 0, 'left': 0, 'right': 0};
|
||||
const value = undefined;
|
||||
let initialWindowMetrics = (require(1588) /* metro dependency 1588 */).initialWindowMetrics;
|
||||
initialWindowMetrics = initialWindowMetrics != null ? (require(1588) /* metro dependency 1588 */).initialWindowMetrics : value;
|
||||
const r1 = (initialWindowMetrics == null ? value : initialWindowMetrics.insets) ?? object2;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safe_area/SafeAreaConstants.native.tsx');
|
||||
exports.EMPTY_SAFE_AREA_INSETS = object2;
|
||||
exports.META_QUEST_SAFE_AREA_INSETS = {'top': 4, 'bottom': 4, 'left': 0, 'right': 0};
|
||||
exports.INITIAL_SAFE_AREA_METRICS = initialWindowMetrics;
|
||||
exports.INITIAL_SAFE_AREA_INSETS = r1;
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
/* Metro module 13118; source: modules/safe_area/SafeAreaProvider.native.tsx; dependencies: [31, 27, 33, 1581, 1587, 477, 1586, 1597, 690, 1588, 1481, 2] */
|
||||
function _fun100247(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#100247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13308:6, offset: 0x021e2331, size: 205 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_6 = {'position': 'absolute', 'width': 0, 'height': 0};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safe_area/SafeAreaProvider.native.tsx');
|
||||
exports.SafeAreaReporter = SafeAreaReporter;
|
||||
exports.SafeAreaProvider = SafeAreaProvider_100254;
|
||||
}
|
||||
|
||||
function updateSafeAreaStoreEntry(a0, a1) { // fn#100248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13308:180, offset: 0x021e23fe, size: 61 bytes, params: 3, frame: 12
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun100249);
|
||||
}
|
||||
|
||||
function SafeAreaReporter() { // fn#100251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13308:850, offset: 0x021e25e4, size: 179 bytes, params: 1, frame: 18
|
||||
const value2 = (require(1588) /* metro dependency 1588 */).useSafeAreaInsets();
|
||||
const value3 = (require(1481) /* metro dependency 1481: AppEntryKeyContext */).useAppEntryKey();
|
||||
const binding = env0_3;
|
||||
binding.useLayoutEffect(_fun100252, [value2, value3]);
|
||||
const env0_2 = binding.useRef(false);
|
||||
return <View style={env0_6} onLayout={binding.useCallback(_fun100253, [value2, value3])} />;
|
||||
}
|
||||
|
||||
function SafeAreaProvider_100254({children, style}) { // fn#100254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13308:1162, offset: 0x021e26e9, size: 89 bytes, params: 2, frame: 18
|
||||
const SafeAreaProvider = (require(1588) /* metro dependency 1588 */).SafeAreaProvider;
|
||||
const INITIAL_SAFE_AREA_METRICS = (require(1587) /* metro dependency 1587: SafeAreaConstantsNative */).INITIAL_SAFE_AREA_METRICS;
|
||||
return (
|
||||
<SafeAreaProvider
|
||||
initialMetrics={INITIAL_SAFE_AREA_METRICS}
|
||||
children={children}
|
||||
style={style}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun100249() { // fn#100249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13308:241, offset: 0x021e243b, size: 338 bytes, params: 1, frame: 20
|
||||
var environment;
|
||||
var moduleValue2;
|
||||
var defaultImport;
|
||||
var safeAreaInsets;
|
||||
var stableSafeAreaInsets;
|
||||
var object2;
|
||||
var META_QUEST_SAFE_AREA_INSETS;
|
||||
const binding = env0_0;
|
||||
const value = environment.__proto__;
|
||||
if ((require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest()) {
|
||||
META_QUEST_SAFE_AREA_INSETS = (require(1587) /* metro dependency 1587: SafeAreaConstantsNative */).META_QUEST_SAFE_AREA_INSETS;
|
||||
} else {
|
||||
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue2.isAndroid()) {
|
||||
defaultImport = importDefault(1586) /* metro dependency 1586: SafeAreaStoreNative */;
|
||||
safeAreaInsets = defaultImport.getState().byAppEntry[require].safeAreaInsets;
|
||||
stableSafeAreaInsets = (importDefault(1597) /* metro dependency 1597: NativeSafeAreaInsetsModule */).getStableSafeAreaInsets(require);
|
||||
if (stableSafeAreaInsets != null) {
|
||||
if (stableSafeAreaInsets.bottom !== safeAreaInsets.bottom) {
|
||||
object2 = {};
|
||||
object2.bottom = stableSafeAreaInsets.bottom;
|
||||
object2.top = stableSafeAreaInsets.top;
|
||||
object2.left = binding.left;
|
||||
object2.right = binding.right;
|
||||
} else if (stableSafeAreaInsets.top !== safeAreaInsets.top) {
|
||||
object2 = {};
|
||||
object2.bottom = stableSafeAreaInsets.bottom;
|
||||
object2.top = stableSafeAreaInsets.top;
|
||||
object2.left = binding.left;
|
||||
object2.right = binding.right;
|
||||
} else if (stableSafeAreaInsets.left !== safeAreaInsets.left) {
|
||||
object2 = {};
|
||||
object2.bottom = stableSafeAreaInsets.bottom;
|
||||
object2.top = stableSafeAreaInsets.top;
|
||||
object2.left = binding.left;
|
||||
object2.right = binding.right;
|
||||
} else if (stableSafeAreaInsets.right !== safeAreaInsets.right) {
|
||||
object2 = {};
|
||||
object2.bottom = stableSafeAreaInsets.bottom;
|
||||
object2.top = stableSafeAreaInsets.top;
|
||||
object2.left = binding.left;
|
||||
object2.right = binding.right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
(importDefault(1586) /* metro dependency 1586: SafeAreaStoreNative */).setState(_fun100250);
|
||||
}
|
||||
|
||||
function _fun100252() { // fn#100252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13308:959, offset: 0x021e2697, size: 28 bytes, params: 1, frame: 13
|
||||
updateSafeAreaStoreEntry(env0_0, env0_1);
|
||||
}
|
||||
|
||||
function _fun100253() { // fn#100253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13308:1039, offset: 0x021e26b3, size: 54 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
if (!env0_2.current) {
|
||||
env0_2.current = true;
|
||||
value2 = environment.__proto__;
|
||||
updateSafeAreaStoreEntry(env0_0, env0_1);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun100250(a0) { // fn#100250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13308:652, offset: 0x021e258d, size: 87 bytes, params: 2, frame: 15
|
||||
var r0;
|
||||
var object;
|
||||
const value = a0;
|
||||
if (value.byAppEntry[require].safeAreaInsets === env0_0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
object = {};
|
||||
copyDataProperties(object, value.byAppEntry, environment);
|
||||
object[require] = {safeAreaInsets: env0_0};
|
||||
r0 = {byAppEntry: object};
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Metro module 1586; source: modules/safe_area/SafeAreaStore.native.tsx; dependencies: [1587, 629, 2] */
|
||||
function _fun17609(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1713:6, offset: 0x00e71197, size: 136 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {};
|
||||
const INITIAL_SAFE_AREA_INSETS = (require(1587) /* metro dependency 1587: SafeAreaConstantsNative */).INITIAL_SAFE_AREA_INSETS;
|
||||
object2.safeAreaInsets = INITIAL_SAFE_AREA_INSETS;
|
||||
let value = require(629) /* metro dependency 629 */;
|
||||
value = value.create(_fun17610);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safe_area/SafeAreaStore.native.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun17610() { // fn#17610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1713:166, offset: 0x00e7121f, size: 28 bytes, params: 1, frame: 4
|
||||
const binding = env0_0;
|
||||
return {byAppEntry: {main: binding, share: binding}};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Metro module 15232; source: modules/safe_area/shouldExcludeSafeAreaForModalKey.native.tsx; dependencies: [661, 8871, 7709, 2] */
|
||||
function _fun116526(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15429:6, offset: 0x0248cbf8, size: 196 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const MEDIA_MODAL_KEY = (require(661) /* metro dependency 661: Constants */).MEDIA_MODAL_KEY;
|
||||
const {OAUTH2_AUTHORIZE_MODAL_KEY, OAUTH2_ERROR_RESULT_MODAL_KEY,
|
||||
OAUTH2_SUCCESS_RESULT_MODAL_KEY} = require(8871) /* metro dependency 8871: Constants */;
|
||||
const Set = global.Set;
|
||||
const set = new Set([MEDIA_MODAL_KEY, OAUTH2_AUTHORIZE_MODAL_KEY, OAUTH2_SUCCESS_RESULT_MODAL_KEY,
|
||||
OAUTH2_ERROR_RESULT_MODAL_KEY]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safe_area/shouldExcludeSafeAreaForModalKey.native.tsx');
|
||||
exports.shouldExcludeSafeAreaForModalKey = shouldExcludeSafeAreaForModalKey;
|
||||
}
|
||||
|
||||
function shouldExcludeSafeAreaForModalKey(a0) { // fn#116527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15429:384, offset: 0x0248ccbc, size: 76 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var isVoiceChannelModalKey2;
|
||||
const value = a0 != null;
|
||||
if (value) {
|
||||
isVoiceChannelModalKey2 = (require(7709) /* metro dependency 7709: PrivateChannelCallUtils */).isVoiceChannelModalKey(a0);
|
||||
r0 = isVoiceChannelModalKey2 ? !!isVoiceChannelModalKey2 : env0_2.has(a0);
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Metro module 10712; source: modules/safe_area/subscribeToSafeAreaInsets.native.tsx; dependencies: [1481, 1586, 2] */
|
||||
function _fun82329(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10898:6, offset: 0x01ef36c5, size: 103 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('modules/safe_area/subscribeToSafeAreaInsets.native.tsx');
|
||||
exports.default = subscribeToSafeAreaInsets;
|
||||
}
|
||||
|
||||
function subscribeToSafeAreaInsets(a0) { // fn#82330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10898:190, offset: 0x01ef372c, size: 104 bytes, params: 2, frame: 14
|
||||
var DEFAULT_APP_ENTRY_KEY;
|
||||
const value = a1;
|
||||
const env0_0 = a0;
|
||||
if (value === undefined) {
|
||||
DEFAULT_APP_ENTRY_KEY = (require(1481) /* metro dependency 1481: AppEntryKeyContext */).DEFAULT_APP_ENTRY_KEY;
|
||||
}
|
||||
return (importDefault(1586) /* metro dependency 1586: SafeAreaStoreNative */).subscribe(_fun82332);
|
||||
}
|
||||
|
||||
function selector({byAppEntry}) { // fn#82331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10898:273, owner: subscribeToSafeAreaInsets.selector, offset: 0x01ef3794, size: 28 bytes, params: 2, frame: 2
|
||||
return byAppEntry[env0_1].safeAreaInsets;
|
||||
}
|
||||
|
||||
function _fun82332(a0, a1) { // fn#82332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10898:337, offset: 0x01ef37b0, size: 40 bytes, params: 3, frame: 13
|
||||
const selectorBinding = selector;
|
||||
const value2 = selectorBinding(a0);
|
||||
if (value2 !== selectorBinding(a1)) {
|
||||
env0_0(value2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,215 @@
|
||||
/* Metro module 10302; source: modules/safe_area/useSafeAreaAvoidingInputs.native.tsx; dependencies: [5, 31, 1478, 697, 10303, 5464, 2] */
|
||||
function _fun79952(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10488:6, offset: 0x01e67cf5, size: 148 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safe_area/useSafeAreaAvoidingInputs.native.tsx');
|
||||
exports.default = useSafeAreaAvoidingInputs;
|
||||
}
|
||||
|
||||
function _calculateScrollOffset() { // fn#79953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10488:116, offset: 0x01e67d89, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun79955).apply(this, arguments);
|
||||
}
|
||||
|
||||
function useSafeAreaAvoidingInputs({insets, inputs, scrollViewRef}) { // fn#79956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10488:616, offset: 0x01e67ede, size: 162 bytes, params: 2, frame: 17
|
||||
const binding = env0_4;
|
||||
const env0_3 = binding.useRef(inputs);
|
||||
binding.useEffect(_fun79957, [inputs]);
|
||||
const useCallback = binding.useCallback;
|
||||
let value = env0_3(_fun79959);
|
||||
value = Reflect.apply(useCallback, binding, [value, [insets, scrollViewRef]]);
|
||||
binding.useEffect(_fun79962, [value]);
|
||||
return {onFocus: value};
|
||||
}
|
||||
|
||||
function* _fun79955(a0, a1) { // fn#79955, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10488:183, offset: 0x01e67dc6, size: 280 bytes, params: 3, frame: 17
|
||||
var r4;
|
||||
var r2;
|
||||
var value3;
|
||||
var value4;
|
||||
var y;
|
||||
var y2;
|
||||
var height;
|
||||
let value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (a0 == null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
return env2_1(env2_2[3]).space.PX_16;
|
||||
}
|
||||
const type = a0.type;
|
||||
if (type === 'toRef') {
|
||||
value = environment.__proto__.__proto__;
|
||||
value3 = env2_0(env2_2[4]);
|
||||
yield value3.measureViewRefInWindow(a0.ref);
|
||||
value4 = undefined;
|
||||
if (false) {
|
||||
return value4;
|
||||
}
|
||||
r4 = a0.extraOffset ?? 0;
|
||||
if (value4 == null) {
|
||||
r2 = env2_1(env2_2[3]).space.PX_16 + r4;
|
||||
} else {
|
||||
y = value4.y;
|
||||
y2 = a1.y;
|
||||
height = a1.height;
|
||||
value = y - (y2 + height);
|
||||
height = value4.height;
|
||||
value = value + height + r4;
|
||||
r2 = value;
|
||||
}
|
||||
return r2;
|
||||
}
|
||||
if (type === 'toValue') {
|
||||
return a0.value;
|
||||
}
|
||||
if (type === 'toBottom') {
|
||||
return global.Number.MAX_SAFE_INTEGER;
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun79959() { // fn#79959, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10488:766, offset: 0x01e67f8b, size: 701 bytes, params: 1, frame: 25
|
||||
var environment;
|
||||
var r9;
|
||||
var r5;
|
||||
var r7;
|
||||
var object2;
|
||||
var scrollView;
|
||||
var y;
|
||||
var height;
|
||||
var value17;
|
||||
var value18;
|
||||
var value19;
|
||||
var inputInWindow;
|
||||
var value21;
|
||||
var value22;
|
||||
var inputInScrollView;
|
||||
var value24;
|
||||
if (true) {
|
||||
value = environment.__proto__;
|
||||
var current = dependencyMap.current;
|
||||
var value3 = env1_3.current.find(function(a0) {
|
||||
return a0.ref.current?.isFocused();
|
||||
});
|
||||
if (value3 != null) {
|
||||
if (current == null) {
|
||||
return undefined;
|
||||
}
|
||||
var binding = env2_0;
|
||||
var value5 = undefined;
|
||||
var value6 = binding(env2_2[4]);
|
||||
var measureViewRefInWindow = value6.measureViewRefInWindow;
|
||||
var ref = value3.ref;
|
||||
yield Reflect.apply(measureViewRefInWindow, value6, [ref]);
|
||||
var value7 = undefined;
|
||||
if (false) {
|
||||
return value7;
|
||||
}
|
||||
binding = env2_0;
|
||||
var value9 = binding(env2_2[4]);
|
||||
var measureViewRefInView = value9.measureViewRefInView;
|
||||
ref = value3.ref;
|
||||
yield Reflect.apply(measureViewRefInView, value9, [ref, current]);
|
||||
var value10 = undefined;
|
||||
if (false) {
|
||||
return value10;
|
||||
}
|
||||
if (value7 == null) {
|
||||
return undefined;
|
||||
}
|
||||
if (value10 == null) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_0;
|
||||
var value12 = binding(env2_2[4]);
|
||||
yield value12.measureViewInWindow(current);
|
||||
var value13 = undefined;
|
||||
if (false) {
|
||||
return value13;
|
||||
}
|
||||
yield calculateScrollOffset(value3.offset, value7);
|
||||
var value15 = undefined;
|
||||
if (false) {
|
||||
return value15;
|
||||
}
|
||||
var Number = global.Number;
|
||||
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER;
|
||||
if (value15 !== MAX_SAFE_INTEGER) {
|
||||
object2 = {};
|
||||
object2.insets = require;
|
||||
object2.inputInScrollView = value10;
|
||||
object2.inputInWindow = value7;
|
||||
object2.scrollOffset = value15;
|
||||
object2.scrollView = value13;
|
||||
scrollView = object2.scrollView;
|
||||
y = scrollView.y;
|
||||
scrollView = object2.scrollView;
|
||||
height = scrollView.height;
|
||||
value17 = y + height;
|
||||
value18 = env2_0(env2_2[2]);
|
||||
height = value18.getWindowDimensions({ignoreKeyboard: true}).height;
|
||||
value19 = height - object2.insets.bottom;
|
||||
inputInWindow = object2.inputInWindow;
|
||||
y = inputInWindow.y;
|
||||
inputInWindow = object2.inputInWindow;
|
||||
height = inputInWindow.height;
|
||||
if (y + height + object2.scrollOffset <= value19) {
|
||||
r9 = value5;
|
||||
} else {
|
||||
value21 = global.Math.max(0, value17 - value19);
|
||||
height = object2.scrollView.height;
|
||||
value22 = height - value21;
|
||||
inputInScrollView = object2.inputInScrollView;
|
||||
y = inputInScrollView.y;
|
||||
inputInScrollView = object2.inputInScrollView;
|
||||
height = inputInScrollView.height;
|
||||
value24 = y + height + object2.scrollOffset;
|
||||
r9 = value24 <= value22 ? value5 : value24 - value22;
|
||||
}
|
||||
if (r9 != null) {
|
||||
current = dependencyMap.current;
|
||||
r5 = current == null || current.scrollTo == null ? value5 : current.scrollTo({'x': 0, 'y': null,
|
||||
'animated': true,
|
||||
y: r9});
|
||||
value = r5 != null;
|
||||
if (value) {
|
||||
r5 = value;
|
||||
r7 = value5;
|
||||
} else {
|
||||
current = dependencyMap.current;
|
||||
r5 = current == null;
|
||||
r7 = current;
|
||||
}
|
||||
r5 = !r5 ? r7.scrollToOffset == null : r5;
|
||||
if (!r5) {
|
||||
r7.scrollToOffset({offset: r9, animated: true});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
current = dependencyMap.current;
|
||||
if (current != null) {
|
||||
current.scrollToEnd({animated: true});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun79962() { // fn#79962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10488:1951, offset: 0x01e6826c, size: 71 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
const setTimeout = global.setTimeout;
|
||||
const binding = env0_4;
|
||||
let value = environment.__proto__;
|
||||
value = require(5464) /* metro dependency 5464: useKeyboardDuration */;
|
||||
const getKeyboardDuration = value.getKeyboardDuration;
|
||||
const env0_0 = setTimeout(binding, Reflect.apply(getKeyboardDuration, value, []));
|
||||
return _fun79963;
|
||||
}
|
||||
|
||||
function calculateScrollOffset() { // fn#79961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10488:1066, offset: 0x01b646ea, size: 30 bytes, params: 1, frame: 13
|
||||
return env3_5.apply(this, arguments);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 1585; source: modules/safe_area/useSafeAreaInsets.native.tsx; dependencies: [1481, 1586, 2] */
|
||||
function _fun17605(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1712:6, offset: 0x00e7106f, size: 112 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('modules/safe_area/useSafeAreaInsets.native.tsx');
|
||||
exports.default = useSafeAreaInsets;
|
||||
exports.getSafeAreaInsets = getSafeAreaInsets;
|
||||
}
|
||||
|
||||
function useSafeAreaInsets() { // fn#17606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1712:182, offset: 0x00e710df, size: 68 bytes, params: 1, frame: 14
|
||||
const env0_0 = (require(1481) /* metro dependency 1481: AppEntryKeyContext */).useAppEntryKey();
|
||||
return (importDefault(1586) /* metro dependency 1586: SafeAreaStoreNative */)(_fun17607);
|
||||
}
|
||||
|
||||
function getSafeAreaInsets() { // fn#17608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1712:315, offset: 0x00e7113f, size: 88 bytes, params: 1, frame: 13
|
||||
let value = a0;
|
||||
const r1 = value !== undefined ? value : (require(1481) /* metro dependency 1481: AppEntryKeyContext */).DEFAULT_APP_ENTRY_KEY;
|
||||
value = importDefault(1586) /* metro dependency 1586: SafeAreaStoreNative */;
|
||||
const getState = value.getState;
|
||||
return Reflect.apply(getState, value, []).byAppEntry[r1].safeAreaInsets;
|
||||
}
|
||||
|
||||
function _fun17607({byAppEntry}) { // fn#17607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1712:258, offset: 0x00e71123, size: 28 bytes, params: 2, frame: 2
|
||||
return byAppEntry[env0_0].safeAreaInsets;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,192 @@
|
||||
/* Metro module 5463; source: modules/safe_area/useSafeAreaInsetsKeyboardAware.native.tsx; dependencies: [57, 31, 1480, 5464, 5465, 1585, 1481, 477, 1851, 4022, 1583, 5466, 2] */
|
||||
function _fun48033(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#48033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5641:6, offset: 0x011d7c60, size: 151 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const subscribeToKeyboardUIStore = importDefault(1480) /* metro dependency 1480: subscribeToKeyboardUIStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safe_area/useSafeAreaInsetsKeyboardAware.native.tsx');
|
||||
exports.default = useSafeAreaInsetsKeyboardAware;
|
||||
}
|
||||
|
||||
function useSafeAreaInsetsKeyboardAware() { // fn#48034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5641:230, offset: 0x011d7cf7, size: 398 bytes, params: 1, frame: 22
|
||||
var object4;
|
||||
var r1;
|
||||
var object3;
|
||||
let value = a0;
|
||||
const r0 = value !== undefined ? value : {};
|
||||
let isKeyboardAwareOnIOS = r0.isKeyboardAwareOnIOS;
|
||||
isKeyboardAwareOnIOS = isKeyboardAwareOnIOS === undefined || isKeyboardAwareOnIOS;
|
||||
let isKeyboardAwareOnAndroid = r0.isKeyboardAwareOnAndroid;
|
||||
isKeyboardAwareOnAndroid = isKeyboardAwareOnAndroid === undefined || isKeyboardAwareOnAndroid;
|
||||
let includeCustomKeyboardHeight = r0.includeCustomKeyboardHeight;
|
||||
includeCustomKeyboardHeight = includeCustomKeyboardHeight === undefined || includeCustomKeyboardHeight;
|
||||
let includeKeyboardHeight = r0.includeKeyboardHeight;
|
||||
includeKeyboardHeight = !(includeKeyboardHeight === undefined) && includeKeyboardHeight;
|
||||
const env0_4 = undefined;
|
||||
const value2 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
|
||||
const value3 = (require(1481) /* metro dependency 1481: AppEntryKeyContext */).useAppEntryKey();
|
||||
const env0_3 = value3;
|
||||
const binding = env0_4;
|
||||
const value4 = binding.useCallback(_fun48035, [value3, includeCustomKeyboardHeight, isKeyboardAwareOnIOS,
|
||||
isKeyboardAwareOnAndroid]);
|
||||
const value5 = binding.useRef(value4());
|
||||
const useState = binding.useState;
|
||||
const value7 = env0_3(Reflect.apply(useState, binding, [value5.current]), 2);
|
||||
const value8 = 0;
|
||||
const property = value7[value8];
|
||||
const env0_6 = value7[1];
|
||||
binding.useEffect(function() {
|
||||
return subscribeToKeyboardUIStore(_fun48037);
|
||||
}, [value4, isKeyboardAwareOnIOS, isKeyboardAwareOnAndroid]);
|
||||
object4 = {keyboardHeight: property};
|
||||
let r7 = isKeyboardAwareOnIOS ? !includeKeyboardHeight : !isKeyboardAwareOnIOS;
|
||||
if (!r7) {
|
||||
value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
value = value.isAndroid();
|
||||
r7 = value;
|
||||
}
|
||||
object4.disabled = r7;
|
||||
useAnimateChanges(object4);
|
||||
if (property > value8) {
|
||||
object3 = {};
|
||||
copyDataProperties(object3, value2, value4);
|
||||
object3['bottom'] = includeKeyboardHeight ? property : value8;
|
||||
r1 = object3;
|
||||
} else {
|
||||
r1 = value2;
|
||||
}
|
||||
return {insets: r1};
|
||||
}
|
||||
|
||||
function _fun48035() { // fn#48035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5641:452, offset: 0x011d7e85, size: 261 bytes, params: 1, frame: 18
|
||||
var r1;
|
||||
var r0;
|
||||
var moduleValue2;
|
||||
var systemKeyboardHeight;
|
||||
var value6;
|
||||
const KeyboardTypes = (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes;
|
||||
let value = environment.__proto__;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isIOS()) {
|
||||
if (isKeyboardAwareOnIOS) {
|
||||
moduleValue2 = platformUtilsModule;
|
||||
if (moduleValue2.isAndroid()) {
|
||||
if (isKeyboardAwareOnAndroid) {
|
||||
systemKeyboardHeight = (require(1851) /* metro dependency 1851: useSystemKeyboardHeightNative */).getSystemKeyboardHeight({appEntryKey: env0_3});
|
||||
value6 = 0;
|
||||
if (value6 !== systemKeyboardHeight) {
|
||||
r0 = systemKeyboardHeight;
|
||||
} else {
|
||||
if ((require(4022) /* metro dependency 4022: useKeyboardType */).getKeyboardType(env0_3) === KeyboardTypes.SYSTEM) {
|
||||
r1 = value6;
|
||||
} else if (includeCustomKeyboardHeight) {
|
||||
value = require(5466) /* metro dependency 5466: useCustomKeyboardHeight */;
|
||||
value = value.getCustomKeyboardHeight(env0_3);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value6;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
systemKeyboardHeight = (require(1851) /* metro dependency 1851: useSystemKeyboardHeightNative */).getSystemKeyboardHeight({appEntryKey: env0_3});
|
||||
value6 = 0;
|
||||
if (value6 !== systemKeyboardHeight) {
|
||||
r0 = systemKeyboardHeight;
|
||||
} else {
|
||||
if ((require(4022) /* metro dependency 4022: useKeyboardType */).getKeyboardType(env0_3) === KeyboardTypes.SYSTEM) {
|
||||
r1 = value6;
|
||||
} else if (includeCustomKeyboardHeight) {
|
||||
value = require(5466) /* metro dependency 5466: useCustomKeyboardHeight */;
|
||||
value = value.getCustomKeyboardHeight(env0_3);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value6;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
moduleValue2 = platformUtilsModule;
|
||||
if (moduleValue2.isAndroid()) {
|
||||
if (isKeyboardAwareOnAndroid) {
|
||||
systemKeyboardHeight = (require(1851) /* metro dependency 1851: useSystemKeyboardHeightNative */).getSystemKeyboardHeight({appEntryKey: env0_3});
|
||||
value6 = 0;
|
||||
if (value6 !== systemKeyboardHeight) {
|
||||
r0 = systemKeyboardHeight;
|
||||
} else {
|
||||
if ((require(4022) /* metro dependency 4022: useKeyboardType */).getKeyboardType(env0_3) === KeyboardTypes.SYSTEM) {
|
||||
r1 = value6;
|
||||
} else if (includeCustomKeyboardHeight) {
|
||||
value = require(5466) /* metro dependency 5466: useCustomKeyboardHeight */;
|
||||
value = value.getCustomKeyboardHeight(env0_3);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value6;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
systemKeyboardHeight = (require(1851) /* metro dependency 1851: useSystemKeyboardHeightNative */).getSystemKeyboardHeight({appEntryKey: env0_3});
|
||||
value6 = 0;
|
||||
if (value6 !== systemKeyboardHeight) {
|
||||
r0 = systemKeyboardHeight;
|
||||
} else {
|
||||
if ((require(4022) /* metro dependency 4022: useKeyboardType */).getKeyboardType(env0_3) === KeyboardTypes.SYSTEM) {
|
||||
r1 = value6;
|
||||
} else if (includeCustomKeyboardHeight) {
|
||||
value = require(5466) /* metro dependency 5466: useCustomKeyboardHeight */;
|
||||
value = value.getCustomKeyboardHeight(env0_3);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value6;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun48036() { // fn#48036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5641:784, offset: 0x011d7f8a, size: 23 bytes, params: 1, frame: 11
|
||||
return subscribeToKeyboardUIStore(_fun48037);
|
||||
}
|
||||
|
||||
function useAnimateChanges({keyboardHeight, disabled}) { // fn#48038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5641:870, owner: useSafeAreaInsetsKeyboardAware.useAnimateChanges, offset: 0x011d7fd0, size: 75 bytes, params: 2, frame: 15
|
||||
const binding = env1_4;
|
||||
const env0_1 = binding.useRef(false);
|
||||
binding.useEffect(_fun48039, [keyboardHeight, disabled]);
|
||||
}
|
||||
|
||||
function _fun48037() { // fn#48037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5641:798, offset: 0x011d7fa1, size: 47 bytes, params: 1, frame: 12
|
||||
const value2 = env1_4();
|
||||
if (env1_5.current !== value2) {
|
||||
env1_5.current = value2;
|
||||
env1_6(value2);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun48039() { // fn#48039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5641:960, offset: 0x011d801b, size: 110 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__;
|
||||
const keyboardDuration = (require(5464) /* metro dependency 5464: useKeyboardDuration */).getKeyboardDuration();
|
||||
if (env0_1.current) {
|
||||
if (keyboardDuration === 0) {
|
||||
env0_1.current = true;
|
||||
} else if (disabled) {
|
||||
env0_1.current = true;
|
||||
} else {
|
||||
(require(5465) /* metro dependency 5465: DeprecatedLayoutAnimation */).DeprecatedLayoutAnimationKeyboard(keyboardDuration);
|
||||
}
|
||||
} else {
|
||||
env0_1.current = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,178 @@
|
||||
/* Metro module 11281; source: modules/safe_area/useSafeAreaInsetsSharedValue.native.tsx; dependencies: [4017, 1585, 10712, 11282, 1598, 1481, 2] */
|
||||
function _fun86133(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11467:6, offset: 0x01f88fc5, size: 348 bytes, params: 8, frame: 24
|
||||
var object4;
|
||||
var r4;
|
||||
var value5;
|
||||
var value6;
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_86134 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object4 = {};
|
||||
let value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let makeMutable = value.makeMutable;
|
||||
const object5 = {};
|
||||
const useSafeAreaInsetsNativeModule = require(1585) /* metro dependency 1585: useSafeAreaInsetsNative */;
|
||||
let getSafeAreaInsets = useSafeAreaInsetsNativeModule.getSafeAreaInsets;
|
||||
copyDataProperties(object5, Reflect.apply(getSafeAreaInsets, useSafeAreaInsetsNativeModule, ['main']), undefined);
|
||||
object4.main = Reflect.apply(makeMutable, value, [object5]);
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
makeMutable = value.makeMutable;
|
||||
const object6 = {};
|
||||
let value3 = useSafeAreaInsetsNativeModule;
|
||||
getSafeAreaInsets = value3.getSafeAreaInsets;
|
||||
copyDataProperties(object6, Reflect.apply(getSafeAreaInsets, value3, ['share']), undefined);
|
||||
object4.share = Reflect.apply(makeMutable, value, [object6]);
|
||||
const closure = _loop_86135;
|
||||
const APP_ENTRY_KEYS = (require(1598) /* metro dependency 1598: AppEntryKey */).APP_ENTRY_KEYS;
|
||||
value = _createForOfIteratorHelperLoose_86137(APP_ENTRY_KEYS);
|
||||
let value4 = value();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
for (r4 = value4; true; r4 = value6) {
|
||||
value5 = r4.value;
|
||||
closure(value5);
|
||||
value6 = value();
|
||||
done = value6.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
object4 = {code: "function getSafeAreaInsetsWorklet_useSafeAreaInsetsSharedValueNativeTsx1(appEntryKey='main'){const{safeAreaInsetsSharedValues}=this.__closure;return safeAreaInsetsSharedValues[appEntryKey].get();}"};
|
||||
value = _fun86139();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safe_area/useSafeAreaInsetsSharedValue.native.tsx');
|
||||
exports.default = useSafeAreaInsetsSharedValue;
|
||||
exports.getSafeAreaInsetsWorklet = value;
|
||||
}
|
||||
|
||||
function _loop_86135(a0) { // fn#86135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11467:370, offset: 0x01f89121, size: 49 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
(importDefault(10712) /* metro dependency 10712: subscribeToSafeAreaInsetsNative */)(_fun86136, a0);
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_86137(a0, a1) { // fn#86137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11467:419, offset: 0x01f89185, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun86138;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_86134(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_86134(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_86134(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun86138;
|
||||
}
|
||||
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 _fun86139() { // fn#86139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11467:1482, offset: 0x01f892f9, size: 59 bytes, params: 1, frame: 4
|
||||
const closure = getSafeAreaInsetsWorklet;
|
||||
closure.__closure = {safeAreaInsetsSharedValues: env0_3};
|
||||
closure.__workletHash = 5220247127549;
|
||||
closure.__initData = env0_4;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function useSafeAreaInsetsSharedValue() { // fn#86141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11467:1855, offset: 0x01f89357, size: 45 bytes, params: 1, frame: 12
|
||||
return env0_3[(require(1481) /* metro dependency 1481: AppEntryKeyContext */).useAppEntryKey()];
|
||||
}
|
||||
|
||||
function _fun86136(a0) { // fn#86136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11467:391, offset: 0x01f89152, size: 51 bytes, params: 2, frame: 13
|
||||
(importDefault(11282) /* metro dependency 11282: updateSharedValueIfChangedNative */)(env1_3[env0_0], a0);
|
||||
}
|
||||
|
||||
function getSafeAreaInsetsWorklet() { // fn#86140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11467:1522, offset: 0x01f89334, size: 35 bytes, params: 1, frame: 9
|
||||
let value = a0;
|
||||
const r1 = value !== undefined ? value : 'main';
|
||||
value = environment.__proto__;
|
||||
return env1_3[r1].get();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/* Metro module 10711; source: modules/safe_area/useStableSafeAreaInsets.native.tsx; dependencies: [57, 31, 1481, 477, 1597, 1585, 10712, 2] */
|
||||
function _fun82323(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10897:6, offset: 0x01ef34d9, size: 154 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = getStableSafeAreaInsets;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safe_area/useStableSafeAreaInsets.native.tsx');
|
||||
exports.default = useStableSafeAreaInsets;
|
||||
exports.getStableSafeAreaInsets = closure;
|
||||
}
|
||||
|
||||
function getStableSafeAreaInsets() { // fn#82324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10897:116, offset: 0x01ef3573, size: 140 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
let value = a0;
|
||||
const r3 = value !== undefined ? value : (require(1481) /* metro dependency 1481: AppEntryKeyContext */).DEFAULT_APP_ENTRY_KEY;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
value = importDefault(1597) /* metro dependency 1597: NativeSafeAreaInsetsModule */;
|
||||
value = value.getStableSafeAreaInsets(r3);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = require(1585) /* metro dependency 1585: useSafeAreaInsetsNative */;
|
||||
value = value.getSafeAreaInsets(r3);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useStableSafeAreaInsets() { // fn#82325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10897:369, offset: 0x01ef35ff, size: 117 bytes, params: 1, frame: 17
|
||||
const value2 = (require(1481) /* metro dependency 1481: AppEntryKeyContext */).useAppEntryKey();
|
||||
const binding = env0_4;
|
||||
const value = env0_3(binding.useState(_fun82326), 2);
|
||||
const property = value[0];
|
||||
const env0_1 = value[1];
|
||||
binding.useEffect(_fun82327, [value2]);
|
||||
return property;
|
||||
}
|
||||
|
||||
function _fun82327() { // fn#82327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10897:525, offset: 0x01ef3674, size: 49 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(10712) /* metro dependency 10712: subscribeToSafeAreaInsetsNative */)(_fun82328, env0_0);
|
||||
}
|
||||
|
||||
function _fun82328() { // fn#82328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10897:538, offset: 0x01ef36a5, size: 32 bytes, params: 1, frame: 12
|
||||
env1_1(getStableSafeAreaInsets(env1_0));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user