decord/stable/source/modules/collectibles/native/SkeletonCard.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

60 lines
2.2 KiB
TypeScript

// Module ID: 8997
// Function ID: 8998
// Name: SkeletonCard
// Dependencies: [19, 21, 4636, 576, 8890, 4373, 4637, 2]
// Exports: default
// Module 8997 (SkeletonCard)
import nativeDefault from "native" /* 576 */;
import ReanimatedRexport from "ReanimatedRexport" /* 4373 */;
import timing from "timing" /* 4637 */;
import noop from "module_19" /* 19 */;
const ReanimatedRexportDefault = ReanimatedRexport;
require = fn;
const jsx = fn(21).jsx;
const createStyles = fn(4636);
let closure_5 = createStyles.createStyles((width, height) => {
const obj = { skeletonCard: null };
const size = { width, height, backgroundColor: nativeDefault.colors.BORDER_SUBTLE, borderRadius: nativeDefault.radii.sm };
obj.skeletonCard = size;
return obj;
});
const __initData = { code: "function SkeletonCardTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}" };
let size = fn(2);
let result = size.fileFinishedImporting("modules/collectibles/native/SkeletonCard.tsx");
export default function _default(width) {
let COLLECTIBLES_SHOP_CARD_WIDTH = width.width;
if (COLLECTIBLES_SHOP_CARD_WIDTH === undefined) {
COLLECTIBLES_SHOP_CARD_WIDTH = sharedValue(8890).COLLECTIBLES_SHOP_CARD_WIDTH;
}
let COLLECTIBLES_SHOP_CARD_HEIGHT = width.height;
sharedValue = undefined;
if (COLLECTIBLES_SHOP_CARD_HEIGHT == null) {
COLLECTIBLES_SHOP_CARD_HEIGHT = sharedValue(8890).COLLECTIBLES_SHOP_CARD_HEIGHT;
}
const tmp3Result = closure_5(COLLECTIBLES_SHOP_CARD_WIDTH, COLLECTIBLES_SHOP_CARD_HEIGHT);
sharedValue = sharedValue(4373).useSharedValue(0.3);
const items = [sharedValue];
const effect = noop.useEffect(() => {
const obj = ReanimatedRexport;
const result = sharedValue.set(obj.withRepeat(timing.withTiming(1, { duration: 650 }), -1, true));
}, items);
let obj = sharedValue(4373);
class C {
constructor() {
obj = { opacity: closure_0.get() };
return obj;
}
}
C.__closure = { opacity: sharedValue };
C.__workletHash = 5620456625640;
C.__initData = __initData;
const animatedStyle = sharedValue(4373).useAnimatedStyle(C);
const obj3 = { style: null };
const items1 = [tmp3Result.skeletonCard, width.style, animatedStyle];
obj3.style = items1;
return jsx(ReanimatedRexportDefault.View, { style: null });
};