90 lines
5.6 KiB
TypeScript
90 lines
5.6 KiB
TypeScript
/* Metro module 13114; source: modules/keyboard/native/AnimatedKeyboardProviderController.tsx; dependencies: [31, 33, 4017, 1599, 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 Module01599Module from '../../../by-id/module-01599.js'; /* Metro dependency 1599 */
|
|
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
|
|
|
|
function _fun100217(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#100217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13304:6, offset: 0x021e177c, size: 298 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let makeMutable = ReanimatedRexportModule.makeMutable;
|
|
const mutable = Reflect.apply(makeMutable, ReanimatedRexportModule, [0]);
|
|
makeMutable = ReanimatedRexportModule.makeMutable;
|
|
const KeyboardState = ReanimatedRexportModule.KeyboardState;
|
|
const UNKNOWN = KeyboardState.UNKNOWN;
|
|
const mutable2 = Reflect.apply(makeMutable, ReanimatedRexportModule, [UNKNOWN]);
|
|
object = {code: 'function AnimatedKeyboardProviderControllerTsx1(e){const{animatedKeyboardState,KeyboardState}=this.__closure;animatedKeyboardState.set(e.height===0?KeyboardState.CLOSED:KeyboardState.OPEN);}'};
|
|
object = {code: 'function AnimatedKeyboardProviderControllerTsx2(e){const{animatedKeyboardHeight}=this.__closure;animatedKeyboardHeight.set(e.height);}'};
|
|
object = {code: 'function AnimatedKeyboardProviderControllerTsx3(e){const{animatedKeyboardState,KeyboardState,animatedKeyboardHeight}=this.__closure;animatedKeyboardState.set(e.height===0?KeyboardState.CLOSED:KeyboardState.OPEN);animatedKeyboardHeight.set(e.height);}'};
|
|
const env0_9 = ReactModule.memo(_fun100218);
|
|
object = {Component: Component_100222, animatedKeyboardHeight: mutable, animatedKeyboardState: mutable2};
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/keyboard/native/AnimatedKeyboardProviderController.tsx');
|
|
exports.default = object;
|
|
function _fun100218() { // fn#100218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13304:837, offset: 0x021e18a6, size: 258 bytes, params: 1, frame: 23
|
|
const useKeyboardHandler = Module01599Module.useKeyboardHandler;
|
|
const object = {};
|
|
let closure = onStart_100219;
|
|
const object2 = {};
|
|
const binding = env0_5;
|
|
object2.animatedKeyboardState = binding;
|
|
const KeyboardState = (ReanimatedRexportModule).KeyboardState;
|
|
object2.KeyboardState = KeyboardState;
|
|
closure.__closure = object2;
|
|
closure.__workletHash = 12130162639136;
|
|
closure.__initData = env0_6;
|
|
object.onStart = closure;
|
|
closure = onMove_100220;
|
|
const binding2 = env0_4;
|
|
closure.__closure = {animatedKeyboardHeight: binding2};
|
|
closure.__workletHash = 1398293011995;
|
|
closure.__initData = env0_7;
|
|
object.onMove = closure;
|
|
closure = onEnd_100221;
|
|
closure.__closure = {animatedKeyboardState: binding, KeyboardState: KeyboardState, animatedKeyboardHeight: binding2};
|
|
closure.__workletHash = 10688534401196;
|
|
closure.__initData = env0_8;
|
|
object.onEnd = closure;
|
|
Reflect.apply(useKeyboardHandler, Module01599Module, [object, []]);
|
|
return null;
|
|
function onStart_100219({height}) { // fn#100219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13304:904, offset: 0x021e19a8, size: 105 bytes, params: 2, frame: 14
|
|
const KeyboardState = (ReanimatedRexportModule).KeyboardState;
|
|
const binding = env1_5;
|
|
binding.set(height === 0 ? KeyboardState.CLOSED : KeyboardState.OPEN);
|
|
}
|
|
|
|
function onMove_100220({height}) { // fn#100220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13304:1125, offset: 0x021e1a11, size: 29 bytes, params: 2, frame: 11
|
|
env1_4.set(height);
|
|
}
|
|
|
|
function onEnd_100221(a0) { // fn#100221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13304:1250, offset: 0x021e1a2e, size: 124 bytes, params: 2, frame: 16
|
|
const KeyboardState = (ReanimatedRexportModule).KeyboardState;
|
|
let binding = env1_5;
|
|
binding.set(a0.height === 0 ? KeyboardState.CLOSED : KeyboardState.OPEN);
|
|
binding = env1_4;
|
|
binding.set(a0.height);
|
|
}
|
|
|
|
}
|
|
|
|
function Component_100222({children}) { // fn#100222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13304:1528, offset: 0x021e1aaa, size: 97 bytes, params: 2, frame: 17
|
|
const KeyboardProvider = (Module01599Module).KeyboardProvider;
|
|
return (
|
|
<KeyboardProvider
|
|
enabled
|
|
navigationBarTranslucent
|
|
preserveEdgeToEdge
|
|
statusBarTranslucent
|
|
>
|
|
{children}
|
|
{((Component) => <Component />)(env0_9)}
|
|
</KeyboardProvider>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun100217, 13114, [31, 33, 4017, 1599,
|
|
2]) /* metro module 13114, dependencies: [31, 33, 4017, 1599, 2] */;
|