Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
48 lines
2.4 KiB
TypeScript
48 lines
2.4 KiB
TypeScript
// Module ID: 12782
|
|
// Function ID: 12783
|
|
// Name: useChatPlaceholderAnimatedStyles
|
|
// Dependencies: [4630, 1177, 504, 4374, 4639, 4642, 2]
|
|
// Exports: default
|
|
|
|
// Module 12782 (useChatPlaceholderAnimatedStyles)
|
|
import ReanimatedRexport from "ReanimatedRexport" /* 4374 */;
|
|
import timing from "timing" /* 4639 */;
|
|
import timingPresets from "timingPresets" /* 4642 */;
|
|
import AccessibilityStore from "AccessibilityStore" /* 4630 */;
|
|
|
|
require = fn;
|
|
let TIMING_CONFIG = { duration: 1300, easing: fn(1177).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)};}" };
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/chat/native/placeholder/useChatPlaceholderAnimatedStyles.tsx");
|
|
|
|
export default function useChatPlaceholderAnimatedStyles(visible) {
|
|
visible = visible.visible;
|
|
const animated = visible.animated;
|
|
let stateFromStores;
|
|
TIMING_CONFIG = visible(animated[2]);
|
|
const items = [stateFromStores];
|
|
stateFromStores = TIMING_CONFIG.useStateFromStores(items, () => stateFromStores.useReducedMotion);
|
|
const fn = function c() {
|
|
if (visible) {
|
|
if (animated) {
|
|
if (!stateFromStores) {
|
|
let obj = { opacity: null };
|
|
const obj2 = ReanimatedRexport;
|
|
const obj3 = ReanimatedRexport;
|
|
const withTimingResult = timing.withTiming(0.3, timingPresets.timingNone);
|
|
const withTimingResult1 = timing.withTiming(0.7, obj);
|
|
obj.opacity = obj2.withRepeat(obj3.withSequence(withTimingResult, withTimingResult1, timing.withTiming(0.3, obj)), -1);
|
|
}
|
|
}
|
|
obj = { opacity: 0.7 };
|
|
} else {
|
|
return { opacity: 0 };
|
|
}
|
|
};
|
|
let obj2 = visible(animated[3]);
|
|
fn.__closure = { visible, animated, useReducedMotion: stateFromStores, withRepeat: visible(animated[3]).withRepeat, withSequence: visible(animated[3]).withSequence, withTiming: visible(animated[4]).withTiming, timingNone: visible(animated[5]).timingNone, TIMING_CONFIG };
|
|
fn.__workletHash = 3375288363194;
|
|
fn.__initData = __initData;
|
|
return obj2.useAnimatedStyle(fn);
|
|
};
|