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

117 lines
3.9 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 8777
// Function ID: 8778
2026-07-20 16:05:17 +00:00
// Name: GiftBackgroundSelect
2026-07-29 08:29:29 +00:00
// Dependencies: [32, 19, 17, 21, 4050, 4189, 712, 1474, 4190, 1297, 8778, 8804, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 8777 (GiftBackgroundSelect)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
import importDefaultResult from "module_4050";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
class GiftBackgroundSelect {
constructor(arg0) {
flag = global.withConsistentHeight;
if (flag === undefined) {
flag = true;
}
2026-07-29 08:29:29 +00:00
useState = undefined;
2026-07-23 10:11:24 +00:00
c1 = undefined;
c2 = undefined;
2026-07-29 08:29:29 +00:00
tmp = createAnimatedComponent();
tmp2 = _slicedToArray(noop.useState(), 2);
2026-07-20 16:05:17 +00:00
first = tmp2[0];
2026-07-29 08:29:29 +00:00
useState = first;
2026-07-23 10:11:24 +00:00
c1 = tmp2[1];
2026-07-29 08:29:29 +00:00
obj = require("module_4050");
2026-07-20 16:05:17 +00:00
sharedValue = obj.useSharedValue(false);
2026-07-23 10:11:24 +00:00
c2 = sharedValue;
2026-07-20 16:05:17 +00:00
items = [, ];
items[0] = first;
items[1] = sharedValue;
2026-07-29 08:29:29 +00:00
effect = noop.useEffect(() => {
2026-07-20 16:05:17 +00:00
const result = sharedValue.set(null != first);
}, items);
2026-07-29 08:29:29 +00:00
obj2 = require("module_4050");
2026-07-20 16:05:17 +00:00
class N {
constructor() {
2026-07-29 08:29:29 +00:00
tmp = useState;
tmp2 = c2;
obj = require("CONFIG_NEVER_ANIMATE_TIMING");
2026-07-20 16:05:17 +00:00
num = 0;
2026-07-23 10:11:24 +00:00
if (c2.get()) {
2026-07-20 16:05:17 +00:00
num = 1;
}
2026-07-29 08:29:29 +00:00
obj = { opacity: null };
obj1 = { easing: require("Button").STANDARD_EASING, duration: 100 };
obj[0] = obj.withTiming(num, obj1);
2026-07-20 16:05:17 +00:00
return obj;
}
}
2026-07-29 08:29:29 +00:00
obj = { STANDARD_EASING: require("Button").STANDARD_EASING, withTiming: require("CONFIG_NEVER_ANIMATE_TIMING").withTiming, visibility: sharedValue };
2026-07-20 16:05:17 +00:00
N.__closure = obj;
N.__workletHash = 5743780040676;
2026-07-29 08:29:29 +00:00
N.__initData = createAnimatedComponent;
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 = [, ];
2026-07-29 08:29:29 +00:00
items1[0] = jsx(require("PremiumGiftBackgroundAnimation"), { giftStyle: global.giftStyle, withConsistentHeight: flag });
obj1 = {
2026-07-20 16:05:17 +00:00
onContentSizeChange(arg0) {
if (null == first) {
callback(arg0);
}
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;
2026-07-29 08:29:29 +00:00
obj2 = null != first;
2026-07-20 16:05:17 +00:00
tmp10 = createAnimatedComponent;
2026-07-29 08:29:29 +00:00
if (obj2) {
obj2 = first < require("useWindowDimensions")().width;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (obj2) {
obj2 = { flex: 1 };
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj3 = { children: null };
items2[1] = obj2;
obj1[1] = items2;
2026-07-20 16:05:17 +00:00
items3 = [, ];
items3[0] = tmp.scrollView;
items3[1] = animatedStyle;
2026-07-29 08:29:29 +00:00
obj1[2] = items3;
items1[1] = tmp9(tmp10, obj1);
obj3[0] = items1;
return tmp7(tmp8, obj3);
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
({ jsx: c5, Fragment: closure_6, jsxs: error } = jsxProd);
let closure_8 = require("module_4050").createAnimatedComponent(require("get ActivityIndicator").ScrollView);
let obj = { scrollView: null, contentContainer: null };
obj = { flex: 1, marginTop: require("Themes").space.PX_24 };
obj[0] = obj;
obj[1] = { justifyContent: "center" };
let closure_9 = createCacheKey.createStyles(obj);
2026-07-20 16:05:17 +00:00
let closure_10 = { 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)};}" };
2026-07-23 10:11:24 +00:00
let result = require("get ActivityIndicator").fileFinishedImporting("modules/premium/native/gifting/PremiumGiftBackgroundSelect.tsx");
2026-07-20 16:05:17 +00:00
export default function PremiumGiftBackgroundSelect() {
2026-07-29 08:29:29 +00:00
let obj = require(8804) /* NativeGiftContextProvider */;
2026-07-20 16:05:17 +00:00
const nativeGiftContext = obj.useNativeGiftContext();
obj = { giftStyle: nativeGiftContext.giftStyle, setGiftStyle: nativeGiftContext.setGiftStyle };
return callback2(GiftBackgroundSelect, obj);
};
export { GiftBackgroundSelect };