decord/source/modules/collectibles/native/SkeletonCard.tsx

56 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14502
// Function ID: 14503
2026-07-20 16:05:17 +00:00
// Name: sharedValue
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 21, 4668, 712, 9209, 4119, 4671, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 14502 (sharedValue)
import ThemesDefault from "Themes" /* 712 */;
import _modDef4119 from "module_4119" /* 4119 */;
import closure_3 from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let closure_5 = createCacheKey.createStyles((width, height) => {
let obj = { skeletonCard: null };
2026-08-24 06:08:38 +00:00
obj = { width, height, backgroundColor: ThemesDefault.colors.BORDER_SUBTLE, borderRadius: ThemesDefault.radii.sm };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-07-20 16:05:17 +00:00
return obj;
});
let closure_6 = { code: "function SkeletonCardTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}" };
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/collectibles/native/SkeletonCard.tsx");
2026-07-20 16:05:17 +00:00
export default function _default(width) {
let COLLECTIBLES_SHOP_CARD_WIDTH = width.width;
if (COLLECTIBLES_SHOP_CARD_WIDTH === undefined) {
2026-08-24 06:08:38 +00:00
COLLECTIBLES_SHOP_CARD_WIDTH = sharedValue(9209).COLLECTIBLES_SHOP_CARD_WIDTH;
2026-07-20 16:05:17 +00:00
}
let COLLECTIBLES_SHOP_CARD_HEIGHT = width.height;
2026-07-23 10:11:24 +00:00
sharedValue = undefined;
2026-07-29 08:29:29 +00:00
if (COLLECTIBLES_SHOP_CARD_HEIGHT == null) {
2026-08-24 06:08:38 +00:00
COLLECTIBLES_SHOP_CARD_HEIGHT = sharedValue(9209).COLLECTIBLES_SHOP_CARD_HEIGHT;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const tmp3 = closure_5;
const tmp3Result = closure_5(COLLECTIBLES_SHOP_CARD_WIDTH, COLLECTIBLES_SHOP_CARD_HEIGHT);
2026-08-24 06:08:38 +00:00
sharedValue = sharedValue(4119).useSharedValue(0.3);
2026-07-20 16:05:17 +00:00
const items = [sharedValue];
const effect = React.useEffect(() => {
2026-08-24 06:08:38 +00:00
const obj = sharedValue(closure_1_2[5]);
const result = sharedValue.set(obj.withRepeat(sharedValue(closure_1_2[6]).withTiming(1, { duration: 650 }), -1, true));
2026-07-20 16:05:17 +00:00
}, items);
2026-08-24 06:08:38 +00:00
let obj = sharedValue(4119);
2026-07-29 08:29:29 +00:00
class C {
constructor() {
2026-08-24 06:08:38 +00:00
obj = { opacity: closure_0.get() };
2026-07-29 08:29:29 +00:00
return obj;
}
}
C.__closure = { opacity: sharedValue };
C.__workletHash = 5620456625640;
C.__initData = closure_6;
2026-08-24 06:08:38 +00:00
const animatedStyle = sharedValue(4119).useAnimatedStyle(C);
2026-07-29 08:29:29 +00:00
const style = [tmp3Result.skeletonCard, width.style, animatedStyle];
2026-08-24 06:08:38 +00:00
return jsx(_modDef4119.View, { style });
2026-07-20 16:05:17 +00:00
};