84 lines
4.7 KiB
TypeScript
84 lines
4.7 KiB
TypeScript
/* Metro module 11956; source: modules/chat/native/placeholder/useChatPlaceholderAnimatedStyles.tsx; dependencies: [4502, 1305, 566, 4017, 4504, 4507, 2] */
|
|
function _fun91747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12142:6, offset: 0x0207088a, size: 169 bytes, params: 8, frame: 18
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
|
object2 = {duration: 1300};
|
|
const STANDARD_EASING = (require(1305) /* metro dependency 1305: native */).STANDARD_EASING;
|
|
object2.easing = STANDARD_EASING;
|
|
object2 = {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)};}'};
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat/native/placeholder/useChatPlaceholderAnimatedStyles.tsx');
|
|
exports.default = useChatPlaceholderAnimatedStyles;
|
|
}
|
|
|
|
function useChatPlaceholderAnimatedStyles({visible, animated}) { // fn#91748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12142:666, offset: 0x02070933, size: 258 bytes, params: 2, frame: 21
|
|
var object2;
|
|
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
|
function() {
|
|
return AccessibilityStore.useReducedMotion;
|
|
});
|
|
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
|
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
|
const closure = useChatPlaceholderAnimatedStylesC;
|
|
object2 = {visible: visible, animated: animated, useReducedMotion: useReducedMotion};
|
|
object2.withRepeat = reanimatedRexportModule.withRepeat;
|
|
object2.withSequence = reanimatedRexportModule.withSequence;
|
|
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
|
object2.timingNone = (require(4507) /* metro dependency 4507: timingPresets */).timingNone;
|
|
object2.TIMING_CONFIG = env0_3;
|
|
closure.__closure = object2;
|
|
closure.__workletHash = 3375288363194;
|
|
closure.__initData = env0_4;
|
|
return Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
|
}
|
|
|
|
function useChatPlaceholderAnimatedStylesC() { // fn#91750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12142:833, owner: useChatPlaceholderAnimatedStyles.c, offset: 0x02070a35, size: 245 bytes, params: 1, frame: 26
|
|
var object;
|
|
var r0;
|
|
var moduleValue;
|
|
var withRepeat;
|
|
var moduleValue2;
|
|
var withSequence;
|
|
var withTiming;
|
|
var value2;
|
|
var moduleValue4;
|
|
var binding;
|
|
var moduleValue5;
|
|
var value;
|
|
if (visible) {
|
|
if (animated) {
|
|
if (useReducedMotion) {
|
|
object = {opacity: 0.7};
|
|
} else {
|
|
value = environment.__proto__;
|
|
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
|
withRepeat = moduleValue.withRepeat;
|
|
moduleValue2 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
|
withSequence = moduleValue2.withSequence;
|
|
value2 = (require(4504) /* metro dependency 4504: timing */).withTiming(0.3,
|
|
(require(4507) /* metro dependency 4507: timingPresets */).timingNone);
|
|
moduleValue4 = require(4504) /* metro dependency 4504: timing */;
|
|
withTiming = moduleValue4.withTiming;
|
|
binding = env1_3;
|
|
value = Reflect.apply(withTiming, moduleValue4, [0.7, binding]);
|
|
moduleValue5 = require(4504) /* metro dependency 4504: timing */;
|
|
withTiming = moduleValue5.withTiming;
|
|
value = Reflect.apply(withSequence, moduleValue2, [value2, value, Reflect.apply(withTiming,
|
|
moduleValue5,
|
|
[0.3,
|
|
binding])]);
|
|
object = {opacity: Reflect.apply(withRepeat, moduleValue, [value, -1])};
|
|
}
|
|
} else {
|
|
object = {opacity: 0.7};
|
|
}
|
|
r0 = object;
|
|
} else {
|
|
r0 = {opacity: 0};
|
|
}
|
|
return r0;
|
|
}
|
|
|