76 lines
3.8 KiB
JavaScript
76 lines
3.8 KiB
JavaScript
// Module ID: 1845
|
|
// Function ID: 1846
|
|
// Name: useAnimatedKeyboardHandler
|
|
// Dependencies: [1654]
|
|
|
|
// Module 1845 (useAnimatedKeyboardHandler)
|
|
const require = arg1;
|
|
const dependencyMap = arg6;
|
|
let closure_2 = { code: "function pnpm_reanimatedNativeTs1(event){const{handlers,context}=this.__closure;const{onKeyboardMoveStart:onKeyboardMoveStart,onKeyboardMove:onKeyboardMove,onKeyboardMoveEnd:onKeyboardMoveEnd,onKeyboardMoveInteractive:onKeyboardMoveInteractive}=handlers;if(onKeyboardMoveStart&&event.eventName.endsWith(\"onKeyboardMoveStart\")){onKeyboardMoveStart(event,context);}if(onKeyboardMove&&event.eventName.endsWith(\"onKeyboardMove\")){onKeyboardMove(event,context);}if(onKeyboardMoveEnd&&event.eventName.endsWith(\"onKeyboardMoveEnd\")){onKeyboardMoveEnd(event,context);}if(onKeyboardMoveInteractive&&event.eventName.endsWith(\"onKeyboardMoveInteractive\")){onKeyboardMoveInteractive(event,context);}}" };
|
|
let closure_3 = { code: "function pnpm_reanimatedNativeTs2(event){const{handlers,context}=this.__closure;const{onFocusedInputLayoutChanged:onFocusedInputLayoutChanged}=handlers;if(onFocusedInputLayoutChanged&&event.eventName.endsWith(\"onFocusedInputLayoutChanged\")){onFocusedInputLayoutChanged(event,context);}}" };
|
|
arg5.useAnimatedKeyboardHandler = (handlers, items10) => {
|
|
const _require = handlers;
|
|
const handler = _require(context[0]).useHandler(handlers, items10);
|
|
context = handler.context;
|
|
const obj = _require(context[0]);
|
|
const fn = function v(eventName) {
|
|
({ onKeyboardMoveStart, onKeyboardMove, onKeyboardMoveEnd, onKeyboardMoveInteractive } = closure_0);
|
|
let endsWithResult = onKeyboardMoveStart;
|
|
if (onKeyboardMoveStart) {
|
|
eventName = eventName.eventName;
|
|
endsWithResult = eventName.endsWith("onKeyboardMoveStart");
|
|
}
|
|
if (endsWithResult) {
|
|
onKeyboardMoveStart(eventName, context);
|
|
}
|
|
let endsWithResult1 = onKeyboardMove;
|
|
if (onKeyboardMove) {
|
|
const eventName2 = eventName.eventName;
|
|
endsWithResult1 = eventName2.endsWith("onKeyboardMove");
|
|
}
|
|
if (endsWithResult1) {
|
|
onKeyboardMove(eventName, context);
|
|
}
|
|
let endsWithResult2 = onKeyboardMoveEnd;
|
|
if (onKeyboardMoveEnd) {
|
|
const eventName3 = eventName.eventName;
|
|
endsWithResult2 = eventName3.endsWith("onKeyboardMoveEnd");
|
|
}
|
|
if (endsWithResult2) {
|
|
onKeyboardMoveEnd(eventName, context);
|
|
}
|
|
let endsWithResult3 = onKeyboardMoveInteractive;
|
|
if (onKeyboardMoveInteractive) {
|
|
const eventName4 = eventName.eventName;
|
|
endsWithResult3 = eventName4.endsWith("onKeyboardMoveInteractive");
|
|
}
|
|
if (endsWithResult3) {
|
|
const result = onKeyboardMoveInteractive(eventName, context);
|
|
}
|
|
};
|
|
fn.__closure = { handlers, context };
|
|
fn.__workletHash = 6092807753388;
|
|
fn.__initData = closure_2;
|
|
return _require(context[0]).useEvent(fn, ["onKeyboardMoveStart", "onKeyboardMove", "onKeyboardMoveEnd", "onKeyboardMoveInteractive"], handler.doDependenciesDiffer);
|
|
};
|
|
arg5.useFocusedInputLayoutHandler = (handlers, items10) => {
|
|
const _require = handlers;
|
|
const handler = _require(context[0]).useHandler(handlers, items10);
|
|
context = handler.context;
|
|
const obj = _require(context[0]);
|
|
const fn = function v(eventName) {
|
|
const onFocusedInputLayoutChanged = handlers.onFocusedInputLayoutChanged;
|
|
let endsWithResult = onFocusedInputLayoutChanged;
|
|
if (onFocusedInputLayoutChanged) {
|
|
eventName = eventName.eventName;
|
|
endsWithResult = eventName.endsWith("onFocusedInputLayoutChanged");
|
|
}
|
|
if (endsWithResult) {
|
|
const result = onFocusedInputLayoutChanged(eventName, context);
|
|
}
|
|
};
|
|
fn.__closure = { handlers, context };
|
|
fn.__workletHash = 9976853307145;
|
|
fn.__initData = closure_3;
|
|
return _require(context[0]).useEvent(fn, ["onFocusedInputLayoutChanged"], handler.doDependenciesDiffer);
|
|
};
|