/* Metro module 1212; source: unknown; dependencies: [6, 7, 15, 17, 18, 31, 27, 1205, 1009, 1206, 1207, 1209, 1210, 1211] */ import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */ import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */ import Module00017 from './module-00017.js'; /* Metro dependency 17 */ import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */ import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */ import * as Module01206Module from './module-01206.js'; /* Metro dependency 1206 */ import * as Module01207Module from './module-01207.js'; /* Metro dependency 1207 */ import * as Module01209Module from './module-01209.js'; /* Metro dependency 1209 */ import * as moduleValue2 from './module-01210.js'; /* Metro dependency 1210 */ function _fun13439(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:6, offset: 0x00deaf49, size: 285 bytes, params: 8, frame: 20 var closure; let value = this; let env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let env0_2 = ClassCallCheck; let env0_3 = CreateClass; let value2 = ReactModule; if (!(value && value.__awaiter)) { closure = function(a0, a1, a2, a3) { var r2; var value = a2; var env0_0 = a0; var env0_1 = a1; var env0_2 = value; var env0_3 = a3; r2 = value || global.Promise; value = Object.create(r2.prototype, {constructor: {value: r2}}); var value2 = new r2(_fun13444); return value2 instanceof Object ? value2 : value; }; } const Component = value2.Component; value = _fun13456(Component); exports.getCapturedScreenshot = getCapturedScreenshot; exports.ScreenshotButton = value; function _isNativeReflectConstruct_13440() { // fn#13440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:223, offset: 0x00deb066, size: 94 bytes, params: 1, frame: 18 var Boolean; var prototype; var valueOf; var call; var Reflect; var construct; var closure; var value; var error; try { Boolean = global.Boolean; prototype = Boolean.prototype; valueOf = prototype.valueOf; call = valueOf.call; Reflect = global.Reflect; construct = Reflect.construct; Boolean = global.Boolean; closure = function() { }; value = Reflect.apply(construct, Reflect, [Boolean, [], closure]); value = Reflect.apply(call, valueOf, [value]); var result = !value; } catch (error) { } return (_isNativeReflectConstruct_13440_isNativeReflectConstruct = function() { return !!result; })(); } function _fun13443(a0, a1, a2, a3) { // fn#13443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:472, offset: 0x00deb0c4, size: 75 bytes, params: 5, frame: 12 let value = a2; const env0_0 = a0; const env0_1 = a1; const env0_3 = a3; let r2 = value || global.Promise; value = Object.create(r2.prototype, {constructor: {value: r2}}); r2 = new r2(_fun13444); return r2 instanceof Object ? r2 : value; function _fun13444(a0, a1) { // fn#13444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:518, offset: 0x00deb10f, size: 98 bytes, params: 3, frame: 16 const env0_0 = a0; const env0_1 = a1; const step_134472 = step_13447; const value2 = importAll.apply(env0_0, require || []); step_134472(value2.next()); function fulfilled_13445(a0) { // fn#13445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:532, offset: 0x00d57fb9, size: 56 bytes, params: 2, frame: 12 var value; var step_13447Binding; var value2; var next; var value3; var error; try { value = environment; step_13447Binding = step_13447; value2 = environment.__proto__; next = importAll.next; value3 = Reflect.apply(next, importAll, [a0]); step_13447Binding(value3); } catch (error) { require(error); } } function rejected_13446(a0) { // fn#13446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:589, offset: 0x00d57ff1, size: 57 bytes, params: 2, frame: 12 var value; var step_13447Binding; var value2; var value3; var error; try { value = environment; step_13447Binding = step_13447; value2 = environment.__proto__; value3 = importAll.throw(a0); step_13447Binding(value3); } catch (error) { require(error); } } function step_13447(a0) { // fn#13447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:646, offset: 0x00deb171, size: 77 bytes, params: 2, frame: 14 var value; if (a0.done) { env0_0(a0.value); } else { value = a0.value; value = step_13447Adopt(value); value.then(fulfilled_13445, rejected_13446); } function step_13447Adopt(a0) { // fn#13448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:681, owner: step_13447.adopt, offset: 0x00deb1be, size: 54 bytes, params: 2, frame: 12 const value = a0; return value instanceof env2_2 ? value : new env2_2(_fun13449); function _fun13449(a0) { // fn#13449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:730, offset: 0x00cd9b0e, size: 19 bytes, params: 2, frame: 11 a0(env0_0); } } } } } function takeScreenshot_13450() { // fn#13450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:825, offset: 0x00deb1f4, size: 28 bytes, params: 1, frame: 14 return env0_13(undefined, undefined, undefined, _fun13452); function* _fun13452() { // fn#13452, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:882, offset: 0x00deb219, size: 72 bytes, params: 1, frame: 14 var environment; if (true) { value = environment.__proto__.__proto__; env2_0(env2_1[7]).hideScreenshotButton(); global.setTimeout(_fun13453, 100); } function _fun13453() { // fn#13453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:937, offset: 0x00deb261, size: 28 bytes, params: 1, frame: 14 return env3_13(undefined, undefined, undefined, _fun13455); function* _fun13455() { // fn#13455, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:979, offset: 0x00deb286, size: 137 bytes, params: 1, frame: 16 if (true) { value = environment.__proto__.__proto__.__proto__.__proto__.__proto__; var NATIVE = env5_0(env5_1[8]).NATIVE; yield NATIVE.captureScreenshot(); var value3 = undefined; if (false) { return value3; } env5_12 = value3 && value3.length > 0 ? value3[0] : 'ErrorCapturingScreenshot'; env5_0(env5_1[7]).showFeedbackWidget(); } } } } } function _fun13456(a0) { // fn#13456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:1131, offset: 0x00deb30f, size: 114 bytes, params: 2, frame: 16 const ScreenshotButton2 = ScreenshotButton; Inherits(ScreenshotButton2, a0); return env0_3(ScreenshotButton2, [{key: 'componentDidMount', value: function() { var env0_0 = this; this._themeListener = Appearance.addChangeListener(_fun13459); }}, {key: 'componentWillUnmount', value: function() { if (this._themeListener) { this._themeListener.remove(); } }}, {key: 'render', value: value_13461}]); function ScreenshotButton(a0) { // fn#13457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:1143, offset: 0x00deb381, size: 145 bytes, params: 2, frame: 20 const value = environment.__proto__; env1_2(this, ScreenshotButton); const items2 = [a0]; const value3 = env1_5(ScreenshotButton); const value6 = env1_4(this, _isNativeReflectConstruct_13440() ? global.Reflect.construct(value3, items2, env1_5(this).constructor) : value3.apply(this, items2)); (Module01206Module).lazyLoadFeedbackIntegration(); return value6; } function value_13458() { // fn#13458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:1491, offset: 0x00deb412, size: 42 bytes, params: 1, frame: 12 this._themeListener = Appearance.addChangeListener(_fun13459); function _fun13459() { // fn#13459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:1572, offset: 0x00de92fe, size: 21 bytes, params: 1, frame: 9 env0_0.forceUpdate(); } } function value_13461() { // fn#13461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1339:1742, offset: 0x00deb43c, size: 582 bytes, params: 1, frame: 26 const value2 = undefined; const theme = (Module01207Module).getTheme(); let Object = global.Object; let assign = Object.assign; const Object2 = global.Object; const value5 = Reflect.apply(assign, Object, [Object2.assign({}, (Module01209Module).defaultScreenshotButtonConfiguration), this.props]); const object = {}; Object = global.Object; assign = Object.assign; const Object3 = global.Object; const assign3 = Object3.assign; const value6 = Reflect.apply(assign3, Object3, [{}, moduleValue2.defaultScreenshotButtonStyles(theme).triggerButton]); let styles = this.props.styles; object.triggerButton = Reflect.apply(assign, Object, [value6, styles === null || value2 === styles ? value2 : styles.triggerButton]); Object = global.Object; assign = Object.assign; const Object4 = global.Object; const assign4 = Object4.assign; const value7 = Reflect.apply(assign4, Object4, [{}, moduleValue2.defaultScreenshotButtonStyles(theme).triggerText]); styles = this.props.styles; object.triggerText = Reflect.apply(assign, Object, [value7, styles === null || value2 === styles ? value2 : styles.triggerText]); Object = global.Object; assign = Object.assign; const Object5 = global.Object; const assign5 = Object5.assign; const value8 = Reflect.apply(assign5, Object5, [{}, moduleValue2.defaultScreenshotButtonStyles(theme).triggerIcon]); styles = this.props.styles; object.triggerIcon = Reflect.apply(assign, Object, [value8, styles === null || value2 === styles ? value2 : styles.triggerIcon]); const binding = env1_7; const createElement = binding.createElement; const object2 = {}; object2.style = object.triggerButton; object2.onPress = takeScreenshot_13450; object2.accessibilityLabel = value5.triggerAriaLabel; const createElement2 = binding.createElement; const object4 = {}; object4.uri = (require(1211) /* metro dependency 1211 */).screenshotIcon; return Reflect.apply(createElement, binding, [TouchableOpacity, object2, Reflect.apply(createElement2, binding, [Image, {source: object4, style: object.triggerIcon}]), binding.createElement(Text, {style: object.triggerText, testID: 'sentry-feedback-screenshot-button'}, value5.triggerLabel)]); } } function getCapturedScreenshot() { // fn#13462, offset: 0x00deb682, size: 15 bytes, params: 1, frame: 3 return env0_12; } } global.__d(_fun13439, 1212, [6, 7, 15, 17, 18, 31, 27, 1205, 1009, 1206, 1207, 1209, 1210, 1211]) /* metro module 1212, dependencies: [6, 7, 15, 17, 18, 31, 27, 1205, 1009, 1206, 1207, 1209, 1210, 1211] */;