decord/source/modules/premium/native/gifting/PremiumGiftBackgroundSelect.tsx

114 lines
3.9 KiB
TypeScript
Raw Normal View History

// Module ID: 10975
// Function ID: 10976
// Name: PremiumGiftBackgroundSelect
// Dependencies: [32, 19, 17, 21, 4374, 4638, 576, 1478, 4639, 1177, 10976, 10840, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 10975 (PremiumGiftBackgroundSelect)
import nativeDefault from "native" /* 576 */;
import native from "native" /* 1177 */;
import timing from "timing" /* 4639 */;
import NativeGiftContext from "NativeGiftContext" /* 10840 */;
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
import ReanimatedRexport from "ReanimatedRexport" /* 4374 */;
2026-07-23 10:11:24 +00:00
require = fn;
2026-07-20 16:05:17 +00:00
class GiftBackgroundSelect {
constructor(arg0) {
flag = global.withConsistentHeight;
if (flag === undefined) {
flag = true;
}
2026-08-24 06:08:38 +00:00
closure_0 = undefined;
closure_1 = undefined;
closure_2 = undefined;
tmp = closure_9();
tmp2 = closure_3(closure_4.useState(), 2);
2026-07-20 16:05:17 +00:00
first = tmp2[0];
2026-08-24 06:08:38 +00:00
closure_0 = first;
closure_1 = tmp2[1];
obj = closure_0(closure_2[4]);
2026-07-20 16:05:17 +00:00
sharedValue = obj.useSharedValue(false);
2026-08-24 06:08:38 +00:00
closure_2 = sharedValue;
2026-07-20 16:05:17 +00:00
items = [, ];
items[0] = first;
items[1] = sharedValue;
2026-08-24 06:08:38 +00:00
effect = closure_4.useEffect(() => {
2026-07-20 16:05:17 +00:00
const result = sharedValue.set(null != first);
}, items);
obj2 = closure_0(closure_2[4]);
2026-07-20 16:05:17 +00:00
class N {
constructor() {
2026-08-24 06:08:38 +00:00
tmp = closure_0;
tmp2 = closure_2;
obj = closure_0(closure_2[8]);
2026-07-20 16:05:17 +00:00
num = 0;
2026-08-24 06:08:38 +00:00
if (closure_2.get()) {
2026-07-20 16:05:17 +00:00
num = 1;
}
obj1 = { opacity: null };
obj4 = { easing: tmp(tmp2[9]).STANDARD_EASING, duration: 100 };
obj1.opacity = obj.withTiming(num, obj4);
return obj1;
2026-07-20 16:05:17 +00:00
}
}
obj1 = { STANDARD_EASING: closure_0(closure_2[9]).STANDARD_EASING, withTiming: closure_0(closure_2[8]).withTiming, visibility: sharedValue };
N.__closure = obj1;
2026-07-20 16:05:17 +00:00
N.__workletHash = 5743780040676;
2026-08-24 06:08:38 +00:00
N.__initData = closure_10;
2026-07-20 16:05:17 +00:00
animatedStyle = obj2.useAnimatedStyle(N);
tmp7 = jsxs;
tmp8 = Fragment;
2026-07-29 08:29:29 +00:00
tmp9 = jsx;
2026-07-20 16:05:17 +00:00
items1 = [, ];
items1[0] = jsx(closure_1(closure_2[10]), { giftStyle: global.giftStyle, withConsistentHeight: flag });
obj7 = {
2026-07-20 16:05:17 +00:00
onContentSizeChange(arg0) {
if (null == first) {
closure_1(arg0);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
},
contentContainerStyle: null,
style: null,
horizontal: true,
showsHorizontalScrollIndicator: false
2026-07-20 16:05:17 +00:00
};
items2 = [, ];
items2[0] = tmp.contentContainer;
obj8 = null != first;
2026-08-24 06:08:38 +00:00
tmp10 = closure_8;
if (obj8) {
obj8 = first < closure_1(closure_2[7])().width;
2026-07-20 16:05:17 +00:00
}
if (obj8) {
obj8 = { flex: 1 };
2026-07-20 16:05:17 +00:00
}
obj9 = { children: null };
items2[1] = obj8;
obj7.contentContainerStyle = items2;
2026-07-20 16:05:17 +00:00
items3 = [, ];
items3[0] = tmp.scrollView;
items3[1] = animatedStyle;
obj7.style = items3;
items1[1] = tmp9(tmp10, obj7);
obj9.children = items1;
return tmp7(tmp8, obj9);
2026-07-20 16:05:17 +00:00
}
}
const jsxProd = fn(21);
({ jsx: hasOwnProperty, Fragment: metroRequire, jsxs: closure_7 } = jsxProd);
let closure_8 = ReanimatedRexport.createAnimatedComponent(fn(17).ScrollView);
const createStyles = fn(4638);
let obj = { scrollView: { flex: 1, marginTop: nativeDefault.space.PX_24 }, contentContainer: { justifyContent: "center" } };
const React7 = createStyles.createStyles(obj);
const __initData = { code: "function PremiumGiftBackgroundSelectTsx1(){const{STANDARD_EASING,withTiming,visibility}=this.__closure;const animationSettings={easing:STANDARD_EASING,duration:100};return{opacity:withTiming(visibility.get()?1:0,animationSettings)};}" };
const size = fn(2);
let result = size.fileFinishedImporting("modules/premium/native/gifting/PremiumGiftBackgroundSelect.tsx");
2026-07-20 16:05:17 +00:00
export default function PremiumGiftBackgroundSelect() {
const nativeGiftContext = NativeGiftContext.useNativeGiftContext();
return hasOwnProperty(GiftBackgroundSelect, { giftStyle: nativeGiftContext.giftStyle, setGiftStyle: nativeGiftContext.setGiftStyle });
2026-07-20 16:05:17 +00:00
};
export { GiftBackgroundSelect };