Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,81 @@
/* Metro module 4080; source: modules/action_sheet/native/ActionSheetActionCreators.tsx; dependencies: [29, 31, 33, 694, 4081, 4082, 478, 1848, 2] */
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) {
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;
exports.ACTION_SHEET_HEIGHT_HALF = 'start';
exports.ACTION_SHEET_HEIGHT_EXPANDED = 'expanded';
exports.showActionSheet = closure;
}
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();
}
(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 _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});
}
@@ -0,0 +1,27 @@
/* Metro module 6276; source: modules/action_sheet/native/ActionSheetConstants.tsx; dependencies: [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');
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;
exports.ACTION_SHEET_BORDER_RADIUS_REDESIGN = 24;
exports.ACTION_SHEET_INNER_BORDER_RADIUS_LEGACY = 6;
exports.ACTION_SHEET_INNER_BORDER_RADIUS_REDESIGN = 22;
exports.ACTION_SHEET_MAX_WIDTH = 500;
exports.ACTION_SHEET_SPRING_CONFIG = {'damping': 17, 'stiffness': 240, 'mass': 0.5,
'restDisplacementThreshold': 0.4};
exports.ACTION_SHEET_SPRING_CONFIG_REDUCED_MOTION = {duration: 250};
exports.ACTION_SHEET_BORDER_RADIUS = 24;
exports.ACTION_SHEET_INNER_BORDER_RADIUS = 22;
exports.ACTION_SHEET_GRADIENT_BORDER_WIDTH = 2;
exports.ACTION_SHEET_GRADIENT_BORDER_RADIUS = 20;
exports.ACTION_SHEET_HANDLE_PADDING = 8;
exports.ACTION_SHEET_HANDLE_HEIGHT = 4;
exports.ACTION_SHEET_HANDLE_SPACING = 20;
exports.ACTION_SHEET_HANDLE_SPACING_REDESIGN = 12;
exports.ACTION_SHEET_HANDLE_OVERHANG_REDESIGN = 8;
exports.ACTION_SHEET_MINIMUM_BOTTOM_PADDING = 16;
}
@@ -0,0 +1,10 @@
/* Metro module 6513; source: modules/action_sheet/native/ActionSheetContext.tsx; dependencies: [31, 2] */
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 */;
value = value.createContext(null);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/ActionSheetContext.tsx');
exports.default = value;
}
@@ -0,0 +1,166 @@
/* Metro module 3849; source: modules/action_sheet/native/ActionSheetStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 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;
_fun31759(Store).displayName = 'ActionSheetStore';
array = new array(importDefault(694) /* metro dependency 694: Dispatcher */, {SHOW_ACTION_SHEET: function(a0) {
setContent(a0);
}, SHOW_ACTION_SHEET_QUICK_SWITCHER: function(a0) {
var setContentBinding = setContent;
var object = {key: 'QuickSwitcher'};
copyDataProperties(object, a0, setContentBinding);
setContentBinding(object);
}, HIDE_ACTION_SHEET: function({key}) {
clearContent(key);
}, HIDE_ALL_ACTION_SHEETS: function() {
env0_5 = [];
}, HIDE_ACTION_SHEET_QUICK_SWITCHER: function() {
clearContent('QuickSwitcher');
}, 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');
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) {
}
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 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 _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;
}
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 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;
}
@@ -0,0 +1,277 @@
/* Metro module 12072; source: modules/action_sheet/native/PanGestureAnimations.tsx; dependencies: [1305, 4577, 4504, 4017, 5321, 2] */
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 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();
const env0_7 = {code: 'function withPanGestureSpring_PanGestureAnimationsTsx3(destination,velocity,config){const{SPRING_CONFIG,withSpring}=this.__closure;const springConfig=config!==null&&config!==void 0?config:SPRING_CONFIG;return withSpring(destination,{...springConfig,velocity:velocity});}'};
const value = _fun92750();
const env0_9 = {code: 'function withPanGestureTiming_PanGestureAnimationsTsx4(destination,config){const{TIMING_CONFIG,withTiming}=this.__closure;const timingConfig=config!==null&&config!==void 0?config:TIMING_CONFIG;return withTiming(destination,timingConfig);}'};
const value2 = _fun92752();
const env0_11 = {code: 'function PanGestureAnimationsTsx5(){const{isGestureInProgress}=this.__closure;if(isGestureInProgress!=null){isGestureInProgress.set(false);}}'};
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');
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.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 _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);
}
};
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 _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;
}
@@ -0,0 +1,13 @@
/* Metro module 9213; source: modules/action_sheet/native/ShowShareActionSheetUtils.tsx; dependencies: [661, 683, 2] */
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');
exports.trackAppClickInNativeShareSheet = function(a0, a1) {
var defaultImport = importDefault(dependencyMap[1]);
var NATIVE_SHARE_SHEET_APP_CLICKED = AnalyticEvents.NATIVE_SHARE_SHEET_APP_CLICKED;
defaultImport.track(NATIVE_SHARE_SHEET_APP_CLICKED, {package_name: a0, location: a1});
};
}
@@ -0,0 +1,9 @@
/* Metro module 15267; source: modules/action_sheet/native/components/ActionSheetPresenter.tsx; dependencies: [2, 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;
exports.default = ActionSheetPresenter;
}
@@ -0,0 +1,9 @@
/* Metro module 11710; source: modules/action_sheet/native/components/BottomSheetTextInput.tsx; dependencies: [2, 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;
exports.default = BottomSheetTextInput;
}
@@ -0,0 +1,29 @@
/* Metro module 11205; source: modules/action_sheet/native/components/ContextMenuSubmenuActionSheetHeader.tsx; dependencies: [31, 27, 33, 4501, 9067, 1244, 2] */
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,
'paddingHorizontal': 16, 'alignItems': 'flex-start'}});
(require(2) /* metro dependency 2 */).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 = (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>
);
}
@@ -0,0 +1,110 @@
/* 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] */
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',
'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');
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
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 = (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);
}
}
@@ -0,0 +1,24 @@
/* Metro module 11408; source: modules/action_sheet/native/components/EmojiRowUtils.tsx; dependencies: [661, 1391, 2] */
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');
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);
}
return r0;
}
@@ -0,0 +1,527 @@
/* Metro module 11233; source: modules/action_sheet/native/components/LongPressForumPostActionSheet.tsx; dependencies: [31, 3785, 3786, 6898, 1226, 1867, 661, 1386, 33, 11234, 1244, 8999, 5097, 4054, 7153, 9216, 4076, 4066, 11237, 6705, 9646, 11007, 21, 6789, 7002, 8148, 11239, 4080, 11161, 1962, 4056, 9835, 10629, 10936, 11241, 11243, 11245, 4647, 4071, 7067, 1305, 8772, 6797, 3856, 566, 6896, 6860, 9619, 3829, 4805, 11247, 6819, 6805, 1581, 11251, 6807, 2] */
function _fun85864(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:6, offset: 0x01f7f806, size: 292 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 lurkingStore = importDefault(3785) /* metro dependency 3785: LurkingStore */;
const joinedThreadsStore = importDefault(3786) /* metro dependency 3786: JoinedThreadsStore */;
const threadMessageStore = importDefault(6898) /* metro dependency 6898: ThreadMessageStore */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_8 = constantsModule.AnalyticsObjectTypes;
const env0_9 = constantsModule.AnalyticsObjects;
const env0_10 = constantsModule.AnalyticsSections;
const env0_11 = constantsModule.ChannelSettingsSections;
const env0_12 = (require(1386) /* metro dependency 1386: ChannelConstants */).ChannelFlags;
const env0_13 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/LongPressForumPostActionSheet.tsx');
exports.default = ForumPostLongPressActionSheet;
}
function ForumPostLongPressActionSheet({thread, parentChannel, onClose}) { // fn#85865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:420, offset: 0x01f7f92a, size: 860 bytes, params: 2, frame: 35
const env0_2 = thread.getGuildId();
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun85866);
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([JoinedThreadsStore], function() {
return JoinedThreadsStore.hasJoined(thread.id);
});
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([JoinedThreadsStore], function() {
return JoinedThreadsStore.isMuted(thread.id);
});
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([LurkingStore], _fun85869);
const forumPostDataLoaderModule = require(6896) /* metro dependency 6896: ForumPostDataLoader */;
const useFirstForumPostMessage = forumPostDataLoaderModule.useFirstForumPostMessage;
const firstMessage = Reflect.apply(useFirstForumPostMessage, forumPostDataLoaderModule, [thread]).firstMessage;
const value6 = (require(6860) /* metro dependency 6860: ThreadHooks */).useIsThreadModerator(parentChannel);
const value7 = (require(6860) /* metro dependency 6860: ThreadHooks */).useCanManageThread(thread);
const value8 = (require(6860) /* metro dependency 6860: ThreadHooks */).useCanUnarchiveThread(thread);
const value9 = (require(9619) /* metro dependency 9619: ForumHooks */).useExistingPin(thread);
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ThreadMessageStore], _fun85870);
const DeveloperMode = (require(3829) /* metro dependency 3829: UserSettings */).DeveloperMode;
const value11 = DeveloperMode.useSetting();
const id2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore], function() {
return AuthenticationStore.getId();
});
const id = firstMessage == null ? undefined : firstMessage.author.id;
const value12 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(thread, true);
const value13 = (importDefault(11247) /* metro dependency 11247: useMobileChannelFavoriteActions */)(thread,
'ForumPostLongPressActionSheet');
const r8 = guild != null ? ((Component) => <Component guild={guild} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.LARGE} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */) : ((Avatar) => <Avatar size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.LARGE} channel={thread} />)((require(1305) /* metro dependency 1305: native */).Avatar);
const value16 = _fun85872({thread: thread, parentChannel: parentChannel, hasJoinedPost: value3, muted: value4,
isModerator: value6, isAuthor: id2 === id, canManageThread: value7, developerModeEnabled: value11,
existingPin: value9, messageCount: value10, canUnarchiveThread: value8, isLurking: value5, favorites: value13});
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
const actionSheetProps = {showGradient: true,
startExpanded: (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest()};
const ActionSheetIconHeader = (require(11251) /* metro dependency 11251: ActionSheetIconHeaderNative */).ActionSheetIconHeader;
actionSheetProps.header = <ActionSheetIconHeader title={value12} icon={r8} />;
return (
<ActionSheet {...actionSheetProps}>
{value16.map(_fun85893)}
</ActionSheet>
);
}
function _fun85866() { // fn#85866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:555, offset: 0x01f7fc86, size: 27 bytes, params: 1, frame: 11
return GuildStore.getGuild(env0_2);
}
function _fun85869() { // fn#85869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:726, offset: 0x01f7fce1, size: 40 bytes, params: 1, frame: 12
return env0_2 != null && LurkingStore.isLurking(env0_2);
}
function _fun85870() { // fn#85870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:976, offset: 0x01f7fd09, size: 46 bytes, params: 1, frame: 11
const value = environment.__proto__;
return ThreadMessageStore.getCount(thread.id) ?? 0;
}
function _fun85872({thread, hasJoinedPost, muted, isModerator, isAuthor, canManageThread, developerModeEnabled, existingPin, parentChannel, messageCount, canUnarchiveThread, isLurking, favorites}) { // fn#85872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:1351, offset: 0x01f7fd37, size: 2281 bytes, params: 2, frame: 36
var r10;
var buttons;
var object;
const BellIcon = (require(9216) /* metro dependency 9216: BellIcon */).BellIcon;
var object2;
var object18;
var object19;
var object21;
var object22;
var object23;
var object24;
var object25;
var object26;
var object27;
const PinIcon = (require(11245) /* metro dependency 11245: PinIcon */).PinIcon;
const TrashIcon = (require(4071) /* metro dependency 4071: TrashIcon */).TrashIcon;
var object28;
const items2 = [];
const archived = thread.threadMetadata?.archived;
const locked = thread.threadMetadata?.locked;
const hasFlag = thread.hasFlag;
const PINNED = ChannelFlags.PINNED;
const hasFlag2 = Reflect.apply(hasFlag, thread, [PINNED]);
const value3 = (importDefault(11234) /* metro dependency 11234: buildFavoritesSectionButtonsNative */)(favorites);
if (value3 != null) {
items2.push({sectionKey: 'favorites', buttons: [value3]});
}
let push = items2.push;
const object29 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object29.label = Reflect.apply(string, intl, [t.e6RscS]);
const EyeIcon = (require(8999) /* metro dependency 8999: EyeIcon */).EyeIcon;
object29.IconComponent = EyeIcon;
object29.onPress = function() {
require(dependencyMap[12]).ack(thread.id, {object: AnalyticsObjects.MARK_FORUM_POST_AS_READ_BUTTON,
objectType: AnalyticsObjectTypes.ACK_MANUAL}, true, true);
};
Reflect.apply(push, items2, [{sectionKey: 'mark-as-read', buttons: [object29]}]);
const object30 = {sectionKey: 'channel-actions', buttons: []};
if (!isLurking) {
buttons = object30.buttons;
push = buttons.push;
object = {};
string = intl.string;
if (hasJoinedPost) {
object.label = Reflect.apply(string, intl, [t['2LsZdT']]);
object.IconComponent = (require(4054) /* metro dependency 4054: UserMinusIcon */).UserMinusIcon;
object.onPress = onPress_85874;
Reflect.apply(push, buttons, [object]);
} else {
object.label = Reflect.apply(string, intl, [t.ihLPiO]);
object.IconComponent = BellIcon;
object.onPress = onPress_85875;
Reflect.apply(push, buttons, [object]);
}
}
if (archived) {
if (canUnarchiveThread) {
buttons = object30.buttons;
push = buttons.push;
object18 = {};
object18.label = intl.string(t.cnRubV);
object18.IconComponent = (require(4076) /* metro dependency 4076: ClockIcon */).ClockIcon;
object18.onPress = onPress_85876;
Reflect.apply(push, buttons, [object18]);
}
} else if (canManageThread) {
buttons = object30.buttons;
push = buttons.push;
object2 = {};
object2.label = intl.string(t.BTs4Kb);
object2.IconComponent = (require(4066) /* metro dependency 4066: XLargeIcon */).XLargeIcon;
object2.onPress = onPress_85877;
Reflect.apply(push, buttons, [object2]);
}
if (canManageThread) {
buttons = object30.buttons;
push = buttons.push;
object19 = {};
string = intl.string;
if (locked) {
object19.label = Reflect.apply(string, intl, [t['/OKSxp']]);
object19.IconComponent = (require(11237) /* metro dependency 11237: LockUnlockedIcon */).LockUnlockedIcon;
object19.onPress = onPress_85878;
Reflect.apply(push, buttons, [object19]);
} else {
object19.label = Reflect.apply(string, intl, [t['Ur/0Na']]);
object19.IconComponent = (require(6705) /* metro dependency 6705: LockIcon */).LockIcon;
object19.onPress = onPress_85879;
Reflect.apply(push, buttons, [object19]);
}
}
const value4 = !isModerator;
if (isAuthor && !(isModerator ? value4 : thread.isLockedThread())) {
buttons = object30.buttons;
push = buttons.push;
object21 = {};
object21.label = intl.string(t.NP1yHG);
object21.IconComponent = (require(9646) /* metro dependency 9646: PencilIcon */).PencilIcon;
object21.onPress = onPress_85880;
Reflect.apply(push, buttons, [object21]);
}
if (canManageThread) {
buttons = object30.buttons;
push = buttons.push;
object22 = {};
object22.label = intl.string(t.SGuVbR);
object22.IconComponent = (require(7002) /* metro dependency 7002: SettingsIcon */).SettingsIcon;
object22.onPress = onPress_85881;
Reflect.apply(push, buttons, [object22]);
if (parentChannel.availableTags.length > 0) {
buttons = object30.buttons;
push = buttons.push;
object23 = {};
object23.label = intl.string(t['436ZFw']);
object23.IconComponent = (require(11239) /* metro dependency 11239: TagsIcon */).TagsIcon;
object23.onPress = onPress_85882;
Reflect.apply(push, buttons, [object23]);
}
}
buttons = object30.buttons;
push = buttons.push;
const object31 = {};
string = intl.string;
const WqhZss = t.WqhZss;
object31.label = Reflect.apply(string, intl, [WqhZss]);
const LinkIcon = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
object31.IconComponent = LinkIcon;
object31.onPress = function() {
var moduleValue = require(dependencyMap[31]);
var {guild_id, id} = thread;
moduleValue.handleCopyLinkForumPost(guild_id, id, {section: AnalyticsSections.CONTEXT_MENU});
};
Reflect.apply(push, buttons, [object31]);
items2.push(object30);
if (!isLurking) {
object24 = {sectionKey: 'notifications', buttons: []};
buttons = object24.buttons;
push = buttons.push;
object25 = {};
string = intl.string;
if (muted) {
object25.label = Reflect.apply(string, intl, [t['0JQfsP']]);
object25.IconComponent = BellIcon;
object25.onPress = onPress_85884;
Reflect.apply(push, buttons, [object25]);
} else {
object25.label = Reflect.apply(string, intl, [t['nP+Ykd']]);
object25.IconComponent = (require(10629) /* metro dependency 10629: BellSlashIcon */).BellSlashIcon;
object25.onPress = onPress_85885;
Reflect.apply(push, buttons, [object25]);
}
buttons = object24.buttons;
push = buttons.push;
object26 = {};
object26.label = intl.string(t.HcoRu0);
object26.IconComponent = (require(11241) /* metro dependency 11241: ChannelNotificationIcon */).ChannelNotificationIcon;
object26.onPress = onPress_85886;
object26.disableColor = true;
Reflect.apply(push, buttons, [object26]);
items2.push(object24);
}
const object32 = {sectionKey: 'admin-actions', buttons: []};
if (isModerator) {
buttons = object32.buttons;
push = buttons.push;
object27 = {};
string = intl.string;
if (hasFlag2) {
object27.label = Reflect.apply(string, intl, [t.trD8ao]);
object27.IconComponent = PinIcon;
object27.onPress = onPress_85887;
Reflect.apply(push, buttons, [object27]);
} else {
object27.label = Reflect.apply(string, intl, [t.EnaWhu]);
object27.IconComponent = PinIcon;
object27.onPress = onPress_85888;
Reflect.apply(push, buttons, [object27]);
}
}
if (isModerator) {
r10 = isAuthor && value4;
r10 = r10 && messageCount > 0;
buttons = object32.buttons;
push = buttons.push;
string = intl.string;
r10 = r10 ? Reflect.apply(string, intl, [t.xwMqD7]) : Reflect.apply(string, intl, [t.nEOg1N]);
Reflect.apply(push, buttons, [{label: r10, IconComponent: TrashIcon, onPress: onPress_85890}]);
} else if (isAuthor) {
r10 = isAuthor && value4;
r10 = r10 && messageCount > 0;
buttons = object32.buttons;
push = buttons.push;
string = intl.string;
r10 = r10 ? Reflect.apply(string, intl, [t.xwMqD7]) : Reflect.apply(string, intl, [t.nEOg1N]);
Reflect.apply(push, buttons, [{label: r10, IconComponent: TrashIcon, onPress: onPress_85890}]);
}
items2.push(object32);
if (developerModeEnabled) {
push = items2.push;
object28 = {};
object28.label = intl.string(t.DQ797g);
object28.IconComponent = (require(8772) /* metro dependency 8772: IdIcon */).IdIcon;
object28.onPress = onPress_85892;
Reflect.apply(push, items2, [{sectionKey: 'developer-actions', buttons: [object28]}]);
}
return items2;
}
function _fun85893({sectionKey, buttons}) { // fn#85893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:6486, offset: 0x01f80efc, size: 97 bytes, params: 2, frame: 18
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
const Group = ActionSheetRow.Group;
return (
<Group hasIcons key={sectionKey}>
{buttons.map(_fun85894)}
</Group>
);
}
function onPress_85874() { // fn#85874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2132, offset: 0x01f8067b, size: 52 bytes, params: 1, frame: 13
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
return value.leaveThread(thread, 'Context Menu');
}
function onPress_85875() { // fn#85875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2280, offset: 0x01f806af, size: 52 bytes, params: 1, frame: 13
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
return value.joinThread(thread, 'Context Menu');
}
function onPress_85876() { // fn#85876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2426, offset: 0x01f806e3, size: 48 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
value.unarchiveThread(thread, false);
}
function onPress_85877() { // fn#85877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2570, offset: 0x01f80713, size: 48 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
value.archiveThread(thread, false);
}
function onPress_85878() { // fn#85878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2724, offset: 0x01f80743, size: 45 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
value.unlockThread(thread);
}
function onPress_85879() { // fn#85879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2860, offset: 0x01f80770, size: 45 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
value.lockThread(thread);
}
function onPress_85880() { // fn#85880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:3041, offset: 0x01f8079d, size: 210 bytes, params: 1, frame: 18
const forumComposerModalActionCreatorsModule = require(11007) /* metro dependency 11007: ForumComposerModalActionCreators */;
const openCreateForumPostModal = forumComposerModalActionCreatorsModule.openCreateForumPostModal;
const object2 = {};
const parentChannelBinding = parentChannel;
object2.guildId = parentChannelBinding.guild_id;
object2.parentChannelId = parentChannelBinding.id;
const threadBinding = thread;
object2.threadId = threadBinding.id;
const defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
object2.messageId = defaultImport.castChannelIdAsMessageId(threadBinding.id);
object2.isEdit = true;
const FORUM_CHANNEL = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).FORUM_CHANNEL;
const items2 = [FORUM_CHANNEL];
const GUILD_CHANNEL = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).GUILD_CHANNEL;
items2[1] = GUILD_CHANNEL;
object2.analyticsLocations = items2;
const CHANNEL_LIST = AnalyticsSections.CHANNEL_LIST;
const CONTEXT_MENU = AnalyticsObjects.CONTEXT_MENU;
object2.analyticsLocationObject = {section: CHANNEL_LIST, object: CONTEXT_MENU};
Reflect.apply(openCreateForumPostModal, forumComposerModalActionCreatorsModule, [object2]);
}
function onPress_85881() { // fn#85881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:3451, offset: 0x01f8086f, size: 80 bytes, params: 1, frame: 15
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
const setSection = defaultImport.setSection;
const OVERVIEW = ChannelSettingsSections.OVERVIEW;
Reflect.apply(setSection, defaultImport, [OVERVIEW]);
value = defaultImport;
value.open(thread.id);
}
function onPress_85882() { // fn#85882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:3644, offset: 0x01f808bf, size: 112 bytes, params: 1, frame: 17
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(dependencyMap[27]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[29]);
value = value(dependencyMap[28], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'ForumPostTagsActionSheet', {thread: thread,
parentChannel: parentChannel, canManageThread: canManageThread}]);
}
function onPress_85884() { // fn#85884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4121, offset: 0x01f80979, size: 60 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
return value.setNotificationSettings(thread, {muted: !muted});
}
function onPress_85885() { // fn#85885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4285, offset: 0x01f809b5, size: 135 bytes, params: 1, frame: 18
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(dependencyMap[27]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[29]);
value = value(dependencyMap[33], dependencyMap.paths);
const threadBinding = thread;
const value3 = 'muteSettings' + threadBinding.id;
const object2 = {};
object2.guildId = threadBinding.getGuildId();
object2.channelId = threadBinding.id;
Reflect.apply(openLazy, defaultImport, [value, value3, object2]);
}
function onPress_85886() { // fn#85886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4516, offset: 0x01f80a3c, size: 45 bytes, params: 1, frame: 11
let value = environment.__proto__.__proto__;
value = require(11243) /* metro dependency 11243: threadActionSheets */;
return value.showThreadNotificationsBottomSheet(thread);
}
function onPress_85887() { // fn#85887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4751, offset: 0x01f80a69, size: 45 bytes, params: 1, frame: 11
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
return value.unpin(thread);
}
function onPress_85888() { // fn#85888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4877, offset: 0x01f80a96, size: 319 bytes, params: 1, frame: 18
var environment;
var value2;
var defaultImport;
var defaultImport2;
var show;
var object2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
if (existingPin != null) {
value = environment.__proto__.__proto__;
defaultImport2 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport2.show;
object2 = {};
object2.title = intl.string(t.IMbjxo);
object2.body = intl.string(t['mi5+Vl']);
object2.cancelText = intl.string(t.gm1Vej);
object2.confirmText = intl.string(t.p89ACt);
object2.onConfirm = onConfirm_85889;
Reflect.apply(show, defaultImport2, [object2]);
} else {
value2 = environment.__proto__.__proto__;
defaultImport = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
defaultImport.pin(thread);
}
}
function onPress_85890() { // fn#85890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:5336, offset: 0x01f80c07, size: 561 bytes, params: 1, frame: 22
var r7;
var r8;
var value7;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const value2 = Reflect.apply(string, intl, [t.nEOg1N]);
const format = intl.format;
const su3voL = t.su3voL;
let object2 = {};
object2.postName = '"' + thread.name + '"';
if (env0_7) {
value7 = intl.string(t.xwMqD7);
r7 = intl.string(t.RUHcyk);
r8 = value7;
} else if (isAuthor && !isModerator) {
r7 = intl.format(t['6/pY2+'], {postName: '"' + thread.name + '"'});
r8 = value2;
} else {
r7 = Reflect.apply(format, intl, [su3voL, object2]);
r8 = value2;
}
const defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
const show = defaultImport.show;
object2 = {title: r8, body: r7};
object2.cancelText = intl.string(t.gm1Vej);
object2.confirmText = intl.string(t.p89ACt);
object2.onConfirm = onConfirm_85891;
const ButtonColors = (require(1305) /* metro dependency 1305: native */).ButtonColors;
const RED = ButtonColors.RED;
object2.confirmColor = RED;
Reflect.apply(show, defaultImport, [object2]);
}
function onPress_85892() { // fn#85892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:6071, offset: 0x01f80eb4, size: 72 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
value.copy(thread.id);
(require(3856) /* metro dependency 3856: ToastUtils */).presentPostIdCopied();
}
function _fun85894({label, IconComponent, onPress, disableColor, isDestructive}, a1) { // fn#85894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:6575, offset: 0x01f80f5d, size: 290 bytes, params: 3, frame: 23
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let r7 = label === intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nEOg1N) || label === intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xwMqD7);
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
r7 = r7 ? 'danger' : isDestructive !== true ? undefined : 'danger';
const ActionSheetRow2 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
const Icon = ActionSheetRow2.Icon;
return (
<ActionSheetRow
variant={r7}
icon={<Icon IconComponent={IconComponent} disableColor={disableColor} />}
label={label}
onPress={function() {
onPress();
onClose();
}}
key={a1}
/>
);
}
function onPress_85888OnConfirm() { // fn#85889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:5113, owner: onPress_85888.onConfirm, offset: 0x01f80bd5, size: 50 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
value.replacePin(existingPin, thread);
}
function onPress_85890OnConfirm() { // fn#85891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:5765, owner: onPress_85890.onConfirm, offset: 0x01f80e38, size: 124 bytes, params: 1, frame: 17
var defaultImport;
var threadBinding;
var id;
var defaultImport2;
var deleteMessage;
let value = environment.__proto__;
if (env1_7) {
defaultImport2 = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
deleteMessage = defaultImport2.deleteMessage;
threadBinding = thread;
id = threadBinding.id;
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
Reflect.apply(deleteMessage, defaultImport2, [id, value.castChannelIdAsMessageId(threadBinding.id)]);
} else {
defaultImport = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
defaultImport.deleteChannel(thread.id);
}
}
@@ -0,0 +1,49 @@
/* Metro module 11163; source: modules/action_sheet/native/components/PublishModal.tsx; dependencies: [57, 31, 27, 33, 4501, 6235, 11164, 1305, 1244, 2] */
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 */;
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 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');
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]) {
return (
<View style={styles.alertLoading}>
<ActivityIndicator animating />
</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>
);
}
@@ -0,0 +1,20 @@
/* Metro module 11232; source: modules/action_sheet/native/components/showLongPressForumPostActionSheet.tsx; dependencies: [4080, 11233, 1962, 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');
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}]);
}
@@ -0,0 +1,20 @@
/* Metro module 9212; source: modules/action_sheet/native/showShareActionSheet.android.tsx; dependencies: [27, 9213, 2] */
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 */;
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');
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
(require(9213) /* metro dependency 9213: ShowShareActionSheetUtils */).trackAppClickInNativeShareSheet(app,
location);
}
@@ -0,0 +1,8 @@
/* Metro module 6802; source: modules/action_sheet/native/showSimpleActionSheet.tsx; dependencies: [2, 6803] */
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');
exports.showSimpleActionSheet = (require(6803) /* metro dependency 6803: showSimpleActionSheetNative */).showSimpleActionSheet;
}
@@ -0,0 +1,11 @@
/* Metro module 11023; source: modules/action_sheet/native/useActionSheetStartHeight.tsx; dependencies: [6276, 1478, 2] */
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');
exports.default = function() {
return importDefault(dependencyMap[1])().height * ACTION_SHEET_START_HEIGHT_RATIO;
};
}
@@ -0,0 +1,59 @@
/* Metro module 11621; source: modules/action_sheet/native/useCustomKeyboardBottomSheetConfig.tsx; dependencies: [31, 4502, 477, 1851, 4022, 1583, 1478, 11577, 6518, 11283, 2] */
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');
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};
}
r0 = r1;
}
return r0;
}
@@ -0,0 +1,32 @@
/* Metro module 11577; source: modules/action_sheet/native/useKeyboardActionSheetHeight.tsx; dependencies: [5314, 1585, 1478, 5466, 2] */
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) {
var value = a2;
var value4 = a1.height - require(dependencyMap[0]).NAV_BAR_HEIGHT_MULTILINE - a0.top;
return {minimum: value, maximum: value >= value4 ? value : value4};
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).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((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, []));
}