/* Metro module 14935; source: modules/launch_welcome/native/LaunchWelcomeNuxContainer.tsx; dependencies: [31, 27, 7607, 33, 4017, 4501, 697, 4559, 1478, 14934, 4048, 4577, 4563, 4573, 1244, 2] */ function _fun112954(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15132:6, offset: 0x023e304a, size: 522 bytes, params: 8, frame: 23 var object2; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importAll(31) /* metro dependency 31 */; let value = require(27) /* metro dependency 27 */; const Pressable = value.Pressable; const env0_4 = value.StyleSheet; const env0_5 = value.View; const env0_6 = (require(7607) /* metro dependency 7607: MainTabsConstants */).MODE_CHANGE_PHYSICS; value = require(33) /* metro dependency 33 */; const env0_7 = value.jsx; const env0_8 = value.jsxs; const env0_9 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).createAnimatedComponent(Pressable); const env0_10 = {'mass': 1, 'stiffness': 392, 'damping': 12.9}; const env0_11 = {'mass': 1, 'stiffness': 169, 'damping': 17.4}; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; object2 = {}; object2.copyContainer = {alignItems: 'center'}; let TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT; object2.nuxTitle = {color: TEXT_DEFAULT}; TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT; object2.nuxSubtitle = {color: TEXT_DEFAULT, opacity: 0.5}; const object3 = {}; const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object3.marginVertical = PX_12; object3.width = 1; TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT; object3.backgroundColor = TEXT_DEFAULT; object2.line = object3; object2.backdrop = {'flex': 1, 'justifyContent': 'flex-end'}; const env0_12 = Reflect.apply(createStyles, value, [object2]); object2 = {code: "function LaunchWelcomeNuxContainerTsx1(){const{withSpring,isNuxVisible,isTabsVisible,MODE_CHANGE_PHYSICS,isScreenReaderEnabled}=this.__closure;return{opacity:withSpring(isNuxVisible&&isTabsVisible?1:0,MODE_CHANGE_PHYSICS,'animate-always'),display:isScreenReaderEnabled&&!isNuxVisible?'none':undefined};}"}; object2 = {code: 'function LaunchWelcomeNuxContainerTsx2(){const{LINE_HEIGHT,animation}=this.__closure;return{height:LINE_HEIGHT+animation.get()};}'}; object2 = {code: "function LaunchWelcomeNuxContainerTsx3(){const{withSpring,isTabsVisible,isNuxVisible,MODE_CHANGE_PHYSICS}=this.__closure;return{blurAmount:withSpring(isTabsVisible&&isNuxVisible?0.3:0,MODE_CHANGE_PHYSICS,'animate-always')};}"}; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launch_welcome/native/LaunchWelcomeNuxContainer.tsx'); exports.default = LaunchWelcomeNuxContainer; } function LaunchWelcomeNuxContainer({descriptors, isTabsVisible}) { // fn#112955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15132:1424, offset: 0x023e3254, size: 992 bytes, params: 2, frame: 32 var object2; const styles = useStyles(); const value2 = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled(); const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width; const value3 = (require(14934) /* metro dependency 14934: useLaunchWelcomeNux */).useLaunchWelcomeNuxVisible(); const isNuxVisible = value3.isNuxVisible; const env0_3 = value3.setNuxVisible; const value4 = (importDefault(4048) /* metro dependency 4048: useTheme */)(); const value5 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0); let binding = env0_3; binding.useEffect(_fun112956, [value5]); const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle; let closure = LaunchWelcomeNuxContainerA; object2 = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, isNuxVisible: isNuxVisible, isTabsVisible: isTabsVisible}; object2.MODE_CHANGE_PHYSICS = MODE_CHANGE_PHYSICS; object2.isScreenReaderEnabled = value2; closure.__closure = object2; closure.__workletHash = 60937156682; closure.__initData = env0_13; const value6 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]); const moduleValue5 = reanimatedRexportModule; useAnimatedStyle = moduleValue5.useAnimatedStyle; closure = LaunchWelcomeNuxContainerD; closure.__closure = {LINE_HEIGHT: 79, animation: value5}; closure.__workletHash = 12238304514300; closure.__initData = env0_14; const value7 = Reflect.apply(useAnimatedStyle, moduleValue5, [closure]); const moduleValue6 = reanimatedRexportModule; const useAnimatedProps = moduleValue6.useAnimatedProps; closure = function() { var moduleValue = require(dependencyMap[11]); return {blurAmount: moduleValue.withSpring(isTabsVisible && isNuxVisible ? 0.3 : 0, MODE_CHANGE_PHYSICS, 'animate-always')}; }; closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, isTabsVisible: isTabsVisible, isNuxVisible: isNuxVisible, MODE_CHANGE_PHYSICS: MODE_CHANGE_PHYSICS}; closure.__workletHash = 13587467032843; closure.__initData = env0_15; const value8 = Reflect.apply(useAnimatedProps, moduleValue6, [closure]); const Object = global.Object; const length = Object.keys(descriptors).length; if (length <= 3) { return null; } closure = function() { setNuxVisible(false); }; binding = env0_9; const items4 = [StyleSheet.absoluteFill, value6]; const r5 = isNuxVisible && isTabsVisible ? 'auto' : 'none'; const VisualEffectViewAnimated = importDefault(4563) /* metro dependency 4563: VisualEffectViewAnimated */; const items2 = [styles.copyContainer]; items2[1] = {marginRight: width * (length - 3) / length}; const Text = (require(4573) /* metro dependency 4573: Text */).Text; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const string = intl.string; const MdrITN = (require(1244) /* metro dependency 1244: indexNative */).t.MdrITN; const items3 = [{Reflect.apply(string, intl, [MdrITN])}]; items3[1] = {intl.string((require(1244) /* metro dependency 1244: indexNative */).t.lfpjfT)}; const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View; items3[2] = ; return ((Component) => {items3})(binding); } function _fun112956() { // fn#112956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15132:1685, offset: 0x023e3634, size: 204 bytes, params: 1, frame: 29 var environment; const binding = env0_4; const set = binding.set; const value = environment.__proto__; const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; const withRepeat = reanimatedRexportModule.withRepeat; const moduleValue2 = reanimatedRexportModule; const withSequence = moduleValue2.withSequence; const moduleValue3 = reanimatedRexportModule; let withDelay = moduleValue3.withDelay; const springModule = require(4577) /* metro dependency 4577: spring */; const value3 = Reflect.apply(withDelay, moduleValue3, [2000, springModule.withSpring(8, env1_10, 'animate-always')]); const moduleValue5 = reanimatedRexportModule; withDelay = moduleValue5.withDelay; const moduleValue6 = springModule; Reflect.apply(set, binding, [Reflect.apply(withRepeat, reanimatedRexportModule, [Reflect.apply(withSequence, moduleValue2, [value3, Reflect.apply(withDelay, moduleValue5, [2000, moduleValue6.withSpring(0, env1_11, 'animate-always')])]), -1])]); return _fun112957; } function LaunchWelcomeNuxContainerA() { // fn#112958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15132:1951, owner: LaunchWelcomeNuxContainer.A, offset: 0x023e372d, size: 106 bytes, params: 1, frame: 19 const value = environment.__proto__; const value2 = undefined; const springModule = require(4577) /* metro dependency 4577: spring */; return {opacity: springModule.withSpring(isNuxVisible && isTabsVisible ? 1 : 0, MODE_CHANGE_PHYSICS, 'animate-always'), display: env0_1 ? isNuxVisible ? value2 : 'none' : value2}; } function LaunchWelcomeNuxContainerD() { // fn#112959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15132:2255, owner: LaunchWelcomeNuxContainer.D, offset: 0x023e3797, size: 31 bytes, params: 1, frame: 10 const object2 = {}; object2.height = 79 + env0_4.get(); return object2; } function _fun112957() { // fn#112957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15132:1872, offset: 0x023e3700, size: 45 bytes, params: 1, frame: 11 const value = environment.__proto__.__proto__; return (require(4017) /* metro dependency 4017: ReanimatedRexport */).cancelAnimation(env1_4); }