Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,10 @@
|
||||
/* Metro module 4037; source: modules/guild_themes/native/GuildThemeGuildIdOverrideContext.tsx; dependencies: [31, 2] */
|
||||
function _fun33248(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4195:6, offset: 0x0102ac3d, size: 104 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(undefined);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_themes/native/GuildThemeGuildIdOverrideContext.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,329 @@
|
||||
/* Metro module 14557; source: modules/guild_themes/native/GuildThemeNuxActionSheet.tsx; dependencies: [5, 57, 31, 27, 3969, 4042, 1376, 33, 3, 4501, 697, 14558, 4044, 566, 4080, 1244, 6275, 14559, 4573, 7988, 7987, 1305, 4578, 2] */
|
||||
function _fun110088(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14754:6, offset: 0x02369b02, size: 560 bytes, params: 8, frame: 24
|
||||
var object3;
|
||||
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 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(27) /* metro dependency 27 */).View;
|
||||
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
|
||||
const guildThemeRuntimeStore = importDefault(4042) /* metro dependency 4042: GuildThemeRuntimeStore */;
|
||||
const env0_9 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.jsxs;
|
||||
value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('GuildThemeNuxActionSheet');
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.padding = PX_16;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingTop = PX_8;
|
||||
object4.paddingBottom = 0;
|
||||
object3.container = object4;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.title = {textAlign: 'center', marginBottom: PX_8};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object3.description = {textAlign: 'center', marginBottom: PX_24};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object3.options = {marginBottom: PX_12};
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object3.warning = {marginBottom: PX_12};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.footer = {gap: PX_8};
|
||||
const env0_13 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_themes/native/GuildThemeNuxActionSheet.tsx');
|
||||
exports.default = GuildThemeNuxActionSheet;
|
||||
exports.GUILD_THEME_NUX_ACTION_SHEET_KEY = 'GuildThemeNuxActionSheet';
|
||||
}
|
||||
|
||||
function GuildThemeNuxActionSheet({guildId, markAsDismissed}) { // fn#110089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14754:758, offset: 0x02369d32, size: 1596 bytes, params: 2, frame: 38
|
||||
const HelpMessage = (require(1305) /* metro dependency 1305: native */).HelpMessage;
|
||||
const styles = useStyles();
|
||||
const binding = env0_5;
|
||||
let useState = binding.useState;
|
||||
const getInitialGuildThemeNuxSelection = (require(14558) /* metro dependency 14558: GuildThemeNuxUtils */).getInitialGuildThemeNuxSelection;
|
||||
const value2 = Reflect.apply(useState, binding, [getInitialGuildThemeNuxSelection]);
|
||||
const binding2 = env0_4;
|
||||
const value3 = binding2(value2, 2);
|
||||
const property = value3[0];
|
||||
const env0_2 = value3[1];
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, [null]), 2);
|
||||
const property2 = value5[0];
|
||||
const env0_3 = value5[1];
|
||||
useState = binding.useState;
|
||||
const value6 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property3 = value6[0];
|
||||
var env0_4 = value6[1];
|
||||
var env0_5 = binding.useRef(false);
|
||||
const GuildThemeSourcePreference = (require(4044) /* metro dependency 4044: Client */).GuildThemeSourcePreference;
|
||||
let PERSONAL = GuildThemeSourcePreference.PERSONAL;
|
||||
const value7 = property === PERSONAL;
|
||||
const guildId2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SelectedGuildStore],
|
||||
function() {
|
||||
return SelectedGuildStore.getGuildId();
|
||||
});
|
||||
const value8 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildThemeRuntimeStore],
|
||||
_fun110091, [guildId]);
|
||||
binding.useEffect(_fun110092, [guildId, guildId2]);
|
||||
const value9 = binding.useCallback(_fun110093, []);
|
||||
const value10 = binding.useCallback(_fun110094, [markAsDismissed]);
|
||||
const value12 = binding.useCallback(env0_3(_fun110096), [guildId, value7, markAsDismissed, guildId2]);
|
||||
const value13 = binding.useCallback(_fun110097, [value10]);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const r12 = value7 ? Reflect.apply(string, intl, [t.cvoikF]) : Reflect.apply(string, intl, [t['cY+Oob']]);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const bottomSheetProps = {startExpanded: true,
|
||||
dismissAccessibilityLabel: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq),
|
||||
onDismiss: value13, contentStyles: styles.container};
|
||||
const items2 = [((Component) => <Component themeSettings={value8} isPersonal={value7} />)(importDefault(14559) /* metro dependency 14559: GuildThemeNuxPreviewGraphic */)];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
string = intl.string;
|
||||
const Q9zFy9 = (require(1244) /* metro dependency 1244: indexNative */).t.Q9zFy9;
|
||||
items2[1] = <Text accessibilityRole="header" variant="heading-xl/semibold" color="mobile-text-heading-primary" style={styles.title}>{Reflect.apply(string,
|
||||
intl, [Q9zFy9])}</Text>;
|
||||
string = intl.string;
|
||||
const XLpBLj = (require(1244) /* metro dependency 1244: indexNative */).t.XLpBLj;
|
||||
items2[2] = <Text variant="text-md/normal" color="text-default" style={styles.description}>{Reflect.apply(string,
|
||||
intl, [XLpBLj])}</Text>;
|
||||
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
string = intl.string;
|
||||
const aN3RNQ = (require(1244) /* metro dependency 1244: indexNative */).t.aN3RNQ;
|
||||
const GUILD = GuildThemeSourcePreference.GUILD;
|
||||
const tableRadioRow = <TableRadioRow label={Reflect.apply(string, intl, [aN3RNQ])} value={GUILD} />;
|
||||
string = intl.string;
|
||||
const js8y7t = (require(1244) /* metro dependency 1244: indexNative */).t.js8y7t;
|
||||
PERSONAL = GuildThemeSourcePreference.PERSONAL;
|
||||
items2[3] = <View style={styles.options}><TableRadioGroup hasIcons={false} value={property} onChange={value9}>{tableRadioRow}<TableRadioRow label={Reflect.apply(string,
|
||||
intl, [js8y7t])} value={PERSONAL} /></TableRadioGroup></View>;
|
||||
items2[4] = value7 ? <View style={styles.warning}><HelpMessage messageType={(require(1305) /* metro dependency 1305: native */).HelpMessageTypes.WARNING} borderRadius={(importDefault(697) /* metro dependency 697: native */).radii.md}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tTHQAy)}</HelpMessage></View> : null;
|
||||
items2[5] = property2 != null ? <View style={styles.warning}><HelpMessage messageType={(require(1305) /* metro dependency 1305: native */).HelpMessageTypes.ERROR} borderRadius={(importDefault(697) /* metro dependency 697: native */).radii.md}>{property2}</HelpMessage></View> : null;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[6] = <View style={styles.footer}><Button text={r12} variant={value7 ? 'secondary' : 'primary'} loading={property3} disabled={property3} onPress={value12} /></View>;
|
||||
return (
|
||||
<BottomSheet {...bottomSheetProps}>
|
||||
{items2}
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun110091() { // fn#110091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14754:1151, offset: 0x0236a381, size: 66 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = GuildThemeRuntimeStore.getGuildThemeSnapshot(guildId);
|
||||
const value2 = null;
|
||||
return value2 != value && value.enabled && value2 != value.themeSettings ? value.themeSettings : value2;
|
||||
}
|
||||
|
||||
function _fun110092() { // fn#110092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14754:1271, offset: 0x0236a3c3, size: 61 bytes, params: 1, frame: 11
|
||||
var value;
|
||||
if (guildId !== guildId) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
value.hideActionSheet('GuildThemeNuxActionSheet');
|
||||
}
|
||||
}
|
||||
|
||||
function _fun110093(a0) { // fn#110093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14754:1341, offset: 0x0236a400, size: 30 bytes, params: 2, frame: 12
|
||||
env0_3(null);
|
||||
env0_2(a0);
|
||||
}
|
||||
|
||||
function _fun110094(a0) { // fn#110094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14754:1381, offset: 0x0236a41e, size: 45 bytes, params: 2, frame: 11
|
||||
if (!env0_5.current) {
|
||||
env0_5.current = true;
|
||||
markAsDismissed(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun110096() { // fn#110096, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14754:1442, offset: 0x0236a456, size: 288 bytes, params: 1, frame: 18
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var saveGuildThemeNuxPreference;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var error;
|
||||
var binding3;
|
||||
var binding4;
|
||||
var intl;
|
||||
var string;
|
||||
var t;
|
||||
var fEptJP;
|
||||
if (true) {
|
||||
value = environment.__proto__;
|
||||
if (SelectedGuildStore === require) {
|
||||
env1_4(true);
|
||||
env1_3(null);
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_12;
|
||||
binding.error('Failed to save guild theme NUX preference', error);
|
||||
binding = env1_3;
|
||||
binding3 = env2_0;
|
||||
binding4 = env2_2;
|
||||
intl = binding3(binding4[15]).intl;
|
||||
string = intl.string;
|
||||
t = binding3(binding4[15]).t;
|
||||
fEptJP = t.fEptJP;
|
||||
binding(Reflect.apply(string, intl, [fEptJP]));
|
||||
env1_4(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_12;
|
||||
binding.error('Failed to save guild theme NUX preference', error);
|
||||
binding = env1_3;
|
||||
binding3 = env2_0;
|
||||
binding4 = env2_2;
|
||||
intl = binding3(binding4[15]).intl;
|
||||
string = intl.string;
|
||||
t = binding3(binding4[15]).t;
|
||||
fEptJP = t.fEptJP;
|
||||
binding(Reflect.apply(string, intl, [fEptJP]));
|
||||
env1_4(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[11];
|
||||
} catch (error) {
|
||||
binding = env2_12;
|
||||
binding.error('Failed to save guild theme NUX preference', error);
|
||||
binding = env1_3;
|
||||
binding3 = env2_0;
|
||||
binding4 = env2_2;
|
||||
intl = binding3(binding4[15]).intl;
|
||||
string = intl.string;
|
||||
t = binding3(binding4[15]).t;
|
||||
fEptJP = t.fEptJP;
|
||||
binding(Reflect.apply(string, intl, [fEptJP]));
|
||||
env1_4(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_12;
|
||||
binding.error('Failed to save guild theme NUX preference', error);
|
||||
binding = env1_3;
|
||||
binding3 = env2_0;
|
||||
binding4 = env2_2;
|
||||
intl = binding3(binding4[15]).intl;
|
||||
string = intl.string;
|
||||
t = binding3(binding4[15]).t;
|
||||
fEptJP = t.fEptJP;
|
||||
binding(Reflect.apply(string, intl, [fEptJP]));
|
||||
env1_4(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
saveGuildThemeNuxPreference = value4.saveGuildThemeNuxPreference;
|
||||
} catch (error) {
|
||||
binding = env2_12;
|
||||
binding.error('Failed to save guild theme NUX preference', error);
|
||||
binding = env1_3;
|
||||
binding3 = env2_0;
|
||||
binding4 = env2_2;
|
||||
intl = binding3(binding4[15]).intl;
|
||||
string = intl.string;
|
||||
t = binding3(binding4[15]).t;
|
||||
fEptJP = t.fEptJP;
|
||||
binding(Reflect.apply(string, intl, [fEptJP]));
|
||||
env1_4(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
binding = env2_12;
|
||||
binding.error('Failed to save guild theme NUX preference', error);
|
||||
binding = env1_3;
|
||||
binding3 = env2_0;
|
||||
binding4 = env2_2;
|
||||
intl = binding3(binding4[15]).intl;
|
||||
string = intl.string;
|
||||
t = binding3(binding4[15]).t;
|
||||
fEptJP = t.fEptJP;
|
||||
binding(Reflect.apply(string, intl, [fEptJP]));
|
||||
env1_4(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
binding = env2_12;
|
||||
binding.error('Failed to save guild theme NUX preference', error);
|
||||
binding = env1_3;
|
||||
binding3 = env2_0;
|
||||
binding4 = env2_2;
|
||||
intl = binding3(binding4[15]).intl;
|
||||
string = intl.string;
|
||||
t = binding3(binding4[15]).t;
|
||||
fEptJP = t.fEptJP;
|
||||
binding(Reflect.apply(string, intl, [fEptJP]));
|
||||
env1_4(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(saveGuildThemeNuxPreference, value4, [require, View]);
|
||||
} catch (error) {
|
||||
binding = env2_12;
|
||||
binding.error('Failed to save guild theme NUX preference', error);
|
||||
binding = env1_3;
|
||||
binding3 = env2_0;
|
||||
binding4 = env2_2;
|
||||
intl = binding3(binding4[15]).intl;
|
||||
string = intl.string;
|
||||
t = binding3(binding4[15]).t;
|
||||
fEptJP = t.fEptJP;
|
||||
binding(Reflect.apply(string, intl, [fEptJP]));
|
||||
env1_4(false);
|
||||
return undefined;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
binding = env2_12;
|
||||
binding.error('Failed to save guild theme NUX preference', error);
|
||||
binding = env1_3;
|
||||
binding3 = env2_0;
|
||||
binding4 = env2_2;
|
||||
intl = binding3(binding4[15]).intl;
|
||||
string = intl.string;
|
||||
t = binding3(binding4[15]).t;
|
||||
fEptJP = t.fEptJP;
|
||||
binding(Reflect.apply(string, intl, [fEptJP]));
|
||||
env1_4(false);
|
||||
return undefined;
|
||||
}
|
||||
if (value7) {
|
||||
return value6;
|
||||
}
|
||||
env1_5.current = true;
|
||||
var TAKE_ACTION = env2_9.TAKE_ACTION;
|
||||
importDefault(TAKE_ACTION);
|
||||
binding = env2_1;
|
||||
binding(env2_2[14]).hideActionSheet('GuildThemeNuxActionSheet');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun110097() { // fn#110097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14754:1745, offset: 0x0236a576, size: 29 bytes, params: 1, frame: 11
|
||||
const binding = env0_8;
|
||||
const USER_DISMISS = ContentDismissActionType.USER_DISMISS;
|
||||
binding(USER_DISMISS);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/* Metro module 14559; source: modules/guild_themes/native/GuildThemeNuxPreviewGraphic.tsx; dependencies: [31, 27, 33, 4501, 697, 14560, 2] */
|
||||
function _fun110104(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14756:6, offset: 0x0236a77a, size: 228 bytes, params: 8, frame: 21
|
||||
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 createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
const env0_4 = Reflect.apply(createStyles, createStylesModule, [{container: {'width': '100%',
|
||||
'aspectRatio': 1.7777777777777777, 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_24}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_themes/native/GuildThemeNuxPreviewGraphic.tsx');
|
||||
exports.default = GuildThemeNuxPreviewGraphic;
|
||||
}
|
||||
|
||||
function GuildThemeNuxPreviewGraphic({themeSettings, isPersonal}) { // fn#110105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14756:395, offset: 0x0236a85e, size: 112 bytes, params: 2, frame: 18
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View
|
||||
accessibilityElementsHidden
|
||||
importantForAccessibility="no-hide-descendants"
|
||||
style={styles.container}
|
||||
>
|
||||
{((Component) => <Component themeSettings={isPersonal ? null : themeSettings} />)(importDefault(14560) /* metro dependency 14560: GuildThemePreviewArt */)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/* Metro module 14560; source: modules/guild_themes/native/GuildThemePreviewArt.tsx; dependencies: [31, 27, 33, 4501, 697, 4004, 14561, 4048, 4589, 2] */
|
||||
function _fun110106(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14757:6, offset: 0x0236a8ce, size: 291 bytes, params: 8, frame: 22
|
||||
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;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const object = {'position': 'relative', 'width': 256, 'aspectRatio': 1.5705521472392638, 'overflow': 'hidden'};
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
const env0_6 = Reflect.apply(createStyles, createStylesModule, [{previewArt: object,
|
||||
previewOverlay: {'position': 'absolute', 'top': 7.314, 'left': 7.461, 'width': 259.862, 'height': 154.514}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_themes/native/GuildThemePreviewArt.tsx');
|
||||
exports.default = GuildThemePreviewArt;
|
||||
}
|
||||
|
||||
function PreviewOverlay() { // fn#110107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14757:425, offset: 0x0236a9f1, size: 86 bytes, params: 1, frame: 17
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View pointerEvents="none" style={styles.previewOverlay}>
|
||||
{((Component) => <Component />)(importDefault(14561) /* metro dependency 14561: GuildThemePreviewOverlay */)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildThemePreviewArt({themeSettings, style}) { // fn#110108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14757:638, offset: 0x0236aa47, size: 257 bytes, params: 2, frame: 19
|
||||
const styles = useStyles();
|
||||
const value3 = env0_3.useMemo(_fun110109, [themeSettings,
|
||||
(importDefault(4048) /* metro dependency 4048: useTheme */)()]);
|
||||
items2 = [styles.previewArt, style];
|
||||
return value3 == null ? <View style={items2}><PreviewOverlay /></View> : ((Component) => <Component colors={value3.colors} locations={value3.locations} useAngle angle={value3.angle} style={items2}><PreviewOverlay /></Component>)(importDefault(4589) /* metro dependency 4589 */);
|
||||
}
|
||||
|
||||
function _fun110109() { // fn#110109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14757:730, offset: 0x0236ab48, size: 30 bytes, params: 1, frame: 13
|
||||
return getGradientConfig(themeSettings, env0_1);
|
||||
}
|
||||
|
||||
function getGradientConfig(a0, a1) { // fn#110110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14757:734, offset: 0x0236ab66, size: 273 bytes, params: 3, frame: 22
|
||||
var environment;
|
||||
var colors;
|
||||
var value;
|
||||
var moduleValue;
|
||||
var value2;
|
||||
var object2;
|
||||
var value3;
|
||||
var singleColorGuildThemeGradientColors;
|
||||
var items2;
|
||||
if (a0 != null) {
|
||||
var customUserThemeSettings = a0.customUserThemeSettings;
|
||||
if (customUserThemeSettings == null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
moduleValue = require(4004) /* metro dependency 4004: GuildThemePresets */;
|
||||
value2 = moduleValue.getGuildThemePreset(a0.presetId);
|
||||
if (value2 != null) {
|
||||
value = require(4004) /* metro dependency 4004: GuildThemePresets */;
|
||||
value = value.getGuildThemePresetAppearance(value2, a1);
|
||||
object2 = {};
|
||||
colors = value.colors;
|
||||
object2.colors = colors.map(function(a0) {
|
||||
return a0.hex;
|
||||
});
|
||||
colors = value.colors;
|
||||
object2.locations = colors.map(_fun110112);
|
||||
object2.angle = value.angle;
|
||||
return object2;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
colors = customUserThemeSettings.colors;
|
||||
value = 0;
|
||||
var property = colors[value];
|
||||
if (property != null) {
|
||||
value3 = environment.__proto__.__proto__;
|
||||
singleColorGuildThemeGradientColors = (require(4004) /* metro dependency 4004: GuildThemePresets */).getSingleColorGuildThemeGradientColors(property,
|
||||
|
||||
|
||||
a1);
|
||||
items2 = [];
|
||||
arraySpread(items2, singleColorGuildThemeGradientColors, value, undefined);
|
||||
return {colors: items2, angle: customUserThemeSettings.gradientAngle ?? value};
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
moduleValue = require(4004) /* metro dependency 4004: GuildThemePresets */;
|
||||
value2 = moduleValue.getGuildThemePreset(a0.presetId);
|
||||
if (value2 != null) {
|
||||
value = require(4004) /* metro dependency 4004: GuildThemePresets */;
|
||||
value = value.getGuildThemePresetAppearance(value2, a1);
|
||||
object2 = {};
|
||||
colors = value.colors;
|
||||
object2.colors = colors.map(function(a0) {
|
||||
return a0.hex;
|
||||
});
|
||||
colors = value.colors;
|
||||
object2.locations = colors.map(_fun110112);
|
||||
object2.angle = value.angle;
|
||||
return object2;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/* Metro module 14561; source: modules/guild_themes/native/GuildThemePreviewOverlay.tsx; dependencies: [31, 33, 7744, 2] */
|
||||
function _fun110113(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14758:6, offset: 0x0236ac77, size: 147 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 value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_themes/native/GuildThemePreviewOverlay.tsx');
|
||||
exports.default = GuildThemePreviewOverlay;
|
||||
}
|
||||
|
||||
function GuildThemePreviewOverlay(a0) { // fn#110114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14758:231, offset: 0x0236ad0a, size: 1494 bytes, params: 2, frame: 26
|
||||
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
|
||||
const defaultImportProps = {...a0};
|
||||
defaultImportProps['preserveAspectRatio'] = 'none';
|
||||
defaultImportProps['width'] = '100%';
|
||||
defaultImportProps['height'] = '100%';
|
||||
defaultImportProps['viewBox'] = '0 0 259.862 154.514';
|
||||
defaultImportProps['fill'] = 'none';
|
||||
const G = (require(7744) /* metro dependency 7744 */).G;
|
||||
const Path = (require(7744) /* metro dependency 7744 */).Path;
|
||||
const items4 = [<Path d="M20.8821 7.1867C20.8821 3.21759 24.0659 0 27.9932 0H84.8821V154.514H20.8821V7.1867Z" fill="black" fillOpacity="0.1" />];
|
||||
items4[1] = <Path d="M248.055 0.225335H85.0491V154.266H248.055V0.225335Z" fill="black" fillOpacity="0.25" />;
|
||||
const G2 = (require(7744) /* metro dependency 7744 */).G;
|
||||
const items2 = [<Path d="M99.2224 43.2126C103.136 43.2126 106.31 40.0048 106.31 36.0479C106.31 32.091 103.136 28.8832 99.2224 28.8832C95.3082 28.8832 92.1351 32.091 92.1351 36.0479C92.1351 40.0048 95.3082 43.2126 99.2224 43.2126Z" fill="white" />];
|
||||
items2[1] = <Path d="M125.795 31.1038H112.802C111.824 31.1038 111.031 31.9059 111.031 32.8951C111.031 33.8842 111.824 34.6863 112.802 34.6863H125.795C126.774 34.6863 127.567 33.8842 127.567 32.8951C127.567 31.9059 126.774 31.1038 125.795 31.1038Z" fill="white" />;
|
||||
items2[2] = <Path d="M111.031 39.7954C111.031 39.1359 111.559 38.6011 112.212 38.6011H163.004C163.656 38.6011 164.185 39.1359 164.185 39.7954C164.185 40.4547 163.656 40.9895 163.004 40.9895H112.212C111.559 40.9895 111.031 40.4547 111.031 39.7954Z" fill="white" />;
|
||||
items2[3] = <Path d="M99.2224 67.095C103.136 67.095 106.31 63.8872 106.31 59.9303C106.31 55.9734 103.136 52.7656 99.2224 52.7656C95.3082 52.7656 92.1351 55.9734 92.1351 59.9303C92.1351 63.8872 95.3082 67.095 99.2224 67.095Z" fill="white" />;
|
||||
items2[4] = <Path d="M130.52 54.9867H112.802C111.824 54.9867 111.031 55.7886 111.031 56.7777C111.031 57.7671 111.824 58.569 112.802 58.569H130.52C131.499 58.569 132.292 57.7671 132.292 56.7777C132.292 55.7886 131.499 54.9867 130.52 54.9867Z" fill="white" />;
|
||||
items2[5] = <Path d="M111.031 63.6776C111.031 63.0181 111.559 62.4833 112.212 62.4833H137.017C137.67 62.4833 138.198 63.0181 138.198 63.6776C138.198 64.3369 137.67 64.8717 137.017 64.8717H112.212C111.559 64.8717 111.031 64.3369 111.031 63.6776Z" fill="white" />;
|
||||
items2[6] = <Path d="M99.2224 90.9774C103.136 90.9774 106.31 87.7696 106.31 83.8127C106.31 79.8558 103.136 76.6481 99.2224 76.6481C95.3082 76.6481 92.1351 79.8558 92.1351 83.8127C92.1351 87.7696 95.3082 90.9774 99.2224 90.9774Z" fill="white" />;
|
||||
items2[7] = <Path d="M143.514 78.8689H112.802C111.824 78.8689 111.031 79.671 111.031 80.6601C111.031 81.6493 111.824 82.4514 112.802 82.4514H143.514C144.492 82.4514 145.286 81.6493 145.286 80.6601C145.286 79.671 144.492 78.8689 143.514 78.8689Z" fill="white" />;
|
||||
items2[8] = <Path d="M111.031 87.5598C111.031 86.9005 111.559 86.3657 112.212 86.3657H158.279C158.931 86.3657 159.46 86.9005 159.46 87.5598C159.46 88.2193 158.931 88.7541 158.279 88.7541H112.212C111.559 88.7541 111.031 88.2193 111.031 87.5598Z" fill="white" />;
|
||||
items4[2] = <G2 opacity="0.2">{items2}</G2>;
|
||||
items4[3] = <Path opacity="0.2" d="M76.1873 8.28431H28.9391C28.4497 8.28431 28.0532 8.68527 28.0532 9.1799C28.0532 9.67453 28.4497 10.0755 28.9391 10.0755H76.1873C76.6765 10.0755 77.0733 9.67453 77.0733 9.1799C77.0733 8.68527 76.6765 8.28431 76.1873 8.28431Z" fill="#D9D9D9" />;
|
||||
items4[4] = <Path opacity="0.2" d="M141.155 8.28431H93.9068C93.4174 8.28431 93.0208 8.68527 93.0208 9.1799C93.0208 9.67453 93.4174 10.0755 93.9068 10.0755H141.155C141.644 10.0755 142.041 9.67453 142.041 9.1799C142.041 8.68527 141.644 8.28431 141.155 8.28431Z" fill="#D9D9D9" />;
|
||||
items4[5] = <Path opacity="0.2" d="M9.44965 3.80698H4.72483C2.11537 3.80698 0 5.94547 0 8.58343V13.3599C0 15.9979 2.11537 18.1363 4.72483 18.1363H9.44965C12.0591 18.1363 14.1745 15.9979 14.1745 13.3599V8.58343C14.1745 5.94547 12.0591 3.80698 9.44965 3.80698Z" fill="white" />;
|
||||
items4[6] = <Path opacity="0.2" d="M13.5839 24.1077H0.590606C0.264409 24.1077 0 24.375 0 24.7049C0 25.0345 0.264409 25.3018 0.590606 25.3018H13.5839C13.91 25.3018 14.1745 25.0345 14.1745 24.7049C14.1745 24.375 13.91 24.1077 13.5839 24.1077Z" fill="white" fillOpacity="0.55" />;
|
||||
items4[7] = <Path opacity="0.2" d="M9.44965 31.2709H4.72483C2.11537 31.2709 0 33.4096 0 36.0474V40.8239C0 43.4618 2.11537 45.6005 4.72483 45.6005H9.44965C12.0591 45.6005 14.1745 43.4618 14.1745 40.8239V36.0474C14.1745 33.4096 12.0591 31.2709 9.44965 31.2709Z" fill="white" />;
|
||||
items4[8] = <Path opacity="0.5" d="M9.44965 51.5718H4.72483C2.11537 51.5718 0 53.7103 0 56.3481V61.1246C0 63.7627 2.11537 65.9012 4.72483 65.9012H9.44965C12.0591 65.9012 14.1745 63.7627 14.1745 61.1246V56.3481C14.1745 53.7103 12.0591 51.5718 9.44965 51.5718Z" fill="white" />;
|
||||
items4[9] = <Path opacity="0.05" d="M259.862 18.1359H21.2575V19.3299H259.862V18.1359Z" fill="white" />;
|
||||
const G3 = (require(7744) /* metro dependency 7744 */).G;
|
||||
const items3 = [<Path d="M44.2994 29.7789H30.1249C29.6356 29.7789 29.239 30.18 29.239 30.6745C29.239 31.1692 29.6356 31.5701 30.1249 31.5701H44.2994C44.7885 31.5701 45.1853 31.1692 45.1853 30.6745C45.1853 30.18 44.7885 29.7789 44.2994 29.7789Z" fill="white" stroke="white" strokeWidth="0.723776" />];
|
||||
items3[1] = <Path d="M33.6659 47.9852C36.6001 47.9852 38.9791 45.5804 38.9791 42.6139C38.9791 39.6474 36.6001 37.2427 33.6659 37.2427C30.7315 37.2427 28.3528 39.6474 28.3528 42.6139C28.3528 45.5804 30.7315 47.9852 33.6659 47.9852Z" fill="white" />;
|
||||
items3[2] = <Path d="M59.6471 41.7178H45.4727C44.9833 41.7178 44.5868 42.1187 44.5868 42.6132C44.5868 43.1079 44.9833 43.5088 45.4727 43.5088H59.6471C60.1363 43.5088 60.5331 43.1079 60.5331 42.6132C60.5331 42.1187 60.1363 41.7178 59.6471 41.7178Z" fill="white" stroke="white" strokeWidth="0.723776" />;
|
||||
items3[3] = <Path d="M33.6659 63.5031C36.6001 63.5031 38.9791 61.0984 38.9791 58.1319C38.9791 55.1654 36.6001 52.7607 33.6659 52.7607C30.7315 52.7607 28.3528 55.1654 28.3528 58.1319C28.3528 61.0984 30.7315 63.5031 33.6659 63.5031Z" fill="white" />;
|
||||
items3[4] = <Path d="M73.8216 57.2358H45.4727C44.9833 57.2358 44.5868 57.6367 44.5868 58.1314C44.5868 58.6259 44.9833 59.0268 45.4727 59.0268H73.8216C74.311 59.0268 74.7075 58.6259 74.7075 58.1314C74.7075 57.6367 74.311 57.2358 73.8216 57.2358Z" fill="white" stroke="white" strokeWidth="0.723776" />;
|
||||
items3[5] = <Path d="M33.6659 79.0211C36.6001 79.0211 38.9791 76.6164 38.9791 73.6499C38.9791 70.6836 36.6001 68.2787 33.6659 68.2787C30.7315 68.2787 28.3528 70.6836 28.3528 73.6499C28.3528 76.6164 30.7315 79.0211 33.6659 79.0211Z" fill="white" />;
|
||||
items3[6] = <Path d="M67.9155 72.7538H45.4727C44.9833 72.7538 44.5868 73.1547 44.5868 73.6494C44.5868 74.1438 44.9833 74.5448 45.4727 74.5448H67.9155C68.4049 74.5448 68.8015 74.1438 68.8015 73.6494C68.8015 73.1547 68.4049 72.7538 67.9155 72.7538Z" fill="white" stroke="white" strokeWidth="0.723776" />;
|
||||
items4[10] = <G3 opacity="0.2">{items3}</G3>;
|
||||
items4[11] = <Path d="M73.2348 124.413H4.72483C2.11537 124.413 0 126.551 0 129.189V143.519C0 146.157 2.11537 148.295 4.72483 148.295H73.2348C75.8444 148.295 77.9597 146.157 77.9597 143.519V129.189C77.9597 126.551 75.8444 124.413 73.2348 124.413Z" fill="white" fillOpacity="0.08" />;
|
||||
items4[12] = <Path opacity="0.3" d="M11.8111 143.518C15.7253 143.518 18.8983 140.31 18.8983 136.353C18.8983 132.396 15.7253 129.188 11.8111 129.188C7.89693 129.188 4.72387 132.396 4.72387 136.353C4.72387 140.31 7.89693 143.518 11.8111 143.518Z" fill="white" />;
|
||||
const G4 = (require(7744) /* metro dependency 7744 */).G;
|
||||
items4[13] = <G4 opacity="0.3"><Path d="M56.1027 131.209H25.3914C24.4127 131.209 23.6196 132.011 23.6196 133C23.6196 133.989 24.4127 134.791 25.3914 134.791H56.1027C57.0811 134.791 57.8745 133.989 57.8745 133C57.8745 132.011 57.0811 131.209 56.1027 131.209Z" fill="white" /><Path d="M44.2905 137.918H25.3914C24.4127 137.918 23.6196 138.72 23.6196 139.709C23.6196 140.698 24.4127 141.5 25.3914 141.5H44.2905C45.2693 141.5 46.0624 140.698 46.0624 139.709C46.0624 138.72 45.2693 137.918 44.2905 137.918Z" fill="white" /></G4>;
|
||||
const G5 = (require(7744) /* metro dependency 7744 */).G;
|
||||
items4[14] = <G5 opacity="0.5"><Path d="M235.061 124.413H98.041C94.779 124.413 92.1349 127.086 92.1349 130.383V142.324C92.1349 145.622 94.779 148.295 98.041 148.295H235.061C238.322 148.295 240.966 145.622 240.966 142.324V130.383C240.966 127.086 238.322 124.413 235.061 124.413Z" fill="white" fillOpacity="0.08" /></G5>;
|
||||
return ((Component) => <Component {...defaultImportProps}><G>{items4}</G></Component>)(defaultImport);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/* Metro module 14556; source: modules/guild_themes/native/useGuildThemeNuxTrigger.tsx; dependencies: [31, 3849, 566, 14557, 14557, 1962, 4080, 14562, 2] */
|
||||
function _fun110084(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14753:6, offset: 0x02369966, 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 actionSheetStore = importDefault(3849) /* metro dependency 3849: ActionSheetStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_themes/native/useGuildThemeNuxTrigger.tsx');
|
||||
exports.default = useGuildThemeNuxTrigger;
|
||||
}
|
||||
|
||||
function useGuildThemeNuxTrigger(a0) { // fn#110085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14753:215, offset: 0x023699ef, size: 122 bytes, params: 2, frame: 17
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
(importDefault(14562) /* metro dependency 14562: useGuildThemeNuxTrigger */)(a0,
|
||||
{isNuxOpen: Reflect.apply(useStateFromStores, fluxModule, [[ActionSheetStore], function() {
|
||||
return ActionSheetStore.getKey() === require(dependencyMap[3]).GUILD_THEME_NUX_ACTION_SHEET_KEY;
|
||||
}]), openNux: env0_3.useCallback(_fun110087, [])});
|
||||
}
|
||||
|
||||
function _fun110087(a0) { // fn#110087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14753:366, offset: 0x02369a9c, size: 102 bytes, params: 2, frame: 18
|
||||
let value = environment.__proto__;
|
||||
const value2 = require(dependencyMap[5])(dependencyMap[4], dependencyMap.paths);
|
||||
value = importDefault(dependencyMap[6]);
|
||||
const openLazy = value.openLazy;
|
||||
const GUILD_THEME_NUX_ACTION_SHEET_KEY = require(dependencyMap[3]).GUILD_THEME_NUX_ACTION_SHEET_KEY;
|
||||
Reflect.apply(openLazy, value, [value2, GUILD_THEME_NUX_ACTION_SHEET_KEY, a0, 'stack']);
|
||||
return value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,118 @@
|
||||
/* Metro module 4006; source: modules/guild_themes/native/useRoutedActiveGuildTheme.tsx; dependencies: [57, 31, 661, 4007, 4008, 4037, 4038, 2] */
|
||||
function _fun32972(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4164:6, offset: 0x01023fe8, size: 175 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const getActiveGuildThemeGuildIdSnapshot = function() {
|
||||
var value5;
|
||||
var value2 = require(dependencyMap[4]).getRootNavigationRef();
|
||||
var value3 = null;
|
||||
if (value3 != value2) {
|
||||
if (value2.isReady()) {
|
||||
value5 = _fun32975(value2.getRootState());
|
||||
return value3 == value5 || value5 === ME ? value3 : value5;
|
||||
}
|
||||
}
|
||||
return value3;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).ME;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_themes/native/useRoutedActiveGuildTheme.tsx');
|
||||
exports.default = function() {
|
||||
return require(dependencyMap[6]).useActiveGuildThemeForGuildId(_fun32978());
|
||||
};
|
||||
}
|
||||
|
||||
function getGuildIdFromNavigationState(a0) { // fn#32973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4164:129, offset: 0x01024097, size: 95 bytes, params: 2, frame: 14
|
||||
var guildId;
|
||||
var r0;
|
||||
var property;
|
||||
var value;
|
||||
if (a0 != null) {
|
||||
var routes = a0.routes;
|
||||
if (routes != null) {
|
||||
property = routes[a0.index];
|
||||
value = undefined;
|
||||
guildId = property == null || property.params == null ? value : property.params.guildId;
|
||||
if (guildId != null) {
|
||||
r0 = guildId;
|
||||
} else {
|
||||
value = getGuildIdFromNavigationState(property == null ? value : property.state);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getActiveGuildThemeGuildIdSnapshot() { // fn#32974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4164:353, offset: 0x010240f6, size: 102 bytes, params: 1, frame: 13
|
||||
var value5;
|
||||
const rootNavigationRef = (require(4008) /* metro dependency 4008: RootNavigationRefNative */).getRootNavigationRef();
|
||||
let value3 = null;
|
||||
if (value3 != rootNavigationRef) {
|
||||
if (rootNavigationRef.isReady()) {
|
||||
value5 = ((a0) => {
|
||||
var r4;
|
||||
var getGuildIdFromNavigationStateBinding = getGuildIdFromNavigationState;
|
||||
var value2 = undefined;
|
||||
var value3 = getGuildIdFromNavigationStateBinding(a0);
|
||||
if (value3 != null) {
|
||||
return value3;
|
||||
}
|
||||
r4 = a0 == null || a0.routes == null ? value2 : a0.routes.map((require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).coerceMainRoute).find(_fun32976);
|
||||
return getGuildIdFromNavigationState(r4 == null ? value2 : r4.state);
|
||||
})(rootNavigationRef.getRootState());
|
||||
return value3 == value5 || value5 === ME ? value3 : value5;
|
||||
}
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function useRoutedActiveGuildTheme() { // fn#32977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4164:887, offset: 0x010241dc, size: 49 bytes, params: 1, frame: 13
|
||||
return (require(4038) /* metro dependency 4038: GuildThemeResolver */).useActiveGuildThemeForGuildId(useRoutedActiveGuildThemeGuildId());
|
||||
}
|
||||
|
||||
function getGuildIdFromRootNavigationState(a0) { // fn#32975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4164:479, owner: getActiveGuildThemeGuildIdSnapshot.getGuildIdFromRootNavigationState, offset: 0x0102415c, size: 128 bytes, params: 2, frame: 18
|
||||
const getGuildIdFromNavigationStateBinding = getGuildIdFromNavigationState;
|
||||
const value2 = undefined;
|
||||
const guildIdFromNavigationStateBinding = getGuildIdFromNavigationStateBinding(a0);
|
||||
if (guildIdFromNavigationStateBinding != null) {
|
||||
return guildIdFromNavigationStateBinding;
|
||||
}
|
||||
const r4 = a0 == null || a0.routes == null ? value2 : a0.routes.map((require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).coerceMainRoute).find(function(a0) {
|
||||
return a0 != null;
|
||||
});
|
||||
return getGuildIdFromNavigationState(r4 == null ? value2 : r4.state);
|
||||
}
|
||||
|
||||
function useRoutedActiveGuildThemeGuildId() { // fn#32978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4164:930, owner: useRoutedActiveGuildTheme.useRoutedActiveGuildThemeGuildId, offset: 0x0102420d, size: 128 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_4;
|
||||
const value2 = binding.useContext(importDefault(4037) /* metro dependency 4037: GuildThemeGuildIdOverrideContext */);
|
||||
const useState = binding.useState;
|
||||
const value4 = env1_3(Reflect.apply(useState, binding, [getActiveGuildThemeGuildIdSnapshot]), 2);
|
||||
const property = value4[0];
|
||||
const env0_0 = value4[1];
|
||||
binding.useEffect(_fun32979, []);
|
||||
return value2 === undefined ? property : value2 === ME ? null : value2;
|
||||
}
|
||||
|
||||
function _fun32979() { // fn#32979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4164:1094, offset: 0x0102428d, size: 72 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
var closure;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
|
||||
value = value.getRootNavigationRef();
|
||||
if (value != null) {
|
||||
closure = handleStateChange_32980;
|
||||
closure();
|
||||
return value.addListener('state', closure);
|
||||
}
|
||||
}
|
||||
|
||||
function handleStateChange_32980() { // fn#32980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4164:1170, offset: 0x010242d5, size: 27 bytes, params: 1, frame: 11
|
||||
env1_0(getActiveGuildThemeGuildIdSnapshot());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user