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

117 lines
3.8 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 8709
2026-07-27 11:26:19 +00:00
// Function ID: 69078
2026-07-20 16:05:17 +00:00
// Name: GiftBackgroundSelect
2026-07-25 08:10:48 +00:00
// Dependencies: [57, 31, 27, 33, 3992, 4131, 689, 1450, 4132, 1273, 8710, 8736, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 8709 (GiftBackgroundSelect)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import result from "result";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
2026-07-25 08:10:48 +00:00
import importDefaultResult from "module_3992";
2026-07-23 10:11:24 +00:00
let closure_5;
let closure_6;
let closure_7;
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-23 10:11:24 +00:00
c0 = undefined;
c1 = undefined;
c2 = undefined;
tmp = c9();
tmp2 = _slicedToArray(result.useState(), 2);
2026-07-20 16:05:17 +00:00
first = tmp2[0];
2026-07-23 10:11:24 +00:00
c0 = first;
c1 = tmp2[1];
2026-07-25 08:10:48 +00:00
obj = require("module_3992");
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-23 10:11:24 +00:00
effect = result.useEffect(() => {
2026-07-20 16:05:17 +00:00
const result = sharedValue.set(null != first);
}, items);
2026-07-25 08:10:48 +00:00
obj2 = require("module_3992");
2026-07-20 16:05:17 +00:00
class N {
constructor() {
obj = {};
2026-07-23 10:11:24 +00:00
obj2 = require("withTiming");
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-23 10:11:24 +00:00
obj = { easing: require("Button").STANDARD_EASING, duration: 100 };
2026-07-20 16:05:17 +00:00
obj.opacity = obj2.withTiming(num, obj);
return obj;
}
}
2026-07-23 10:11:24 +00:00
obj = { STANDARD_EASING: require("Button").STANDARD_EASING, withTiming: require("withTiming").withTiming, visibility: sharedValue };
2026-07-20 16:05:17 +00:00
N.__closure = obj;
N.__workletHash = 5743780040676;
2026-07-23 10:11:24 +00:00
N.__initData = c10;
2026-07-20 16:05:17 +00:00
obj1 = {};
animatedStyle = obj2.useAnimatedStyle(N);
tmp7 = jsxs;
tmp8 = Fragment;
obj2 = { giftStyle: global.giftStyle };
obj2.withConsistentHeight = flag;
items1 = [, ];
2026-07-23 10:11:24 +00:00
items1[0] = jsx(require("PremiumGiftBackgroundAnimation"), obj2);
2026-07-20 16:05:17 +00:00
obj3 = {
onContentSizeChange(arg0) {
if (null == first) {
callback(arg0);
}
}
};
items2 = [, ];
items2[0] = tmp.contentContainer;
tmp11 = null != first;
tmp9 = jsx;
tmp10 = createAnimatedComponent;
if (tmp11) {
2026-07-23 10:11:24 +00:00
tmp11 = first < require("useWindowDimensions")().width;
2026-07-20 16:05:17 +00:00
}
if (tmp11) {
obj4 = {};
obj4.flex = 1;
tmp11 = obj4;
}
items2[1] = tmp11;
obj3.contentContainerStyle = items2;
items3 = [, ];
items3[0] = tmp.scrollView;
items3[1] = animatedStyle;
obj3.style = items3;
obj3.horizontal = true;
obj3.showsHorizontalScrollIndicator = false;
items1[1] = tmp9(tmp10, obj3);
obj1.children = items1;
return tmp7(tmp8, obj1);
}
}
2026-07-23 10:11:24 +00:00
({ jsx: closure_5, Fragment: closure_6, jsxs: closure_7 } = jsxProd);
2026-07-25 08:10:48 +00:00
let closure_8 = require("module_3992").createAnimatedComponent(require("get ActivityIndicator").ScrollView);
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { flex: 1, marginTop: require("_createForOfIteratorHelperLoose").space.PX_24 };
2026-07-20 16:05:17 +00:00
obj.scrollView = obj;
obj.contentContainer = { justifyContent: "center" };
2026-07-23 10:11:24 +00:00
let closure_9 = _createForOfIteratorHelperLoose.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-25 08:10:48 +00:00
let obj = require(8736) /* importDefaultResult1 */;
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 };