Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,101 @@
|
||||
/* Metro module 11530; source: modules/chat_input/native/FloatingChatInputContainer.tsx; dependencies: [57, 31, 33, 4017, 3860, 697, 1599, 4022, 1583, 4504, 4507, 2] */
|
||||
function _fun88306(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:6, offset: 0x01fdef86, size: 226 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
|
||||
const env0_6 = Easing.bezier(0.2, 0, 0, 1);
|
||||
object = {code: 'function FloatingChatInputContainerTsx1(){const{paddingSV}=this.__closure;return{paddingBottom:paddingSV.get()};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/FloatingChatInputContainer.tsx');
|
||||
exports.default = FloatingChatInputContainer;
|
||||
}
|
||||
|
||||
function FloatingChatInputContainer({style, onLayout, children}) { // fn#88307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:394, offset: 0x01fdf068, size: 101 bytes, params: 2, frame: 18
|
||||
const value = useKeyboardOpenPaddingStyle();
|
||||
const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
return (
|
||||
<View style={[style, value]} onLayout={onLayout}>
|
||||
{children}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function useKeyboardOpenPaddingStyle() { // fn#88308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:469, owner: FloatingChatInputContainer.useKeyboardOpenPaddingStyle, offset: 0x01fdf0cd, size: 384 bytes, params: 1, frame: 23
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const CHAT_INPUT_FLOATING_CONTENT_PADDING_VERTICAL = (importDefault(697) /* metro dependency 697: native */).modules.mobile.CHAT_INPUT_FLOATING_CONTENT_PADDING_VERTICAL;
|
||||
const value2 = Reflect.apply(useToken, useTokenModule, [CHAT_INPUT_FLOATING_CONTENT_PADDING_VERTICAL]);
|
||||
const binding = env1_4;
|
||||
const value4 = env1_3(binding.useState(_fun88309), 2);
|
||||
const value5 = 0;
|
||||
const property = value4[value5];
|
||||
let env0_1 = value4[1];
|
||||
binding.useEffect(function() {
|
||||
var KeyboardEvents = require(dependencyMap[6]).KeyboardEvents;
|
||||
var env0_0 = KeyboardEvents.addListener('keyboardWillShow', _fun88311);
|
||||
var env0_1 = KeyboardEvents.addListener('keyboardWillHide', _fun88312);
|
||||
return _fun88313;
|
||||
}, []);
|
||||
const useKeyboardTypeModule = require(4022) /* metro dependency 4022: useKeyboardType */;
|
||||
const useKeyboardContextForType = useKeyboardTypeModule.useKeyboardContextForType;
|
||||
const KeyboardTypes = (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes;
|
||||
let SYSTEM = KeyboardTypes.SYSTEM;
|
||||
const value6 = Reflect.apply(useKeyboardContextForType, useKeyboardTypeModule, [SYSTEM]).keyboardWillOpen === true;
|
||||
const value7 = (importDefault(4022) /* metro dependency 4022: useKeyboardType */)();
|
||||
SYSTEM = KeyboardTypes.SYSTEM;
|
||||
const value8 = value7 !== SYSTEM;
|
||||
let r9 = property || value6;
|
||||
r9 = !r9 ? value8 : r9;
|
||||
env1_4.useEffect(_fun88314, [r9, value2,
|
||||
(require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(r9 ? value2 : value5)]);
|
||||
return (require(4017) /* metro dependency 4017: ReanimatedRexport */).useAnimatedStyle(_fun88315());
|
||||
}
|
||||
|
||||
function _fun88309() { // fn#88309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:614, offset: 0x01fdf24d, size: 74 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = undefined;
|
||||
const KeyboardController = (require(1599) /* metro dependency 1599 */).KeyboardController;
|
||||
const value2 = KeyboardController.state();
|
||||
const height = value2 == null ? value : value2.height;
|
||||
value = 0;
|
||||
return (height ?? value) > value;
|
||||
}
|
||||
|
||||
function _fun88310() { // fn#88310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:751, offset: 0x01fdf297, size: 115 bytes, params: 1, frame: 18
|
||||
const KeyboardEvents = (require(1599) /* metro dependency 1599 */).KeyboardEvents;
|
||||
const env0_0 = KeyboardEvents.addListener('keyboardWillShow', _fun88311);
|
||||
const env0_1 = KeyboardEvents.addListener('keyboardWillHide', _fun88312);
|
||||
return _fun88313;
|
||||
}
|
||||
|
||||
function _fun88314() { // fn#88314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:1135, offset: 0x01fdf30a, size: 109 bytes, params: 1, frame: 20
|
||||
const binding = env0_3;
|
||||
const set = binding.set;
|
||||
const timingModule = require(4504) /* metro dependency 4504: timing */;
|
||||
const withTiming = timingModule.withTiming;
|
||||
const r4 = env0_2 ? env0_0 : 0;
|
||||
const object2 = {};
|
||||
object2.duration = (require(4507) /* metro dependency 4507: timingPresets */).timingStandardDuration;
|
||||
object2.easing = env2_6;
|
||||
Reflect.apply(set, binding, [Reflect.apply(withTiming, timingModule, [r4, object2])]);
|
||||
}
|
||||
|
||||
function _fun88315() { // fn#88315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:1261, offset: 0x01fdf377, size: 62 bytes, params: 1, frame: 3
|
||||
const closure = FloatingChatInputContainerTsx1;
|
||||
closure.__closure = {paddingSV: env0_3};
|
||||
closure.__workletHash = 5673482424037;
|
||||
closure.__initData = env2_7;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function FloatingChatInputContainerTsx1() { // fn#88316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11716:1307, offset: 0x01fdf3b5, size: 25 bytes, params: 1, frame: 10
|
||||
const object2 = {};
|
||||
object2.paddingBottom = env1_3.get();
|
||||
return object2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user