This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,81 +1,90 @@
/* Metro module 4080; source: modules/action_sheet/native/ActionSheetActionCreators.tsx; dependencies: [29, 31, 33, 694, 4081, 4082, 478, 1848, 2] */
import ObjectWithoutProperties from '../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
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 PlatformUtilsModule from '../../../external/discord_common/js/shared/utils/PlatformUtils.tsx'; /* Metro dependency 478 */
function _fun33467(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:6, offset: 0x0102f37b, size: 252 bytes, params: 8, frame: 19
var object2;
let env0_0 = require;
const env0_3 = ['impressionName', 'impressionProperties', 'backdropKind', 'disableHapticOnOpen', 'appEntryKey'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
importAll(31) /* metro dependency 31 */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const closure = showActionSheet;
object2 = {openLazy: function(a0, a1, a2, a3) {
ReactModule;
const showActionSheet2 = showActionSheet;
object = {openLazy: function(a0, a1, a2, a3) {
var env0_0 = a1;
var env0_1 = a2;
var env0_2 = a3;
(a0 instanceof global.Promise ? a0.then(_fun33471) : a0()).then(_fun33472);
}, hideActionSheet: hideActionSheet, hideAllActionSheets: hideAllActionSheets,
setActionSheetZIndex: setActionSheetZIndex, resetActionSheetsForAppEntryKey: resetActionSheetsForAppEntryKey};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ActionSheetActionCreators.tsx');
exports.default = object2;
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/ActionSheetActionCreators.tsx');
exports.default = object;
exports.ACTION_SHEET_HEIGHT_HALF = 'start';
exports.ACTION_SHEET_HEIGHT_EXPANDED = 'expanded';
exports.showActionSheet = closure;
}
exports.showActionSheet = showActionSheet2;
function showActionSheet({content, key, impressionName, impressionProperties, backdropKind, stackingBehavior, disableHapticOnOpen, appEntryKey}) { // fn#33468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:245, offset: 0x0102f477, size: 126 bytes, params: 2, frame: 12
(Dispatcher).wait(_fun33469);
function _fun33469() { // fn#33469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:391, offset: 0x0102f4f5, size: 239 bytes, params: 1, frame: 15
var value2;
var moduleValue;
if (!disableHapticOnOpen) {
value2 = environment.__proto__;
moduleValue = require(4081) /* metro dependency 4081: HapticUtilsNative */;
moduleValue.triggerHapticFeedback((importDefault(4082) /* metro dependency 4082: HapticFeedbackTypes */).IMPACT_LIGHT);
}
if (PlatformUtilsModule.isAndroid()) {
(require(1848) /* metro dependency 1848: KeyboardManagerUtils */).dismissGlobalKeyboard();
}
(Dispatcher).dispatch({type: 'SHOW_ACTION_SHEET', content: content,
key: key, impressionName: impressionName, impressionProperties: impressionProperties,
backdropKind: backdropKind, stackingBehavior: stackingBehavior, appEntryKey: appEntryKey});
}
function showActionSheet({content, key, impressionName, impressionProperties, backdropKind, stackingBehavior, disableHapticOnOpen, appEntryKey}) { // fn#33468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:245, offset: 0x0102f477, size: 126 bytes, params: 2, frame: 12
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun33469);
}
function openLazy(a0, a1, a2, a3) { // fn#33470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:660, offset: 0x0102f5e4, size: 83 bytes, params: 5, frame: 13
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const Promise = global.Promise;
(a0 instanceof Promise ? a0.then(function(a0) {
return a0.default;
}) : a0()).then(_fun33472);
}
function hideActionSheet(a0) { // fn#33473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1034, offset: 0x0102f6ce, size: 54 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'HIDE_ACTION_SHEET', key: a0});
}
function hideAllActionSheets() { // fn#33474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1105, offset: 0x0102f704, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'HIDE_ALL_ACTION_SHEETS'});
}
function setActionSheetZIndex(a0) { // fn#33475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1178, offset: 0x0102f735, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SET_ACTION_SHEET_Z_INDEX', zIndex: a0});
}
function resetActionSheetsForAppEntryKey(a0) { // fn#33476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1264, offset: 0x0102f76e, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY',
appEntryKey: a0});
}
function _fun33469() { // fn#33469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:391, offset: 0x0102f4f5, size: 239 bytes, params: 1, frame: 15
var value2;
var moduleValue;
if (!disableHapticOnOpen) {
value2 = environment.__proto__;
moduleValue = require(4081) /* metro dependency 4081: HapticUtilsNative */;
moduleValue.triggerHapticFeedback((importDefault(4082) /* metro dependency 4082: HapticFeedbackTypes */).IMPACT_LIGHT);
}
const platformUtilsModule = require(478) /* metro dependency 478: PlatformUtils */;
if (platformUtilsModule.isAndroid()) {
(require(1848) /* metro dependency 1848: KeyboardManagerUtils */).dismissGlobalKeyboard();
function openLazy(a0, a1, a2, a3) { // fn#33470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:660, offset: 0x0102f5e4, size: 83 bytes, params: 5, frame: 13
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const Promise = global.Promise;
(a0 instanceof Promise ? a0.then(function(a0) {
return a0.default;
}) : a0()).then(_fun33472);
function _fun33472(a0) { // fn#33472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:738, offset: 0x0102f637, size: 151 bytes, params: 2, frame: 20
const r10 = importDefault ?? ({});
showActionSheet({content: ((Component) => <Component {...env1_4(r10, env1_3)} />)(a0), key: require,
impressionName: r10.impressionName, impressionProperties: r10.impressionProperties,
backdropKind: r10.backdropKind, stackingBehavior: importAll, disableHapticOnOpen: r10.disableHapticOnOpen,
appEntryKey: r10.appEntryKey});
}
}
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SHOW_ACTION_SHEET', content: content,
key: key, impressionName: impressionName, impressionProperties: impressionProperties,
backdropKind: backdropKind, stackingBehavior: stackingBehavior, appEntryKey: appEntryKey});
function hideActionSheet(a0) { // fn#33473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1034, offset: 0x0102f6ce, size: 54 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'HIDE_ACTION_SHEET', key: a0});
}
function hideAllActionSheets() { // fn#33474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1105, offset: 0x0102f704, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'HIDE_ALL_ACTION_SHEETS'});
}
function setActionSheetZIndex(a0) { // fn#33475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1178, offset: 0x0102f735, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'SET_ACTION_SHEET_Z_INDEX', zIndex: a0});
}
function resetActionSheetsForAppEntryKey(a0) { // fn#33476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:1264, offset: 0x0102f76e, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY',
appEntryKey: a0});
}
}
function _fun33472(a0) { // fn#33472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:738, offset: 0x0102f637, size: 151 bytes, params: 2, frame: 20
const r10 = importDefault ?? ({});
showActionSheet({content: ((Component) => <Component {...env1_4(r10, env1_3)} />)(a0), key: require,
impressionName: r10.impressionName, impressionProperties: r10.impressionProperties,
backdropKind: r10.backdropKind, stackingBehavior: importAll, disableHapticOnOpen: r10.disableHapticOnOpen,
appEntryKey: r10.appEntryKey});
function _fun33471(a0) { // fn#33471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4238:708, offset: 0x00fc474f, size: 10 bytes, params: 2, frame: 1
return a0.default;
}
global.__d(_fun33467, 4080, [29, 31, 33, 694, 4081, 4082, 478, 1848,
2]) /* metro module 4080, dependencies: [29, 31, 33, 694, 4081, 4082, 478, 1848, 2] */;
@@ -1,8 +1,10 @@
/* Metro module 6276; source: modules/action_sheet/native/ActionSheetConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun49597(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6454:6, offset: 0x011feab4, size: 280 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ActionSheetConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/ActionSheetConstants.tsx');
exports.ACTION_SHEET_START_HEIGHT_RATIO = 0.6;
exports.ACTION_SHEET_MAX_DYNAMIC_CONTENT_SIZE_RATIO = 0.85;
exports.ACTION_SHEET_BORDER_RADIUS_LEGACY = 8;
@@ -25,3 +27,4 @@ function _fun49597(global, require, importDefault, importAll, module, exports, d
exports.ACTION_SHEET_MINIMUM_BOTTOM_PADDING = 16;
}
global.__d(_fun49597, 6276, [2]) /* metro module 6276, dependencies: [2] */;
@@ -1,10 +1,14 @@
/* Metro module 6513; source: modules/action_sheet/native/ActionSheetContext.tsx; dependencies: [31, 2] */
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 */
function _fun51226(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6691:6, offset: 0x0122c4e5, size: 106 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
let value = ReactModule;
value = value.createContext(null);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ActionSheetContext.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/ActionSheetContext.tsx');
exports.default = value;
}
global.__d(_fun51226, 6513, [31, 2]) /* metro module 6513, dependencies: [31, 2] */;
@@ -1,15 +1,18 @@
/* Metro module 3849; source: modules/action_sheet/native/ActionSheetStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun31752(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:6, offset: 0x01002c62, size: 377 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
const Array = global.Array;
let array = new Array();
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
_fun31759(Store).displayName = 'ActionSheetStore';
array = new array(importDefault(694) /* metro dependency 694: Dispatcher */, {SHOW_ACTION_SHEET: function(a0) {
setContent(a0);
@@ -27,140 +30,150 @@ function _fun31752(global, require, importDefault, importAll, module, exports, d
}, SET_ACTION_SHEET_Z_INDEX: function(a0) {
env0_6 = a0.zIndex;
}, RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY: RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ActionSheetStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/ActionSheetStore.tsx');
exports.default = array;
}
function _isNativeReflectConstruct_31753() { // fn#31753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:148, offset: 0x01002ddb, 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) {
function _isNativeReflectConstruct_31753() { // fn#31753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:148, offset: 0x01002ddb, 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_31753_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_31753_isNativeReflectConstruct = function() {
return !!result;
})();
}
function setContent({content, key, impressionName, impressionProperties, backdropKind, stackingBehavior, appEntryKey}) { // fn#31756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:395, offset: 0x01002e39, size: 226 bytes, params: 2, frame: 19
var binding;
var value4;
var items3;
var value5;
var items2;
stackingBehavior = stackingBehavior === undefined ? 'replaceTopSheet' : stackingBehavior;
appEntryKey = appEntryKey === undefined ? 'main' : appEntryKey;
const object2 = {content: content, key: key, impressionName: impressionName,
impressionProperties: impressionProperties, backdropKind: backdropKind, appEntryKey: appEntryKey};
object2.zIndex = env0_6;
if (stackingBehavior === 'replaceAll') {
items2 = [object2];
} else if (stackingBehavior !== 'stack') {
value4 = env0_5.slice(0, -1).concat(object2);
} else if (env0_5.length < 3) {
binding = env0_5;
items3 = [];
value5 = arraySpread(items3, binding, 0, content);
items3[value5] = object2;
value5 + 1;
} else {
value4 = env0_5.slice(0, -1).concat(object2);
function setContent({content, key, impressionName, impressionProperties, backdropKind, stackingBehavior, appEntryKey}) { // fn#31756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:395, offset: 0x01002e39, size: 226 bytes, params: 2, frame: 19
var binding;
var value4;
var items3;
var value5;
var items2;
stackingBehavior = stackingBehavior === undefined ? 'replaceTopSheet' : stackingBehavior;
appEntryKey = appEntryKey === undefined ? 'main' : appEntryKey;
const object = {content: content, key: key, impressionName: impressionName,
impressionProperties: impressionProperties, backdropKind: backdropKind, appEntryKey: appEntryKey};
object.zIndex = env0_6;
if (stackingBehavior === 'replaceAll') {
items2 = [object];
} else if (stackingBehavior !== 'stack') {
value4 = env0_5.slice(0, -1).concat(object);
} else if (env0_5.length < 3) {
binding = env0_5;
items3 = [];
value5 = arraySpread(items3, binding, 0, content);
items3[value5] = object;
value5 + 1;
} else {
value4 = env0_5.slice(0, -1).concat(object);
}
}
}
function clearContent(a0) { // fn#31757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:730, offset: 0x01002f1b, size: 75 bytes, params: 2, frame: 15
const env0_0 = a0;
env0_5 = a0 == null ? env0_5.slice(0, -1) : env0_5;
env0_5 = env0_5.filter(_fun31758);
}
function clearContent(a0) { // fn#31757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:730, offset: 0x01002f1b, size: 75 bytes, params: 2, frame: 15
const env0_0 = a0;
env0_5 = a0 == null ? env0_5.slice(0, -1) : env0_5;
env0_5 = env0_5.filter(_fun31758);
function _fun31758({key}) { // fn#31758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:773, offset: 0x01002f66, size: 21 bytes, params: 2, frame: 2
return key !== env0_0;
}
function _fun31759(a0) { // fn#31759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:791, offset: 0x01002f7b, size: 137 bytes, params: 2, frame: 16
const closure = ActionSheetStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'initialize', value: function() {
}}, {key: 'impressionName', get: get_31766}, {key: 'impressionProperties', get: get_31767}, {key: 'backdropKind',
get: get_31768}]);
}
function RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY({appEntryKey}) { // fn#31775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:2184, offset: 0x0100322c, size: 67 bytes, params: 2, frame: 12
if (env0_5.filter(function({appEntryKey}) {
return appEntryKey !== appEntryKey;
}).length === env0_5.length) {
return false;
}
}
function ActionSheetStore(a0) { // fn#31760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:803, offset: 0x01003004, size: 172 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_0;
binding(this, ActionSheetStore);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_3(ActionSheetStore);
binding = env1_2;
if (_isNativeReflectConstruct_31753()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_3(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
function _fun31759(a0) { // fn#31759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:791, offset: 0x01002f7b, size: 137 bytes, params: 2, frame: 16
const ActionSheetStore2 = ActionSheetStore;
Inherits(ActionSheetStore2, a0);
return CreateClass(ActionSheetStore2, [{key: 'initialize', value: function() {
}}, {key: 'impressionName', get: get_31766}, {key: 'impressionProperties', get: get_31767}, {key: 'backdropKind',
get: get_31768}]);
function ActionSheetStore(a0) { // fn#31760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:803, offset: 0x01003004, size: 172 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_0;
binding(this, ActionSheetStore);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_3(ActionSheetStore);
binding = env1_2;
if (_isNativeReflectConstruct_31753()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_3(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.getContent = getContent;
value.getStack = getStack;
value.isOpen = isOpen;
value.getKey = getKey;
return value;
function getContent() { // fn#31761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1050, owner: ActionSheetStore.getContent, offset: 0x010030b0, size: 42 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
return env2_5.at(-1)?.content;
}
function getStack() { // fn#31762, owner: ActionSheetStore.getStack, offset: 0x010030da, size: 9 bytes, params: 1, frame: 1
return env2_5;
}
function isOpen() { // fn#31763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1131, owner: ActionSheetStore.isOpen, offset: 0x010030e3, size: 20 bytes, params: 1, frame: 2
return env2_5.length > 0;
}
function getKey() { // fn#31764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1155, owner: ActionSheetStore.getKey, offset: 0x010030f7, size: 42 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
return env2_5.at(-1)?.key;
}
}
function get_31766() { // fn#31766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1321, offset: 0x01003121, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_5.at(-1)?.impressionName;
}
function get_31767() { // fn#31767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1422, offset: 0x0100314c, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_5.at(-1)?.impressionProperties;
}
function get_31768() { // fn#31768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1521, offset: 0x01003177, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_5.at(-1)?.backdropKind;
}
}
value = binding(this, r0);
value.getContent = getContent;
value.getStack = getStack;
value.isOpen = isOpen_31763;
value.getKey = getKey_31764;
return value;
}
function get_31766() { // fn#31766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1321, offset: 0x01003121, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_5.at(-1)?.impressionName;
}
function RESET_ACTION_SHEETS_FOR_APP_ENTRY_KEY({appEntryKey}) { // fn#31775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:2184, offset: 0x0100322c, size: 67 bytes, params: 2, frame: 12
if (env0_5.filter(function({appEntryKey}) {
return appEntryKey !== appEntryKey;
}).length === env0_5.length) {
return false;
}
}
function get_31767() { // fn#31767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1422, offset: 0x0100314c, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_5.at(-1)?.impressionProperties;
}
function get_31768() { // fn#31768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1521, offset: 0x01003177, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_5.at(-1)?.backdropKind;
}
function ActionSheetStoreGetContent() { // fn#31761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1050, owner: ActionSheetStore.getContent, offset: 0x010030b0, size: 42 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
return env2_5.at(-1)?.content;
}
function ActionSheetStoreIsOpen() { // fn#31763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1131, owner: ActionSheetStore.isOpen, offset: 0x010030e3, size: 20 bytes, params: 1, frame: 2
return env2_5.length > 0;
}
function ActionSheetStoreGetKey() { // fn#31764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3988:1155, owner: ActionSheetStore.getKey, offset: 0x010030f7, size: 42 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
return env2_5.at(-1)?.key;
}
global.__d(_fun31752, 3849, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 3849, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
@@ -1,11 +1,17 @@
/* Metro module 12072; source: modules/action_sheet/native/PanGestureAnimations.tsx; dependencies: [1305, 4577, 4504, 4017, 5321, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as TimingModule from '../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
import * as Module05321Module from '../../../by-id/module-05321.js'; /* Metro dependency 5321 */
function _fun92743(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:6, offset: 0x02097980, size: 349 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const object = {duration: 500};
const STANDARD_EASING = (require(1305) /* metro dependency 1305: native */).STANDARD_EASING;
object.easing = STANDARD_EASING;
const object2 = {duration: 500};
const STANDARD_EASING = (NativeModule).STANDARD_EASING;
object2.easing = STANDARD_EASING;
const env0_4 = {code: "function getNearestValue_PanGestureAnimationsTsx1(array,measure,velocity=0){const unitVector=velocity<0?-1:velocity>0?1:0;function getSortedByMeasure(array,measure){'worklet';const sorted=new Array(...array).sort(function(left,right){const al=Math.abs(left-measure);const ar=Math.abs(right-measure);return al<ar?-1:al>ar?1:0;});return sorted;}if(array.length===0){return measure;}const sorted=getSortedByMeasure(array,measure);if(unitVector!==0){var _sorted$find;return(_sorted$find=sorted.find(function(value){const result=unitVector<0?measure>value:measure<value;return result;}))!==null&&_sorted$find!==void 0?_sorted$find:sorted[0];}return sorted[0];}"};
const env0_5 = {code: 'function getSortedByMeasure_PanGestureAnimationsTsx2(array,measure){const sorted=new Array(...array).sort(function(left,right){const al=Math.abs(left-measure);const ar=Math.abs(right-measure);return al<ar?-1:al>ar?1:0;});return sorted;}'};
const env0_6 = _fun92744();
@@ -17,261 +23,263 @@ function _fun92743(global, require, importDefault, importAll, module, exports, d
const env0_12 = {code: 'function PanGestureAnimationsTsx6(event,success){const{start,translate,snapPositions,velocity,swipeVelocityThreshold,getNearestValue,withPanGestureSpring,withPanGestureTiming,onEnd}=this.__closure;start.set(translate.get());if(snapPositions!=null){var _onEnd;const swipeVelocity=Math.abs(velocity.get())>swipeVelocityThreshold?velocity.get():0;const snapPoint=getNearestValue(snapPositions.get(),translate.get(),swipeVelocity);if(swipeVelocity!==0){translate.set(withPanGestureSpring(snapPoint,velocity.get()));}else{translate.set(withPanGestureTiming(snapPoint));}(_onEnd=onEnd)===null||_onEnd===void 0||_onEnd(event,{success:success,destination:snapPoint,startPosition:start.get()});}}'};
const env0_13 = {code: 'function PanGestureAnimationsTsx7(event){const{start,vertical,lowerBounds,upperBounds,velocity,translate,onChange}=this.__closure;var _onChange;const{velocityY:velocityY,translationY:translationY,velocityX:velocityX,translationX:translationX}=event;let next=start.get()+(vertical?translationY:translationX);if(lowerBounds!=null&&next<lowerBounds){next=lowerBounds;}else if(upperBounds!=null&&next>upperBounds){next=upperBounds;}velocity.set(vertical?velocityY:velocityX);translate.set(next);(_onChange=onChange)===null||_onChange===void 0||_onChange(event,{destination:translate.get(),startPosition:start.get()});}'};
const env0_14 = {code: 'function PanGestureAnimationsTsx8(event){const{start,translate,velocity,isGestureInProgress,onStart}=this.__closure;var _onStart;start.set(translate.get());velocity.set(0);if(isGestureInProgress!=null){isGestureInProgress.set(true);}(_onStart=onStart)===null||_onStart===void 0||_onStart(event,{destination:start.get(),startPosition:start.get()});}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/PanGestureAnimations.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/PanGestureAnimations.tsx');
exports.default = usePanGesture;
exports.SPRING_CONFIG = {'damping': 30, 'mass': 1, 'stiffness': 250, 'overshootClamping': true,
'restSpeedThreshold': 0.001, 'restDisplacementThreshold': 0.001};
exports.TIMING_CONFIG = object;
exports.TIMING_CONFIG = object2;
exports.withPanGestureSpring = value;
exports.withPanGestureTiming = value2;
}
function _fun92744() { // fn#92744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1173, offset: 0x02097add, size: 48 bytes, params: 1, frame: 2
const closure = function(a0, a1) {
var r2;
var r4;
var value = a2;
var env0_0 = a1;
r2 = value !== undefined ? value : 0;
var env0_1 = undefined;
value = 0;
r4 = r2 < value ? -1 : r2 > value ? 1 : value;
env0_1 = r4;
var value4 = _fun92746();
if (value === a0.length) {
return a1;
}
var value5 = value4(a0, a1);
return value === r4 ? value5[value] : value5.find(_fun92749) ?? value5[value];
};
closure.__closure = {};
closure.__workletHash = 4186929947751;
closure.__initData = env0_4;
return closure;
function getNearestValue(a0, a1) { // fn#92745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1204, offset: 0x02097b0d, size: 123 bytes, params: 3, frame: 17
let value = a2;
const env0_0 = a1;
const r2 = value !== undefined ? value : 0;
value = 0;
const r4 = r2 < value ? -1 : r2 > value ? 1 : value;
const value4 = _fun92746();
if (value === a0.length) {
return a1;
}
const value5 = value4(a0, a1);
return value === r4 ? value5[value] : value5.find(_fun92749) ?? value5[value];
function _fun92746() { // fn#92746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1245, offset: 0x02097b88, size: 48 bytes, params: 1, frame: 2
const closure = function(a0, a1) {
var r4;
var env0_0 = a1;
var Array = global.Array;
var items = [];
arraySpread(items, a0, 0, r4);
return apply(Array, items, 0).sort(_fun92748);
};
closure.__closure = {};
closure.__workletHash = 9192847351523;
closure.__initData = env2_5;
return closure;
function getSortedByMeasure(a0, a1) { // fn#92747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1279, offset: 0x02097bb8, size: 63 bytes, params: 3, frame: 15
const env0_0 = a1;
const Array = global.Array;
const items2 = [];
arraySpread(items2, a0, 0, undefined);
return apply(Array, items2, 0).sort(_fun92748);
function _fun92748(a0, a1) { // fn#92748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1322, offset: 0x02097bf7, size: 87 bytes, params: 3, frame: 13
let Math = global.Math;
const value = Math.abs(a0 - require);
Math = global.Math;
const value2 = Math.abs(a1 - require);
return value < value2 ? -1 : 0 > value2 ? 1 : 0;
}
}
}
function _fun92749(a0) { // fn#92749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1603, offset: 0x02097c4e, size: 36 bytes, params: 2, frame: 4
return env0_1 < 0 ? require > a0 : require < a0;
}
function _fun92744() { // fn#92744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1173, offset: 0x02097add, size: 48 bytes, params: 1, frame: 2
const closure = function(a0, a1) {
var r2;
var r4;
var value = a2;
var env0_0 = a1;
r2 = value !== undefined ? value : 0;
var env0_1 = undefined;
value = 0;
r4 = r2 < value ? -1 : r2 > value ? 1 : value;
env0_1 = r4;
var value4 = _fun92746();
if (value === a0.length) {
return a1;
}
var value5 = value4(a0, a1);
return value === r4 ? value5[value] : value5.find(_fun92749) ?? value5[value];
};
closure.__closure = {};
closure.__workletHash = 4186929947751;
closure.__initData = env0_4;
return closure;
}
function _fun92750() { // fn#92750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2041, offset: 0x02097c72, size: 88 bytes, params: 1, frame: 14
const closure = withPanGestureSpring;
const object2 = {};
object2.SPRING_CONFIG = env0_2;
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
closure.__closure = object2;
closure.__workletHash = 12189464558811;
closure.__initData = env0_7;
return closure;
}
}
function _fun92752() { // fn#92752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2604, offset: 0x02097d1b, size: 88 bytes, params: 1, frame: 14
const closure = withPanGestureTiming;
const object2 = {};
object2.TIMING_CONFIG = env0_3;
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
closure.__closure = object2;
closure.__workletHash = 7636074551896;
closure.__initData = env0_9;
return closure;
}
function usePanGesture({lowerBounds, upperBounds, snapPositions, swipeVelocityThreshold, translate, onStart, onChange, onEnd, vertical, isGestureInProgress}) { // fn#92754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:4831, offset: 0x02097dac, size: 554 bytes, params: 2, frame: 27
swipeVelocityThreshold = swipeVelocityThreshold === undefined ? 300 : swipeVelocityThreshold;
const env0_6 = onChange;
vertical = vertical === undefined || vertical;
const env0_8 = vertical;
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const env0_10 = value2;
const value3 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const env0_11 = value3;
const Gesture = (require(5321) /* metro dependency 5321 */).Gesture;
const value4 = Gesture.Pan();
const onStart2 = value4.onStart;
let closure = usePanGestureN;
closure.__closure = {start: value2, translate: translate, velocity: value3,
isGestureInProgress: isGestureInProgress, onStart: onStart};
closure.__workletHash = 7008504704609;
closure.__initData = env0_14;
const value5 = Reflect.apply(onStart2, value4, [closure]);
const onChange2 = value5.onChange;
closure = usePanGestureC;
closure.__closure = {start: value2, vertical: vertical, lowerBounds: lowerBounds, upperBounds: upperBounds,
velocity: value3, translate: translate, onChange: onChange};
closure.__workletHash = 15962975179371;
closure.__initData = env0_13;
const value6 = Reflect.apply(onChange2, value5, [closure]);
const onEnd2 = value6.onEnd;
closure = usePanGestureT;
closure.__closure = {start: value2, translate: translate, snapPositions: snapPositions, velocity: value3,
swipeVelocityThreshold: swipeVelocityThreshold, getNearestValue: env0_6, withPanGestureSpring: env0_8,
withPanGestureTiming: env0_10, onEnd: onEnd};
closure.__workletHash = 15665959414289;
closure.__initData = env0_12;
const value7 = Reflect.apply(onEnd2, value6, [closure]);
const onFinalize = value7.onFinalize;
closure = function() {
if (isGestureInProgress != null) {
isGestureInProgress.set(false);
function _fun92750() { // fn#92750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2041, offset: 0x02097c72, size: 88 bytes, params: 1, frame: 14
const withPanGestureSpring2 = withPanGestureSpring;
const object = {};
object.SPRING_CONFIG = env0_2;
object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
withPanGestureSpring2.__closure = object;
withPanGestureSpring2.__workletHash = 12189464558811;
withPanGestureSpring2.__initData = env0_7;
return withPanGestureSpring2;
function withPanGestureSpring(a0, a1, a2) { // fn#92751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2077, offset: 0x02097cca, size: 81 bytes, params: 4, frame: 14
const r0 = a2 ?? env1_2;
value = environment.__proto__;
value = require(4577) /* metro dependency 4577: spring */;
const withSpring = value.withSpring;
const object = {};
copyDataProperties(object, r0, undefined);
object['velocity'] = a1;
return Reflect.apply(withSpring, value, [a0, object]);
}
};
closure.__closure = {isGestureInProgress: isGestureInProgress};
closure.__workletHash = 11128244755178;
closure.__initData = env0_11;
return Reflect.apply(onFinalize, value7, [closure]);
}
function getNearestValue(a0, a1) { // fn#92745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1204, offset: 0x02097b0d, size: 123 bytes, params: 3, frame: 17
let value = a2;
const env0_0 = a1;
const r2 = value !== undefined ? value : 0;
value = 0;
const r4 = r2 < value ? -1 : r2 > value ? 1 : value;
const value4 = _fun92746();
if (value === a0.length) {
return a1;
}
const value5 = value4(a0, a1);
return value === r4 ? value5[value] : value5.find(_fun92749) ?? value5[value];
}
function withPanGestureSpring(a0, a1, a2) { // fn#92751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2077, offset: 0x02097cca, size: 81 bytes, params: 4, frame: 14
const r0 = a2 ?? env1_2;
value = environment.__proto__;
value = require(4577) /* metro dependency 4577: spring */;
const withSpring = value.withSpring;
const object2 = {};
copyDataProperties(object2, r0, undefined);
object2['velocity'] = a1;
return Reflect.apply(withSpring, value, [a0, object2]);
}
function withPanGestureTiming(a0, a1) { // fn#92753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2640, offset: 0x02097d73, size: 57 bytes, params: 3, frame: 13
const r3 = a1 ?? env1_3;
value = environment.__proto__;
return (require(4504) /* metro dependency 4504: timing */).withTiming(a0, r3);
}
function usePanGestureN(a0) { // fn#92755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5115, owner: usePanGesture.N, offset: 0x02097fd6, size: 137 bytes, params: 2, frame: 14
var object2;
let binding = env0_10;
const set = binding.set;
const translateBinding = translate;
const get = translateBinding.get;
Reflect.apply(set, binding, [Reflect.apply(get, translateBinding, [])]);
env0_11.set(0);
if (isGestureInProgress != null) {
isGestureInProgress.set(true);
}
let onStartBinding = onStart;
if (onStartBinding != null) {
onStartBinding = onStart;
object2 = {};
binding = env0_10;
object2.destination = binding.get();
binding = env0_10;
object2.startPosition = binding.get();
onStartBinding(a0, object2);
}
}
function usePanGestureC(a0) { // fn#92756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5367, owner: usePanGesture.C, offset: 0x0209805f, size: 207 bytes, params: 2, frame: 18
var object2;
const velocityY = a0.velocityY;
const translationY = a0.translationY;
const velocityX = a0.velocityX;
const translationX = a0.translationX;
let binding = env0_10;
const value3 = binding.get() + (vertical ? translationY : translationX);
const r5 = lowerBounds == null ? upperBounds != null && value3 > upperBounds ? upperBounds : value3 : value3 < lowerBounds ? lowerBounds : upperBounds != null && value3 > upperBounds ? upperBounds : value3;
binding = env0_11;
binding.set(vertical ? velocityY : velocityX);
translate.set(r5);
let onChangeBinding = onChange;
if (onChangeBinding != null) {
onChangeBinding = onChange;
object2 = {};
object2.destination = translate.get();
object2.startPosition = env0_10.get();
onChangeBinding(a0, object2);
}
}
function usePanGestureT(a0, a1) { // fn#92757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5734, owner: usePanGesture.T, offset: 0x0209812e, size: 269 bytes, params: 3, frame: 19
var r5;
var Math;
var abs;
var value2;
var swipeVelocityThresholdBinding;
var value3;
var value5;
var value8;
var binding2;
var onEndBinding;
var object2;
let binding = env0_10;
let set = binding.set;
let translateBinding = translate;
const get = translateBinding.get;
Reflect.apply(set, binding, [Reflect.apply(get, translateBinding, [])]);
if (snapPositions != null) {
Math = global.Math;
abs = Math.abs;
binding = env0_11;
value2 = Reflect.apply(abs, Math, [binding.get()]);
swipeVelocityThresholdBinding = swipeVelocityThreshold;
value3 = 0;
r5 = value2 > swipeVelocityThresholdBinding ? env0_11.get() : value3;
value5 = environment.__proto__;
binding = env1_6;
value8 = binding(snapPositions.get(), translate.get(), r5);
if (value3 !== r5) {
translateBinding = translate;
set = translateBinding.set;
binding = env1_8;
binding2 = env0_11;
Reflect.apply(set, translateBinding, [binding(value8, binding2.get())]);
} else {
translate.set(env1_10(value8));
}
onEndBinding = onEnd;
if (onEndBinding != null) {
onEndBinding = onEnd;
object2 = {success: a1, destination: value8};
object2.startPosition = env0_10.get();
onEndBinding(a0, object2);
function _fun92752() { // fn#92752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2604, offset: 0x02097d1b, size: 88 bytes, params: 1, frame: 14
const withPanGestureTiming2 = withPanGestureTiming;
const object = {};
object.TIMING_CONFIG = env0_3;
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
withPanGestureTiming2.__closure = object;
withPanGestureTiming2.__workletHash = 7636074551896;
withPanGestureTiming2.__initData = env0_9;
return withPanGestureTiming2;
function withPanGestureTiming(a0, a1) { // fn#92753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:2640, offset: 0x02097d73, size: 57 bytes, params: 3, frame: 13
const r3 = a1 ?? env1_3;
value = environment.__proto__;
return (TimingModule).withTiming(a0, r3);
}
}
function usePanGesture({lowerBounds, upperBounds, snapPositions, swipeVelocityThreshold, translate, onStart, onChange, onEnd, vertical, isGestureInProgress}) { // fn#92754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:4831, offset: 0x02097dac, size: 554 bytes, params: 2, frame: 27
swipeVelocityThreshold = swipeVelocityThreshold === undefined ? 300 : swipeVelocityThreshold;
const onChange3 = onChange;
vertical = vertical === undefined || vertical;
const vertical2 = vertical;
const value2 = (ReanimatedRexportModule).useSharedValue(0);
const env0_10 = value2;
const value3 = (ReanimatedRexportModule).useSharedValue(0);
const env0_11 = value3;
const Gesture = (Module05321Module).Gesture;
const value4 = Gesture.Pan();
const onStart2 = value4.onStart;
let closure = usePanGestureN;
closure.__closure = {start: value2, translate: translate, velocity: value3,
isGestureInProgress: isGestureInProgress, onStart: onStart};
closure.__workletHash = 7008504704609;
closure.__initData = env0_14;
const value5 = Reflect.apply(onStart2, value4, [closure]);
const onChange2 = value5.onChange;
closure = usePanGestureC;
closure.__closure = {start: value2, vertical: vertical, lowerBounds: lowerBounds, upperBounds: upperBounds,
velocity: value3, translate: translate, onChange: onChange};
closure.__workletHash = 15962975179371;
closure.__initData = env0_13;
const value6 = Reflect.apply(onChange2, value5, [closure]);
const onEnd2 = value6.onEnd;
closure = usePanGestureT;
closure.__closure = {start: value2, translate: translate, snapPositions: snapPositions, velocity: value3,
swipeVelocityThreshold: swipeVelocityThreshold, getNearestValue: onChange3, withPanGestureSpring: vertical2,
withPanGestureTiming: env0_10, onEnd: onEnd};
closure.__workletHash = 15665959414289;
closure.__initData = env0_12;
const value7 = Reflect.apply(onEnd2, value6, [closure]);
const onFinalize = value7.onFinalize;
closure = function() {
if (isGestureInProgress != null) {
isGestureInProgress.set(false);
}
};
closure.__closure = {isGestureInProgress: isGestureInProgress};
closure.__workletHash = 11128244755178;
closure.__initData = env0_11;
return Reflect.apply(onFinalize, value7, [closure]);
function usePanGestureN(a0) { // fn#92755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5115, owner: usePanGesture.N, offset: 0x02097fd6, size: 137 bytes, params: 2, frame: 14
var object;
let binding = env0_10;
const set = binding.set;
const translateBinding = translate;
const get = translateBinding.get;
Reflect.apply(set, binding, [Reflect.apply(get, translateBinding, [])]);
env0_11.set(0);
if (isGestureInProgress != null) {
isGestureInProgress.set(true);
}
let onStartBinding = onStart;
if (onStartBinding != null) {
onStartBinding = onStart;
object = {};
binding = env0_10;
object.destination = binding.get();
binding = env0_10;
object.startPosition = binding.get();
onStartBinding(a0, object);
}
}
function usePanGestureC(a0) { // fn#92756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5367, owner: usePanGesture.C, offset: 0x0209805f, size: 207 bytes, params: 2, frame: 18
var object;
const velocityY = a0.velocityY;
const translationY = a0.translationY;
const velocityX = a0.velocityX;
const translationX = a0.translationX;
let binding = env0_10;
const value3 = binding.get() + (vertical ? translationY : translationX);
const r5 = lowerBounds == null ? upperBounds != null && value3 > upperBounds ? upperBounds : value3 : value3 < lowerBounds ? lowerBounds : upperBounds != null && value3 > upperBounds ? upperBounds : value3;
binding = env0_11;
binding.set(vertical ? velocityY : velocityX);
translate.set(r5);
let onChangeBinding = onChange;
if (onChangeBinding != null) {
onChangeBinding = onChange;
object = {};
object.destination = translate.get();
object.startPosition = env0_10.get();
onChangeBinding(a0, object);
}
}
function usePanGestureT(a0, a1) { // fn#92757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:5734, owner: usePanGesture.T, offset: 0x0209812e, size: 269 bytes, params: 3, frame: 19
var r5;
var Math;
var abs;
var value2;
var swipeVelocityThresholdBinding;
var value3;
var value5;
var value8;
var binding2;
var onEndBinding;
var object;
let binding = env0_10;
let set = binding.set;
let translateBinding = translate;
const get = translateBinding.get;
Reflect.apply(set, binding, [Reflect.apply(get, translateBinding, [])]);
if (snapPositions != null) {
Math = global.Math;
abs = Math.abs;
binding = env0_11;
value2 = Reflect.apply(abs, Math, [binding.get()]);
swipeVelocityThresholdBinding = swipeVelocityThreshold;
value3 = 0;
r5 = value2 > swipeVelocityThresholdBinding ? env0_11.get() : value3;
value5 = environment.__proto__;
binding = env1_6;
value8 = binding(snapPositions.get(), translate.get(), r5);
if (value3 !== r5) {
translateBinding = translate;
set = translateBinding.set;
binding = env1_8;
binding2 = env0_11;
Reflect.apply(set, translateBinding, [binding(value8, binding2.get())]);
} else {
translate.set(env1_10(value8));
}
onEndBinding = onEnd;
if (onEndBinding != null) {
onEndBinding = onEnd;
object = {success: a1, destination: value8};
object.startPosition = env0_10.get();
onEndBinding(a0, object);
}
}
}
}
}
function _fun92746() { // fn#92746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1245, offset: 0x02097b88, size: 48 bytes, params: 1, frame: 2
const closure = function(a0, a1) {
var r4;
var env0_0 = a1;
var Array = global.Array;
var items = [];
arraySpread(items, a0, 0, r4);
return apply(Array, items, 0).sort(_fun92748);
};
closure.__closure = {};
closure.__workletHash = 9192847351523;
closure.__initData = env2_5;
return closure;
}
function _fun92749(a0) { // fn#92749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1603, offset: 0x02097c4e, size: 36 bytes, params: 2, frame: 4
return env0_1 < 0 ? require > a0 : require < a0;
}
function getSortedByMeasure(a0, a1) { // fn#92747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1279, offset: 0x02097bb8, size: 63 bytes, params: 3, frame: 15
const env0_0 = a1;
const Array = global.Array;
const items2 = [];
arraySpread(items2, a0, 0, undefined);
return apply(Array, items2, 0).sort(_fun92748);
}
function _fun92748(a0, a1) { // fn#92748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12258:1322, offset: 0x02097bf7, size: 87 bytes, params: 3, frame: 13
let Math = global.Math;
const value = Math.abs(a0 - require);
Math = global.Math;
const value2 = Math.abs(a1 - require);
return value < value2 ? -1 : 0 > value2 ? 1 : 0;
}
global.__d(_fun92743, 12072, [1305, 4577, 4504, 4017, 5321,
2]) /* metro module 12072, dependencies: [1305, 4577, 4504, 4017, 5321, 2] */;
@@ -1,9 +1,11 @@
/* Metro module 9213; source: modules/action_sheet/native/ShowShareActionSheetUtils.tsx; dependencies: [661, 683, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun72076(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9398:6, offset: 0x01d390ad, size: 120 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ShowShareActionSheetUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/ShowShareActionSheetUtils.tsx');
exports.trackAppClickInNativeShareSheet = function(a0, a1) {
var defaultImport = importDefault(dependencyMap[1]);
var NATIVE_SHARE_SHEET_APP_CLICKED = AnalyticEvents.NATIVE_SHARE_SHEET_APP_CLICKED;
@@ -11,3 +13,4 @@ function _fun72076(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun72076, 9213, [661, 683, 2]) /* metro module 9213, dependencies: [661, 683, 2] */;
@@ -1,9 +1,13 @@
/* Metro module 15267; source: modules/action_sheet/native/components/ActionSheetPresenter.tsx; dependencies: [2, 12766] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ActionSheetPresenterNativeModule from '../../../../design/components/Sheet/native/ActionSheetPresenter.native.tsx'; /* Metro dependency 12766 */
function _fun116728(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15464:6, offset: 0x02495046, size: 96 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/ActionSheetPresenter.tsx');
const ActionSheetPresenter = (require(12766) /* metro dependency 12766: ActionSheetPresenterNative */).ActionSheetPresenter;
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/ActionSheetPresenter.tsx');
const ActionSheetPresenter = (ActionSheetPresenterNativeModule).ActionSheetPresenter;
exports.default = ActionSheetPresenter;
}
global.__d(_fun116728, 15267, [2, 12766]) /* metro module 15267, dependencies: [2, 12766] */;
@@ -1,9 +1,13 @@
/* Metro module 11710; source: modules/action_sheet/native/components/BottomSheetTextInput.tsx; dependencies: [2, 9101] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as BottomSheetTextInputNativeModule from '../../../../design/components/Sheet/native/BottomSheetTextInput.native.tsx'; /* Metro dependency 9101 */
function _fun89775(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11896:6, offset: 0x0201dd0d, size: 96 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/BottomSheetTextInput.tsx');
const BottomSheetTextInput = (require(9101) /* metro dependency 9101: BottomSheetTextInputNative */).BottomSheetTextInput;
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/BottomSheetTextInput.tsx');
const BottomSheetTextInput = (BottomSheetTextInputNativeModule).BottomSheetTextInput;
exports.default = BottomSheetTextInput;
}
global.__d(_fun89775, 11710, [2, 9101]) /* metro module 11710, dependencies: [2, 9101] */;
@@ -1,29 +1,36 @@
/* Metro module 11205; source: modules/action_sheet/native/components/ContextMenuSubmenuActionSheetHeader.tsx; dependencies: [31, 27, 33, 4501, 9067, 1244, 2] */
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 CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ActionSheetHeaderPressableTextNativeModule from '../../../../design/components/Sheet/native/ActionSheetHeaderPressableText.native.tsx'; /* Metro dependency 9067 */
function _fun85621(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11391:6, offset: 0x01f75f5b, size: 199 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({headerContainer: {'paddingVertical': 12,
ReactModule;
const env0_4 = (CreateStylesModule).createStyles({headerContainer: {'paddingVertical': 12,
'paddingHorizontal': 16, 'alignItems': 'flex-start'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/ContextMenuSubmenuActionSheetHeader.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/ContextMenuSubmenuActionSheetHeader.tsx');
exports.default = ContextMenuSubmenuActionSheetHeader;
function ContextMenuSubmenuActionSheetHeader({onBack}) { // fn#85622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11391:363, offset: 0x01f76022, size: 158 bytes, params: 2, frame: 21
const styles = useStyles();
const ActionSheetHeaderPressableText = (ActionSheetHeaderPressableTextNativeModule).ActionSheetHeaderPressableText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={styles.headerContainer}>
<ActionSheetHeaderPressableText
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
onPress={onBack ?? (function() {
})}
/>
</View>
);
}
}
function ContextMenuSubmenuActionSheetHeader({onBack}) { // fn#85622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11391:363, offset: 0x01f76022, size: 158 bytes, params: 2, frame: 21
const styles = useStyles();
const ActionSheetHeaderPressableText = (require(9067) /* metro dependency 9067: ActionSheetHeaderPressableTextNative */).ActionSheetHeaderPressableText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={styles.headerContainer}>
<ActionSheetHeaderPressableText
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
onPress={onBack ?? (function() {
})}
/>
</View>
);
}
global.__d(_fun85621, 11205, [31, 27, 33, 4501, 9067, 1244,
2]) /* metro module 11205, dependencies: [31, 27, 33, 4501, 9067, 1244, 2] */;
@@ -1,110 +1,123 @@
/* Metro module 11409; source: modules/action_sheet/native/components/EmojiRow.tsx; dependencies: [31, 27, 6276, 33, 4501, 4080, 4081, 7151, 3795, 7067, 8217, 3860, 697, 10998, 11000, 9837, 11410, 6789, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ActionSheetActionCreators from '../ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import AnalyticsLocation from '../../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
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 UseTokenModule from '../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ActionSheetConstantsModule from '../ActionSheetConstants.tsx'; /* Metro dependency 6276 */
import * as ReactionActionCreatorsModule from '../../../reactions/ReactionActionCreators.tsx'; /* Metro dependency 7151 */
import * as UseEmojisForReactionRowModule from '../../../reactions/native/useEmojisForReactionRow.tsx'; /* Metro dependency 10998 */
import * as EmojiReactionRowButtonModule from '../../../reactions/native/EmojiReactionRowButton.tsx'; /* Metro dependency 11000 */
import * as DoubleTapEmojiEditNudgeModule from '../../../double_tap_to_react/native/DoubleTapEmojiEditNudge.tsx'; /* Metro dependency 11410 */
function _fun87405(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:6, offset: 0x01fbd6cb, size: 252 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_MAX_WIDTH;
const value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({emojiRowContainer: {'flexDirection': 'column',
ReactModule;
const env0_7 = (CreateStylesModule).createStyles({emojiRowContainer: {'flexDirection': 'column',
'justifyContent': 'center', 'alignItems': 'center'}, emojiRow: {'height': 52, 'alignSelf': 'stretch',
'flexDirection': 'row', 'justifyContent': 'space-between', 'alignItems': 'center', 'marginTop': 0,
'marginBottom': 0}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/EmojiRow.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/EmojiRow.tsx');
exports.default = _default_87406;
}
function _default_87406({message, channel}) { // fn#87406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:440, offset: 0x01fbd7c7, size: 527 bytes, params: 2, frame: 24
let useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_SIZE = (Native).modules.mobile.EMOJI_ROW_EMOJI_SIZE;
const env0_2 = Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_SIZE]);
useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_FONT_SIZE = (Native).modules.mobile.EMOJI_ROW_EMOJI_FONT_SIZE;
const env0_3 = Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_FONT_SIZE]);
useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_LINE_HEIGHT = (Native).modules.mobile.EMOJI_ROW_EMOJI_LINE_HEIGHT;
const env0_4 = Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_LINE_HEIGHT]);
useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_CONTAINER_SIZE = (Native).modules.mobile.EMOJI_ROW_EMOJI_CONTAINER_SIZE;
const value2 = Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_CONTAINER_SIZE]);
useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_MIN_SPACING = (Native).modules.mobile.EMOJI_ROW_EMOJI_MIN_SPACING;
const value4 = (UseEmojisForReactionRowModule).useEmojisForReactionRow(channel,
ACTION_SHEET_MAX_WIDTH, value2 + Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_MIN_SPACING]));
const styles = useStyles();
const value5 = value4.map(_fun87407);
const EmojiPickerRowButton = (EmojiReactionRowButtonModule).EmojiPickerRowButton;
const view = (
<View style={styles.emojiRow}>
{value5}
<EmojiPickerRowButton emojiContainerSize={value2} onPress={onPress_87409} />
</View>
);
const DoubleTapEmojiEditNudge = (DoubleTapEmojiEditNudgeModule).DoubleTapEmojiEditNudge;
const MESSAGE_LONG_PRESS_MENU = (AnalyticsLocation).MESSAGE_LONG_PRESS_MENU;
return (
<View style={styles.emojiRowContainer}>
{view}
<DoubleTapEmojiEditNudge location={MESSAGE_LONG_PRESS_MENU} />
</View>
);
function _fun87407(a0, a1) { // fn#87407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:966, offset: 0x01fbd9d6, size: 134 bytes, params: 3, frame: 20
var environment;
const env0_0 = a0;
let value = environment.__proto__;
const EmojiReactionRowButton = (require(11000) /* metro dependency 11000: EmojiReactionRowButton */).EmojiReactionRowButton;
const emojiReactionRowButtonProps = {emoji: a0, onPress: onPress_87408, emojiSize: env0_2, emojiFontSize: env0_3,
emojiLineHeight: env0_4, emojiContainerSize: JsxRuntimeModule.jsx};
value = require(11000) /* metro dependency 11000: EmojiReactionRowButton */;
const getEmojiKey = value.getEmojiKey;
return <EmojiReactionRowButton {...emojiReactionRowButtonProps} key={Reflect.apply(getEmojiKey, value, [a0, a1])} />;
function onPress_87408() { // fn#87408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:1024, offset: 0x01fbda5c, size: 240 bytes, params: 1, frame: 22
var moduleValue;
var moduleValue2;
var addReaction;
var channel_id;
var id;
var moduleValue3;
var focusMessage;
let value = environment.__proto__;
const messageBinding = message;
const binding = env0_0;
value = environment.__proto__.__proto__;
(ActionSheetActionCreators).hideActionSheet();
if (binding != null) {
moduleValue = require(4081) /* metro dependency 4081: HapticUtilsNative */;
moduleValue.triggerHapticFeedback((require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes.IMPACT_LIGHT);
moduleValue2 = require(7151) /* metro dependency 7151: ReactionActionCreators */;
addReaction = moduleValue2.addReaction;
channel_id = messageBinding.channel_id;
id = messageBinding.id;
moduleValue3 = require(3795) /* metro dependency 3795: ReactionUtils */;
Reflect.apply(addReaction, moduleValue2, [channel_id, id, moduleValue3.toReactionEmoji(binding)]);
value = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
focusMessage = value.focusMessage;
channel_id = messageBinding.channel_id;
id = messageBinding.id;
Reflect.apply(focusMessage, value, [{channelId: channel_id, messageId: id}]);
value = require(8217) /* metro dependency 8217: DoubleTapToReactUtils */;
value.initializeDoubleTapEmojiAndUpsell(binding);
}
}
function _default_87406({message, channel}) { // fn#87406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:440, offset: 0x01fbd7c7, size: 527 bytes, params: 2, frame: 24
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
let useToken = useTokenModule.useToken;
const EMOJI_ROW_EMOJI_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_SIZE;
const env0_2 = Reflect.apply(useToken, useTokenModule, [EMOJI_ROW_EMOJI_SIZE]);
const moduleValue2 = useTokenModule;
useToken = moduleValue2.useToken;
const EMOJI_ROW_EMOJI_FONT_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_FONT_SIZE;
const env0_3 = Reflect.apply(useToken, moduleValue2, [EMOJI_ROW_EMOJI_FONT_SIZE]);
const moduleValue3 = useTokenModule;
useToken = moduleValue3.useToken;
const EMOJI_ROW_EMOJI_LINE_HEIGHT = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_LINE_HEIGHT;
const env0_4 = Reflect.apply(useToken, moduleValue3, [EMOJI_ROW_EMOJI_LINE_HEIGHT]);
const moduleValue4 = useTokenModule;
useToken = moduleValue4.useToken;
const EMOJI_ROW_EMOJI_CONTAINER_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_CONTAINER_SIZE;
const value2 = Reflect.apply(useToken, moduleValue4, [EMOJI_ROW_EMOJI_CONTAINER_SIZE]);
const moduleValue5 = useTokenModule;
useToken = moduleValue5.useToken;
const EMOJI_ROW_EMOJI_MIN_SPACING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_MIN_SPACING;
const value4 = (require(10998) /* metro dependency 10998: useEmojisForReactionRow */).useEmojisForReactionRow(channel,
ACTION_SHEET_MAX_WIDTH, value2 + Reflect.apply(useToken, moduleValue5, [EMOJI_ROW_EMOJI_MIN_SPACING]));
const styles = useStyles();
const value5 = value4.map(_fun87407);
const EmojiPickerRowButton = (require(11000) /* metro dependency 11000: EmojiReactionRowButton */).EmojiPickerRowButton;
const view = <View style={styles.emojiRow}>{value5}<EmojiPickerRowButton emojiContainerSize={value2} onPress={onPress_87409} /></View>;
const DoubleTapEmojiEditNudge = (require(11410) /* metro dependency 11410: DoubleTapEmojiEditNudge */).DoubleTapEmojiEditNudge;
const MESSAGE_LONG_PRESS_MENU = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).MESSAGE_LONG_PRESS_MENU;
return (
<View style={styles.emojiRowContainer}>
{view}
<DoubleTapEmojiEditNudge location={MESSAGE_LONG_PRESS_MENU} />
</View>
);
}
}
function _fun87407(a0, a1) { // fn#87407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:966, offset: 0x01fbd9d6, size: 134 bytes, params: 3, frame: 20
var environment;
const env0_0 = a0;
let value = environment.__proto__;
const EmojiReactionRowButton = (require(11000) /* metro dependency 11000: EmojiReactionRowButton */).EmojiReactionRowButton;
const emojiReactionRowButtonProps = {emoji: a0, onPress: onPress_87408, emojiSize: env0_2, emojiFontSize: env0_3,
emojiLineHeight: env0_4, emojiContainerSize: env0_5};
value = require(11000) /* metro dependency 11000: EmojiReactionRowButton */;
const getEmojiKey = value.getEmojiKey;
return <EmojiReactionRowButton {...emojiReactionRowButtonProps} key={Reflect.apply(getEmojiKey, value, [a0, a1])} />;
}
function _default_87406OnPress() { // fn#87409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:1486, owner: _default_87406.onPress, offset: 0x01fbdb4c, size: 80 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = require(9837) /* metro dependency 9837: ReactionUtils */;
const handleAddNewReactions = value.handleAddNewReactions;
const channelBinding = channel;
const id = message.id;
const ReactionLocations = (ReactionActionCreatorsModule).ReactionLocations;
const MESSAGE = ReactionLocations.MESSAGE;
return Reflect.apply(handleAddNewReactions, value, [channelBinding, id, MESSAGE]);
}
function _default_87406OnPress() { // fn#87409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:1486, owner: _default_87406.onPress, offset: 0x01fbdb4c, size: 80 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = require(9837) /* metro dependency 9837: ReactionUtils */;
const handleAddNewReactions = value.handleAddNewReactions;
const channelBinding = channel;
const id = message.id;
const ReactionLocations = (require(7151) /* metro dependency 7151: ReactionActionCreators */).ReactionLocations;
const MESSAGE = ReactionLocations.MESSAGE;
return Reflect.apply(handleAddNewReactions, value, [channelBinding, id, MESSAGE]);
}
function onPress_87408() { // fn#87408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:1024, offset: 0x01fbda5c, size: 240 bytes, params: 1, frame: 22
var moduleValue;
var moduleValue2;
var addReaction;
var channel_id;
var id;
var moduleValue3;
var focusMessage;
let value = environment.__proto__;
const messageBinding = message;
const binding = env0_0;
value = environment.__proto__.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
if (binding != null) {
moduleValue = require(4081) /* metro dependency 4081: HapticUtilsNative */;
moduleValue.triggerHapticFeedback((require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes.IMPACT_LIGHT);
moduleValue2 = require(7151) /* metro dependency 7151: ReactionActionCreators */;
addReaction = moduleValue2.addReaction;
channel_id = messageBinding.channel_id;
id = messageBinding.id;
moduleValue3 = require(3795) /* metro dependency 3795: ReactionUtils */;
Reflect.apply(addReaction, moduleValue2, [channel_id, id, moduleValue3.toReactionEmoji(binding)]);
value = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
focusMessage = value.focusMessage;
channel_id = messageBinding.channel_id;
id = messageBinding.id;
Reflect.apply(focusMessage, value, [{channelId: channel_id, messageId: id}]);
value = require(8217) /* metro dependency 8217: DoubleTapToReactUtils */;
value.initializeDoubleTapEmojiAndUpsell(binding);
}
}
global.__d(_fun87405, 11409, [31, 27, 6276, 33, 4501, 4080, 4081, 7151, 3795, 7067, 8217, 3860, 697, 10998, 11000,
9837, 11410, 6789,
2]) /* metro module 11409, dependencies: [31, 27, 6276, 33, 4501, 4080, 4081, 7151, 3795, 7067, 8217, 3860, 697, 10998, 11000, 9837, 11410, 6789, 2] */;
@@ -1,24 +1,24 @@
/* Metro module 11408; source: modules/action_sheet/native/components/EmojiRowUtils.tsx; dependencies: [661, 1391, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
function _fun87403(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11594:6, offset: 0x01fbd5ac, size: 137 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_2 = constantsModule.MessageFlags;
const env0_3 = constantsModule.MessageStates;
const env0_4 = constantsModule.MessageTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/EmojiRowUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/EmojiRowUtils.tsx');
exports.shouldShowEmojiRow = shouldShowEmojiRow;
}
function shouldShowEmojiRow(a0, a1, a2) { // fn#87404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11594:269, offset: 0x01fbd635, size: 150 bytes, params: 4, frame: 15
var moduleValue;
let r0 = a0 && a2 && a1.state !== MessageStates.SEND_FAILED;
r0 = r0 && a1.state !== MessageStates.SENDING && a1.type !== MessageTypes.THREAD_STARTER_MESSAGE;
if (r0) {
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
r0 = !moduleValue.hasFlag(a1.flags, MessageFlags.EPHEMERAL);
function shouldShowEmojiRow(a0, a1, a2) { // fn#87404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11594:269, offset: 0x01fbd635, size: 150 bytes, params: 4, frame: 15
var moduleValue;
let r0 = a0 && a2 && a1.state !== MessageStates.SEND_FAILED;
r0 = r0 && a1.state !== MessageStates.SENDING && a1.type !== MessageTypes.THREAD_STARTER_MESSAGE;
if (r0) {
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
r0 = !moduleValue.hasFlag(a1.flags, MessageFlags.EPHEMERAL);
}
return r0;
}
return r0;
}
global.__d(_fun87403, 11408, [661, 1391, 2]) /* metro module 11408, dependencies: [661, 1391, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,49 +1,58 @@
/* Metro module 11163; source: modules/action_sheet/native/components/PublishModal.tsx; dependencies: [57, 31, 27, 33, 4501, 6235, 11164, 1305, 1244, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseChannelFollowerStats from '../../../channel_following/useChannelFollowerStats.tsx'; /* Metro dependency 11164 */
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 NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as LegacyTokensModule from '../../../../design/migrations/native/LegacyTokens.tsx'; /* Metro dependency 6235 */
function _fun85239(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11349:6, offset: 0x01f6886c, size: 288 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
ReactModule;
let value = ReactNativeModule;
const env0_4 = value.View;
const env0_5 = value.ActivityIndicator;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const DARK_PRIMARY_300_LIGHT_PRIMARY_400 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_300_LIGHT_PRIMARY_400;
const DARK_PRIMARY_300_LIGHT_PRIMARY_400 = (LegacyTokensModule).DARK_PRIMARY_300_LIGHT_PRIMARY_400;
const env0_7 = Reflect.apply(createStyles, value, [{alertContainer: {paddingTop: 16},
alertLoading: {'paddingTop': 62, 'paddingBottom': 46}, alertBodyText: {'marginBottom': 16, 'fontSize': 16,
'lineHeight': 24, color: DARK_PRIMARY_300_LIGHT_PRIMARY_400}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/PublishModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/PublishModal.tsx');
exports.default = PublishModal;
}
function PublishModal({channelId}) { // fn#85240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11349:480, offset: 0x01f6898c, size: 393 bytes, params: 2, frame: 27
const styles = useStyles();
const value4 = env0_3((importDefault(11164) /* metro dependency 11164: useChannelFollowerStats */)(channelId), 2);
const property = value4[0];
if (value4[1]) {
function PublishModal({channelId}) { // fn#85240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11349:480, offset: 0x01f6898c, size: 393 bytes, params: 2, frame: 27
const styles = useStyles();
const value4 = Module00057((UseChannelFollowerStats)(channelId), 2);
const property = value4[0];
if (value4[1]) {
return (
<View style={styles.alertLoading}>
<ActivityIndicator animating />
</View>
);
}
const r6 = property?.guildsFollowing != null && property?.guildsFollowing > 0;
const LegacyText = (NativeModule).LegacyText;
const legacyTextProps = {style: styles.alertBodyText};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
if (r6) {
legacyTextProps.children = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.GCGrNP,
{numGuildsFollowing: property?.guildsFollowing ?? 0});
} else {
legacyTextProps.children = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8FpqOs']);
}
return (
<View style={styles.alertLoading}>
<ActivityIndicator animating />
<View style={styles.alertContainer}>
<LegacyText {...legacyTextProps} />
</View>
);
}
const r6 = property?.guildsFollowing != null && property?.guildsFollowing > 0;
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
const legacyTextProps = {style: styles.alertBodyText};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
if (r6) {
legacyTextProps.children = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.GCGrNP,
{numGuildsFollowing: property?.guildsFollowing ?? 0});
} else {
legacyTextProps.children = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8FpqOs']);
}
return (
<View style={styles.alertContainer}>
<LegacyText {...legacyTextProps} />
</View>
);
}
global.__d(_fun85239, 11163, [57, 31, 27, 33, 4501, 6235, 11164, 1305, 1244,
2]) /* metro module 11163, dependencies: [57, 31, 27, 33, 4501, 6235, 11164, 1305, 1244, 2] */;
@@ -1,20 +1,23 @@
/* Metro module 11232; source: modules/action_sheet/native/components/showLongPressForumPostActionSheet.tsx; dependencies: [4080, 11233, 1962, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun85862(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11418:6, offset: 0x01f7f716, size: 103 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/showLongPressForumPostActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/showLongPressForumPostActionSheet.tsx');
exports.default = showLongPressForumPostActionSheet;
function showLongPressForumPostActionSheet(a0, a1) { // fn#85863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11418:212, offset: 0x01f7f77d, size: 137 bytes, params: 3, frame: 17
let value = a2;
const r1 = value !== undefined ? value : importDefault(dependencyMap[0]).hideActionSheet;
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'ForumPostLongPressActionSheet', {thread: a0, parentChannel: a1,
onClose: r1}]);
}
}
function showLongPressForumPostActionSheet(a0, a1) { // fn#85863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11418:212, offset: 0x01f7f77d, size: 137 bytes, params: 3, frame: 17
let value = a2;
const r1 = value !== undefined ? value : importDefault(dependencyMap[0]).hideActionSheet;
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'ForumPostLongPressActionSheet', {thread: a0, parentChannel: a1,
onClose: r1}]);
}
global.__d(_fun85862, 11232, [4080, 11233, 1962, 2]) /* metro module 11232, dependencies: [4080, 11233, 1962, 2] */;
@@ -1,20 +1,25 @@
/* Metro module 9212; source: modules/action_sheet/native/showShareActionSheet.android.tsx; dependencies: [27, 9213, 2] */
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 ShowShareActionSheetUtilsModule from './ShowShareActionSheetUtils.tsx'; /* Metro dependency 9213 */
function _fun72073(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9397:6, offset: 0x01d38f96, size: 174 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const {NativeEventEmitter, NativeModules} = require(27) /* metro dependency 27 */;
const {NativeEventEmitter, NativeModules} = ReactNativeModule;
let ShareManager = NativeModules.ShareManager;
new NativeEventEmitter(ShareManager).addListener('share-broadcast-receiver-app-clicked', _fun72074);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/showShareActionSheet.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/showShareActionSheet.android.tsx');
exports.showShareActionSheet = function(a0, a1) {
var ShareManager = NativeModules.ShareManager;
ShareManager.share(a0.message, a0.url, a0.subject, a1);
};
function _fun72074({app, location}) { // fn#72074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9397:221, offset: 0x01d39044, size: 53 bytes, params: 2, frame: 14
(ShowShareActionSheetUtilsModule).trackAppClickInNativeShareSheet(app,
location);
}
}
function _fun72074({app, location}) { // fn#72074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9397:221, offset: 0x01d39044, size: 53 bytes, params: 2, frame: 14
(require(9213) /* metro dependency 9213: ShowShareActionSheetUtils */).trackAppClickInNativeShareSheet(app,
location);
}
global.__d(_fun72073, 9212, [27, 9213, 2]) /* metro module 9212, dependencies: [27, 9213, 2] */;
@@ -1,8 +1,11 @@
/* Metro module 6802; source: modules/action_sheet/native/showSimpleActionSheet.tsx; dependencies: [2, 6803] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun53542(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6980:6, offset: 0x0134e57a, size: 96 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/showSimpleActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/showSimpleActionSheet.tsx');
exports.showSimpleActionSheet = (require(6803) /* metro dependency 6803: showSimpleActionSheetNative */).showSimpleActionSheet;
}
global.__d(_fun53542, 6802, [2, 6803]) /* metro module 6802, dependencies: [2, 6803] */;
@@ -1,11 +1,14 @@
/* Metro module 11023; source: modules/action_sheet/native/useActionSheetStartHeight.tsx; dependencies: [6276, 1478, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ActionSheetConstantsModule from './ActionSheetConstants.tsx'; /* Metro dependency 6276 */
function _fun84424(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11209:6, offset: 0x01f49f24, size: 120 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_START_HEIGHT_RATIO;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/useActionSheetStartHeight.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/useActionSheetStartHeight.tsx');
exports.default = function() {
return importDefault(dependencyMap[1])().height * ACTION_SHEET_START_HEIGHT_RATIO;
};
}
global.__d(_fun84424, 11023, [6276, 1478, 2]) /* metro module 11023, dependencies: [6276, 1478, 2] */;
@@ -1,59 +1,65 @@
/* Metro module 11621; source: modules/action_sheet/native/useCustomKeyboardBottomSheetConfig.tsx; dependencies: [31, 4502, 477, 1851, 4022, 1583, 1478, 11577, 6518, 11283, 2] */
import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import AccessibilityStore from '../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import UseInitialValue from '../../../hooks/useInitialValue.tsx'; /* Metro dependency 6518 */
import UseKeyboardActionSheetHeight from './useKeyboardActionSheetHeight.tsx'; /* Metro dependency 11577 */
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 PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
function _fun89082(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11807:6, offset: 0x01ffe1b4, size: 137 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/useCustomKeyboardBottomSheetConfig.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/useCustomKeyboardBottomSheetConfig.tsx');
exports.default = useCustomKeyboardBottomSheetConfig;
}
function useCustomKeyboardBottomSheetConfig({forceMaxHeight, enablePanDownToClose}) { // fn#89083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11807:227, offset: 0x01ffe23d, size: 334 bytes, params: 2, frame: 23
var object2;
forceMaxHeight = !(forceMaxHeight === undefined) && forceMaxHeight;
enablePanDownToClose = !(enablePanDownToClose === undefined) && enablePanDownToClose;
const value5 = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true});
const {minimum, maximum} = (importDefault(11577) /* metro dependency 11577: useKeyboardActionSheetHeight */)();
const env0_3 = maximum;
const {initialPosition,
animateOnMount} = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun89084);
const value8 = env0_3.useMemo(function() {
return forceMaxHeight ? [maximum, maximum] : [minimum, maximum];
}, [forceMaxHeight, maximum, minimum]);
object2 = {animateOnMount: animateOnMount, enablePanDownToClose: enablePanDownToClose};
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
object2.accessible = isAndroid2 ? undefined : !!isAndroid2;
object2.contentHeight = maximum;
object2.containerHeight = value5.height;
object2.enableDynamicSizing = false;
object2.initialPosition = initialPosition;
object2.keyboardBehavior = 'extend';
object2.android_keyboardInputMode = (require(11283) /* metro dependency 11283: useSafeAreaBottomKeyboardInfoController */).IS_SYSTEM_KEYBOARD_EXTERNAL ? 'adjustResize' : undefined;
object2.snapPoints = value8;
return object2;
}
function _fun89084() { // fn#89084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11807:402, offset: 0x01ffe38b, size: 211 bytes, params: 1, frame: 16
var r1;
var r0;
const object2 = {initialPosition: env0_1.height - minimum, animateOnMount: false};
let value = environment.__proto__;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isAndroid()) {
r0 = object2;
} else if (AccessibilityStore.useReducedMotion) {
r0 = object2;
} else {
if ((require(1851) /* metro dependency 1851: useSystemKeyboardHeightNative */).getSystemKeyboardHeight() !== 0) {
r1 = object2;
} else {
value = require(4022) /* metro dependency 4022: useKeyboardType */;
value = value.getKeyboardTypePrevious();
r1 = value !== (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes.SYSTEM ? object2 : {animateOnMount: true};
function useCustomKeyboardBottomSheetConfig({forceMaxHeight, enablePanDownToClose}) { // fn#89083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11807:227, offset: 0x01ffe23d, size: 334 bytes, params: 2, frame: 23
forceMaxHeight = !(forceMaxHeight === undefined) && forceMaxHeight;
enablePanDownToClose = !(enablePanDownToClose === undefined) && enablePanDownToClose;
const value5 = (UseWindowDimensionsNative)({ignoreKeyboard: true});
const {minimum, maximum} = (UseKeyboardActionSheetHeight)();
const maximum2 = maximum;
const {initialPosition,
animateOnMount} = (UseInitialValue)(_fun89084);
const value8 = maximum2.useMemo(function() {
return forceMaxHeight ? [maximum, maximum] : [minimum, maximum];
}, [forceMaxHeight, maximum, minimum]);
object = {animateOnMount: animateOnMount, enablePanDownToClose: enablePanDownToClose};
const isAndroid2 = (PlatformUtilsModule).isAndroid();
object.accessible = isAndroid2 ? undefined : !!isAndroid2;
object.contentHeight = maximum;
object.containerHeight = value5.height;
object.enableDynamicSizing = false;
object.initialPosition = initialPosition;
object.keyboardBehavior = 'extend';
object.android_keyboardInputMode = (require(11283) /* metro dependency 11283: useSafeAreaBottomKeyboardInfoController */).IS_SYSTEM_KEYBOARD_EXTERNAL ? 'adjustResize' : undefined;
object.snapPoints = value8;
return object;
function _fun89084() { // fn#89084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11807:402, offset: 0x01ffe38b, size: 211 bytes, params: 1, frame: 16
var r1;
var r0;
const object = {initialPosition: env0_1.height - minimum, animateOnMount: false};
let value = environment.__proto__;
if (PlatformUtilsModule.isAndroid()) {
r0 = object;
} else if (AccessibilityStore.useReducedMotion) {
r0 = object;
} else {
if ((require(1851) /* metro dependency 1851: useSystemKeyboardHeightNative */).getSystemKeyboardHeight() !== 0) {
r1 = object;
} else {
value = require(4022) /* metro dependency 4022: useKeyboardType */;
value = value.getKeyboardTypePrevious();
r1 = value !== (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes.SYSTEM ? object : {animateOnMount: true};
}
r0 = r1;
}
return r0;
}
r0 = r1;
}
return r0;
}
global.__d(_fun89082, 11621, [31, 4502, 477, 1851, 4022, 1583, 1478, 11577, 6518, 11283,
2]) /* metro module 11621, dependencies: [31, 4502, 477, 1851, 4022, 1583, 1478, 11577, 6518, 11283, 2] */;
@@ -1,4 +1,12 @@
/* Metro module 11577; source: modules/action_sheet/native/useKeyboardActionSheetHeight.tsx; dependencies: [5314, 1585, 1478, 5466, 2] */
import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UseCustomKeyboardHeight from '../../keyboard/native/useCustomKeyboardHeight.tsx'; /* Metro dependency 5466 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseWindowDimensionsNativeModule from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import * as UseSafeAreaInsetsNativeModule from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import * as UseCustomKeyboardHeightModule from '../../keyboard/native/useCustomKeyboardHeight.tsx'; /* Metro dependency 5466 */
function _fun88647(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:6, offset: 0x01fed635, size: 127 bytes, params: 8, frame: 18
const env0_0 = require;
const computeKeyboardActionSheetHeight = function(a0, a1, a2) {
@@ -8,25 +16,26 @@ function _fun88647(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/useKeyboardActionSheetHeight.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/useKeyboardActionSheetHeight.tsx');
exports.default = useKeyboardActionSheetHeight;
exports.getKeyboardActionSheetHeight = getKeyboardActionSheetHeight;
function useKeyboardActionSheetHeight() { // fn#88649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:344, offset: 0x01fed702, size: 84 bytes, params: 1, frame: 18
return computeKeyboardActionSheetHeight((UseSafeAreaInsetsNative)(),
(UseWindowDimensionsNative)({ignoreKeyboard: true}),
(UseCustomKeyboardHeight)());
}
function getKeyboardActionSheetHeight() { // fn#88650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:506, offset: 0x01fed756, size: 102 bytes, params: 1, frame: 19
const computeKeyboardActionSheetHeightBinding = computeKeyboardActionSheetHeight;
let value = UseSafeAreaInsetsNativeModule;
value = value.getSafeAreaInsets();
const windowDimensions = (UseWindowDimensionsNativeModule).getWindowDimensions({ignoreKeyboard: true});
const getCustomKeyboardHeight = UseCustomKeyboardHeightModule.getCustomKeyboardHeight;
return computeKeyboardActionSheetHeightBinding(value, windowDimensions, Reflect.apply(getCustomKeyboardHeight,
UseCustomKeyboardHeightModule, []));
}
}
function useKeyboardActionSheetHeight() { // fn#88649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:344, offset: 0x01fed702, size: 84 bytes, params: 1, frame: 18
return computeKeyboardActionSheetHeight((importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)(),
(importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true}),
(importDefault(5466) /* metro dependency 5466: useCustomKeyboardHeight */)());
}
function getKeyboardActionSheetHeight() { // fn#88650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11763:506, offset: 0x01fed756, size: 102 bytes, params: 1, frame: 19
const computeKeyboardActionSheetHeightBinding = computeKeyboardActionSheetHeight;
let value = require(1585) /* metro dependency 1585: useSafeAreaInsetsNative */;
value = value.getSafeAreaInsets();
const windowDimensions = (require(1478) /* metro dependency 1478: useWindowDimensionsNative */).getWindowDimensions({ignoreKeyboard: true});
const useCustomKeyboardHeightModule = require(5466) /* metro dependency 5466: useCustomKeyboardHeight */;
const getCustomKeyboardHeight = useCustomKeyboardHeightModule.getCustomKeyboardHeight;
return computeKeyboardActionSheetHeightBinding(value, windowDimensions, Reflect.apply(getCustomKeyboardHeight,
useCustomKeyboardHeightModule, []));
}
global.__d(_fun88647, 11577, [5314, 1585, 1478, 5466,
2]) /* metro module 11577, dependencies: [5314, 1585, 1478, 5466, 2] */;