Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,35 @@
|
||||
/* Metro module 11706; source: modules/app_launcher/native/hooks/useAnimationDelayedAutoFocus.tsx; dependencies: [31, 11699, 2] */
|
||||
function _fun89738(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11892:6, offset: 0x0201c439, size: 114 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('modules/app_launcher/native/hooks/useAnimationDelayedAutoFocus.tsx');
|
||||
exports.useAnimationDelayedAutoFocus = function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var value2 = require(dependencyMap[1]).useAwaitAnimationCompletion();
|
||||
var binding = value2;
|
||||
var env0_3 = binding.useRef(false);
|
||||
binding.useEffect(_fun89740, [a0, a1, value2]);
|
||||
};
|
||||
}
|
||||
|
||||
function useAnimationDelayedAutoFocus(a0, a1) { // fn#89739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11892:237, offset: 0x0201c4ab, size: 111 bytes, params: 3, frame: 17
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const value2 = (require(11699) /* metro dependency 11699: useAwaitAnimationComplete */).useAwaitAnimationCompletion();
|
||||
const binding = value2;
|
||||
const env0_3 = binding.useRef(false);
|
||||
binding.useEffect(_fun89740, [a0, a1, value2]);
|
||||
}
|
||||
|
||||
function _fun89740() { // fn#89740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11892:352, offset: 0x0201c51a, size: 61 bytes, params: 1, frame: 12
|
||||
if (env0_0 && !env0_3.current) {
|
||||
env0_2(function() {
|
||||
require();
|
||||
});
|
||||
}
|
||||
env0_3.current = true;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Metro module 11699; source: modules/app_launcher/native/hooks/useAwaitAnimationComplete.tsx; dependencies: [31, 33, 2] */
|
||||
function _fun89687(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11885:6, offset: 0x0201a2f9, size: 157 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_2 = value.createContext(null);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/hooks/useAwaitAnimationComplete.tsx');
|
||||
exports.AwaitAnimationContext = AwaitAnimationContext;
|
||||
exports.useAwaitAnimationCompletion = useAwaitAnimationCompletion;
|
||||
}
|
||||
|
||||
function AwaitAnimationContext({children, handleQueuedCallback}) { // fn#89688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11885:265, offset: 0x0201a396, size: 87 bytes, params: 2, frame: 16
|
||||
const value2 = handleQueuedCallback.useMemo(function() {
|
||||
return {handleQueuedCallback: handleQueuedCallback};
|
||||
}, [handleQueuedCallback]);
|
||||
const Provider = env0_2.Provider;
|
||||
return (
|
||||
<Provider value={value2}>
|
||||
{children}
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
|
||||
function useAwaitAnimationCompletion() { // fn#89690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11885:460, offset: 0x0201a3fd, size: 47 bytes, params: 1, frame: 11
|
||||
const value = env0_0.useContext(env0_2);
|
||||
return value == null ? function(a0) {
|
||||
return a0();
|
||||
} : value.handleQueuedCallback;
|
||||
}
|
||||
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
/* Metro module 11639; source: modules/app_launcher/native/hooks/useBottomSheetFlashListBottomViewabilityInset.tsx; dependencies: [31, 1478, 8774, 11577, 22, 4017, 2] */
|
||||
function _fun89227(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:6, offset: 0x02005a37, size: 153 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 */;
|
||||
object = {code: 'function useBottomSheetFlashListBottomViewabilityInsetTsx1(){const{bottomSheetPosition}=this.__closure;var _bottomSheetPosition$,_bottomSheetPosition;return(_bottomSheetPosition$=(_bottomSheetPosition=bottomSheetPosition)===null||_bottomSheetPosition===void 0?void 0:_bottomSheetPosition.get())!==null&&_bottomSheetPosition$!==void 0?_bottomSheetPosition$:0;}'};
|
||||
object = {code: 'function useBottomSheetFlashListBottomViewabilityInsetTsx2(sheetPosition){const{distanceBetweenExpandedScreenTopAndSheetTop,runOnJS,handleBottomViewabilityInsetDebounced}=this.__closure;const bottomViewabilityInset=sheetPosition-distanceBetweenExpandedScreenTopAndSheetTop;runOnJS(handleBottomViewabilityInsetDebounced)(bottomViewabilityInset);}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/hooks/useBottomSheetFlashListBottomViewabilityInset.tsx');
|
||||
exports.useBottomSheetFlashListBottomViewabilityInset = useBottomSheetFlashListBottomViewabilityInset;
|
||||
}
|
||||
|
||||
function useBottomSheetFlashListBottomViewabilityInset() { // fn#89228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:999, offset: 0x02005ad0, size: 357 bytes, params: 1, frame: 24
|
||||
var object2;
|
||||
const value2 = undefined;
|
||||
const value3 = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
|
||||
let binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const AppLauncherContext = (require(8774) /* metro dependency 8774: AppLauncherContext */).AppLauncherContext;
|
||||
const value4 = Reflect.apply(useContext, binding, [AppLauncherContext]);
|
||||
const bottomSheetPosition = value4 == null ? value2 : value4.bottomSheetPosition;
|
||||
const maximum = (importDefault(11577) /* metro dependency 11577: useKeyboardActionSheetHeight */)().maximum;
|
||||
binding = env0_3;
|
||||
const value5 = binding.useRef(null);
|
||||
const value6 = value3.height - maximum;
|
||||
const value7 = binding.useRef(9999);
|
||||
let closure = _fun89229;
|
||||
const value8 = binding.useMemo(closure, []);
|
||||
const env0_4 = value8;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
|
||||
closure = useBottomSheetFlashListBottomViewabilityInsetU;
|
||||
closure.__closure = {bottomSheetPosition: bottomSheetPosition};
|
||||
closure.__workletHash = 3750973667946;
|
||||
closure.__initData = env0_4;
|
||||
const closure2 = useBottomSheetFlashListBottomViewabilityInsetS;
|
||||
object2 = {distanceBetweenExpandedScreenTopAndSheetTop: value6};
|
||||
object2.runOnJS = reanimatedRexportModule.runOnJS;
|
||||
object2.handleBottomViewabilityInsetDebounced = value8;
|
||||
closure2.__closure = object2;
|
||||
closure2.__workletHash = 6025307858098;
|
||||
closure2.__initData = env0_5;
|
||||
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
|
||||
return {flashListRef: value5, bottomVisibilityInsetRef: value7};
|
||||
}
|
||||
|
||||
function _fun89229() { // fn#89229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:1238, offset: 0x02005c35, size: 51 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(22) /* metro dependency 22 */).debounce(_fun89230, 200);
|
||||
}
|
||||
|
||||
function useBottomSheetFlashListBottomViewabilityInsetU() { // fn#89231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:1378, owner: useBottomSheetFlashListBottomViewabilityInset.u, offset: 0x02005c95, size: 45 bytes, params: 1, frame: 11
|
||||
return bottomSheetPosition?.get() ?? 0;
|
||||
}
|
||||
|
||||
function useBottomSheetFlashListBottomViewabilityInsetS(a0) { // fn#89232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:1521, owner: useBottomSheetFlashListBottomViewabilityInset.s, offset: 0x02005cc2, size: 60 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
value = value.runOnJS(env0_4);
|
||||
value(a0 - env0_2);
|
||||
}
|
||||
|
||||
function _fun89230(a0) { // fn#89230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:1260, offset: 0x02005c68, size: 45 bytes, params: 2, frame: 10
|
||||
env1_3.current = a0;
|
||||
const current = env1_1.current;
|
||||
if (current != null) {
|
||||
current.updateViewableItems();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/* Metro module 8775; source: modules/app_launcher/native/hooks/useDefaultAppLauncherWidth.tsx; dependencies: [6276, 1478, 8048, 2] */
|
||||
function _fun68626(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8960:6, offset: 0x01c5676c, size: 124 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_MAX_WIDTH;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/hooks/useDefaultAppLauncherWidth.tsx');
|
||||
exports.useDefaultAppLauncherWidth = useDefaultAppLauncherWidth;
|
||||
}
|
||||
|
||||
function useDefaultAppLauncherWidth(a0) { // fn#68627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8960:256, offset: 0x01c567e8, size: 97 bytes, params: 2, frame: 15
|
||||
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
|
||||
const AppLauncherEntrypoint = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint;
|
||||
const TEXT = AppLauncherEntrypoint.TEXT;
|
||||
return a0 === TEXT ? width : global.Math.min(width, ACTION_SHEET_MAX_WIDTH);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/* Metro module 11696; source: modules/app_launcher/native/hooks/useLatch.tsx; dependencies: [31, 2] */
|
||||
function _fun89663(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11882:6, offset: 0x020194e7, size: 106 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/hooks/useLatch.tsx');
|
||||
exports.default = function(a0) {
|
||||
var binding = a0;
|
||||
var env0_1 = binding.useRef(false);
|
||||
var object = {};
|
||||
object.setLatch = binding.useCallback(_fun89665, []);
|
||||
object.tryCallback = binding.useCallback(_fun89666, [a0]);
|
||||
return object;
|
||||
};
|
||||
}
|
||||
|
||||
function useLatch(a0) { // fn#89664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11882:196, offset: 0x02019551, size: 94 bytes, params: 2, frame: 16
|
||||
const binding = a0;
|
||||
const env0_1 = binding.useRef(false);
|
||||
const object2 = {};
|
||||
object2.setLatch = binding.useCallback(_fun89665, []);
|
||||
object2.tryCallback = binding.useCallback(_fun89666, [a0]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun89665(a0) { // fn#89665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11882:267, offset: 0x020195af, size: 18 bytes, params: 2, frame: 2
|
||||
env0_1.current = a0;
|
||||
return a0;
|
||||
}
|
||||
|
||||
function _fun89666() { // fn#89666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11882:314, offset: 0x020195c1, size: 41 bytes, params: 1, frame: 10
|
||||
if (env0_1.current) {
|
||||
env0_1.current = false;
|
||||
env0_0();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Metro module 11670; source: modules/app_launcher/native/hooks/useNavigationTransitionEnded.tsx; dependencies: [57, 31, 1483, 1485, 2] */
|
||||
function _fun89452(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11856:6, offset: 0x0200e0de, size: 155 bytes, params: 8, frame: 18
|
||||
const 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 */;
|
||||
const env0_4 = (require(1483) /* metro dependency 1483: AppLauncherNativeConstants */).useAppLauncherNavigation;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/hooks/useNavigationTransitionEnded.tsx');
|
||||
exports.default = useNavigationTransitionEnded;
|
||||
}
|
||||
|
||||
function useNavigationTransitionEnded() { // fn#89453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11856:261, offset: 0x0200e179, size: 135 bytes, params: 1, frame: 18
|
||||
const binding = env0_3;
|
||||
const [property, property2] = env0_2(binding.useState(false), 2);
|
||||
const value4 = useAppLauncherNavigation();
|
||||
let value = require(1485) /* metro dependency 1485 */;
|
||||
value = value.useRoute();
|
||||
binding.useEffect(_fun89454, [value4, value, property2]);
|
||||
return property;
|
||||
}
|
||||
|
||||
function _fun89454() { // fn#89454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11856:392, offset: 0x0200e200, size: 34 bytes, params: 1, frame: 13
|
||||
return env0_1.addListener('transitionEnd', _fun89455);
|
||||
}
|
||||
|
||||
function _fun89455() { // fn#89455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11856:427, offset: 0x0200e222, size: 67 bytes, params: 1, frame: 11
|
||||
const state = env1_1.getState();
|
||||
if (state.routes[state.index].key === env1_2.key) {
|
||||
env1_0(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Metro module 11595; source: modules/app_launcher/native/hooks/usePlaceholderSize.tsx; dependencies: [31, 2] */
|
||||
function _fun88803(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11781:6, offset: 0x01ff2d45, size: 106 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/hooks/usePlaceholderSize.tsx');
|
||||
exports.usePlaceholderWidth = usePlaceholderWidth;
|
||||
}
|
||||
|
||||
function usePlaceholderWidth(a0, a1) { // fn#88804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11781:218, offset: 0x01ff2daf, size: 55 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return env0_0.useMemo(_fun88805, [a0, a1]);
|
||||
}
|
||||
|
||||
function _fun88805() { // fn#88805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11781:270, offset: 0x01ff2de6, size: 43 bytes, params: 1, frame: 10
|
||||
const Math = global.Math;
|
||||
const value = Math.random();
|
||||
const binding = env0_0;
|
||||
return value * (require - binding) + binding;
|
||||
}
|
||||
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
/* Metro module 11642; source: modules/app_launcher/native/hooks/useTrackAppLauncherItemImpressionOnFirstView.tsx; dependencies: [31, 8774, 1485, 8742, 480, 2] */
|
||||
function _fun89240(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11828:6, offset: 0x02006184, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/hooks/useTrackAppLauncherItemImpressionOnFirstView.tsx');
|
||||
exports.useTrackAppLauncherItemImpressionOnFirstView = useTrackAppLauncherItemImpressionOnFirstView;
|
||||
}
|
||||
|
||||
function useTrackAppLauncherItemImpressionOnFirstView() { // fn#89241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11828:269, offset: 0x020061f6, size: 173 bytes, params: 1, frame: 18
|
||||
const appLauncherContextModule = require(8774) /* metro dependency 8774: AppLauncherContext */;
|
||||
const useAppLauncherContext = appLauncherContextModule.useAppLauncherContext;
|
||||
const entrypoint = Reflect.apply(useAppLauncherContext, appLauncherContextModule, []).entrypoint;
|
||||
const binding = env0_2;
|
||||
const useRef = binding.useRef;
|
||||
const Set = global.Set;
|
||||
let set = new Set();
|
||||
const env0_1 = Reflect.apply(useRef, binding, [set]);
|
||||
set = require(1485) /* metro dependency 1485 */;
|
||||
const useFocusEffect = set.useFocusEffect;
|
||||
let useCallback = binding.useCallback;
|
||||
Reflect.apply(useFocusEffect, set, [Reflect.apply(useCallback, binding, [_fun89242, []])]);
|
||||
useCallback = binding.useCallback;
|
||||
return {trackAppLauncherItemImpressionOnFirstView: Reflect.apply(useCallback, binding, [_fun89243, [entrypoint]])};
|
||||
}
|
||||
|
||||
function _fun89242() { // fn#89242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11828:439, offset: 0x020062a3, size: 26 bytes, params: 1, frame: 9
|
||||
env0_1.current.clear();
|
||||
}
|
||||
|
||||
function _fun89243({itemKey, sectionName, sectionPosition, sectionOverallPosition, applicationId, commandId, applicationFlags}) { // fn#89243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11828:527, offset: 0x020062bd, size: 237 bytes, params: 2, frame: 23
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var trackImpression;
|
||||
var object2;
|
||||
const current = env0_1.current;
|
||||
if (!current.has(itemKey)) {
|
||||
env0_1.current.add(itemKey);
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(8742) /* metro dependency 8742: useTrackImpression */;
|
||||
trackImpression = moduleValue.trackImpression;
|
||||
object2 = {};
|
||||
object2.type = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionTypes.VIEW;
|
||||
object2.name = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames.APP_LAUNCHER_ITEM;
|
||||
object2.properties = {source: entrypoint, section_name: sectionName, section_position: sectionPosition,
|
||||
section_overall_position: sectionOverallPosition, application_id: applicationId, command_id: commandId,
|
||||
application_flags: applicationFlags};
|
||||
Reflect.apply(trackImpression, moduleValue, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user