// Module ID: 1792 // Function ID: 19846 // Name: forwardRef // Dependencies: [5, 29, 31, 33, 1582, 1790, 1793, 1776, 1772, 1572, 1794, 1795, 1796] // Module 1792 (forwardRef) import useCombinedRef from "useCombinedRef"; import _objectWithoutProperties from "_objectWithoutProperties"; import result from "result"; import closure_10 from "result"; import jsxProd from "jsxProd"; let closure_11; let closure_12; let closure_6; let closure_7; let closure_8; let closure_9; let forwardRef; const require = arg1; let closure_3 = ["children", "onLayout", "bottomOffset", "disableScrollOnKeyboardHide", "enabled", "extraKeyboardSpace", "mode", "ScrollViewComponent", "snapToOffsets"]; ({ useCallback: closure_6, useEffect: closure_7, useImperativeHandle: closure_8, useMemo: closure_9, forwardRef } = result); ({ jsx: closure_11, jsxs: closure_12 } = jsxProd); let closure_13 = { code: "function pnpm_indexTsx1(e,animated=false){const{enabled,layout,scrollViewTarget,height,keyboardHeight,bottomOffset,interpolate,initialKeyboardSize,scrollDistanceWithRespectToSnapPoints,scrollPosition,snapToOffsets,scrollTo,scrollViewAnimatedRef,scrollViewPageY}=this.__closure;var _layout$value,_layout$value2,_layout$value3;if(!enabled){return 0;}if(((_layout$value=layout.value)===null||_layout$value===void 0?void 0:_layout$value.parentScrollViewTarget)!==scrollViewTarget.value){return 0;}const visibleRect=height-keyboardHeight.value;const absoluteY=((_layout$value2=layout.value)===null||_layout$value2===void 0?void 0:_layout$value2.layout.absoluteY)||0;const inputHeight=((_layout$value3=layout.value)===null||_layout$value3===void 0?void 0:_layout$value3.layout.height)||0;const point=absoluteY+inputHeight;if(visibleRect-point<=bottomOffset){const relativeScrollTo=keyboardHeight.value-(height-point)+bottomOffset;const interpolatedScrollTo=interpolate(e,[initialKeyboardSize.value,keyboardHeight.value],[0,scrollDistanceWithRespectToSnapPoints(relativeScrollTo+scrollPosition.value,snapToOffsets)-scrollPosition.value]);const targetScrollY=Math.max(interpolatedScrollTo,0)+scrollPosition.value;scrollTo(scrollViewAnimatedRef,0,targetScrollY,animated);return interpolatedScrollTo;}if(point0){scrollTo(scrollViewAnimatedRef,0,scrollPosition.value-interpolate(e,[initialKeyboardSize.value,keyboardHeight.value],[ghostViewSpace.value,0]),false);return true;}return false;}" }; let closure_15 = { code: "function pnpm_indexTsx3(newPosition){const{scrollPosition,maybeScroll,keyboardHeight}=this.__closure;const prevScroll=scrollPosition.value;scrollPosition.value=newPosition;maybeScroll(keyboardHeight.value,true);scrollPosition.value=prevScroll;}" }; let closure_16 = { code: "function pnpm_indexTsx4(e){const{interpolate,keyboardHeight,extraKeyboardSpace,currentKeyboardFrameHeight}=this.__closure;const keyboardFrame=interpolate(e.height,[0,keyboardHeight.value],[0,keyboardHeight.value+extraKeyboardSpace]);currentKeyboardFrameHeight.value=keyboardFrame;}" }; let closure_17 = { code: "function pnpm_indexTsx5(){const{lastSelection,input,layout,clamp}=this.__closure;var _lastSelection$value,_input$value;const customHeight=(_lastSelection$value=lastSelection.value)===null||_lastSelection$value===void 0?void 0:_lastSelection$value.selection.end.y;if(!((_input$value=input.value)!==null&&_input$value!==void 0&&_input$value.layout)||!customHeight){return false;}layout.value={...input.value,layout:{...input.value.layout,height:clamp(customHeight,0,input.value.layout.height)}};return true;}" }; let closure_18 = { code: "function pnpm_indexTsx6(){const{layout,updateLayoutFromSelection,performScrollWithPositionRestoration,position}=this.__closure;const prevLayout=layout.value;if(!updateLayoutFromSelection()){return;}performScrollWithPositionRestoration(position.value);layout.value=prevLayout;}" }; let closure_19 = { code: "function pnpm_indexTsx7(){const{scrollFromCurrentPosition}=this.__closure;scrollFromCurrentPosition();}" }; let closure_20 = { code: "function pnpm_indexTsx8(e){const{lastSelection,selectionUpdatedSinceHide,pendingSelectionForFocus,updateLayoutFromSelection,keyboardWillAppear,keyboardHeight,position,maybeScroll,scrollFromCurrentPosition,onChangeTextHandler}=this.__closure;var _lastSelection$value,_lastSelection$value2;const lastTarget=(_lastSelection$value=lastSelection.value)===null||_lastSelection$value===void 0?void 0:_lastSelection$value.target;const latestSelection=(_lastSelection$value2=lastSelection.value)===null||_lastSelection$value2===void 0?void 0:_lastSelection$value2.selection;lastSelection.value=e;selectionUpdatedSinceHide.value=true;if(e.target!==lastTarget||pendingSelectionForFocus.value){if(pendingSelectionForFocus.value){pendingSelectionForFocus.value=false;updateLayoutFromSelection();if(!keyboardWillAppear.value&&keyboardHeight.value>0){position.value+=maybeScroll(keyboardHeight.value,true);}}return;}if(e.selection.end.position===e.selection.start.position&&(latestSelection===null||latestSelection===void 0?void 0:latestSelection.end.y)!==e.selection.end.y){return scrollFromCurrentPosition();}if(e.selection.start.position!==e.selection.end.position){return scrollFromCurrentPosition();}onChangeTextHandler();}" }; let closure_21 = { code: "function pnpm_indexTsx9(e){const{keyboardHeight,keyboardWillAppear,tag,initialKeyboardSize,scrollPosition,scrollBeforeKeyboardMovement,pendingSelectionForFocus,position,mode,syncKeyboardFrame,lastSelection,selectionUpdatedSinceHide,updateLayoutFromSelection,input,layout,maybeScroll,ghostViewSpace,scrollViewLayout,scrollViewContentSize}=this.__closure;const keyboardWillChangeSize=keyboardHeight.value!==e.height&&e.height>0;keyboardWillAppear.value=e.height>0&&keyboardHeight.value===0;const keyboardWillHide=e.height===0;const focusWasChanged=tag.value!==e.target&&e.target!==-1||keyboardWillChangeSize;if(keyboardWillChangeSize){initialKeyboardSize.value=keyboardHeight.value;}if(keyboardWillHide){initialKeyboardSize.value=0;scrollPosition.value=scrollBeforeKeyboardMovement.value;pendingSelectionForFocus.value=false;}if(keyboardWillAppear.value||keyboardWillChangeSize||focusWasChanged){scrollPosition.value=position.value;keyboardHeight.value=e.height;if(mode===\"insets\"){syncKeyboardFrame(e);}}if(focusWasChanged){var _lastSelection$value;tag.value=e.target;if(((_lastSelection$value=lastSelection.value)===null||_lastSelection$value===void 0?void 0:_lastSelection$value.target)===e.target&&selectionUpdatedSinceHide.value){updateLayoutFromSelection();pendingSelectionForFocus.value=false;}else{var _lastSelection$value2;if(((_lastSelection$value2=lastSelection.value)===null||_lastSelection$value2===void 0?void 0:_lastSelection$value2.target)===e.target){updateLayoutFromSelection();}else if(input.value){layout.value=input.value;}pendingSelectionForFocus.value=true;}scrollBeforeKeyboardMovement.value=position.value;}if(focusWasChanged&&!keyboardWillAppear.value){if(!pendingSelectionForFocus.value){position.value+=maybeScroll(e.height,true);}}if(mode===\"insets\"){ghostViewSpace.value=position.value+scrollViewLayout.value.height-scrollViewContentSize.value.height;if(ghostViewSpace.value>0){scrollPosition.value=position.value;}}}" }; let closure_22 = { code: "function pnpm_indexTsx10(e){const{removeGhostPadding,mode,syncKeyboardFrame,disableScrollOnKeyboardHide,keyboardWillAppear,maybeScroll}=this.__closure;if(removeGhostPadding(e.height)){return;}if(mode===\"layout\"){syncKeyboardFrame(e);}if(!disableScrollOnKeyboardHide||keyboardWillAppear.value){maybeScroll(e.height);}}" }; let closure_23 = { code: "function pnpm_indexTsx11(e){const{removeGhostPadding,keyboardHeight,scrollPosition,position,selectionUpdatedSinceHide,keyboardWillAppear,pendingSelectionForFocus,syncKeyboardFrame}=this.__closure;removeGhostPadding(e.height);keyboardHeight.value=e.height;scrollPosition.value=position.value;if(e.height===0){selectionUpdatedSinceHide.value=false;}else if(keyboardWillAppear.value){pendingSelectionForFocus.value=false;}syncKeyboardFrame(e);}" }; let closure_24 = { code: "function pnpm_indexTsx12(){const{scrollFromCurrentPosition}=this.__closure;scrollFromCurrentPosition();}" }; let closure_25 = { code: "function pnpm_indexTsx13(){const{input}=this.__closure;return input.value;}" }; let closure_26 = { code: "function pnpm_indexTsx14(current,previous){const{scrollFromCurrentPosition}=this.__closure;if((current===null||current===void 0?void 0:current.target)===(previous===null||previous===void 0?void 0:previous.target)&&(current===null||current===void 0?void 0:current.layout.height)!==(previous===null||previous===void 0?void 0:previous.layout.height)){scrollFromCurrentPosition();}}" }; let closure_27 = { code: "function pnpm_indexTsx15(){const{enabled,currentKeyboardFrameHeight}=this.__closure;return enabled?currentKeyboardFrameHeight.value:0;}" }; let closure_28 = { code: "function pnpm_indexTsx16(){const{enabled,mode,currentKeyboardFrameHeight}=this.__closure;return enabled&&mode===\"layout\"?{paddingBottom:currentKeyboardFrameHeight.value+1}:{};}" }; export default forwardRef((bottomOffset) => { let children; let onLayout; ({ children, onLayout } = bottomOffset); bottomOffset = bottomOffset.bottomOffset; let num = 0; if (undefined !== bottomOffset) { num = bottomOffset; } const disableScrollOnKeyboardHide = bottomOffset.disableScrollOnKeyboardHide; const dependencyMap = tmp; const enabled = bottomOffset.enabled; let tmp2 = undefined === enabled || enabled; let closure_3 = tmp2; const extraKeyboardSpace = bottomOffset.extraKeyboardSpace; let num2 = 0; if (undefined !== extraKeyboardSpace) { num2 = extraKeyboardSpace; } const mode = bottomOffset.mode; let str = "insets"; if (undefined !== mode) { str = mode; } let ScrollView = bottomOffset.ScrollViewComponent; if (undefined === ScrollView) { ScrollView = num(1582).ScrollView; } const snapToOffsets = bottomOffset.snapToOffsets; let tmp5 = str(bottomOffset, closure_3); let obj = onLayout(1582); const animatedRef = obj.useAnimatedRef(); const ref = sharedValue1.useRef(null); const tmp8 = num(1790)(animatedRef, ref); let obj1 = onLayout(1582); const sharedValue = obj1.useSharedValue(null); let obj2 = onLayout(1582); sharedValue1 = obj2.useSharedValue(0); let tmp11 = num(1793)(animatedRef); const offset = tmp11.offset; const layout = tmp11.layout; const size = tmp11.size; let obj3 = onLayout(1582); const sharedValue2 = obj3.useSharedValue(0); let obj4 = onLayout(1582); const sharedValue3 = obj4.useSharedValue(0); let obj5 = onLayout(1582); const sharedValue4 = obj5.useSharedValue(false); let obj6 = onLayout(1582); const sharedValue5 = obj6.useSharedValue(-1); let obj7 = onLayout(1582); const sharedValue6 = obj7.useSharedValue(0); let obj8 = onLayout(1582); const sharedValue7 = obj8.useSharedValue(0); let obj9 = onLayout(1776); const reanimatedFocusedInput = obj9.useReanimatedFocusedInput(); const input = reanimatedFocusedInput.input; const update = reanimatedFocusedInput.update; let obj10 = onLayout(1582); const sharedValue8 = obj10.useSharedValue(null); let obj11 = onLayout(1582); const sharedValue9 = obj11.useSharedValue(null); const sharedValue10 = onLayout(1582).useSharedValue(-1); const obj13 = onLayout(1582); const sharedValue11 = onLayout(1582).useSharedValue(false); const obj14 = onLayout(1582); const sharedValue12 = onLayout(1582).useSharedValue(false); const obj15 = onLayout(1582); const sharedValue13 = onLayout(1582).useSharedValue(0); const obj16 = onLayout(1582); let height = onLayout(1776).useWindowDimensions().height; let items = [onLayout]; const tmp25 = snapToOffsets((() => { let closure_0 = num2(async (arg0) => { const findNodeHandleResult = onLayout(1772).findNodeHandle(outer2_7.current); outer2_9.value = findNodeHandleResult; if (null != callback) { callback(arg0); } if (null !== findNodeHandleResult) { const KeyboardControllerNative = onLayout(1572).KeyboardControllerNative; outer2_27.value = yield KeyboardControllerNative.viewPositionInWindow(findNodeHandleResult).y; } }); return function(arg0) { return callback(...arguments); }; })(), items); /* worklet (recovered source) */ function pnpm_indexTsx1(){const{index,textWidth,spacing,anim}=this.__closure;return{position:'absolute',left:index*(textWidth.value+spacing),transform:[{translateX:-(anim.value%(textWidth.value+spacing))}]};} obj = { enabled: tmp2, layout: sharedValue8, scrollViewTarget: sharedValue, height, keyboardHeight: sharedValue3, bottomOffset: num, interpolate: onLayout(1582).interpolate, initialKeyboardSize: sharedValue6, scrollDistanceWithRespectToSnapPoints: onLayout(1794).scrollDistanceWithRespectToSnapPoints, scrollPosition: sharedValue1, snapToOffsets, scrollTo: onLayout(1582).scrollTo, scrollViewAnimatedRef: animatedRef, scrollViewPageY: sharedValue13 }; pnpm_indexTsx1.__closure = obj; pnpm_indexTsx1.__workletHash = 1454504363777; pnpm_indexTsx1.__initData = size; let items1 = [num, tmp2, height, snapToOffsets]; const tmp26 = snapToOffsets(pnpm_indexTsx1, items1); let closure_29 = tmp26; /* worklet (recovered source) */ function pnpm_indexTsx2(){const{anim,speed}=this.__closure;anim.value+=speed;} obj = { mode: str, keyboardWillAppear: sharedValue4, ghostViewSpace: sharedValue10, scrollTo: onLayout(1582).scrollTo, scrollViewAnimatedRef: animatedRef, scrollPosition: sharedValue1, interpolate: onLayout(1582).interpolate, initialKeyboardSize: sharedValue6, keyboardHeight: sharedValue3 }; pnpm_indexTsx2.__closure = obj; pnpm_indexTsx2.__workletHash = 17351526068375; pnpm_indexTsx2.__initData = sharedValue2; const items2 = [str]; const tmp27 = snapToOffsets(pnpm_indexTsx2, items2); let closure_30 = tmp27; /* worklet (recovered source) */ function pnpm_indexTsx3(){const{textWidth,parentWidth}=this.__closure;if(textWidth.value===0||parentWidth.value===0){return 0;}return Math.round(parentWidth.value/textWidth.value)+1;} pnpm_indexTsx3.__closure = { scrollPosition: sharedValue1, maybeScroll: tmp26, keyboardHeight: sharedValue3 }; pnpm_indexTsx3.__workletHash = 1481901193395; pnpm_indexTsx3.__initData = sharedValue3; const items3 = [sharedValue1, sharedValue3, tmp26]; const tmp28 = snapToOffsets(pnpm_indexTsx3, items3); let closure_31 = tmp28; /* worklet (recovered source) */ function pnpm_indexTsx4(v){const{runOnJS,setCloneTimes}=this.__closure;if(v===0){return;}runOnJS(setCloneTimes)(v*2);} obj1 = { interpolate: onLayout(1582).interpolate, keyboardHeight: sharedValue3, extraKeyboardSpace: num2, currentKeyboardFrameHeight: sharedValue2 }; pnpm_indexTsx4.__closure = obj1; pnpm_indexTsx4.__workletHash = 6643520179794; pnpm_indexTsx4.__initData = sharedValue4; const items4 = [num2]; const tmp29 = snapToOffsets(pnpm_indexTsx4, items4); let closure_32 = tmp29; /* worklet (recovered source) */ function pnpm_indexTsx5(){const{lastSelection,input,layout,clamp}=this.__closure;var _lastSelection$value,_input$value;const customHeight=(_lastSelection$value=lastSelection.value)===null||_lastSelection$value===void 0?void 0:_lastSelection$value.selection.end.y;if(!((_input$value=input.value)!==null&&_input$value!==void 0&&_input$value.layout)||!customHeight){return false;}layout.value={...input.value,layout:{...input.value.layout,height:clamp(customHeight,0,input.value.layout.height)}};return true;} obj2 = { lastSelection: sharedValue9, input, layout: sharedValue8, clamp: onLayout(1582).clamp }; pnpm_indexTsx5.__closure = obj2; pnpm_indexTsx5.__workletHash = 619310634941; pnpm_indexTsx5.__initData = sharedValue5; const items5 = [input, sharedValue9, sharedValue8]; const tmp30 = snapToOffsets(pnpm_indexTsx5, items5); let closure_33 = tmp30; /* worklet (recovered source) */ function pnpm_indexTsx6(){const{layout,updateLayoutFromSelection,performScrollWithPositionRestoration,position}=this.__closure;const prevLayout=layout.value;if(!updateLayoutFromSelection()){return;}performScrollWithPositionRestoration(position.value);layout.value=prevLayout;} pnpm_indexTsx6.__closure = { layout: sharedValue8, updateLayoutFromSelection: tmp30, performScrollWithPositionRestoration: tmp28, position: offset }; pnpm_indexTsx6.__workletHash = 11406147562112; pnpm_indexTsx6.__initData = sharedValue6; const items6 = [tmp28]; const tmp31 = snapToOffsets(pnpm_indexTsx6, items6); let closure_34 = tmp31; /* worklet (recovered source) */ function pnpm_indexTsx7(){const{scrollFromCurrentPosition}=this.__closure;scrollFromCurrentPosition();} pnpm_indexTsx7.__closure = { scrollFromCurrentPosition: tmp31 }; pnpm_indexTsx7.__workletHash = 1300972162638; pnpm_indexTsx7.__initData = sharedValue7; const items7 = [tmp31]; const tmp32 = snapToOffsets(pnpm_indexTsx7, items7); let closure_35 = tmp32; const items8 = [tmp32]; const tmp33 = sharedValue(() => onLayout(tmp[10]).debounce(closure_35, 200), items8); let closure_36 = tmp33; /* worklet (recovered source) */ function pnpm_indexTsx8(e){const{lastSelection,selectionUpdatedSinceHide,pendingSelectionForFocus,updateLayoutFromSelection,keyboardWillAppear,keyboardHeight,position,maybeScroll,scrollFromCurrentPosition,onChangeTextHandler}=this.__closure;var _lastSelection$value,_lastSelection$value2;const lastTarget=(_lastSelection$value=lastSelection.value)===null||_lastSelection$value===void 0?void 0:_lastSelection$value.target;const latestSelection=(_lastSelection$value2=lastSelection.value)===null||_lastSelection$value2===void 0?void 0:_lastSelection$value2.selection;lastSelection.value=e;selectionUpdatedSinceHide.value=true;if(e.target!==lastTarget||pendingSelectionForFocus.value){if(pendingSelectionForFocus.value){pendingSelectionForFocus.value=false;updateLayoutFromSelection();if(!keyboardWillAppear.value&&keyboardHeight.value>0){position.value+=maybeScroll(keyboardHeight.value,true);}}return;}if(e.selection.end.position===e.selection.start.position&&(latestSelection===null||latestSelection===void 0?void 0:latestSelection.end.y)!==e.selection.end.y){return scrollFromCurrentPosition();}if(e.selection.start.position!==e.selection.end.position){return scrollFromCurrentPosition();}onChangeTextHandler();} pnpm_indexTsx8.__closure = { lastSelection: sharedValue9, selectionUpdatedSinceHide: sharedValue12, pendingSelectionForFocus: sharedValue11, updateLayoutFromSelection: tmp30, keyboardWillAppear: sharedValue4, keyboardHeight: sharedValue3, position: offset, maybeScroll: tmp26, scrollFromCurrentPosition: tmp31, onChangeTextHandler: tmp33 }; pnpm_indexTsx8.__workletHash = 7363285427351; pnpm_indexTsx8.__initData = input; const items9 = [tmp31, tmp33, tmp30, tmp26]; const tmp34 = snapToOffsets(pnpm_indexTsx8, items9); const obj17 = onLayout(1776); const items10 = [tmp34]; onLayout(1776).useFocusedInputHandler({ onSelectionChange: tmp34 }, items10); const obj22 = onLayout(1776); /* worklet (recovered source) */ function pnpm_indexTsx9(e){const{keyboardHeight,keyboardWillAppear,tag,initialKeyboardSize,scrollPosition,scrollBeforeKeyboardMovement,pendingSelectionForFocus,position,mode,syncKeyboardFrame,lastSelection,selectionUpdatedSinceHide,updateLayoutFromSelection,input,layout,maybeScroll,ghostViewSpace,scrollViewLayout,scrollViewContentSize}=this.__closure;const keyboardWillChangeSize=keyboardHeight.value!==e.height&&e.height>0;keyboardWillAppear.value=e.height>0&&keyboardHeight.value===0;const keyboardWillHide=e.height===0;const focusWasChanged=tag.value!==e.target&&e.target!==-1||keyboardWillChangeSize;if(keyboardWillChangeSize){initialKeyboardSize.value=keyboardHeight.value;}if(keyboardWillHide){initialKeyboardSize.value=0;scrollPosition.value=scrollBeforeKeyboardMovement.value;pendingSelectionForFocus.value=false;}if(keyboardWillAppear.value||keyboardWillChangeSize||focusWasChanged){scrollPosition.value=position.value;keyboardHeight.value=e.height;if(mode==="insets"){syncKeyboardFrame(e);}}if(focusWasChanged){var _lastSelection$value;tag.value=e.target;if(((_lastSelection$value=lastSelection.value)===null||_lastSelection$value===void 0?void 0:_lastSelection$value.target)===e.target&&selectionUpdatedSinceHide.value){updateLayoutFromSelection();pendingSelectionForFocus.value=false;}else{var _lastSelection$value2;if(((_lastSelection$value2=lastSelection.value)===null||_lastSelection$value2===void 0?void 0:_lastSelection$value2.target)===e.target){updateLayoutFromSelection();}else if(input.value){layout.value=input.value;}pendingSelectionForFocus.value=true;}scrollBeforeKeyboardMovement.value=position.value;}if(focusWasChanged&&!keyboardWillAppear.value){if(!pendingSelectionForFocus.value){position.value+=maybeScroll(e.height,true);}}if(mode==="insets"){ghostViewSpace.value=position.value+scrollViewLayout.value.height-scrollViewContentSize.value.height;if(ghostViewSpace.value>0){scrollPosition.value=position.value;}}} obj3 = { keyboardHeight: sharedValue3, keyboardWillAppear: sharedValue4, tag: sharedValue5, initialKeyboardSize: sharedValue6, scrollPosition: sharedValue1, scrollBeforeKeyboardMovement: sharedValue7, pendingSelectionForFocus: sharedValue11, position: offset, mode: str, syncKeyboardFrame: tmp29, lastSelection: sharedValue9, selectionUpdatedSinceHide: sharedValue12, updateLayoutFromSelection: tmp30, input, layout: sharedValue8, maybeScroll: tmp26, ghostViewSpace: sharedValue10, scrollViewLayout: layout, scrollViewContentSize: size }; pnpm_indexTsx9.__closure = obj3; pnpm_indexTsx9.__workletHash = 4279285643383; pnpm_indexTsx9.__initData = update; /* worklet (recovered source) */ function pnpm_indexTsx10(e){const{removeGhostPadding,mode,syncKeyboardFrame,disableScrollOnKeyboardHide,keyboardWillAppear,maybeScroll}=this.__closure;if(removeGhostPadding(e.height)){return;}if(mode==="layout"){syncKeyboardFrame(e);}if(!disableScrollOnKeyboardHide||keyboardWillAppear.value){maybeScroll(e.height);}} obj4 = { removeGhostPadding: tmp27, mode: str, syncKeyboardFrame: tmp29, disableScrollOnKeyboardHide: undefined !== disableScrollOnKeyboardHide && disableScrollOnKeyboardHide, keyboardWillAppear: sharedValue4, maybeScroll: tmp26 }; pnpm_indexTsx10.__closure = obj4; pnpm_indexTsx10.__workletHash = 15263617220981; pnpm_indexTsx10.__initData = sharedValue8; /* worklet (recovered source) */ function pnpm_indexTsx11(e){const{removeGhostPadding,keyboardHeight,scrollPosition,position,selectionUpdatedSinceHide,keyboardWillAppear,pendingSelectionForFocus,syncKeyboardFrame}=this.__closure;removeGhostPadding(e.height);keyboardHeight.value=e.height;scrollPosition.value=position.value;if(e.height===0){selectionUpdatedSinceHide.value=false;}else if(keyboardWillAppear.value){pendingSelectionForFocus.value=false;}syncKeyboardFrame(e);} pnpm_indexTsx11.__closure = { removeGhostPadding: tmp27, keyboardHeight: sharedValue3, scrollPosition: sharedValue1, position: offset, selectionUpdatedSinceHide: sharedValue12, keyboardWillAppear: sharedValue4, pendingSelectionForFocus: sharedValue11, syncKeyboardFrame: tmp29 }; pnpm_indexTsx11.__workletHash = 15672596601321; pnpm_indexTsx11.__initData = sharedValue9; const items11 = [str, tmp26, tmp27, undefined !== disableScrollOnKeyboardHide && disableScrollOnKeyboardHide, tmp29]; onLayout(1795).useSmoothKeyboardHandler({ onStart: pnpm_indexTsx9, onMove: pnpm_indexTsx10, onEnd: pnpm_indexTsx11 }, items11); const items12 = [update, tmp31]; const tmp37 = snapToOffsets(num2(async () => { yield outer1_21(); let obj = onLayout(table[4]); /* worklet (recovered source) */ function pnpm_indexTsx12(){const{scrollFromCurrentPosition}=this.__closure;scrollFromCurrentPosition();} obj = { scrollFromCurrentPosition: outer1_34 }; pnpm_indexTsx12.__closure = obj; pnpm_indexTsx12.__workletHash = 15498084251450; pnpm_indexTsx12.__initData = sharedValue10; obj.runOnUI(pnpm_indexTsx12)(); }), items12); let closure_37 = tmp37; const items13 = [tmp37]; ref(arg1, () => { const current = ref.current; if (current) { current.assureFocusedInputVisible = () => { outer1_37(); }; return current; } else { const obj = { assureFocusedInputVisible() { outer1_37(); } }; return obj; } }, items13); const items14 = [num]; animatedRef(() => { tmp37(); }, items14); const obj23 = onLayout(1795); /* worklet (recovered source) */ function pnpm_indexTsx13(){const{input}=this.__closure;return input.value;} pnpm_indexTsx13.__closure = { input }; pnpm_indexTsx13.__workletHash = 11096167186933; pnpm_indexTsx13.__initData = sharedValue11; /* worklet (recovered source) */ function pnpm_indexTsx14(current,previous){const{scrollFromCurrentPosition}=this.__closure;if((current===null||current===void 0?void 0:current.target)===(previous===null||previous===void 0?void 0:previous.target)&&(current===null||current===void 0?void 0:current.layout.height)!==(previous===null||previous===void 0?void 0:previous.layout.height)){scrollFromCurrentPosition();}} pnpm_indexTsx14.__closure = { scrollFromCurrentPosition: tmp31 }; pnpm_indexTsx14.__workletHash = 5468543936636; pnpm_indexTsx14.__initData = sharedValue12; const animatedReaction = onLayout(1582).useAnimatedReaction(pnpm_indexTsx13, pnpm_indexTsx14, []); const obj26 = onLayout(1582); /* worklet (recovered source) */ function pnpm_indexTsx15(){const{enabled,currentKeyboardFrameHeight}=this.__closure;return enabled?currentKeyboardFrameHeight.value:0;} obj5 = { enabled: tmp2, currentKeyboardFrameHeight: sharedValue2 }; pnpm_indexTsx15.__closure = obj5; pnpm_indexTsx15.__workletHash = 7351587309738; pnpm_indexTsx15.__initData = sharedValue13; const items15 = [tmp2]; const derivedValue = onLayout(1582).useDerivedValue(pnpm_indexTsx15, items15); onLayout(1582); /* worklet (recovered source) */ function pnpm_indexTsx16(){const{enabled,mode,currentKeyboardFrameHeight}=this.__closure;return enabled&&mode==="layout"?{paddingBottom:currentKeyboardFrameHeight.value+1}:{};} obj6 = { enabled: tmp2, mode: str, currentKeyboardFrameHeight: sharedValue2 }; pnpm_indexTsx16.__closure = obj6; pnpm_indexTsx16.__workletHash = 9098994865676; pnpm_indexTsx16.__initData = height; const items16 = [tmp2, str]; if ("layout" === str) { obj7 = { ref: tmp8 }; obj8 = { scrollEventThrottle: 16, onLayout: tmp25 }; const items17 = [children, ]; if (tmp2) { obj9 = { style: tmp43 }; tmp2 = offset(num(1582).View, obj9); } items17[1] = tmp2; obj8.children = items17; let tmp50Result = layout(ScrollView, Object.assign(obj7, tmp5, obj8)); const tmp50 = layout; } else { let _Object = Object; obj10 = { ref: tmp8 }; obj11 = { bottomPadding: derivedValue, scrollEventThrottle: 16, ScrollViewComponent: ScrollView, onLayout: tmp25, children }; tmp50Result = offset(num(1796), Object.assign(obj10, tmp5, obj11)); const tmp47 = num(1796); } return tmp50Result; });