Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
52 lines
2.4 KiB
TypeScript
52 lines
2.4 KiB
TypeScript
// Module ID: 12392
|
|
// Function ID: 12393
|
|
// Name: GiftIconTrinketsAnimation
|
|
// Dependencies: [19, 17, 4630, 21, 4638, 4339, 576, 504, 1926, 1364, 8949, 5673, 2]
|
|
|
|
// Module 12392 (GiftIconTrinketsAnimation)
|
|
import initialize from "initialize" /* 504 */;
|
|
import nativeDefault from "native" /* 576 */;
|
|
import useToken from "useToken" /* 4339 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import AccessibilityStore from "AccessibilityStore" /* 4630 */;
|
|
|
|
const PlatformUtils = APNGPlayer(1364);
|
|
const FastImageDefault = tmp(5673);
|
|
const APNGPlayer2 = APNGPlayer(8949);
|
|
require = fn;
|
|
const View = fn(17).View;
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4638);
|
|
let closure_6 = createStyles.createStyles((width) => ({ containerRefresh: { position: "absolute", top: 0, left: 0, width, height: width, overflow: "visible", marginLeft: 0, zIndex: 0 }, trinketsRefresh: { zIndex: 4, position: "absolute", pointerEvents: "none", width: "175%", height: "175%", top: "-37.5%", left: "-37.5%" } }));
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/chat_input/native/GiftIconTrinketsAnimation.tsx");
|
|
|
|
export const GiftIconTrinketsAnimation = noop.memo((trinketsAnimationUrl) => {
|
|
trinketsAnimationUrl = trinketsAnimationUrl.trinketsAnimationUrl;
|
|
let APNGPlayer = require;
|
|
let obj = dependencyMap;
|
|
const tmp2 = closure_6(useToken.useToken(nativeDefault.modules.mobile.CHAT_INPUT_ACTION_BUTTON_SIZE));
|
|
const items = [AccessibilityStore];
|
|
const stateFromStores = initialize.useStateFromStores(items, () => useReducedMotion.useReducedMotion);
|
|
const trinketsRefresh = tmp2.trinketsRefresh;
|
|
if (obj4.isNullOrEmpty(trinketsAnimationUrl)) {
|
|
return null;
|
|
} else {
|
|
const obj5 = { style: tmp2.containerRefresh, pointerEvents: "none", children: null };
|
|
if (APNGPlayerResult.isAndroid()) {
|
|
APNGPlayer = APNGPlayer2.APNGPlayer;
|
|
obj = { url: trinketsAnimationUrl, autoplay: !stateFromStores, style: trinketsRefresh };
|
|
let tmp4Result = tmp4(APNGPlayer, obj);
|
|
} else {
|
|
const obj6 = { source: null, style: null, resizeMode: "contain", enableAnimation: null };
|
|
const obj7 = { uri: trinketsAnimationUrl };
|
|
obj6.source = obj7;
|
|
obj6.style = trinketsRefresh;
|
|
obj6.enableAnimation = !stateFromStores;
|
|
tmp4Result = tmp4(FastImageDefault, obj6);
|
|
}
|
|
obj5.children = tmp4Result;
|
|
<View style={tmp2.containerRefresh} pointerEvents="none">{null}</View>;
|
|
APNGPlayerResult = PlatformUtils;
|
|
}
|
|
});
|