/* Metro module 7641; source: modules/premium/native/gifting/PremiumGiftBackgroundSelect.tsx; dependencies: [57, 31, 27, 33, 4017, 4501, 697, 1478, 4504, 1305, 7642, 7669, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseWindowDimensionsNative from '../../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import ReanimatedRexport from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as TimingModule from '../../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
import * as NativeGiftContextModule from '../../../payments/native/NativeGiftContext.tsx'; /* Metro dependency 7669 */
function _fun61180(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:6, offset: 0x0171cfea, size: 332 bytes, params: 8, frame: 22
const env0_0 = require;
const GiftBackgroundSelect2 = GiftBackgroundSelect;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const ScrollView = (ReactNativeModule).ScrollView;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.Fragment;
const env0_7 = value.jsxs;
const env0_8 = (ReanimatedRexport).createAnimatedComponent(ScrollView);
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const PX_24 = (Native).space.PX_24;
const env0_9 = Reflect.apply(createStyles, value, [{scrollView: {flex: 1, marginTop: PX_24},
contentContainer: {justifyContent: 'center'}}]);
object = {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)};}'};
(FileImportTrackerModule).fileFinishedImporting('modules/premium/native/gifting/PremiumGiftBackgroundSelect.tsx');
exports.default = PremiumGiftBackgroundSelect;
exports.GiftBackgroundSelect = GiftBackgroundSelect2;
function GiftBackgroundSelect({giftStyle, withConsistentHeight}) { // fn#61181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:578, offset: 0x0171d136, size: 473 bytes, params: 2, frame: 28
withConsistentHeight = withConsistentHeight === undefined || withConsistentHeight;
const styles = useStyles();
const width = (UseWindowDimensionsNative)().width;
const [property, env0_1] = Module00057(ReactModule.useState(), 2);
const value4 = (ReanimatedRexportModule).useSharedValue(false);
ReactModule.useEffect(_fun61182, [property, value4]);
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const GiftBackgroundSelectN2 = GiftBackgroundSelectN;
object = {};
const STANDARD_EASING = (NativeModule).STANDARD_EASING;
object.STANDARD_EASING = STANDARD_EASING;
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object.visibility = value4;
GiftBackgroundSelectN2.__closure = object;
GiftBackgroundSelectN2.__workletHash = 5743780040676;
GiftBackgroundSelectN2.__initData = env0_10;
return (
<>
{((Component) => )(importDefault(7642) /* metro dependency 7642: PremiumGiftBackgroundAnimationAndroid */)}
{((Component) => )(env0_8)}
>
);
function _fun61182() { // fn#61182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:757, offset: 0x0171d30f, size: 31 bytes, params: 1, frame: 12
env0_2.set(env0_0 != null);
}
function GiftBackgroundSelectN() { // fn#61183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:823, owner: GiftBackgroundSelect.N, offset: 0x0171d32e, size: 108 bytes, params: 1, frame: 18
const withTiming = TimingModule.withTiming;
const r2 = env0_2.get() ? 1 : 0;
const STANDARD_EASING = (NativeModule).STANDARD_EASING;
return {opacity: Reflect.apply(withTiming, TimingModule, [r2, {easing: STANDARD_EASING, duration: 100}])};
}
function onContentSizeChange(a0) { // fn#61184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:1170, owner: GiftBackgroundSelect.onContentSizeChange, offset: 0x0171d39a, size: 31 bytes, params: 2, frame: 11
if (env0_0 == null) {
env0_1(a0);
}
}
}
function PremiumGiftBackgroundSelect() { // fn#61185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:1438, offset: 0x0171d3b9, size: 75 bytes, params: 1, frame: 15
const {giftStyle,
setGiftStyle} = (NativeGiftContextModule).useNativeGiftContext();
return ;
}
}
global.__d(_fun61180, 7641, [57, 31, 27, 33, 4017, 4501, 697, 1478, 4504, 1305, 7642, 7669,
2]) /* metro module 7641, dependencies: [57, 31, 27, 33, 4017, 4501, 697, 1478, 4504, 1305, 7642, 7669, 2] */;