// Module ID: 6731 // Function ID: 6732 // Dependencies: [32, 19, 17, 21, 1636, 6732, 6733, 6756, 6729, 6745, 38, 6739, 6909, 6911, 6914, 6916, 6920, 6923, 6927] // Module 6731 import _modDef38 from "module_38" /* 38 */; import cancelAnimation2 from "cancelAnimation" /* 1636 */; import value22 from "value2" /* 6729 */; import DEFAULT_HANDLE_HEIGHT from "DEFAULT_HANDLE_HEIGHT" /* 6732 */; import normalizeSnapPoint from "normalizeSnapPoint" /* 6745 */; import _slicedToArray from "module_32" /* 32 */; import noop_mod from "module_19" /* 19 */; const cancelAnimation = cancelAnimation2; require = fn; let noop = fn(19); ({ useMemo: closure_4, useCallback: hasOwnProperty, useImperativeHandle: metroRequire, useEffect: closure_7, forwardRef, memo } = noop); let noop = noop_mod; get_ActivityIndicator = fn(17); ({ Platform: closure_8, StyleSheet: closure_9 } = get_ActivityIndicator); const jsxProd = fn(21); ({ jsx: c10, jsxs: closure_11 } = jsxProd); const result = cancelAnimation.addWhitelistedUIProps({ decelerationRate: true }); let closure_12 = { code: "function pnpm_BottomSheetTsx1(){const{topInset,bottomInset,$modal,_animatedContainerHeight}=this.__closure;const verticalInset=topInset+bottomInset;return $modal?_animatedContainerHeight.value-verticalInset:_animatedContainerHeight.value;}" }; let closure_13 = { code: "function pnpm_BottomSheetTsx2(){const{animatedSnapPoints}=this.__closure;return animatedSnapPoints.value[animatedSnapPoints.value.length-1];}" }; let closure_14 = { code: "function pnpm_BottomSheetTsx3(){const{animatedContainerHeight,$modal,detached,bottomInset}=this.__closure;let closedPosition=animatedContainerHeight.value;if($modal||detached){closedPosition=animatedContainerHeight.value+bottomInset;}return closedPosition;}" }; let closure_15 = { code: "function pnpm_BottomSheetTsx4(){const{animatedContainerHeight,animatedHighestSnapPoint}=this.__closure;return animatedContainerHeight.value-animatedHighestSnapPoint.value;}" }; let closure_16 = { code: "function pnpm_BottomSheetTsx5(){const{_providedContainerHeight,animatedContainerHeight,INITIAL_CONTAINER_HEIGHT,handleComponent,animatedHandleHeight,INITIAL_HANDLE_HEIGHT,animatedSnapPoints,INITIAL_SNAP_POINT}=this.__closure;let isContainerHeightCalculated=false;if(_providedContainerHeight!==null||_providedContainerHeight!==undefined){isContainerHeightCalculated=true;}if(animatedContainerHeight.value!==INITIAL_CONTAINER_HEIGHT){isContainerHeightCalculated=true;}let isHandleHeightCalculated=false;if(handleComponent===null){animatedHandleHeight.value=0;isHandleHeightCalculated=true;}if(animatedHandleHeight.value!==INITIAL_HANDLE_HEIGHT){isHandleHeightCalculated=true;}let isSnapPointsNormalized=false;if(animatedSnapPoints.value[0]!==INITIAL_SNAP_POINT){isSnapPointsNormalized=true;}return isContainerHeightCalculated&&isHandleHeightCalculated&&isSnapPointsNormalized;}" }; let closure_17 = { code: "function pnpm_BottomSheetTsx6(){const{animatedPosition,animatedClosedPosition,SHEET_STATE,animatedContainerHeight,animatedSheetHeight,animatedKeyboardHeightInContainer,keyboardBehavior,KEYBOARD_BEHAVIOR,isInTemporaryPosition}=this.__closure;if(animatedPosition.value>=animatedClosedPosition.value){return SHEET_STATE.CLOSED;}const extendedPosition=animatedContainerHeight.value-animatedSheetHeight.value;if(animatedPosition.value===extendedPosition){return SHEET_STATE.EXTENDED;}const keyboardHeightInContainer=animatedKeyboardHeightInContainer.value;const extendedPositionWithKeyboard=Math.max(0,animatedContainerHeight.value-(animatedSheetHeight.value+keyboardHeightInContainer));if(keyboardBehavior===KEYBOARD_BEHAVIOR.interactive&&isInTemporaryPosition.value&&animatedPosition.value===extendedPositionWithKeyboard){return SHEET_STATE.EXTENDED;}if(animatedPosition.value===0){return SHEET_STATE.FILL_PARENT;}if(animatedPosition.value { if (overrideReduceMotion) { if (tmp !== cancelAnimation2.ReduceMotion.System) { let tmp4 = tmp === cancelAnimation2.ReduceMotion.Always; } return tmp4; } tmp4 = reducedMotion; }, items5); closure_66 = tmp64; tmp33Result25 = tmp33(tmp34[4]); sharedValue13 = tmp33Result25.useSharedValue(tmp33(tmp34[8]).ANIMATION_STATE.UNDETERMINED); closure_67 = sharedValue13; tmp33Result26 = tmp33(tmp34[4]); sharedValue14 = tmp33Result26.useSharedValue(tmp33(tmp34[8]).ANIMATION_SOURCE.MOUNT); closure_68 = sharedValue14; tmp33Result27 = tmp33(tmp34[4]); class Z { constructor() { iter = closure_42; if (closure_42.value >= closure_39.value) { tmp12 = closure_0; tmp13 = closure_2; return closure_0(closure_2[8]).SHEET_STATE.CLOSED; } else { diff = closure_31.value - closure_40.value; if (iter.value === diff) { tmp10 = closure_0; tmp11 = closure_2; return closure_0(closure_2[8]).SHEET_STATE.EXTENDED; } else { tmp15 = closure_64; tmp16 = globalThis; _Math = Math; num = 0; tmp18 = DEFAULT_KEYBOARD_BEHAVIOR; tmp19 = closure_0; tmp20 = closure_2; bound = Math.max(0, iter2.value - (iter3.value + closure_64.value)); if (DEFAULT_KEYBOARD_BEHAVIOR === closure_0(closure_2[8]).KEYBOARD_BEHAVIOR.interactive) { tmp = closure_48; if (closure_48.value) { if (iter.value === bound) { tmp8 = closure_0; tmp9 = closure_2; OPENED = closure_0(closure_2[8]).SHEET_STATE.EXTENDED; } return OPENED; } } if (0 === iter.value) { tmp6 = closure_0; tmp7 = closure_2; OPENED = closure_0(closure_2[8]).SHEET_STATE.FILL_PARENT; } else if (iter.value < diff) { tmp4 = closure_0; tmp5 = closure_2; OPENED = closure_0(closure_2[8]).SHEET_STATE.OVER_EXTENDED; } else { tmp2 = closure_0; tmp3 = closure_2; OPENED = closure_0(closure_2[8]).SHEET_STATE.OPENED; } } } return; } } obj73 = { animatedPosition: sharedValue2, animatedClosedPosition: derivedValue2, SHEET_STATE: tmp33(tmp34[8]).SHEET_STATE, animatedContainerHeight: derivedValue, animatedSheetHeight: derivedValue3, animatedKeyboardHeightInContainer: sharedValue12, keyboardBehavior, KEYBOARD_BEHAVIOR: tmp33(tmp34[8]).KEYBOARD_BEHAVIOR, isInTemporaryPosition: sharedValue7 }; Z.__closure = obj73; Z.__workletHash = 5310633624984; Z.__initData = animatedIndex; items6 = [, , , , , , ]; items6[0] = derivedValue2; items6[1] = derivedValue; items6[2] = sharedValue12; items6[3] = sharedValue2; items6[4] = derivedValue3; items6[5] = sharedValue7; items6[6] = keyboardBehavior; derivedValue5 = tmp33Result27.useDerivedValue(Z, items6); closure_69 = derivedValue5; tmp33Result28 = tmp33(tmp34[4]); fn3 = function q() { if (DEFAULT_ENABLE_CONTENT_PANNING_GESTURE) { if (animatedScrollableOverrideState.value !== value22.SCROLLABLE_STATE.UNDETERMINED) { let UNLOCKED = iter.value; } else { if (derivedValue5.value !== value22.SHEET_STATE.FILL_PARENT) { if (iter2.value !== value22.SHEET_STATE.EXTENDED) { UNLOCKED = value22.SCROLLABLE_STATE.LOCKED; } } UNLOCKED = value22.SCROLLABLE_STATE.UNLOCKED; iter2 = derivedValue5; } iter = animatedScrollableOverrideState; } else { return value22.SCROLLABLE_STATE.UNLOCKED; } }; obj74 = { enableContentPanningGesture: DEFAULT_ENABLE_CONTENT_PANNING_GESTURE, SCROLLABLE_STATE: tmp33(tmp34[8]).SCROLLABLE_STATE, animatedScrollableOverrideState, animatedSheetState: derivedValue5, SHEET_STATE: tmp33(tmp34[8]).SHEET_STATE, animatedKeyboardState: state, KEYBOARD_STATE: tmp33(tmp34[8]).KEYBOARD_STATE, animatedAnimationState: sharedValue13, ANIMATION_STATE: tmp33(tmp34[8]).ANIMATION_STATE }; fn3.__closure = obj74; fn3.__workletHash = 1522258685135; fn3.__initData = simultaneousHandlers; items7 = [, , , , ]; items7[0] = DEFAULT_ENABLE_CONTENT_PANNING_GESTURE; items7[1] = sharedValue13; items7[2] = state; items7[3] = animatedScrollableOverrideState; items7[4] = derivedValue5; derivedValue6 = tmp33Result28.useDerivedValue(fn3, items7); closure_70 = derivedValue6; tmp33Result29 = tmp33(tmp34[4]); class Q { constructor() { value1 = closure_36.value; substr = value1.slice(); reversed = substr.reverse(); value3 = closure_36.value; substr1 = value3.slice(); mapped = substr1.map((item, index) => index); reversed1 = mapped.reverse(); arr1 = reversed.push(closure_31.value); arr6 = reversed1.push(-1); num = -1; if (closure_47.value) { tmp3 = closure_0; tmp4 = closure_2; obj3 = closure_0(closure_2[4]); tmp5 = closure_42; value = closure_42.value; tmp6 = closure_0; tmp7 = closure_2; tmp8 = obj3; tmp9 = value; tmp10 = reversed; tmp11 = reversed1; num = obj3.interpolate(value, reversed, reversed1, closure_0(closure_2[4]).Extrapolation.CLAMP); } if (closure_11 === closure_0(closure_2[8]).KEYBOARD_INPUT_MODE.adjustResize) { tmp12 = closure_68; tmp13 = closure_0; tmp14 = closure_2; if (closure_68.value === closure_0(closure_2[8]).ANIMATION_SOURCE.KEYBOARD) { tmp15 = closure_67; tmp16 = closure_0; tmp17 = closure_2; if (closure_67.value === closure_0(closure_2[8]).ANIMATION_STATE.RUNNING) { tmp18 = closure_48; if (closure_48.value) { tmp23 = globalThis; _Math = Math; tmp24 = closure_41; bound = Math.max(closure_41.value, num); } return bound; } } } bound = num; if (closure_68.value === closure_0(closure_2[8]).ANIMATION_SOURCE.SNAP_POINT_CHANGE) { tmp19 = closure_67; tmp20 = closure_0; tmp21 = closure_2; bound = num; if (closure_67.value === closure_0(closure_2[8]).ANIMATION_STATE.RUNNING) { tmp22 = closure_44; bound = closure_44.value; } } return; } } obj75 = { animatedSnapPoints: first, animatedContainerHeight: derivedValue, isLayoutCalculated: derivedValue4, interpolate: tmp33(tmp34[4]).interpolate, animatedPosition: sharedValue2, Extrapolation: tmp33(tmp34[4]).Extrapolation, android_keyboardInputMode: DEFAULT_KEYBOARD_INPUT_MODE, KEYBOARD_INPUT_MODE: tmp33(tmp34[8]).KEYBOARD_INPUT_MODE, animatedAnimationSource: sharedValue14, ANIMATION_SOURCE: tmp33(tmp34[8]).ANIMATION_SOURCE, animatedAnimationState: sharedValue13, ANIMATION_STATE: tmp33(tmp34[8]).ANIMATION_STATE, isInTemporaryPosition: sharedValue7, animatedCurrentIndex: reactiveSharedValue3, animatedNextPositionIndex: sharedValue4 }; Q.__closure = obj75; Q.__workletHash = 1383862303157; Q.__initData = waitFor; items8 = [, , , , , , , , , ]; items8[0] = DEFAULT_KEYBOARD_INPUT_MODE; items8[1] = sharedValue14; items8[2] = sharedValue13; items8[3] = derivedValue; items8[4] = reactiveSharedValue3; items8[5] = sharedValue4; items8[6] = sharedValue2; items8[7] = first; items8[8] = sharedValue7; items8[9] = derivedValue4; derivedValue7 = tmp33Result29.useDerivedValue(Q, items8); closure_71 = derivedValue7; items9 = [, , ]; items9[0] = onChange; items9[1] = reactiveSharedValue3; items9[2] = tmp43; tmp70 = closure_5(function handleOnChange(arg0, arg1) { if (onChange) { if (arg0 === value.value) { let PROVIDED = value22.SNAP_POINT_TYPE.DYNAMIC; } else { PROVIDED = value22.SNAP_POINT_TYPE.PROVIDED; } tmp(arg0, arg1, PROVIDED); } }, items9); closure_72 = tmp70; items10 = [, , ]; items10[0] = onAnimate; items10[1] = reactiveSharedValue3; items10[2] = sharedValue2; tmp71 = closure_5(function handleOnAnimate(arg0, arg1, arg2) { if (onAnimate) { let tmp3 = arg0 === reactiveSharedValue3.value; if (tmp3) { tmp3 = -1 !== arg0; } if (!tmp3) { tmp(iter.value, arg0, sharedValue2.value, arg1, arg2); } iter = reactiveSharedValue3; } }, items10); closure_73 = tmp71; tmp33Result30 = tmp33(tmp34[4]); ee = function ee() { cancelAnimation2.cancelAnimation(sharedValue2); sharedValue14.value = value22.ANIMATION_SOURCE.NONE; sharedValue13.value = value22.ANIMATION_STATE.STOPPED; }; obj76 = { cancelAnimation: tmp33(tmp34[4]).cancelAnimation, animatedPosition: sharedValue2, animatedAnimationSource: sharedValue14, ANIMATION_SOURCE: tmp33(tmp34[8]).ANIMATION_SOURCE, animatedAnimationState: sharedValue13, ANIMATION_STATE: tmp33(tmp34[8]).ANIMATION_STATE }; ee.__closure = obj76; ee.__workletHash = 17031011772977; ee.__initData = activeOffsetX; items11 = [, , ]; items11[0] = sharedValue2; items11[1] = sharedValue13; items11[2] = sharedValue14; workletCallback = tmp33Result30.useWorkletCallback(ee, items11); closure_74 = workletCallback; tmp33Result31 = tmp33(tmp34[4]); animateToPositionCompleted = function animateToPositionCompleted(arg0) { if (arg0) { if (sharedValue14.value === value22.ANIMATION_SOURCE.MOUNT) { sharedValue5.value = true; } sharedValue8.value = false; sharedValue14.value = value22.ANIMATION_SOURCE.NONE; sharedValue13.value = value22.ANIMATION_STATE.STOPPED; sharedValue3.value = DEFAULT_HANDLE_HEIGHT.INITIAL_VALUE; sharedValue4.value = DEFAULT_HANDLE_HEIGHT.INITIAL_VALUE; sharedValue9.value = false; } }; obj77 = { __DEV__: false, runOnJS: tmp33(tmp34[4]).runOnJS, print: tmp33(tmp34[9]).print, animatedCurrentIndex: reactiveSharedValue3, animatedNextPosition: sharedValue3, animatedNextPositionIndex: sharedValue4, animatedAnimationSource: sharedValue14, ANIMATION_SOURCE: tmp33(tmp34[8]).ANIMATION_SOURCE, isAnimatedOnMount: sharedValue5, isForcedClosing: sharedValue8, animatedAnimationState: sharedValue13, ANIMATION_STATE: tmp33(tmp34[8]).ANIMATION_STATE, INITIAL_VALUE: tmp33(tmp34[5]).INITIAL_VALUE, animatedContainerHeightDidChange: sharedValue9 }; animateToPositionCompleted.__closure = obj77; animateToPositionCompleted.__workletHash = 16634512058026; animateToPositionCompleted.__initData = activeOffsetY; workletCallback1 = tmp33Result31.useWorkletCallback(animateToPositionCompleted); closure_75 = workletCallback1; tmp33Result32 = tmp33(tmp34[4]); animateToPosition = function animateToPosition(initialPosition, GESTURE, arg2) { num = arg2; if (arg2 === undefined) { num = 0; } if (initialPosition !== sharedValue2.value) { if (undefined !== initialPosition) { if (sharedValue13.value !== value22.ANIMATION_STATE.RUNNING) { if (iter2.value === tmp18(6729).ANIMATION_STATE.RUNNING) { workletCallback(); } iter2.value = tmp18(6729).ANIMATION_STATE.RUNNING; sharedValue14.value = GESTURE; sharedValue3.value = initialPosition; let tmp8 = state.value === tmp18(6729).KEYBOARD_STATE.SHOWN; if (tmp8) { tmp8 = keyboardBehavior !== tmp18(6729).KEYBOARD_BEHAVIOR.extend; } if (tmp8) { tmp8 = initialPosition < iter.value; } num2 = 0; if (tmp8) { num2 = sharedValue12.value; } let tmp11 = arg3; value = first.value; sharedValue4.value = value.indexOf(initialPosition + num2); tmp18(1636).runOnJS(closure_73)(sharedValue4.value, initialPosition, GESTURE); const tmp18Result = tmp18(1636); const obj = { point: initialPosition, configs: null, velocity: null, overrideReduceMotion: null, onComplete: null }; if (!arg3) { tmp11 = animationConfigs; } obj.configs = tmp11; obj.velocity = num; obj.overrideReduceMotion = overrideReduceMotion; obj.onComplete = workletCallback1; iter.value = tmp18(6745).animate(obj); const tmp18Result2 = tmp18(6745); } } } }; obj78 = { __DEV__: false, runOnJS: tmp33(tmp34[4]).runOnJS, print: tmp33(tmp34[9]).print, animatedPosition: sharedValue2, animatedAnimationState: sharedValue13, ANIMATION_STATE: tmp33(tmp34[8]).ANIMATION_STATE, animatedNextPosition: sharedValue3, stopAnimation: workletCallback, animatedAnimationSource: sharedValue14, animatedKeyboardState: state, KEYBOARD_STATE: tmp33(tmp34[8]).KEYBOARD_STATE, keyboardBehavior, KEYBOARD_BEHAVIOR: tmp33(tmp34[8]).KEYBOARD_BEHAVIOR, animatedKeyboardHeightInContainer: sharedValue12, animatedNextPositionIndex: sharedValue4, animatedSnapPoints: first, handleOnAnimate: tmp71, animate: tmp33(tmp34[9]).animate, _providedAnimationConfigs: animationConfigs, _providedOverrideReduceMotion: overrideReduceMotion, animateToPositionCompleted: workletCallback1 }; animateToPosition.__closure = obj78; animateToPosition.__workletHash = 11829586443894; animateToPosition.__initData = failOffsetX; items12 = [, , , ]; items12[0] = tmp71; items12[1] = keyboardBehavior; items12[2] = animationConfigs; items12[3] = overrideReduceMotion; workletCallback2 = tmp33Result32.useWorkletCallback(animateToPosition, items12); closure_76 = workletCallback2; tmp33Result33 = tmp33(tmp34[4]); setToPosition = function setToPosition(value) { let tmp2 = value === sharedValue2.value; if (!tmp2) { tmp2 = undefined === value; } if (!tmp2) { let tmp6 = sharedValue13.value === value22.ANIMATION_STATE.RUNNING; if (tmp6) { tmp6 = value === sharedValue3.value; } tmp2 = tmp6; } if (!tmp2) { sharedValue3.value = value; value = first.value; sharedValue4.value = value.indexOf(value); workletCallback(); sharedValue2.value = value; sharedValue9.value = false; } }; obj79 = { animatedPosition: sharedValue2, animatedAnimationState: sharedValue13, ANIMATION_STATE: tmp33(tmp34[8]).ANIMATION_STATE, animatedNextPosition: sharedValue3, __DEV__: false, runOnJS: tmp33(tmp34[4]).runOnJS, print: tmp33(tmp34[9]).print, BottomSheet: closure_40, animatedNextPositionIndex: sharedValue4, animatedSnapPoints: first, stopAnimation: workletCallback, animatedContainerHeightDidChange: sharedValue9 }; setToPosition.__closure = obj79; setToPosition.__workletHash = 1470510512522; setToPosition.__initData = failOffsetY; workletCallback3 = tmp33Result33.useWorkletCallback(setToPosition, []); closure_77 = workletCallback3; tmp33Result34 = tmp33(tmp34[4]); getEvaluatedPosition = function getEvaluatedPosition(arg0) { value = reactiveSharedValue3.value; value2 = first.value; value3 = state.value; value4 = derivedValue1.value; if (arg0 === value22.ANIMATION_SOURCE.KEYBOARD) { if (DEFAULT_KEYBOARD_BLUR_BEHAVIOR === tmp(6729).KEYBOARD_BLUR_BEHAVIOR.restore) { if (value3 === tmp(6729).KEYBOARD_STATE.HIDDEN) { if (sharedValue10.value !== tmp(6756).State.ACTIVE) { if (sharedValue11.value !== tmp(6756).State.ACTIVE) { sharedValue7.value = false; return value2[value]; } } } } } if (keyboardBehavior === value22.KEYBOARD_BEHAVIOR.extend) { if (value3 === tmp(6729).KEYBOARD_STATE.SHOWN) { return value4; } } if (keyboardBehavior === value22.KEYBOARD_BEHAVIOR.fillParent) { if (value3 === tmp(6729).KEYBOARD_STATE.SHOWN) { sharedValue7.value = true; return 0; } } if (keyboardBehavior === value22.KEYBOARD_BEHAVIOR.interactive) { if (value3 === tmp(6729).KEYBOARD_STATE.SHOWN) { if ("adjustResize" !== DEFAULT_KEYBOARD_INPUT_MODE) { sharedValue7.value = true; const _Math = Math; return Math.max(0, value4 - sharedValue12.value); } } } if (sharedValue7.value) { let value5 = sharedValue2.value; } else if (sharedValue5.value) { value5 = value2[value]; } else if (-1 === -1) { value5 = derivedValue2.value; } else { value5 = value2[tmp8]; } return value5; }; obj80 = { animatedCurrentIndex: reactiveSharedValue3, animatedSnapPoints: first, animatedKeyboardState: state, animatedHighestSnapPoint: derivedValue1, ANIMATION_SOURCE: tmp33(tmp34[8]).ANIMATION_SOURCE, keyboardBlurBehavior: DEFAULT_KEYBOARD_BLUR_BEHAVIOR, KEYBOARD_BLUR_BEHAVIOR: tmp33(tmp34[8]).KEYBOARD_BLUR_BEHAVIOR, KEYBOARD_STATE: tmp33(tmp34[8]).KEYBOARD_STATE, animatedContentGestureState: sharedValue10, State: tmp33(tmp34[7]).State, animatedHandleGestureState: sharedValue11, isInTemporaryPosition: sharedValue7, keyboardBehavior, KEYBOARD_BEHAVIOR: tmp33(tmp34[8]).KEYBOARD_BEHAVIOR, Platform: overrideReduceMotion, android_keyboardInputMode: DEFAULT_KEYBOARD_INPUT_MODE, animatedKeyboardHeightInContainer: sharedValue12, animatedPosition: sharedValue2, isAnimatedOnMount: sharedValue5, _providedIndex: num, animatedClosedPosition: derivedValue2 }; getEvaluatedPosition.__closure = obj80; getEvaluatedPosition.__workletHash = 10275779842691; getEvaluatedPosition.__initData = onChange; items13 = [, , , , , , , , , , , , ]; items13[0] = sharedValue10; items13[1] = reactiveSharedValue3; items13[2] = sharedValue11; items13[3] = derivedValue1; items13[4] = sharedValue12; items13[5] = state; items13[6] = sharedValue2; items13[7] = first; items13[8] = sharedValue7; items13[9] = sharedValue5; items13[10] = keyboardBehavior; items13[11] = DEFAULT_KEYBOARD_BLUR_BEHAVIOR; items13[12] = num; workletCallback4 = tmp33Result34.useWorkletCallback(getEvaluatedPosition, items13); closure_78 = workletCallback4; tmp33Result35 = tmp33(tmp34[4]); evaluatePosition = function evaluatePosition(arg0, arg1) { if (!sharedValue8.value) { if (derivedValue4.value) { const tmp6 = workletCallback4(arg0); if (sharedValue5.value) { if (sharedValue9.value) { workletCallback3(tmp6); } else { if (sharedValue13.value === value22.ANIMATION_STATE.RUNNING) { if (-1 === sharedValue4.value) { if (!sharedValue7.value) { workletCallback3(derivedValue2.value); } } if (sharedValue4.value !== reactiveSharedValue3.value) { workletCallback2(first.value[iter2.value], arg0, undefined, arg1); } } if (iter.value !== value22.ANIMATION_STATE.RUNNING) { if (-1 === derivedValue7.value) { workletCallback3(derivedValue2.value); } } workletCallback2(tmp6, arg0, undefined, arg1); iter = sharedValue13; } } else if (DEFAULT_ANIMATE_ON_MOUNT) { workletCallback2(tmp6, value22.ANIMATION_SOURCE.MOUNT, undefined, arg1); } else { workletCallback3(tmp6); tmp7.value = true; } } } }; obj81 = { isForcedClosing: sharedValue8, ANIMATION_SOURCE: tmp33(tmp34[8]).ANIMATION_SOURCE, isLayoutCalculated: derivedValue4, getEvaluatedPosition: workletCallback4, isAnimatedOnMount: sharedValue5, animateOnMount: DEFAULT_ANIMATE_ON_MOUNT, animateToPosition: workletCallback2, setToPosition: workletCallback3, animatedContainerHeightDidChange: sharedValue9, animatedAnimationState: sharedValue13, ANIMATION_STATE: tmp33(tmp34[8]).ANIMATION_STATE, animatedNextPositionIndex: sharedValue4, isInTemporaryPosition: sharedValue7, animatedClosedPosition: derivedValue2, animatedCurrentIndex: reactiveSharedValue3, animatedSnapPoints: first, animatedIndex: derivedValue7, reduceMotion: tmp64, animatedPosition: sharedValue2 }; evaluatePosition.__closure = obj81; evaluatePosition.__workletHash = 1750740918731; evaluatePosition.__initData = onClose; items14 = [, , , ]; items14[0] = workletCallback4; items14[1] = workletCallback2; items14[2] = workletCallback3; items14[3] = tmp64; workletCallback5 = tmp33Result35.useWorkletCallback(evaluatePosition, items14); closure_79 = workletCallback5; tmp33Result36 = tmp33(tmp34[6]); stableCallback = tmp33Result36.useStableCallback(function handleSnapToIndex(arg0, arg1) { value2 = first.get(); if (derivedValue4.get()) { let tmp5 = arg0 >= -1; if (tmp5) { tmp5 = arg0 <= value2.length - 1; } _modDef38(tmp5, `'index' was provided but out of the provided snap points range! expected value to be between -1, ${arr.length - 1}`); value = derivedValue4.value; if (value) { value = arg0 !== sharedValue4.value; } if (value) { value = tmp7 !== sharedValue3.value; } if (value) { value = !sharedValue8.value; } if (value) { sharedValue7.value = false; cancelAnimation2.runOnUI(workletCallback2)(tmp7, value22.ANIMATION_SOURCE.USER, 0, arg1); const runOnUIResult = cancelAnimation2.runOnUI(workletCallback2); } } }); closure_80 = stableCallback; tmp33Result37 = tmp33(tmp34[4]); handleSnapToPosition = function handleSnapToPosition(arg0, arg1) { const normalizeSnapPointResult = normalizeSnapPoint.normalizeSnapPoint(arg0, derivedValue.value); let tmp4 = derivedValue4; if (derivedValue4) { tmp4 = normalizeSnapPointResult !== sharedValue3.value; } if (tmp4) { tmp4 = !sharedValue8.value; } if (tmp4) { sharedValue7.value = true; const tmpResult = tmp(1636); tmp(1636).runOnUI(workletCallback2)(normalizeSnapPointResult, tmp(6729).ANIMATION_SOURCE.USER, 0, arg1); const runOnUIResult = tmp(1636).runOnUI(workletCallback2); } }; obj82 = { __DEV__: false, print: tmp33(tmp34[9]).print, BottomSheet: closure_40, normalizeSnapPoint: tmp33(tmp34[9]).normalizeSnapPoint, animatedContainerHeight: derivedValue, isLayoutCalculated: derivedValue4, animatedNextPosition: sharedValue3, isForcedClosing: sharedValue8, isInTemporaryPosition: sharedValue7, runOnUI: tmp33(tmp34[4]).runOnUI, animateToPosition: workletCallback2, ANIMATION_SOURCE: tmp33(tmp34[8]).ANIMATION_SOURCE }; handleSnapToPosition.__closure = obj82; handleSnapToPosition.__workletHash = 15646490046918; handleSnapToPosition.__initData = onAnimate; items15 = [, , , , , , ]; items15[0] = workletCallback2; items15[1] = num3; items15[2] = num2; items15[3] = derivedValue4; items15[4] = sharedValue8; items15[5] = derivedValue; items15[6] = sharedValue2; workletCallback6 = tmp33Result37.useWorkletCallback(handleSnapToPosition, items15); closure_81 = workletCallback6; tmp33Result38 = tmp33(tmp34[6]); stableCallback1 = tmp33Result38.useStableCallback(function handleSetToIndex(index, arg1) { value = first.get(); if (derivedValue4.get()) { let tmp4 = index >= -1; if (tmp4) { tmp4 = index <= value.length - 1; } -1(DEFAULT_ANIMATE_ON_MOUNT[10])(tmp4, `'index' was provided but out of the provided snap points range! expected value to be between -1, ${arr.length - 1}`); if (!sharedValue8.value) { if (undefined !== arg1) { const _Number = Number; if (Number.isFinite(arg1)) { const _Math = Math; let bound = Math.max(0, arg1); } if (undefined !== bound) { sharedValue7.value = false; const fn = function u() { if (bound === sharedValue2.value) { if (value === sharedValue4.value) { if (sharedValue13.value !== value22.ANIMATION_STATE.RUNNING) { reactiveSharedValue3.value = tmp3; } } } sharedValue3.value = bound; sharedValue4.value = value; reactiveSharedValue3.value = value; workletCallback(); sharedValue2.value = bound; sharedValue9.value = false; }; const obj2 = { nextPosition: bound, animatedPosition: sharedValue2, index, animatedNextPositionIndex: sharedValue4, animatedAnimationState: sharedValue13, ANIMATION_STATE: animationConfigs(tmp2[8]).ANIMATION_STATE, animatedCurrentIndex: reactiveSharedValue3, animatedNextPosition: sharedValue3, stopAnimation: workletCallback, animatedContainerHeightDidChange: sharedValue9 }; fn.__closure = obj2; fn.__workletHash = 13567407937738; fn.__initData = __initData; animationConfigs(tmp2[4]).runOnUI(fn)(); const obj = animationConfigs(tmp2[4]); } } bound = value[index]; } const tmp3 = -1(DEFAULT_ANIMATE_ON_MOUNT[10]); } }); closure_82 = stableCallback1; tmp33Result39 = tmp33(tmp34[6]); stableCallback2 = tmp33Result39.useStableCallback(function handleSetToPosition(arg0) { if (derivedValue4.get()) { if (!sharedValue8.value) { sharedValue7.value = true; const normalizeSnapPointResult = normalizeSnapPoint.normalizeSnapPoint(arg0, derivedValue.get()); cancelAnimation2.runOnUI(workletCallback3)(normalizeSnapPointResult); } } }); closure_83 = stableCallback2; items16 = [, , , , , ]; items16[0] = workletCallback2; items16[1] = sharedValue8; items16[2] = derivedValue4; items16[3] = sharedValue7; items16[4] = sharedValue3; items16[5] = derivedValue2; tmp82 = closure_5(function handleClose(arg0) { value = derivedValue2.value; value2 = derivedValue4.value; if (value2) { value2 = value !== sharedValue3.value; } if (value2) { value2 = !sharedValue8.value; } if (value2) { sharedValue7.value = false; cancelAnimation2.runOnUI(workletCallback2)(value, value22.ANIMATION_SOURCE.USER, 0, arg0); const runOnUIResult = cancelAnimation2.runOnUI(workletCallback2); } }, items16); closure_84 = tmp82; items17 = [, , , , ]; items17[0] = workletCallback2; items17[1] = sharedValue8; items17[2] = sharedValue7; items17[3] = sharedValue3; items17[4] = derivedValue2; tmp83 = closure_5(function handleForceClose(arg0) { value = derivedValue2.value; value2 = value === sharedValue3.value; if (!value2) { value2 = sharedValue8.value; } if (!value2) { sharedValue7.value = false; sharedValue8.value = true; cancelAnimation2.runOnUI(workletCallback2)(value, value22.ANIMATION_SOURCE.USER, 0, arg0); const runOnUIResult = cancelAnimation2.runOnUI(workletCallback2); } }, items17); closure_85 = tmp83; items18 = [, , , , , , ]; items18[0] = workletCallback2; items18[1] = sharedValue7; items18[2] = derivedValue4; items18[3] = sharedValue8; items18[4] = first; items18[5] = sharedValue3; items18[6] = sharedValue4; tmp84 = closure_5(function handleExpand(arg0) { value2 = first.value; value = derivedValue4.value; if (value) { value = value2.length - 1 !== sharedValue4.value; } if (value) { value = tmp !== sharedValue3.value; } if (value) { value = !sharedValue8.value; } if (value) { sharedValue7.value = false; cancelAnimation2.runOnUI(workletCallback2)(tmp, value22.ANIMATION_SOURCE.USER, 0, arg0); const runOnUIResult = cancelAnimation2.runOnUI(workletCallback2); } }, items18); closure_86 = tmp84; items19 = [, , , , , , ]; items19[0] = workletCallback2; items19[1] = sharedValue8; items19[2] = derivedValue4; items19[3] = sharedValue7; items19[4] = first; items19[5] = sharedValue3; items19[6] = sharedValue4; tmp85 = closure_5(function handleCollapse(arg0) { first = first.value[0]; let tmp2 = derivedValue4; if (derivedValue4) { tmp2 = 0 !== sharedValue4.value; } if (tmp2) { tmp2 = first !== sharedValue3.value; } if (tmp2) { tmp2 = !sharedValue8.value; } if (tmp2) { sharedValue7.value = false; cancelAnimation2.runOnUI(workletCallback2)(first, value22.ANIMATION_SOURCE.USER, 0, arg0); const runOnUIResult = cancelAnimation2.runOnUI(workletCallback2); } }, items19); closure_87 = tmp85; tmp86 = DEFAULT_DYNAMIC_SIZING(fn, () => ({ snapToIndex: stableCallback, snapToPosition: workletCallback6, setToIndex: stableCallback1, setToPosition: stableCallback2, expand, collapse, close, forceClose })); items20 = [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ]; items20[0] = derivedValue7; items20[1] = sharedValue2; items20[2] = sharedValue1; items20[3] = derivedValue3; items20[4] = animatedScrollableType; items20[5] = sharedValue10; items20[6] = sharedValue11; items20[7] = derivedValue2; items20[8] = sharedValue; items20[9] = derivedValue; items20[10] = reactiveSharedValue2; items20[11] = sharedValue13; items20[12] = state; items20[13] = height; items20[14] = sharedValue12; items20[15] = derivedValue5; items20[16] = derivedValue1; items20[17] = derivedValue6; items20[18] = animatedScrollableOverrideState; items20[19] = first; items20[20] = shouldHandleKeyboardEvents; items20[21] = animatedScrollableContentOffsetY; items20[22] = isScrollableRefreshable; items20[23] = sharedValue6; items20[24] = sharedValue7; items20[25] = DEFAULT_ENABLE_CONTENT_PANNING_GESTURE; items20[26] = DEFAULT_OVER_DRAG_RESISTANCE_FACTOR; items20[27] = enableOverDrag; items20[28] = DEFAULT_ENABLE_PAN_DOWN_TO_CLOSE; items20[29] = DEFAULT_DYNAMIC_SIZING; items20[30] = DEFAULT_ENABLE_BLUR_KEYBOARD_ON_GESTURE; items20[31] = simultaneousHandlers; items20[32] = waitFor; items20[33] = activeOffsetX; items20[34] = activeOffsetY; items20[35] = failOffsetX; items20[36] = failOffsetY; items20[37] = setScrollableRef; items20[38] = removeScrollableRef; items20[39] = workletCallback2; items20[40] = workletCallback; items21 = [, , , , , , , , , ]; items21[0] = derivedValue7; items21[1] = sharedValue2; items21[2] = stableCallback; items21[3] = workletCallback6; items21[4] = stableCallback1; items21[5] = stableCallback2; items21[6] = tmp84; items21[7] = tmp85; items21[8] = tmp82; items21[9] = tmp83; tmp87 = DEFAULT_ENABLE_OVER_DRAG(() => ({ enableContentPanningGesture: DEFAULT_ENABLE_CONTENT_PANNING_GESTURE, enableDynamicSizing: DEFAULT_DYNAMIC_SIZING, overDragResistanceFactor: DEFAULT_OVER_DRAG_RESISTANCE_FACTOR, enableOverDrag, enablePanDownToClose: DEFAULT_ENABLE_PAN_DOWN_TO_CLOSE, animatedAnimationState: sharedValue13, animatedSheetState: derivedValue5, animatedScrollableState: derivedValue6, animatedScrollableOverrideState, animatedContentGestureState: sharedValue10, animatedHandleGestureState: sharedValue11, animatedKeyboardState: state, animatedScrollableType, animatedIndex: derivedValue7, animatedPosition: sharedValue2, animatedSheetHeight: derivedValue3, animatedContentHeight: sharedValue1, animatedClosedPosition: derivedValue2, animatedHandleHeight: reactiveSharedValue2, animatedFooterHeight: sharedValue, animatedKeyboardHeight: height, animatedKeyboardHeightInContainer: sharedValue12, animatedContainerHeight: derivedValue, animatedSnapPoints, animatedHighestSnapPoint: derivedValue1, animatedScrollableContentOffsetY, isInTemporaryPosition: sharedValue7, isContentHeightFixed: sharedValue6, isScrollableRefreshable, shouldHandleKeyboardEvents, simultaneousHandlers, waitFor, activeOffsetX, activeOffsetY, failOffsetX, failOffsetY, enableBlurKeyboardOnGesture: DEFAULT_ENABLE_BLUR_KEYBOARD_ON_GESTURE, animateToPosition: workletCallback2, stopAnimation: workletCallback, setScrollableRef, removeScrollableRef }), items20); tmp88 = DEFAULT_ENABLE_OVER_DRAG(() => ({ animatedIndex: derivedValue7, animatedPosition: sharedValue2, snapToIndex: stableCallback, snapToPosition: workletCallback6, setToIndex: stableCallback1, setToPosition: stableCallback2, expand, collapse, close, forceClose }), items21); tmp33Result40 = tmp33(tmp34[4]); class Da { constructor() { return closure_31.value; } } Da.__closure = { animatedContainerHeight: derivedValue }; Da.__workletHash = 10677623879887; Da.__initData = detached; class Ha { constructor(arg0, arg1) { tmp = closure_0; tmp2 = closure_2; if (global !== closure_0(closure_2[5]).INITIAL_CONTAINER_HEIGHT) { tmp9 = fn; tmp10 = closure_50; closure_50.value = global !== fn; tmp11 = closure_67; tmp4 = closure_67.value === tmp(tmp2[8]).ANIMATION_STATE.RUNNING; if (tmp4) { tmp3 = closure_68; tmp4 = closure_68.value === tmp(tmp2[8]).ANIMATION_SOURCE.GESTURE; } if (tmp4) { tmp5 = closure_44; num = -1; tmp4 = -1 === closure_44.value; } if (tmp4) { tmp6 = closure_76; tmp7 = closure_39; tmp8 = closure_76(closure_39.value, tmp(tmp2[8]).ANIMATION_SOURCE.GESTURE); } } return; } } obj83 = { INITIAL_CONTAINER_HEIGHT: tmp33(tmp34[5]).INITIAL_CONTAINER_HEIGHT, animatedContainerHeightDidChange: sharedValue9, animatedAnimationState: sharedValue13, ANIMATION_STATE: tmp33(tmp34[8]).ANIMATION_STATE, animatedAnimationSource: sharedValue14, ANIMATION_SOURCE: tmp33(tmp34[8]).ANIMATION_SOURCE, animatedNextPositionIndex: sharedValue4, animateToPosition: workletCallback2, animatedClosedPosition: derivedValue2 }; Ha.__closure = obj83; Ha.__workletHash = 6251604634325; Ha.__initData = handleComponent; animatedReaction = tmp33Result40.useAnimatedReaction(Da, Ha); tmp33Result41 = tmp33(tmp34[4]); xa = function xa() { return first.value; }; xa.__closure = { animatedSnapPoints: first }; xa.__workletHash = 6214244679329; xa.__initData = closure_30; fa = function fa(arg0, arg1) { const json = JSON.stringify(arg0); value = json === JSON.stringify(arg1); if (value) { value = sharedValue5.value; } if (!value) { if (derivedValue4.value) { workletCallback5(value22.ANIMATION_SOURCE.SNAP_POINT_CHANGE); } } }; obj84 = { isAnimatedOnMount: sharedValue5, isLayoutCalculated: derivedValue4, __DEV__: false, runOnJS: tmp33(tmp34[4]).runOnJS, print: tmp33(tmp34[9]).print, evaluatePosition: workletCallback5, ANIMATION_SOURCE: tmp33(tmp34[8]).ANIMATION_SOURCE }; fa.__closure = obj84; fa.__workletHash = 4349647290337; fa.__initData = closure_31; items22 = [, ]; items22[0] = derivedValue4; items22[1] = first; animatedReaction1 = tmp33Result41.useAnimatedReaction(xa, fa, items22); tmp33Result42 = tmp33(tmp34[4]); ga = function ga() { return { _keyboardState: state.value, _keyboardHeight: height.value }; }; ga.__closure = { animatedKeyboardState: state, animatedKeyboardHeight: height }; ga.__workletHash = 8321687383329; ga.__initData = closure_32; class Ba { constructor(arg0, arg1) { ({ _keyboardState, _keyboardHeight } = global); _keyboardState1 = undefined; if (fn != null) { _keyboardState1 = fn._keyboardState; } if (fn != null) { _keyboardHeight2 = fn._keyboardHeight; } if (_keyboardState !== _keyboardState1) { tmp2 = closure_0; tmp3 = closure_2; if (_keyboardState !== closure_0(closure_2[8]).KEYBOARD_STATE.UNDETERMINED) { if (_keyboardState === tmp2(tmp3[8]).KEYBOARD_STATE.HIDDEN) { tmp4 = closure_67; if (closure_67.value === tmp2(tmp3[8]).ANIMATION_STATE.RUNNING) { tmp5 = closure_68; } } tmp6 = closure_64; num = 0; num2 = 0; if (0 === _keyboardHeight) { tmp6.value = 0; tmp14 = closure_11; if (closure_11 !== tmp2(tmp3[8]).KEYBOARD_INPUT_MODE.adjustResize) { iter = closure_51; if (closure_51.value !== tmp2(tmp3[7]).State.ACTIVE) { if (iter.value !== tmp2(tmp3[7]).State.BEGAN) { iter2 = closure_52; if (closure_52.value !== tmp2(tmp3[7]).State.ACTIVE) { if (iter2.value !== tmp2(tmp3[7]).State.BEGAN) { if (_keyboardState !== tmp2(tmp3[8]).KEYBOARD_STATE.HIDDEN) { tmp2Result = tmp2(tmp3[9]); tmp17 = animationEasing; tmp18 = animationDuration; tmp20 = closure_79; keyboardAnimationConfigs = tmp2Result.getKeyboardAnimationConfigs(animationEasing.value, animationDuration.value); tmp21 = closure_79(tmp2(tmp3[8]).ANIMATION_SOURCE.KEYBOARD, keyboardAnimationConfigs); } else { tmp16 = closure_10; } } } } } } else { tmp6.value = 0; tmp15 = DEFAULT_KEYBOARD_BEHAVIOR; } } else { tmp7 = $modal; diff = globalThis; _Math = Math; abs = Math.abs; if ($modal) { _Math2 = diff.Math; tmp11 = bottomInset; tmp12 = closure_32; diff = _keyboardHeight - _Math2.abs(bottomInset - closure_32.value.bottom); absResult = abs(diff); } else { tmp9 = closure_32; absResult = abs(_keyboardHeight - closure_32.value.bottom); } tmp13 = absResult; } } } return; } } obj85 = { KEYBOARD_STATE: tmp33(tmp34[8]).KEYBOARD_STATE, animatedAnimationState: sharedValue13, ANIMATION_STATE: tmp33(tmp34[8]).ANIMATION_STATE, animatedAnimationSource: sharedValue14, ANIMATION_SOURCE: tmp33(tmp34[8]).ANIMATION_SOURCE, __DEV__: false, runOnJS: tmp33(tmp34[4]).runOnJS, print: tmp33(tmp34[9]).print, BottomSheet: closure_40, animatedKeyboardHeightInContainer: sharedValue12, $modal: tmp25, bottomInset: num3, animatedContainerOffset: reactiveSharedValue1, Platform: overrideReduceMotion, android_keyboardInputMode: DEFAULT_KEYBOARD_INPUT_MODE, KEYBOARD_INPUT_MODE: tmp33(tmp34[8]).KEYBOARD_INPUT_MODE, keyboardBehavior, KEYBOARD_BEHAVIOR: tmp33(tmp34[8]).KEYBOARD_BEHAVIOR, animatedContentGestureState: sharedValue10, State: tmp33(tmp34[7]).State, animatedHandleGestureState: sharedValue11, keyboardBlurBehavior: DEFAULT_KEYBOARD_BLUR_BEHAVIOR, KEYBOARD_BLUR_BEHAVIOR: tmp33(tmp34[8]).KEYBOARD_BLUR_BEHAVIOR, getKeyboardAnimationConfigs: tmp33(tmp34[9]).getKeyboardAnimationConfigs, keyboardAnimationEasing: animationEasing, keyboardAnimationDuration: animationDuration, evaluatePosition: workletCallback5 }; Ba.__closure = obj85; Ba.__workletHash = 12581090930210; Ba.__initData = closure_33; items23 = [, , , , , , ]; items23[0] = tmp25; items23[1] = num3; items23[2] = keyboardBehavior; items23[3] = DEFAULT_KEYBOARD_BLUR_BEHAVIOR; items23[4] = DEFAULT_KEYBOARD_INPUT_MODE; items23[5] = reactiveSharedValue1; items23[6] = workletCallback4; animatedReaction2 = tmp33Result42.useAnimatedReaction(ga, Ba, items23); tmp33Result43 = tmp33(tmp34[4]); class Ma { constructor() { return closure_42.value; } } Ma.__closure = { animatedPosition: sharedValue2 }; Ma.__workletHash = 13579803011112; Ma.__initData = closure_34; ba = function ba(arg0) { if (animatedPosition) { tmp.value = arg0 + num2; } }; ba.__closure = { _providedAnimatedPosition: animatedPosition, topInset: num2 }; ba.__workletHash = 10543527459289; ba.__initData = closure_35; animatedReaction3 = tmp33Result43.useAnimatedReaction(Ma, ba, []); tmp33Result44 = tmp33(tmp34[4]); class Ua { constructor() { return closure_71.value; } } Ua.__closure = { animatedIndex: derivedValue7 }; Ua.__workletHash = 12135317826830; Ua.__initData = closure_36; ya = function ya(value) { if (animatedIndex) { tmp.value = value; } }; ya.__closure = { _providedAnimatedIndex: animatedIndex }; ya.__workletHash = 9361176196635; ya.__initData = closure_37; animatedReaction4 = tmp33Result44.useAnimatedReaction(Ua, ya, []); tmp33Result45 = tmp33(tmp34[4]); class Ka { constructor() { obj = { _animatedIndex: closure_71.value, _animatedPosition: closure_42.value, _animationState: closure_67.value, _contentGestureState: closure_51.value, _handleGestureState: closure_52.value }; return obj; } } Ka.__closure = { animatedIndex: derivedValue7, animatedPosition: sharedValue2, animatedAnimationState: sharedValue13, animatedContentGestureState: sharedValue10, animatedHandleGestureState: sharedValue11 }; Ka.__workletHash = 1521585362538; Ka.__initData = closure_38; class La { constructor(arg0) { ({ _animatedIndex, _animatedPosition, _contentGestureState, _handleGestureState } = global); tmp = closure_0; tmp2 = closure_2; tmp3 = global._animationState === closure_0(closure_2[8]).ANIMATION_STATE.STOPPED; if (tmp3) { iter = closure_43; tmp4 = closure_43.value === tmp(tmp2[5]).INITIAL_VALUE; if (!tmp4) { tmp5 = closure_44; tmp4 = closure_44.value === tmp(tmp2[5]).INITIAL_VALUE; } if (!tmp4) { tmp6 = _animatedPosition === iter.value; if (tmp6) { tmp7 = closure_44; tmp6 = _animatedIndex === closure_44.value; } tmp4 = tmp6; } tmp3 = tmp4; } if (tmp3) { num = 1; num2 = 0; tmp3 = _animatedIndex % 1 === 0; } if (tmp3) { tmp8 = _contentGestureState !== tmp(tmp2[7]).State.END && _contentGestureState !== tmp(tmp2[7]).State.UNDETERMINED && _contentGestureState !== tmp(tmp2[7]).State.CANCELLED; if (!tmp8) { tmp9 = _handleGestureState !== tmp(tmp2[7]).State.END && _handleGestureState !== tmp(tmp2[7]).State.UNDETERMINED && _handleGestureState !== tmp(tmp2[7]).State.CANCELLED; tmp8 = tmp9; } tmp3 = !tmp8; } if (tmp3) { tmp10 = closure_66; if (closure_66) { tmp11 = closure_41; tmp10 = _animatedIndex === closure_41.value; } if (tmp10) { tmp12 = closure_36; tmp10 = closure_36.value[_animatedIndex] !== _animatedPosition; } if (!tmp10) { if (_animatedIndex !== closure_41.value) { closure_41.value = _animatedIndex; tmpResult = tmp(tmp2[4]); tmp13 = closure_72; tmp14 = tmpResult.runOnJS(closure_72)(_animatedIndex, _animatedPosition); } num3 = -1; tmp15 = -1 === _animatedIndex && onClose; if (tmp15) { tmpResult1 = tmp(tmp2[4]); tmp16 = onClose; tmp17 = tmpResult1.runOnJS(onClose)(); } } } return; } } obj86 = { ANIMATION_STATE: tmp33(tmp34[8]).ANIMATION_STATE, animatedNextPosition: sharedValue3, INITIAL_VALUE: tmp33(tmp34[5]).INITIAL_VALUE, animatedNextPositionIndex: sharedValue4, State: tmp33(tmp34[7]).State, reduceMotion: tmp64, animatedCurrentIndex: reactiveSharedValue3, animatedSnapPoints: first, __DEV__: false, runOnJS: tmp33(tmp34[4]).runOnJS, print: tmp33(tmp34[9]).print, BottomSheet: closure_40, handleOnChange: tmp70, _providedOnClose: onClose }; La.__closure = obj86; La.__workletHash = 7374492181361; La.__initData = closure_39; items24 = [, , ]; items24[0] = tmp64; items24[1] = tmp70; items24[2] = onClose; animatedReaction5 = tmp33Result45.useAnimatedReaction(Ka, La, items24); items25 = [, , , ]; items25[0] = DEFAULT_ANIMATE_ON_MOUNT; items25[1] = num; items25[2] = sharedValue5; items25[3] = stableCallback; tmp95 = closure_7(() => { let tmp = DEFAULT_ANIMATE_ON_MOUNT; if (DEFAULT_ANIMATE_ON_MOUNT) { tmp = !sharedValue5.value; } if (!tmp) { stableCallback(num); } }, items25); tmp96 = closure_10; obj87 = { value: tmp88, children: null }; obj88 = { value: tmp87, children: null }; tmp97 = closure_11; obj89 = { gestureEventsHandlersHook, children: null }; tmp96Result = null; tmp98 = index(tmp34[12]); if (backdropComponent) { obj90 = { animatedIndex: null, animatedPosition: null, style: null }; obj90.animatedIndex = derivedValue7; obj90.animatedPosition = sharedValue2; tmp100 = DEFAULT_KEYBOARD_BEHAVIOR; obj90.style = DEFAULT_KEYBOARD_BEHAVIOR.absoluteFillObject; tmp96Result = tmp96(backdropComponent, obj90); } items26 = [, ]; items26[0] = tmp96Result; obj91 = { shouldCalculateHeight: !tmp25, containerHeight: reactiveSharedValue, containerOffset: reactiveSharedValue1, topInset: num2, bottomInset: num3, detached: tmp26, style: containerStyle, children: null }; obj92 = { style, BodyComponent, children: null }; tmp96Result1 = null; if (null !== backgroundComponent) { obj93 = { animatedIndex: null, animatedPosition: null, backgroundComponent: null, backgroundStyle: null }; obj93.animatedIndex = derivedValue7; obj93.animatedPosition = sharedValue2; obj93.backgroundComponent = backgroundComponent; obj93.backgroundStyle = backgroundStyle; str = "BottomSheetBackgroundContainer"; tmp96Result1 = tmp96(tmp33(tmp34[15]).BottomSheetBackgroundContainer, obj93, "BottomSheetBackgroundContainer"); } items27 = [, , ]; items27[0] = tmp96Result1; obj94 = { pointerEvents: "box-none", accessible, accessibilityRole: null, accessibilityLabel: null, keyboardBehavior: null, detached: null, children: null }; obj94.accessibilityRole = DEFAULT_ACCESSIBILITY_ROLE; obj94.accessibilityLabel = DEFAULT_ACCESSIBILITY_LABEL; obj94.keyboardBehavior = keyboardBehavior; obj94.detached = tmp26; items28 = [, ]; items28[0] = children; tmp96Result2 = null; if (renderFooter) { obj95 = { renderFooter: null }; obj95.renderFooter = renderFooter; tmp96Result2 = tmp96(tmp33(tmp34[17]).BottomSheetFooterContainer, obj95); } items28[1] = tmp96Result2; obj94.children = items28; items27[1] = tmp97(tmp33(tmp34[16]).BottomSheetContent, obj94); tmp96Result3 = null; if (null !== handleComponent) { obj96 = { animatedIndex: null, animatedPosition: null, handleHeight: null, enableHandlePanningGesture: null, enableOverDrag: null, enablePanDownToClose: null, overDragResistanceFactor: null, keyboardBehavior: null, handleComponent: null, handleStyle: null, handleIndicatorStyle: null }; obj96.animatedIndex = derivedValue7; obj96.animatedPosition = sharedValue2; obj96.handleHeight = reactiveSharedValue2; obj96.enableHandlePanningGesture = enableHandlePanningGesture; obj96.enableOverDrag = enableOverDrag; obj96.enablePanDownToClose = DEFAULT_ENABLE_PAN_DOWN_TO_CLOSE; obj96.overDragResistanceFactor = DEFAULT_OVER_DRAG_RESISTANCE_FACTOR; obj96.keyboardBehavior = keyboardBehavior; obj96.handleComponent = handleComponent; obj96.handleStyle = handleStyle; obj96.handleIndicatorStyle = handleIndicatorStyle; str2 = "BottomSheetHandleContainer"; tmp96Result3 = tmp96(tmp33(tmp34[18]).BottomSheetHandleContainer, obj96, "BottomSheetHandleContainer"); } items27[2] = tmp96Result3; obj92.children = items27; obj91.children = tmp97(tmp33(tmp34[14]).BottomSheetBody, obj92); items26[1] = tmp96(tmp33(tmp34[13]).BottomSheetHostingContainer, obj91, "BottomSheetContainer"); obj89.children = items26; obj88.children = tmp97(tmp98, obj89); obj87.children = tmp96(tmp33(tmp34[11]).BottomSheetInternalProvider, obj88); return tmp96(tmp33(tmp34[11]).BottomSheetProvider, obj87); } } const memoResult = memo(forwardRef(BottomSheet)); memoResult.displayName = "BottomSheet"; export default memoResult;