41 lines
1.9 KiB
TypeScript
41 lines
1.9 KiB
TypeScript
// Metro module 11732 (f11733).
|
|
import AccessibilityStore from "../../../a11y/AccessibilityStore";
|
|
import { STANDARD_EASING } from "../../../../design/void/native";
|
|
import { useStateFromStores } from "../../../../_bundle/Module589";
|
|
import * as _ReanimatedRexport from "../../../reanimated/ReanimatedRexport";
|
|
import { useAnimatedStyle } from "../../../reanimated/ReanimatedRexport";
|
|
import * as _timing from "../../../../design/animation/reanimated/timing/timing";
|
|
import * as _timingPresets from "../../../../design/animation/reanimated/timing/timingPresets";
|
|
const TIMING_CONFIG = {
|
|
duration: 1300,
|
|
easing: STANDARD_EASING
|
|
};
|
|
const __initData = {
|
|
code: "function useChatPlaceholderAnimatedStylesTsx1(){const{visible,animated,useReducedMotion,withRepeat,withSequence,withTiming,timingNone,TIMING_CONFIG}=this.__closure;if(!visible){return{opacity:0};}else if(!animated||useReducedMotion){return{opacity:0.7};}return{opacity:withRepeat(withSequence(withTiming(0.3,timingNone),withTiming(0.7,TIMING_CONFIG),withTiming(0.3,TIMING_CONFIG)),-1)};}"
|
|
};
|
|
export default function useChatPlaceholderAnimatedStyles({ visible, animated }) {
|
|
const stateFromStores = useStateFromStores([AccessibilityStore], () => AccessibilityStore.useReducedMotion);
|
|
const c = function c() {
|
|
return visible ? animated && !stateFromStores ? {
|
|
opacity: _ReanimatedRexport.withRepeat(_ReanimatedRexport.withSequence(_timing.withTiming(0.3, _timingPresets.timingNone), _timing.withTiming(0.7, TIMING_CONFIG), _timing.withTiming(0.3, TIMING_CONFIG)), -1)
|
|
} : {
|
|
opacity: 0.7
|
|
} : {
|
|
opacity: 0
|
|
};
|
|
};
|
|
c.__closure = {
|
|
visible,
|
|
animated,
|
|
useReducedMotion: stateFromStores,
|
|
withRepeat: _ReanimatedRexport.withRepeat,
|
|
withSequence: _ReanimatedRexport.withSequence,
|
|
withTiming: _timing.withTiming,
|
|
timingNone: _timingPresets.timingNone,
|
|
TIMING_CONFIG
|
|
};
|
|
c.__workletHash = 3375288363194;
|
|
c.__initData = __initData;
|
|
return useAnimatedStyle(c);
|
|
};
|