/* Metro module 14865; source: modules/icymi/native/ICYMIShareModal.tsx; dependencies: [57, 5, 31, 27, 1379, 4645, 4644, 661, 7690, 4503, 33, 4501, 697, 9051, 1244, 14866, 3857, 1478, 4003, 7701, 14867, 7704, 3963, 3868, 5463, 9770, 9788, 4578, 5080, 7232, 1360, 7076, 7879, 491, 4650, 7067, 7880, 1585, 477, 5287, 9603, 5282, 9761, 2] */ import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */ 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 ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */ import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */ import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */ import UseColorThemeBackground from '../../client_themes/native/useColorThemeBackground.tsx'; /* Metro dependency 4003 */ import UploadAttachmentStore from '../../../stores/UploadAttachmentStore.tsx'; /* Metro dependency 4644 */ import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */ import UseSafeAreaInsetsKeyboardAwareNative from '../../safe_area/useSafeAreaInsetsKeyboardAware.native.tsx'; /* Metro dependency 5463 */ import ThemedGradient from '../../client_themes/native/ThemedGradient.tsx'; /* Metro dependency 7704 */ import SearchableDestinationList from '../../share/native/SearchableDestinationList.tsx'; /* Metro dependency 9761 */ import Module14867 from '../../../by-id/module-14867.jsx'; /* Metro dependency 14867 */ 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 PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */ import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */ import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as NativeModule from '../../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */ import * as ClientThemesUtilsModule from '../../client_themes/native/ClientThemesUtils.tsx'; /* Metro dependency 3963 */ import * as MessageConstantsModule from '../../messages/MessageConstants.tsx'; /* Metro dependency 4503 */ import * as DraftStoreModule from '../../../stores/DraftStore.tsx'; /* Metro dependency 4645 */ import * as Module05287Module from '../../../by-id/module-05287.js'; /* Metro dependency 5287 */ import * as UserRowConstantsModule from '../../main_tabs_v2/native/shared_components/user_list/UserRowConstants.tsx'; /* Metro dependency 7690 */ import * as ClientThemesOverridesModule from '../../client_themes/native/ClientThemesOverrides.tsx'; /* Metro dependency 7701 */ import * as ShareEventUtilsModule from '../../guild_scheduled_events/utils/ShareEventUtils.tsx'; /* Metro dependency 9051 */ import * as HeaderSharedModule from '../../main_tabs_v2/native/shared_components/HeaderShared.tsx'; /* Metro dependency 9603 */ import * as UseShareChatInputActionsModule from '../../share/native/useShareChatInputActions.tsx'; /* Metro dependency 9770 */ function _fun112421(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:6, offset: 0x023cae8f, size: 724 bytes, params: 8, frame: 24 const env0_0 = require; const ICYMIShareModal2 = ICYMIShareModal; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = JsxRuntimeModule; const env0_13 = value.jsx; const env0_14 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; object = {}; const object2 = {}; let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object2.paddingHorizontal = PX_16; const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; object2.paddingTop = PX_8; object.headerContainer = object2; const object3 = {'borderRadius': null, 'overflow': 'hidden', 'borderWidth': 1}; object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md; const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG; object3.borderColor = BORDER_STRONG; object.preview = object3; object.base = {position: 'relative'}; let BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW; object.contentContainer = {backgroundColor: BACKGROUND_BASE_LOW}; const object6 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'flex-end'}; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object6.paddingHorizontal = PX_16; let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object6.paddingVertical = PX_12; PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object6.gap = PX_12; BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW; object6.backgroundColor = BACKGROUND_BASE_LOW; object6.borderTopWidth = 1; const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE; object6.borderTopColor = BORDER_SUBTLE; object.footer = object6; const env0_15 = Reflect.apply(createStyles, value, [object]); (FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMIShareModal.tsx'); exports.default = ICYMIShareModal2; exports.GuildEventShareModal = GuildEventShareModal; exports.GameShareModal = GameShareModal; function Screenshot({render, setUri}) { // fn#112422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:892, offset: 0x023cb163, size: 518 bytes, params: 2, frame: 35 const styles = useStyles(); const value2 = ReactModule.useRef(null); ReactModule.useEffect(function() { global.setTimeout(_fun112424, 500); }, [setUri]); const width = (UseWindowDimensionsNative)().width; const value3 = (UseColorThemeBackground)(); const value4 = (ClientThemesOverridesModule).useClientThemesOverride(); const items2 = [styles.preview]; items2[1] = {width: width}; const defaultImport = Module14867; const {LEVEL_7, LEVEL_8} = (ClientThemesUtilsModule).OverlayOpacity; const themedGradient = ( ); const ThemeContextProvider = (NativeModule).ThemeContextProvider; return ( {((Component) => {themedGradient}{render()})(defaultImport)} ); function _fun112423() { // fn#112423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:973, offset: 0x023cb369, size: 33 bytes, params: 1, frame: 13 global.setTimeout(_fun112424, 500); function _fun112424() { // fn#112424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:990, offset: 0x023cb38a, size: 69 bytes, params: 1, frame: 13 var environment; var r0; let value = environment.__proto__; const current = env1_1.current; value = undefined; if (current == null) { r0 = value; } else if (current.capture == null) { r0 = value; } else { value = current.capture(); value = value.then(function(a0) { setUri(a0); }); r0 = value; } return r0; } } } function GravityShareFooter({count, isSending, onSend}) { // fn#112426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15062:1649, offset: 0x023cb3e2, size: 589 bytes, params: 2, frame: 31 const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const styles = useStyles(); const [property, property2] = Module00057(ReactModule.useState(''), 2); const insets = (UseSafeAreaInsetsKeyboardAwareNative)({includeKeyboardHeight: true}).insets; const {textInputRef, handleSelectionChange, handleMessageFocus, handleMessageBlur, handlePressEmoji} = (UseShareChatInputActionsModule).useShareChatInputActions(property2); const value6 = ReactModule.useCallback(_fun112427, [property, onSend]); const r12 = count <= 1 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TXNS7S) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.jWtYUm, {count: count}); const value9 = ReactModule.useMemo(function() { var stylesBinding = styles; return [stylesBinding.footer, {paddingBottom: stylesBinding.footer.paddingVertical + insets.bottom}]; }, [styles.footer, insets.bottom]); const value10 = count === 0; return ( value10 ? null : ( {((Component) => )(importDefault(9788) /* metro dependency 9788: ShareChatInput */)} {((Button) =>