2026-07-29 08:29:29 +00:00
// Module ID: 1604
// Function ID: 1605
// Name: Animated
// Dependencies: [5, 32, 19, 17, 21, 1605, 1606, 1596, 1795, 1797, 1798, 1799]
// Exports: KeyboardProvider
// Module 1604 (Animated)
import closure _2 from "controlEdgeToEdgeValues" ;
import _slicedToArray from "_slicedToArray" ;
import noop from "noop" ;
import "noop" ;
import get _ActivityIndicator from "get ActivityIndicator" ;
import jsxProd from "jsxProd" ;
import controlEdgeToEdgeValues from "controlEdgeToEdgeValues" ;
let Platform ;
let StyleSheet ;
let c10 ;
let c4 ;
let c5 ;
let closure _6 ;
let error ;
let metroImportAll ;
let unpackModuleId ;
let require = arg1 ;
( { useCallback : c4 , useEffect : c5 , useMemo : closure _6 , useRef : error , useState : metroImportAll } = noop ) ;
let Animated = get _ActivityIndicator . Animated ;
( { Platform , StyleSheet } = get _ActivityIndicator ) ;
( { jsx : c10 , jsxs : unpackModuleId } = jsxProd ) ;
controlEdgeToEdgeValues = controlEdgeToEdgeValues . isEdgeToEdge ( ) ;
let closure _13 = require ( "cancelAnimation" ) . createAnimatedComponent ( Animated . createAnimatedComponent ( require ( "nativeEventEmitter" ) . KeyboardControllerView ) ) ;
const styles = StyleSheet . create ( { container : { flex : 1 } , hidden : { display : "none" , position : "absolute" } } ) ;
const android = "android" ;
let closure _16 = { code : "function pnpm_animatedTsx1(event,platforms){const{OS,progressSV,heightSV}=this.__closure;if(platforms.includes(OS)){progressSV.value=event.progress;heightSV.value=-event.height;}}" } ;
let closure _17 = { code : "function pnpm_animatedTsx2(event){const{updateSharedValues}=this.__closure;updateSharedValues(event,[\"ios\"]);}" } ;
let closure _18 = { code : "function pnpm_animatedTsx3(event){const{updateSharedValues}=this.__closure;updateSharedValues(event,[\"android\"]);}" } ;
let closure _19 = { code : "function pnpm_animatedTsx4(event){const{updateSharedValues}=this.__closure;updateSharedValues(event,[\"android\",\"ios\"]);}" } ;
let closure _20 = { code : "function pnpm_animatedTsx5(event){const{updateSharedValues}=this.__closure;updateSharedValues(event,[\"android\"]);}" } ;
let closure _21 = { code : "function pnpm_animatedTsx6(e){const{layout}=this.__closure;if(e.target!==-1){layout.value=e;}else{layout.value=null;}}" } ;
export const KeyboardProvider = ( enabled ) => {
let children ;
let navigationBarTranslucent ;
let preserveEdgeToEdge ;
let statusBarTranslucent ;
enabled = enabled . enabled ;
let tmp = undefined === enabled ;
( { children , statusBarTranslucent , navigationBarTranslucent , preserveEdgeToEdge } = enabled ) ;
if ( ! tmp ) {
tmp = enabled ;
}
const preload = enabled . preload ;
const require = tmp2 ;
const tmp3 = sharedValue1 ( null ) ;
const dependencyMap = tmp3 ;
const tmp4 = callback ( sharedValue2 ( tmp ) , 2 ) ;
const first = tmp4 [ 0 ] ;
callback = tmp4 [ 1 ] ;
let obj = require ( 1795 ) /* useEventHandlerRegistration */ ;
const callback2 = obj . useAnimatedValue ( 0 ) ;
let obj1 = require ( 1795 ) /* useEventHandlerRegistration */ ;
const callback3 = obj1 . useAnimatedValue ( 0 ) ;
let obj2 = require ( 1606 ) /* cancelAnimation */ ;
const sharedValue = obj2 . useSharedValue ( 0 ) ;
let obj3 = require ( 1606 ) /* cancelAnimation */ ;
sharedValue1 = obj3 . useSharedValue ( 0 ) ;
sharedValue2 = require ( 1606 ) /* cancelAnimation */ . useSharedValue ( null ) ;
const obj5 = require ( 1606 ) /* cancelAnimation */ ;
const Animated = require ( 1795 ) /* useEventHandlerRegistration */ . useEventHandlerRegistration ( tmp3 ) ;
const obj6 = require ( 1795 ) /* useEventHandlerRegistration */ ;
let closure _10 = require ( 1795 ) /* useEventHandlerRegistration */ . useEventHandlerRegistration ( tmp3 ) ;
let closure _11 = callback2 ( first ( function * ( ) {
if ( v0 === 2 ) {
v0 = 3 ;
HermesBuiltin . throwTypeError ( ) ;
} else if ( tmp3 === 3 ) {
if ( arg0 === 1 ) {
throw arg1 ;
} else if ( arg0 === 2 ) {
let obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-08-05 07:35:12 +00:00
return { value : "T" , done : null } ;
2026-07-29 08:29:29 +00:00
}
} else {
try {
v0 = 2 ;
if ( 0 === ref ) {
if ( arg0 === 1 ) {
v0 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
v0 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
const KeyboardControllerViewCommands = v0 ( ref [ 7 ] ) . KeyboardControllerViewCommands ;
const result = KeyboardControllerViewCommands . synchronizeFocusedInputLayout ( ref . current ) ;
const promise = new Promise ( ( arg0 ) => {
const v3 = arg0 ;
const FocusedInputEvents = v3 ( table [ 7 ] ) . FocusedInputEvents ;
table = FocusedInputEvents . addListener ( "layoutDidSynchronize" , ( ) => {
closure _1 . remove ( ) ;
callback ( null ) ;
} ) ;
} ) ;
v0 = 1 ;
const obj1 = { value : null , done : false } ;
obj1 [ 0 ] = promise ;
return obj1 ;
}
} else if ( arg0 === 1 ) {
v0 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
v0 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
v0 = 3 ;
2026-08-05 07:35:12 +00:00
return { value : "T" , done : null } ;
2026-07-29 08:29:29 +00:00
}
} catch ( tmp14 ) {
v0 = tmp ;
throw tmp14 ;
}
}
} ) , [ ] ) ;
let items = [ first ] ;
const obj7 = require ( 1795 ) /* useEventHandlerRegistration */ ;
const tmp9 = sharedValue ( ( ) => {
let obj = { enabled : first , animated : null , reanimated : null , layout : null , update : null , setKeyboardHandlers : null , setInputHandlers : null , setEnabled : null } ;
obj = { progress : closure _4 , height : closure _9 . multiply ( closure _5 , - 1 ) } ;
obj [ 1 ] = obj ;
obj = { progress : sharedValue , height : sharedValue1 } ;
obj [ 2 ] = obj ;
obj [ 3 ] = sharedValue2 ;
obj [ 4 ] = closure _11 ;
obj [ 5 ] = closure _9 ;
obj [ 6 ] = closure _10 ;
obj [ 7 ] = _slicedToArray ;
return obj ;
} , items ) ;
const tmp11 = sharedValue ( ( ) => {
const items = [ { nativeEvent : { progress : closure _4 , height : closure _5 } } ] ;
return closure _9 . event ( items , { useNativeDriver : true } ) ;
} , [ ] ) ;
const fn = function _ ( progress , arr ) {
if ( arr . includes ( outer1 _15 ) ) {
sharedValue . value = progress . progress ;
sharedValue1 . value = - progress . height ;
}
} ;
obj = { OS : android , progressSV : sharedValue , heightSV : sharedValue1 } ;
fn . _ _closure = obj ;
fn . _ _workletHash = 2170890222740 ;
fn . _ _initData = closure _16 ;
const tmp10 = sharedValue ( ( ) => {
const items = [ outer1 _14 . hidden , ] ;
let obj = { translateX : closure _5 } ;
const items1 = [ obj , ] ;
obj = { translateY : closure _4 } ;
items1 [ 1 ] = obj ;
items [ 1 ] = { transform : items1 } ;
return items ;
} , [ ] ) ;
obj = { onKeyboardMoveStart : null , onKeyboardMove : null , onKeyboardMoveInteractive : null , onKeyboardMoveEnd : null } ;
class D {
constructor ( arg0 ) {
2026-08-04 21:03:28 +00:00
if ( typeof _ !== "function" ) {
2026-07-29 08:29:29 +00:00
str = "Trying to call a non-function" ;
throwTypeErrorResult = HermesBuiltin . throwTypeError ( ) ;
}
items = [ "ios" ] ;
if ( items . includes ( outer1 _15 ) ) {
tmp = enabled ;
tmp2 = closure _6 ;
closure _6 . value = enabled . progress ;
tmp3 = closure _7 ;
closure _7 . value = - enabled . height ;
}
return ;
}
}
D . _ _closure = { updateSharedValues : fn } ;
D . _ _workletHash = 17024171887285 ;
D . _ _initData = closure _17 ;
obj [ 0 ] = D ;
class C {
constructor ( arg0 ) {
2026-08-04 21:03:28 +00:00
if ( typeof _ !== "function" ) {
2026-07-29 08:29:29 +00:00
str = "Trying to call a non-function" ;
throwTypeErrorResult = HermesBuiltin . throwTypeError ( ) ;
}
items = [ "android" ] ;
if ( items . includes ( outer1 _15 ) ) {
tmp = enabled ;
tmp2 = closure _6 ;
closure _6 . value = enabled . progress ;
tmp3 = closure _7 ;
closure _7 . value = - enabled . height ;
}
return ;
}
}
C . _ _closure = { updateSharedValues : fn } ;
C . _ _workletHash = 9343239356186 ;
C . _ _initData = closure _18 ;
obj [ 1 ] = C ;
const fn2 = function p ( progress ) {
2026-08-04 21:03:28 +00:00
if ( typeof fn !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const items = [ "android" , "ios" ] ;
if ( items . includes ( outer1 _15 ) ) {
sharedValue . value = progress . progress ;
sharedValue1 . value = - progress . height ;
}
} ;
fn2 . _ _closure = { updateSharedValues : fn } ;
fn2 . _ _workletHash = 9270729921284 ;
fn2 . _ _initData = closure _19 ;
obj [ 2 ] = fn2 ;
const fn3 = function v ( progress ) {
2026-08-04 21:03:28 +00:00
if ( typeof fn !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const items = [ "android" ] ;
if ( items . includes ( outer1 _15 ) ) {
sharedValue . value = progress . progress ;
sharedValue1 . value = - progress . height ;
}
} ;
fn3 . _ _closure = { updateSharedValues : fn } ;
fn3 . _ _workletHash = 10129400155228 ;
fn3 . _ _initData = closure _20 ;
obj [ 3 ] = fn3 ;
const obj9 = require ( 1797 ) /* useAnimatedKeyboardHandler */ ;
const animatedKeyboardHandler = require ( 1797 ) /* useAnimatedKeyboardHandler */ . useAnimatedKeyboardHandler ( obj , [ ] ) ;
obj1 = { onFocusedInputLayoutChanged : null } ;
class I {
constructor ( arg0 ) {
if ( - 1 !== enabled . target ) {
tmp3 = closure _8 ;
closure _8 . value = enabled ;
} else {
tmp = closure _8 ;
tmp2 = null ;
closure _8 . value = null ;
}
return ;
}
}
I . _ _closure = { layout : sharedValue2 } ;
I . _ _workletHash = 9857955983587 ;
I . _ _initData = closure _21 ;
obj1 [ 0 ] = I ;
let items1 = [ undefined === preload || preload ] ;
const obj11 = require ( 1797 ) /* useAnimatedKeyboardHandler */ ;
callback3 ( ( ) => {
if ( tmp2 ) {
const KeyboardController = tmp2 ( tmp3 [ 10 ] ) . KeyboardController ;
KeyboardController . preload ( ) ;
}
} , items1 ) ;
obj2 = { value : tmp9 , children : null } ;
2026-08-05 07:35:12 +00:00
obj3 = { ref : tmp3 , enabled : first , navigationBarTranslucent : null , statusBarTranslucent : null , preserveEdgeToEdge : null , style : null , onKeyboardMoveReanimated : null , onKeyboardMoveStart : "Boolean" , onKeyboardMove : "image/png" , onKeyboardMoveInteractive : "mobile" , onKeyboardMoveEnd : null , onFocusedInputLayoutChangedReanimated : "brev med hjerte" , children : "k\u00E6restebrev" } ;
2026-07-29 08:29:29 +00:00
let tmp18 = fn ;
let tmp19 = fn ;
if ( ! fn ) {
tmp19 = navigationBarTranslucent ;
}
obj3 [ 2 ] = tmp19 ;
let tmp20 = tmp18 ;
if ( ! tmp18 ) {
tmp20 = statusBarTranslucent ;
}
obj3 [ 3 ] = tmp20 ;
if ( ! tmp18 ) {
tmp18 = preserveEdgeToEdge ;
}
obj3 [ 4 ] = tmp18 ;
obj3 [ 5 ] = container . container ;
obj3 [ 6 ] = animatedKeyboardHandler ;
obj3 [ 8 ] = tmp11 ;
obj3 [ 9 ] = tmp11 ;
obj3 [ 10 ] = tmp11 ;
obj3 [ 11 ] = require ( 1797 ) /* useAnimatedKeyboardHandler */ . useFocusedInputLayoutHandler ( obj1 , [ ] ) ;
obj3 [ 12 ] = children ;
const items2 = [ closure _10 ( closure _13 , obj3 ) , closure _10 ( Animated . View , { style : tmp10 } ) ] ;
obj2 [ 1 ] = items2 ;
return closure _11 ( require ( 1799 ) /* NOOP */ . KeyboardContext . Provider , obj2 ) ;
} ;