/* Metro module 8868; source: modules/user_profile/native/AddOrOpenAppButton.tsx; dependencies: [5, 57, 31, 7861, 661, 1483, 33, 8869, 8870, 4080, 6797, 8809, 3856, 1471, 6249, 10083, 1244, 4578, 697, 6772, 4603, 4015, 1583, 683, 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 ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ 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 ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */ import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as AppLauncherNativeConstantsModule from '../../app_launcher/native/AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */ import * as ToastUtilsModule from '../../toast/native/ToastUtils.tsx'; /* Metro dependency 3856 */ import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */ import * as ApplicationCommandIndexStoreModule from '../../application_commands/ApplicationCommandIndexStore.tsx'; /* Metro dependency 7861 */ import * as GetApplicationInstallURLModule from '../../applications/getApplicationInstallURL.tsx'; /* Metro dependency 8809 */ import * as ApplicationUtilsModule from '../../../utils/native/ApplicationUtils.tsx'; /* Metro dependency 8870 */ function _fun69132(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9053:6, offset: 0x01c6a3d0, size: 262 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/user_profile/native/AddOrOpenAppButton.tsx'); exports.default = AddOrOpenAppButton; function AddAppButton({application, guildId}) { // fn#69133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9053:217, offset: 0x01c6a4d6, size: 451 bytes, params: 2, frame: 24 var r6; var defaultImport; const useCallback = ReactModule.useCallback; let customInstallUrl = application.customInstallUrl; const value2 = Reflect.apply(useCallback, ReactModule, [_fun69134, [customInstallUrl, application.id, application.installParams, application.integrationTypesConfig, guildId]]); const value3 = ReactModule.useCallback(_fun69135, [application]); customInstallUrl = application.customInstallUrl; if (customInstallUrl == null) { r6 = (require(10083) /* metro dependency 10083: PlusSmallIcon */).PlusSmallIcon; } else { defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */; r6 = defaultImport.isDiscordUrl(customInstallUrl) ? (require(10083) /* metro dependency 10083: PlusSmallIcon */).PlusSmallIcon : (require(6249) /* metro dependency 6249: LinkExternalSmallIcon */).LinkExternalSmallIcon; } const value4 = ReactModule.useMemo(function() { var object = {name: 'longpress'}; object.label = require(dependencyMap[16]).intl.string(require(dependencyMap[16]).t.XWDihq); return [object]; }, []); const value5 = ReactModule.useCallback(_fun69137, [application]); const Button = (ButtonNativeModule).Button; const intl = (IndexNativeModule).intl; const string = intl.string; const NgXl3C = (IndexNativeModule).t.NgXl3C; const WHITE = (Native).colors.WHITE; return (