Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,93 @@
|
||||
/* Metro module 11533; source: modules/chat_input/native/useChatInputMaxHeight.tsx; dependencies: [57, 31, 1480, 11529, 1851, 5466, 4022, 1583, 1478, 11534, 4504, 4507, 4017, 2] */
|
||||
function _fun88343(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11719:6, offset: 0x01fe0014, size: 220 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = getChatInputMaxHeight;
|
||||
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 */;
|
||||
const env0_6 = (require(11529) /* metro dependency 11529: ChatInputConstants */).CHAT_INPUT_PILL_CONTENT_SIZE;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/useChatInputMaxHeight.tsx');
|
||||
exports.default = useChatInputMaxHeight;
|
||||
exports.getChatInputMinHeight = function() {
|
||||
return CHAT_INPUT_PILL_CONTENT_SIZE;
|
||||
};
|
||||
exports.getChatInputMaxHeight = closure;
|
||||
exports.getChatInputHeightAnimationTiming = getChatInputHeightAnimationTiming;
|
||||
}
|
||||
|
||||
function getChatInputMaxHeight() { // fn#88344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11719:169, offset: 0x01fe00f0, size: 215 bytes, params: 1, frame: 17
|
||||
const systemKeyboardHeight = (require(1851) /* metro dependency 1851: useSystemKeyboardHeightNative */).getSystemKeyboardHeight();
|
||||
const customKeyboardHeight = (require(5466) /* metro dependency 5466: useCustomKeyboardHeight */).getCustomKeyboardHeight();
|
||||
const keyboardType = (require(4022) /* metro dependency 4022: useKeyboardType */).getKeyboardType();
|
||||
const KeyboardTypes = (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes;
|
||||
const SYSTEM = KeyboardTypes.SYSTEM;
|
||||
const r2 = keyboardType === SYSTEM ? systemKeyboardHeight : customKeyboardHeight;
|
||||
const useWindowDimensionsNativeModule = require(1478) /* metro dependency 1478: useWindowDimensionsNative */;
|
||||
const getWindowDimensions = useWindowDimensionsNativeModule.getWindowDimensions;
|
||||
const value5 = Reflect.apply(getWindowDimensions, useWindowDimensionsNativeModule,
|
||||
[{ignoreKeyboard: true}]).height - r2;
|
||||
const Math = global.Math;
|
||||
const min = Math.min;
|
||||
const Math2 = global.Math;
|
||||
return Reflect.apply(min, Math, [200, Math2.max(2 * CHAT_INPUT_PILL_CONTENT_SIZE, value5 - 200)]);
|
||||
}
|
||||
|
||||
function useChatInputMaxHeight(a0) { // fn#88345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11719:538, offset: 0x01fe01c7, size: 90 bytes, params: 2, frame: 16
|
||||
let env0_0 = a0;
|
||||
const binding = env0_4;
|
||||
const useState = binding.useState;
|
||||
const value = env0_3(Reflect.apply(useState, binding, [getChatInputMaxHeight]), 2);
|
||||
const property = value[0];
|
||||
let env0_1 = value[1];
|
||||
binding.useEffect(function() {
|
||||
var closure = _fun88347;
|
||||
var env0_0 = importDefault(dependencyMap[9])(closure);
|
||||
var env0_1 = subscribeToKeyboardUIStore(closure);
|
||||
return _fun88349;
|
||||
}, [a0]);
|
||||
return property;
|
||||
}
|
||||
|
||||
function getChatInputHeightAnimationTiming(a0) { // fn#88351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11719:1000, offset: 0x01fe02ac, size: 121 bytes, params: 2, frame: 17
|
||||
const Math = global.Math;
|
||||
const value3 = Math.min(a0, getChatInputMaxHeight());
|
||||
const value = require(4504) /* metro dependency 4504: timing */;
|
||||
const withTiming = value.withTiming;
|
||||
const object2 = {};
|
||||
object2.duration = (require(4507) /* metro dependency 4507: timingPresets */).timingFastDuration;
|
||||
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
|
||||
object2.easing = Easing.linear;
|
||||
return Reflect.apply(withTiming, value, [value3, object2]);
|
||||
}
|
||||
|
||||
function _fun88346() { // fn#88346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11719:655, offset: 0x01fe0221, size: 65 bytes, params: 1, frame: 14
|
||||
const closure = maybeUpdateMaxHeight;
|
||||
const env0_0 = (importDefault(11534) /* metro dependency 11534: subscribeToWindowDimensionsNative */)(closure);
|
||||
const env0_1 = subscribeToKeyboardUIStore(closure);
|
||||
return _fun88349;
|
||||
}
|
||||
|
||||
function maybeUpdateMaxHeight() { // fn#88347, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11719:685, offset: 0x01fe0262, size: 25 bytes, params: 1, frame: 11
|
||||
env1_1(_fun88348);
|
||||
}
|
||||
|
||||
function _fun88348(a0) { // fn#88348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11719:693, offset: 0x01fe027b, size: 49 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
let value = a0;
|
||||
const chatInputMaxHeight = getChatInputMaxHeight();
|
||||
if (value === chatInputMaxHeight) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = environment.__proto__.__proto__;
|
||||
if (env2_0 == null) {
|
||||
r0 = chatInputMaxHeight;
|
||||
} else {
|
||||
env2_0();
|
||||
r0 = chatInputMaxHeight;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user