/* Metro module 1205; source: unknown; dependencies: [15, 17, 18, 6, 7, 1206, 1010, 826] */ 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 Module01206Module from './module-01206.js'; /* Metro dependency 1206 */ function _fun13379(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:6, offset: 0x00de9b06, size: 356 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const NOOP_SET_VISIBILITY = function() { }; let value = _fun13385(); value._isVisible = false; const value2 = _fun13393(value); const value3 = _fun13396(value); value = _fun13399(value); exports.PULL_DOWN_CLOSE_THRESHOLD = 200; exports.SLIDE_ANIMATION_DURATION = 200; exports.BACKGROUND_ANIMATION_DURATION = 200; exports.FeedbackWidgetManager = value2; exports.FeedbackButtonManager = value3; exports.ScreenshotButtonManager = value; exports.showFeedbackButton = showFeedbackButton; exports.hideFeedbackButton = hideFeedbackButton; exports.showFeedbackWidget = showFeedbackWidget; exports.showScreenshotButton = showScreenshotButton; exports.hideScreenshotButton = hideScreenshotButton; exports.resetFeedbackButtonManager = resetFeedbackButtonManager; exports.resetFeedbackWidgetManager = resetFeedbackWidgetManager; exports.resetScreenshotButtonManager = resetScreenshotButtonManager; function _callSuper_13380(a0, a1, a2) { // fn#13380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:148, offset: 0x00de9c6a, size: 100 bytes, params: 4, frame: 20 var r0; var Reflect; let value = a2; const value3 = Module00017(a1); if (_isNativeReflectConstruct_13381()) { Reflect = global.Reflect; value = Reflect.construct(value3, value || [], Module00017(a0).constructor); r0 = value; } else { value = value3.apply(a0, value); r0 = value; } return PossibleConstructorReturn(a0, r0); } function _isNativeReflectConstruct_13381() { // fn#13381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:279, offset: 0x00de9cce, 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_13381_isNativeReflectConstruct = function() { return !!result; })(); } function _fun13385() { // fn#13385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:539, offset: 0x00de9d2c, size: 175 bytes, params: 1, frame: 16 return CreateClass(FeedbackManager, null, [{key: '_feedbackComponentName', get: function() { var Error = global.Error; throw new Error('Subclasses must override feedbackComponentName'); }}, {key: 'initialize', value: function(a0) { this._setVisibility = a0; }}, {key: 'reset', value: function() { this._isVisible = false; this._setVisibility = NOOP_SET_VISIBILITY; }}, {key: 'show', value: function() { if (this._setVisibility !== NOOP_SET_VISIBILITY) { this._isVisible = true; this._setVisibility(true); } else { global.console.warn('[Sentry] ' + this._feedbackComponentName + " requires 'Sentry.wrap(RootComponent)' to be called before 'show" + this._feedbackComponentName + "()'."); } }}, {key: 'hide', value: function() { if (this._setVisibility !== NOOP_SET_VISIBILITY) { this._isVisible = false; this._setVisibility(false); } else { global.console.warn('[Sentry] ' + this._feedbackComponentName + " requires 'Sentry.wrap(RootComponent)' before interacting with the widget."); } }}, {key: 'isFormVisible', value: function() { return this._isVisible; }}]); function FeedbackManager() { // fn#13386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:560, offset: 0x00de9ddb, size: 27 bytes, params: 1, frame: 13 env1_5(this, FeedbackManager); } } function _fun13393(a0) { // fn#13393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:1484, offset: 0x00de9f1f, size: 71 bytes, params: 2, frame: 16 const FeedbackWidgetManager2 = FeedbackWidgetManager; Inherits(FeedbackWidgetManager2, a0); return CreateClass(FeedbackWidgetManager2, null, [{key: '_feedbackComponentName', get: function() { return 'FeedbackWidget'; }}]); function FeedbackWidgetManager() { // fn#13394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:1496, offset: 0x00de9f66, size: 42 bytes, params: 1, frame: 16 env1_5(this, FeedbackWidgetManager); return _callSuper_13380(this, FeedbackWidgetManager, arguments); } } function _fun13396(a0) { // fn#13396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:1761, offset: 0x00de9f96, size: 71 bytes, params: 2, frame: 16 const FeedbackButtonManager2 = FeedbackButtonManager; Inherits(FeedbackButtonManager2, a0); return CreateClass(FeedbackButtonManager2, null, [{key: '_feedbackComponentName', get: function() { return 'FeedbackButton'; }}]); function FeedbackButtonManager() { // fn#13397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:1773, offset: 0x00de9f66, size: 42 bytes, params: 1, frame: 16 env1_5(this, FeedbackButtonManager); return _callSuper_13380(this, FeedbackButtonManager, arguments); } } function _fun13399(a0) { // fn#13399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:2038, offset: 0x00de9fe3, size: 71 bytes, params: 2, frame: 16 const ScreenshotButtonManager2 = ScreenshotButtonManager; Inherits(ScreenshotButtonManager2, a0); return CreateClass(ScreenshotButtonManager2, null, [{key: '_feedbackComponentName', get: function() { return 'ScreenshotButton'; }}]); function ScreenshotButtonManager() { // fn#13400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:2050, offset: 0x00de9f66, size: 42 bytes, params: 1, frame: 16 env1_5(this, ScreenshotButtonManager); return _callSuper_13380(this, ScreenshotButtonManager, arguments); } } function showFeedbackButton() { // fn#13402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:2532, offset: 0x00dea030, size: 51 bytes, params: 1, frame: 12 (Module01206Module).lazyLoadAutoInjectFeedbackButtonIntegration(); env0_9.show(); } function hideFeedbackButton() { // fn#13403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:2648, offset: 0x00dea063, size: 21 bytes, params: 1, frame: 9 env0_9.hide(); } function showFeedbackWidget() { // fn#13404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:2710, offset: 0x00dea078, size: 51 bytes, params: 1, frame: 12 (Module01206Module).lazyLoadAutoInjectFeedbackIntegration(); env0_8.show(); } function showScreenshotButton() { // fn#13405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:2822, offset: 0x00dea0ab, size: 120 bytes, params: 1, frame: 14 if ((require(1010) /* metro dependency 1010 */).isWeb()) { (require(826) /* metro dependency 826 */).debug.warn('ScreenshotButton is not supported on Web.'); } else { (require(1206) /* metro dependency 1206 */).lazyLoadAutoInjectScreenshotButtonIntegration(); env0_10.show(); } } function hideScreenshotButton() { // fn#13406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:3026, offset: 0x00dea123, size: 21 bytes, params: 1, frame: 9 env0_10.hide(); } function resetFeedbackButtonManager() { // fn#13407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:3098, offset: 0x00dea138, size: 21 bytes, params: 1, frame: 9 env0_9.reset(); } function resetFeedbackWidgetManager() { // fn#13408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:3177, offset: 0x00dea14d, size: 21 bytes, params: 1, frame: 9 env0_8.reset(); } function resetScreenshotButtonManager() { // fn#13409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1332:3258, offset: 0x00dea162, size: 21 bytes, params: 1, frame: 9 env0_10.reset(); } } global.__d(_fun13379, 1205, [15, 17, 18, 6, 7, 1206, 1010, 826]) /* metro module 1205, dependencies: [15, 17, 18, 6, 7, 1206, 1010, 826] */;