Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,15 @@
|
||||
/* Metro module 15142; source: modules/group_dm/getGroupDMRecipientLimit.tsx; dependencies: [1878, 661, 2] */
|
||||
function _fun115460(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15339:6, offset: 0x0246155d, size: 138 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_1 = constantsModule.MAX_GROUP_DM_PARTICIPANTS;
|
||||
const env0_2 = constantsModule.MAX_GROUP_DM_STAFF_PARTICIPANTS;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/group_dm/getGroupDMRecipientLimit.tsx');
|
||||
exports.default = function(a0) {
|
||||
var value2 = UserStore.getCurrentUser();
|
||||
return value2 == null ? a0 == null ? MAX_GROUP_DM_PARTICIPANTS : a0.userLimit > 0 ? a0.userLimit : MAX_GROUP_DM_PARTICIPANTS : value2.isStaff() ? MAX_GROUP_DM_STAFF_PARTICIPANTS : a0 == null ? MAX_GROUP_DM_PARTICIPANTS : a0.userLimit > 0 ? a0.userLimit : MAX_GROUP_DM_PARTICIPANTS;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,915 @@
|
||||
/* Metro module 9894; source: modules/group_dm/native/ChatGDMCustomize.tsx; dependencies: [5, 57, 31, 27, 1379, 33, 4501, 697, 5463, 566, 4805, 6518, 1423, 9895, 4603, 1244, 3857, 7684, 9896, 5278, 4573, 7981, 4578, 9898, 2] */
|
||||
function _fun77540(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10080:6, offset: 0x01e0059a, size: 522 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value2.ScrollView;
|
||||
const env0_7 = value2.View;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value3.jsx;
|
||||
const env0_10 = value3.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
const MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND;
|
||||
object2.container = {backgroundColor: MOBILE_ACTIONSHEET_BACKGROUND};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.iconUploader = {marginTop: PX_24, alignSelf: 'center'};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.iconClear = {marginTop: PX_8, alignSelf: 'center'};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.textInput = {marginVertical: PX_16};
|
||||
const object3 = {};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.marginTop = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.gap = PX_8;
|
||||
object3.flexDirection = 'row';
|
||||
object3.alignItems = 'center';
|
||||
object2.rateLimitedContainer = object3;
|
||||
const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL;
|
||||
object2.rateLimitedText = {fontSize: 12, color: TEXT_FEEDBACK_CRITICAL};
|
||||
const env0_11 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
value = value.memo(value.forwardRef(_fun77541));
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/group_dm/native/ChatGDMCustomize.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun77541({channelId, onFinish}, a1) { // fn#77541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10080:689, offset: 0x01e007a4, size: 1603 bytes, params: 3, frame: 39
|
||||
var scrollView;
|
||||
var object;
|
||||
var items2;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var TextInput;
|
||||
var object7;
|
||||
var Button;
|
||||
var object8;
|
||||
var value32;
|
||||
let env0_5 = undefined;
|
||||
const styles = useStyles();
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)({includeKeyboardHeight: true}).insets;
|
||||
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
|
||||
return ChannelStore.getChannel(channelId);
|
||||
});
|
||||
const r8 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel) ?? '';
|
||||
const value6 = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(r8);
|
||||
const env0_3 = value6;
|
||||
let binding = env0_5;
|
||||
const value7 = binding.useRef(null);
|
||||
const env0_4 = value7;
|
||||
let useState = binding.useState;
|
||||
const value9 = env0_4(Reflect.apply(useState, binding, [undefined]), 2);
|
||||
const property = value9[0];
|
||||
env0_5 = property;
|
||||
const property2 = value9[1];
|
||||
const r6 = property != null && property.length > 0 && property !== value6;
|
||||
const [property3, property4] = env0_4(env0_5.useState(undefined), 2);
|
||||
const r18 = property3 === 'CLEARED_ICON' ? undefined : property3 ?? channel?.icon;
|
||||
const value15 = channel?.isManaged() !== true;
|
||||
const r9 = value15 && (property3 != null && property3 !== 'CLEARED_ICON' || channel?.icon != null);
|
||||
binding = env0_5;
|
||||
const value19 = binding.useMemo(function() {
|
||||
return {makeURL: _fun77544, clear: _fun77545};
|
||||
}, [channel, channelId]);
|
||||
const value20 = binding.useCallback(_fun77546, [r6, property3]);
|
||||
const value21 = binding.useState(null);
|
||||
const binding2 = env0_4;
|
||||
const value22 = binding2(value21, 2);
|
||||
const property5 = value22[0];
|
||||
const env0_11 = value22[1];
|
||||
useState = binding.useState;
|
||||
const value23 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property6 = value23[0];
|
||||
const env0_12 = value23[1];
|
||||
const value26 = binding.useCallback(env0_3(_fun77548),
|
||||
[(importDefault(9895) /* metro dependency 9895: useAnnounceAsyncCompletionNative */)(), channelId, property,
|
||||
property3, onFinish]);
|
||||
binding.useEffect(_fun77549, [value6]);
|
||||
binding.useEffect(_fun77550, [property5]);
|
||||
binding.useImperativeHandle(a1, _fun77552);
|
||||
if (channel == null) {
|
||||
scrollView = <ScrollView style={styles.container} />;
|
||||
} else {
|
||||
var scrollViewBindingProps = {style: styles.container};
|
||||
object = {};
|
||||
object.paddingHorizontal = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object.paddingBottom = insets.bottom;
|
||||
scrollViewBindingProps.contentContainerStyle = object;
|
||||
items2 = [((Component) => <Component style={styles.iconUploader} onUpload={property4} icon={r18} makeURL={value19.makeURL} disabled={!value15} />)(importDefault(9896) /* metro dependency 9896: IconUploader */)];
|
||||
items2[1] = r9 ? ((PressableOpacity) => <PressableOpacity onPress={value19.clear} accessibilityRole="button"><Text style={styles.iconClear} variant="text-sm/semibold" color="text-link">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['uY+Nk/'])}</Text></PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity) : null;
|
||||
var viewBindingProps2 = {style: styles.textInput};
|
||||
TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
||||
items2[2] = <View {...viewBindingProps2}><TextInput ref={value7} label={intl.string(t.GEGW3P)} placeholder={r8} onChange={property2} isDisabled={property6} isClearable /></View>;
|
||||
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
var buttonProps = {onPress: value26, text: intl.string(t.K344S7), variant: value20() ? 'primary' : 'secondary'};
|
||||
value32 = value20();
|
||||
buttonProps.disabled = value32 ? property5 != null : !value32;
|
||||
buttonProps.loading = property6;
|
||||
items2[3] = <Button {...buttonProps} />;
|
||||
items2[4] = property5 != null ? <View style={styles.rateLimitedContainer}><Text variant="text-sm/semibold" color="text-feedback-critical">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Whhv4w)}</Text>{((Component) => <Component style={styles.rateLimitedText} deadline={global.Date.now() + 1000 * property5} />)(importDefault(9898) /* metro dependency 9898: CountDown */)}</View> : null;
|
||||
scrollView = <ScrollView {...scrollViewBindingProps}>{items2}</ScrollView>;
|
||||
}
|
||||
return scrollView;
|
||||
}
|
||||
|
||||
function _fun77543() { // fn#77543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10080:1167, offset: 0x01e00de7, size: 30 bytes, params: 1, frame: 3
|
||||
return {makeURL: makeURL_77544, clear: clear_77545};
|
||||
}
|
||||
|
||||
function _fun77546() { // fn#77546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10080:1365, offset: 0x01e00e9c, size: 22 bytes, params: 1, frame: 3
|
||||
return env0_7 != null || env0_6;
|
||||
}
|
||||
|
||||
function* _fun77548() { // fn#77548, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10080:1502, offset: 0x01e00ebd, size: 601 bytes, params: 1, frame: 22
|
||||
var r2;
|
||||
var View2;
|
||||
var retry_after;
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var binding;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var binding2;
|
||||
var property;
|
||||
var value8;
|
||||
var setIcon;
|
||||
var value9;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var length;
|
||||
var value14;
|
||||
var value15;
|
||||
var binding3;
|
||||
var value16;
|
||||
var setName;
|
||||
var value17;
|
||||
var value18;
|
||||
var value19;
|
||||
var value20;
|
||||
var binding4;
|
||||
var binding5;
|
||||
var value21;
|
||||
var intl;
|
||||
var string;
|
||||
var value22;
|
||||
var t;
|
||||
var ZhunuI;
|
||||
var value23;
|
||||
var value24;
|
||||
var value25;
|
||||
var value26;
|
||||
var error;
|
||||
var body;
|
||||
var value27;
|
||||
var value28;
|
||||
var value29;
|
||||
var binding6;
|
||||
var value30;
|
||||
var open;
|
||||
var object3;
|
||||
var value31;
|
||||
var CircleErrorIcon;
|
||||
var value32;
|
||||
var formatToPlainString;
|
||||
var value33;
|
||||
var r477WB;
|
||||
var object4;
|
||||
var status;
|
||||
var value34;
|
||||
var value35;
|
||||
exceptionLanding124: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = undefined;
|
||||
value3 = environment.__proto__;
|
||||
reducibleJoin4: while (true) {
|
||||
reduciblePort123: while (true) {
|
||||
exceptionLanding74: while (true) {
|
||||
try {
|
||||
try {
|
||||
binding = env1_12;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
try {
|
||||
body = error.body;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
value27 = body == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
reducibleJoin81: while (true) {
|
||||
if (value27) {
|
||||
retry_after = value;
|
||||
break reducibleJoin81;
|
||||
}
|
||||
try {
|
||||
retry_after = body.retry_after;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
break reducibleJoin81;
|
||||
}
|
||||
try {
|
||||
value28 = retry_after != null;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
if (value28) {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
body = error.body;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
value35 = body == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
reducibleJoin122: while (true) {
|
||||
if (value35) {
|
||||
retry_after = value;
|
||||
break reducibleJoin122;
|
||||
}
|
||||
try {
|
||||
retry_after = body.retry_after;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
break reducibleJoin122;
|
||||
}
|
||||
try {
|
||||
useStyles(retry_after);
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
} else {
|
||||
value29 = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
binding6 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
property = binding6[16];
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
value30 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
open = value30.open;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
object3.key = 'GCM_ERROR_GENERIC';
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
property = binding6[17];
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
value31 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
CircleErrorIcon = value31.CircleErrorIcon;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
object3.IconComponent = CircleErrorIcon;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
property = binding6[15];
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
value32 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
intl = value32.intl;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
property = binding6[15];
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
value33 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
t = value33.t;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
r477WB = t.r477WB;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
status = error.status;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
object4.code = status;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
value34 = Reflect.apply(formatToPlainString, intl, [r477WB, object4]);
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
object3.content = value34;
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(open, value30, [object3]);
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
}
|
||||
break reduciblePort123;
|
||||
}
|
||||
env1_12(false);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding(true);
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
value4 = null;
|
||||
try {
|
||||
try {
|
||||
value5 = value4 == View;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
reducibleJoin12: while (true) {
|
||||
if (value5) {
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
value6 = View !== 'CLEARED_ICON';
|
||||
r2 = value6;
|
||||
break reducibleJoin12;
|
||||
}
|
||||
r2 = value5;
|
||||
break reducibleJoin12;
|
||||
}
|
||||
if (!r2) {
|
||||
value7 = environment.__proto__.__proto__;
|
||||
try {
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding2[14];
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value8 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
setIcon = value8.setIcon;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value9 = View === 'CLEARED_ICON';
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
reducibleJoin25: while (true) {
|
||||
if (value9) {
|
||||
View2 = value4;
|
||||
break reducibleJoin25;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
View2 = View;
|
||||
break reducibleJoin25;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value10 = Reflect.apply(setIcon, value8, [require, View2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
yield value10;
|
||||
try {
|
||||
try {
|
||||
value11 = undefined;
|
||||
value12 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
reducibleJoin30: while (true) {
|
||||
if (value12) {
|
||||
env1_12(false);
|
||||
return value11;
|
||||
}
|
||||
break reducibleJoin30;
|
||||
}
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env1_5;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value13 = value4 != binding;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
reducibleJoin37: while (true) {
|
||||
if (value13) {
|
||||
try {
|
||||
try {
|
||||
binding = env1_5;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
length = binding.length;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value14 = length > 0;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
r2 = value14;
|
||||
break reducibleJoin37;
|
||||
}
|
||||
r2 = value13;
|
||||
break reducibleJoin37;
|
||||
}
|
||||
if (r2) {
|
||||
value15 = environment.__proto__.__proto__;
|
||||
try {
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding3[14];
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value16 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
setName = value16.setName;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env1_5;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value17 = Reflect.apply(setName, value16, [require, binding]);
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
yield value17;
|
||||
try {
|
||||
try {
|
||||
value18 = undefined;
|
||||
value19 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
reducibleJoin51: while (true) {
|
||||
if (value19) {
|
||||
env1_12(false);
|
||||
return value18;
|
||||
}
|
||||
break reducibleJoin51;
|
||||
}
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env1_13;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
value20 = environment.__proto__.__proto__;
|
||||
try {
|
||||
try {
|
||||
binding4 = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding5 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding5[15];
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value21 = binding4(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
intl = value21.intl;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
string = intl.string;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding5[15];
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value22 = binding4(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
t = value22.t;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
ZhunuI = t.ZhunuI;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value23 = Reflect.apply(string, intl, [ZhunuI]);
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value24 = binding(value23);
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
yield value24;
|
||||
try {
|
||||
try {
|
||||
value25 = undefined;
|
||||
value26 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
if (value26) {
|
||||
env1_12(false);
|
||||
return value25;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
importDefault();
|
||||
} catch (error) {
|
||||
break exceptionLanding74;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding124;
|
||||
}
|
||||
env1_12(false);
|
||||
return value;
|
||||
}
|
||||
env1_12(false);
|
||||
throw error;
|
||||
}
|
||||
|
||||
function _fun77549() { // fn#77549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10080:2005, offset: 0x01e01116, size: 46 bytes, params: 1, frame: 11
|
||||
if (env0_4.current != null) {
|
||||
env0_4.current.setText(env0_3);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun77550() { // fn#77550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10080:2068, offset: 0x01e01144, size: 56 bytes, params: 1, frame: 13
|
||||
if (env0_10 != null) {
|
||||
global.setTimeout(_fun77551, 1000 * env0_10);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun77552() { // fn#77552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10080:2146, offset: 0x01e0118e, size: 16 bytes, params: 1, frame: 2
|
||||
return {hasUnsavedChanges: env0_9};
|
||||
}
|
||||
|
||||
function makeURL_77544(a0) { // fn#77544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10080:1181, offset: 0x01e00e05, size: 96 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = undefined;
|
||||
const defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
const getChannelIconURL = defaultImport.getChannelIconURL;
|
||||
const object2 = {};
|
||||
object2.id = channelId;
|
||||
object2.icon = a0;
|
||||
object2.applicationId = channel == null ? value : channel.getApplicationId();
|
||||
object2.size = 64;
|
||||
return Reflect.apply(getChannelIconURL, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function clear_77545() { // fn#77545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10080:1290, offset: 0x01e00e65, size: 55 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_8;
|
||||
const channelBinding = channel;
|
||||
const value2 = undefined;
|
||||
binding((channelBinding == null ? value2 : channel.icon) != null ? 'CLEARED_ICON' : value2);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun77551() { // fn#77551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10080:2094, offset: 0x01e0117c, size: 18 bytes, params: 1, frame: 11
|
||||
return env1_11(null);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Metro module 9880; source: modules/group_dm/native/ChatGDMCustomizeActionSheet.tsx; dependencies: [31, 33, 9881, 9883, 1244, 9894, 2] */
|
||||
function _fun77478(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10066:6, offset: 0x01dfdd5f, size: 138 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/group_dm/native/ChatGDMCustomizeActionSheet.tsx');
|
||||
exports.default = ChatGDMCustomizeActionSheet;
|
||||
}
|
||||
|
||||
function ChatGDMCustomizeActionSheet({channelId}) { // fn#77479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10066:217, offset: 0x01dfdde9, size: 166 bytes, params: 2, frame: 19
|
||||
const value2 = (importDefault(9881) /* metro dependency 9881: useNavigatorConfirmChangesOnBack */)();
|
||||
const env0_1 = value2.onGoBack;
|
||||
const env0_2 = value2.ref;
|
||||
const ModalStackNavigator = importDefault(9883) /* metro dependency 9883: ModalStackNavigator */;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<ModalStackNavigator
|
||||
screenKey="kick"
|
||||
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1r5E+m'])}
|
||||
render={render_77480}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function ChatGDMCustomizeActionSheetRender() { // fn#77480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10066:395, owner: ChatGDMCustomizeActionSheet.render, offset: 0x01dfde8f, size: 67 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component ref={ref} onFinish={onGoBack} channelId={channelId} />)(importDefault(9894) /* metro dependency 9894: ChatGDMCustomize */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
/* Metro module 11389; source: modules/group_dm/native/ChatGDMUpsellActionSheet.tsx; dependencies: [31, 27, 33, 4501, 697, 1585, 3968, 1365, 4080, 6275, 5475, 11390, 4578, 1244, 6277, 4573, 10227, 4056, 2] */
|
||||
function _fun87303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:6, offset: 0x01fb75db, size: 525 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.title = {marginBottom: PX_4, textAlign: 'center'};
|
||||
const object4 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object4.backgroundColor = BACKGROUND_BASE_LOW;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.padding = PX_16;
|
||||
object2.footer = object4;
|
||||
object2.body = {textAlign: 'center'};
|
||||
const object6 = {};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.marginVertical = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.padding = PX_16;
|
||||
object2.noticeContainer = object6;
|
||||
object2.innerContainer = {'flexDirection': 'row', 'alignItems': 'center', 'paddingBottom': 16};
|
||||
object2.secondInnerContainer = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
object2.text = {flex: 1};
|
||||
object2.titleImage = {'padding': 16, 'justifyContent': 'center', 'alignItems': 'center'};
|
||||
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
||||
object2.item = {'backgroundColor': null, 'marginRight': 16, 'height': 40, 'width': 40, 'borderRadius': 20,
|
||||
'alignItems': 'center', 'justifyContent': 'center', backgroundColor: BACKGROUND_MOD_STRONG};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.button = {paddingTop: PX_16};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/group_dm/native/ChatGDMUpsellActionSheet.tsx');
|
||||
exports.default = ChatGDMUpsellActionSheet;
|
||||
}
|
||||
|
||||
function ChatGDMUpsellActionSheet({onClick}) { // fn#87304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:968, offset: 0x01fb77e8, size: 1111 bytes, params: 2, frame: 32
|
||||
const styles = useStyles();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const value2 = env0_3.useCallback(_fun87305, [onClick]);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const bottomSheetProps = {'showGradient': true, 'scrollable': true, 'startExpanded': true,
|
||||
header: <View style={styles.titleImage}>{((Component) => <Component source={importDefault(11390) /* metro dependency 11390 */} resizeMode="contain" />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</View>};
|
||||
const items2 = [styles.footer];
|
||||
items2[1] = {padding: 16, paddingBottom: bottom + 16};
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
bottomSheetProps.footer = <View style={items2}><Button text={Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t['3PatSz']])} onPress={value2} /><View style={styles.button}><Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])} onPress={onPress_87306} variant="tertiary" /></View></View>;
|
||||
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const items3 = [<Text style={styles.title} variant="heading-lg/extrabold" accessibilityRole="header">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['bkqux/'])}</Text>];
|
||||
string = intl.string;
|
||||
const N6TdqN = (require(1244) /* metro dependency 1244: indexNative */).t.N6TdqN;
|
||||
items3[1] = <Text style={styles.body} variant="text-md/medium" color="text-muted">{Reflect.apply(string, intl,
|
||||
[N6TdqN])}</Text>;
|
||||
let item = styles.item;
|
||||
const TimerIcon = (require(10227) /* metro dependency 10227: TimerIcon */).TimerIcon;
|
||||
view = <View style={item}><TimerIcon size="sm" /></View>;
|
||||
let text = styles.text;
|
||||
string = intl.string;
|
||||
const Fq3DJb = (require(1244) /* metro dependency 1244: indexNative */).t.Fq3DJb;
|
||||
view = <View style={styles.innerContainer}>{view}<Text style={text} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
|
||||
intl, [Fq3DJb])}</Text></View>;
|
||||
const items5 = [view];
|
||||
item = styles.item;
|
||||
const LinkIcon = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
|
||||
view = <View style={item}><LinkIcon size="sm" /></View>;
|
||||
text = styles.text;
|
||||
string = intl.string;
|
||||
const XKbf2G = (require(1244) /* metro dependency 1244: indexNative */).t.XKbf2G;
|
||||
items5[1] = <View style={styles.secondInnerContainer}>{view}<Text style={text} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
|
||||
intl, [XKbf2G])}</Text></View>;
|
||||
items3[2] = <View style={styles.noticeContainer}>{items5}</View>;
|
||||
return (
|
||||
<BottomSheet {...bottomSheetProps}>
|
||||
<BottomSheetScrollView>
|
||||
{items3}
|
||||
</BottomSheetScrollView>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun87305() { // fn#87305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:1061, offset: 0x01fb7c3f, size: 99 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
const UNSAFE_markDismissibleContentAsDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_markDismissibleContentAsDismissed;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const GDM_INVITE_REMINDER = DismissibleContent.GDM_INVITE_REMINDER;
|
||||
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, dismissibleContentUnsafeUtilsModule, [GDM_INVITE_REMINDER]);
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
onClick();
|
||||
}
|
||||
|
||||
function ChatGDMUpsellActionSheetOnPress() { // fn#87306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:1624, owner: ChatGDMUpsellActionSheet.onPress, offset: 0x01fb7ca2, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,154 @@
|
||||
/* Metro module 9719; source: modules/group_dm/native/GroupDMAvatar.tsx; dependencies: [31, 27, 1878, 33, 1305, 4501, 7599, 566, 1360, 2] */
|
||||
function _fun76366(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:6, offset: 0x01dcc71f, size: 652 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = FacepileGroupDMAvatar;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
object2 = {};
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const LARGE_48 = AvatarSizes.LARGE_48;
|
||||
const SMALL = AvatarSizes.SMALL;
|
||||
object2[LARGE_48] = SMALL;
|
||||
const XLARGE = AvatarSizes.XLARGE;
|
||||
let NORMAL = AvatarSizes.NORMAL;
|
||||
object2[XLARGE] = NORMAL;
|
||||
let XXLARGE = AvatarSizes.XXLARGE;
|
||||
const LARGE = AvatarSizes.LARGE;
|
||||
object2[XXLARGE] = LARGE;
|
||||
const PROFILE = AvatarSizes.PROFILE;
|
||||
XXLARGE = AvatarSizes.XXLARGE;
|
||||
object2[PROFILE] = XXLARGE;
|
||||
const REFRESH_MEDIUM_32 = AvatarSizes.REFRESH_MEDIUM_32;
|
||||
const XSMALL_20 = AvatarSizes.XSMALL_20;
|
||||
object2[REFRESH_MEDIUM_32] = XSMALL_20;
|
||||
let XSMALL = AvatarSizes.XSMALL;
|
||||
let SIZE_16 = AvatarSizes.SIZE_16;
|
||||
object2[XSMALL] = SIZE_16;
|
||||
SIZE_16 = AvatarSizes.SIZE_16;
|
||||
const XXSMALL_10 = AvatarSizes.XXSMALL_10;
|
||||
object2[SIZE_16] = XXSMALL_10;
|
||||
NORMAL = AvatarSizes.NORMAL;
|
||||
XSMALL = AvatarSizes.XSMALL;
|
||||
object2[NORMAL] = XSMALL;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({firstFace: {'position': 'absolute',
|
||||
'top': 0, 'left': 0}, secondFace: {'position': 'absolute', 'bottom': 0, 'right': 0}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/group_dm/native/GroupDMAvatar.tsx');
|
||||
exports.default = GroupDMAvatar;
|
||||
exports.FacepileGroupDMAvatar = closure;
|
||||
}
|
||||
|
||||
function FacepileGroupDMAvatar({style, size, animate, users, sources, pileSizeOverride, status, accessible, accessibilityLabel}) { // fn#76367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:754, offset: 0x01dcc9ab, size: 526 bytes, params: 2, frame: 31
|
||||
const styles = useStyles();
|
||||
const AVATAR_SIZE_MAP = (require(1305) /* metro dependency 1305: native */).AVATAR_SIZE_MAP;
|
||||
const property = AVATAR_SIZE_MAP[size];
|
||||
const value2 = env0_2.useMemo(_fun76368, [property]);
|
||||
const r12 = pileSizeOverride ?? env0_7[size];
|
||||
const value3 = env0_2.useMemo(_fun76369, [property, AVATAR_SIZE_MAP[r12]]);
|
||||
const items2 = [value2, style];
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const avatar = <Avatar style={styles.firstFace} size={r12} guildId={undefined} cutout={value3} animate={animate} {...users == null ? {source: sources[0]} : {user: users[0]}} />;
|
||||
const StatusSizes = (require(1305) /* metro dependency 1305: native */).StatusSizes;
|
||||
const REFRESH_MEDIUM_10 = StatusSizes.REFRESH_MEDIUM_10;
|
||||
return (
|
||||
<View
|
||||
style={items2}
|
||||
accessible={accessible}
|
||||
accessibilityLabel={accessibilityLabel}
|
||||
accessibilityElementsHidden
|
||||
importantForAccessibility="no-hide-descendants"
|
||||
>
|
||||
{avatar}
|
||||
<Avatar
|
||||
status={status}
|
||||
statusSizeOverride={REFRESH_MEDIUM_10}
|
||||
autoStatusCutout
|
||||
style={styles.secondFace}
|
||||
size={r12}
|
||||
guildId={undefined}
|
||||
animate={animate}
|
||||
{...users == null ? {source: sources[1]} : {user: users[1]}}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GroupDMAvatar({style, channel, size, animate, pileSizeOverride, status, accessible, accessibilityLabel}) { // fn#76370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:1783, offset: 0x01dcccbd, size: 378 bytes, params: 2, frame: 25
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([UserStore], _fun76371);
|
||||
if (channel.icon != null || channel.recipients.length === 0 || value2.length === 0) {
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
return (
|
||||
<Avatar
|
||||
autoStatusCutout
|
||||
status={status}
|
||||
style={style}
|
||||
size={size}
|
||||
channel={channel}
|
||||
animate={animate}
|
||||
accessible={accessible}
|
||||
accessibilityLabel={accessibilityLabel}
|
||||
/>
|
||||
);
|
||||
} else if (value2.length === 1) {
|
||||
const Avatar2 = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
return (
|
||||
<Avatar2
|
||||
autoStatusCutout
|
||||
status={status}
|
||||
style={style}
|
||||
size={size}
|
||||
user={value2[0]}
|
||||
guildId={undefined}
|
||||
animate={animate}
|
||||
accessible={accessible}
|
||||
accessibilityLabel={accessibilityLabel}
|
||||
/>
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
<FacepileGroupDMAvatar
|
||||
status={status}
|
||||
style={style}
|
||||
size={size}
|
||||
animate={animate}
|
||||
users={value2}
|
||||
pileSizeOverride={pileSizeOverride}
|
||||
accessible={accessible}
|
||||
accessibilityLabel={accessibilityLabel}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun76369() { // fn#76369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:1035, offset: 0x01dccbcc, size: 241 bytes, params: 1, frame: 19
|
||||
const value2 = env0_1 / 2;
|
||||
const value3 = value2 + 3;
|
||||
const value4 = 2 * value3;
|
||||
let Math = global.Math;
|
||||
let sqrt = Math.sqrt;
|
||||
const Math2 = global.Math;
|
||||
const value5 = Reflect.apply(sqrt, Math, [2 * Math2.pow(value3, 2)]);
|
||||
const value7 = env0_0 - value2 - env0_1;
|
||||
Math = global.Math;
|
||||
sqrt = Math.sqrt;
|
||||
const Math3 = global.Math;
|
||||
const value8 = Reflect.apply(sqrt, Math, [2 * Math3.pow(value7, 2)]);
|
||||
const value11 = -value5 - (value3 - value5) - value8 + (value8 - value7);
|
||||
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
|
||||
const Circle = CutoutShape.Circle;
|
||||
return {nativeCutouts: [{shape: Circle, x: env0_1 - value4 - value11, y: env0_1 - value4 - value11, size: value4}]};
|
||||
}
|
||||
|
||||
function _fun76371() { // fn#76371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:1949, offset: 0x01dcce37, size: 75 bytes, params: 1, frame: 13
|
||||
const value = channel.recipients.map(function(a0) {
|
||||
return UserStore.getUser(a0);
|
||||
});
|
||||
return value.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 9879; source: modules/group_dm/native/showChatGDMCustomizeActionSheet.tsx; dependencies: [4080, 5080, 9880, 1962, 2] */
|
||||
function _fun77476(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10065:6, offset: 0x01dfdc82, 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/group_dm/native/showChatGDMCustomizeActionSheet.tsx');
|
||||
exports.default = showChatGDMCustomizeActionSheet;
|
||||
}
|
||||
|
||||
function showChatGDMCustomizeActionSheet(a0) { // fn#77477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10065:195, offset: 0x01dfdce9, size: 118 bytes, params: 2, frame: 18
|
||||
importDefault(dependencyMap[0]).hideActionSheet();
|
||||
const defaultImport2 = importDefault(dependencyMap[1]);
|
||||
const pushLazy = defaultImport2.pushLazy;
|
||||
let value = require(dependencyMap[3]);
|
||||
value = value(dependencyMap[2], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport2, [value, a0, 'customize-group-dm', {presentation: 'modal'}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/* Metro module 11388; source: modules/group_dm/native/showChatGDMUpsellActionSheet.tsx; dependencies: [4080, 11389, 1962, 2] */
|
||||
function _fun87301(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11574:6, offset: 0x01fb7522, 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/group_dm/native/showChatGDMUpsellActionSheet.tsx');
|
||||
exports.default = showChatGDMUpsellActionSheet;
|
||||
}
|
||||
|
||||
function showChatGDMUpsellActionSheet(a0) { // fn#87302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11574:192, offset: 0x01fb7589, size: 82 bytes, params: 2, frame: 16
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'ChatGDMUpsellActionSheet', a0]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user