decord/source/modules/chat_input/native/GiftIconTrinketsAnimation.tsx

65 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 11817
// Function ID: 11818
2026-07-20 16:05:17 +00:00
// Name: GiftIconTrinketsAnimation
2026-09-01 10:26:29 +00:00
// Dependencies: [19, 17, 4470, 21, 4478, 4197, 712, 589, 1902, 500, 8517, 5493, 2]
2026-07-20 16:05:17 +00:00
2026-09-01 10:26:29 +00:00
// Module 11817 (GiftIconTrinketsAnimation)
2026-08-24 06:08:38 +00:00
import set from "set" /* 500 */;
import initialize from "initialize" /* 589 */;
import ThemesDefault from "Themes" /* 712 */;
2026-09-01 10:26:29 +00:00
import map from "map" /* 4197 */;
import preloadDefault from "preload" /* 5493 */;
import useAPNGPlayerControls from "useAPNGPlayerControls" /* 8517 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
2026-09-01 10:26:29 +00:00
import closure_4 from "maybeApplyNoTextColorForLightCustomTheme" /* 4470 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
2026-09-01 10:26:29 +00:00
import createCacheKey from "createCacheKey" /* 4478 */;
2026-08-24 06:08:38 +00:00
import importAllResult from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
let closure_6 = createCacheKey.createStyles((width) => {
2026-07-23 10:11:24 +00:00
const containerRefresh = { position: "absolute", top: 0, left: 0, width, height: width, overflow: "visible", marginLeft: 0, zIndex: 0 };
2026-08-31 15:47:37 +00:00
return { containerRefresh, trinketsRefresh: { zIndex: 4, position: "absolute", pointerEvents: "none", width: "175%", height: "175%", top: "-37.5%", left: "-37.5%" } };
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
const memoResult = importAllResult.memo((trinketsAnimationUrl) => {
2026-07-20 16:05:17 +00:00
trinketsAnimationUrl = trinketsAnimationUrl.trinketsAnimationUrl;
2026-07-29 08:29:29 +00:00
let APNGPlayer = require;
let obj = dependencyMap;
2026-08-31 15:47:37 +00:00
obj1 = map;
const tmp2 = callback(obj1.useToken(ThemesDefault.modules.mobile.CHAT_INPUT_ACTION_BUTTON_SIZE));
2026-08-24 06:08:38 +00:00
const items = [closure_4];
const stateFromStores = initialize.useStateFromStores(items, () => useReducedMotion.useReducedMotion);
2026-08-31 15:47:37 +00:00
const trinketsRefresh = tmp2.trinketsRefresh;
const obj3 = initialize;
const tmp = importDefault;
if (obj4.isNullOrEmpty(trinketsAnimationUrl)) {
2026-07-20 16:05:17 +00:00
return null;
} else {
2026-07-29 08:29:29 +00:00
obj = { style: null, pointerEvents: "none", children: null };
2026-08-31 15:47:37 +00:00
obj[0] = tmp2.containerRefresh;
if (APNGPlayerResult.isAndroid()) {
2026-08-24 06:08:38 +00:00
APNGPlayer = useAPNGPlayerControls.APNGPlayer;
2026-07-29 08:29:29 +00:00
obj = { url: null, autoplay: null, style: null };
obj[0] = trinketsAnimationUrl;
obj[1] = !stateFromStores;
2026-08-31 15:47:37 +00:00
obj[2] = trinketsRefresh;
let tmp4Result = tmp4(APNGPlayer, obj);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj = { source: null, style: null, resizeMode: "contain", enableAnimation: null };
obj1 = { uri: null };
obj1[0] = trinketsAnimationUrl;
obj[0] = obj1;
2026-08-31 15:47:37 +00:00
obj[1] = trinketsRefresh;
2026-07-29 08:29:29 +00:00
obj[3] = !stateFromStores;
2026-08-31 15:47:37 +00:00
tmp4Result = tmp4(preloadDefault, obj);
2026-07-20 16:05:17 +00:00
}
2026-08-31 15:47:37 +00:00
obj[2] = tmp4Result;
tmp4Result = tmp4(View, obj);
APNGPlayerResult = set;
const tmp5 = View;
2026-07-20 16:05:17 +00:00
}
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/chat_input/native/GiftIconTrinketsAnimation.tsx");
2026-07-20 16:05:17 +00:00
export const GiftIconTrinketsAnimation = memoResult;