Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
/* Metro module 11640; source: modules/app_launcher/native/onboarding/AppLauncherOnboardingActionCreators.tsx; dependencies: [694, 2] */
|
||||
function _fun89233(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11826:6, offset: 0x02005cfe, size: 112 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/AppLauncherOnboardingActionCreators.tsx');
|
||||
exports.setLastSeenTimeMs = setLastSeenTimeMs;
|
||||
exports.setTriggeredOnboardingContentMetadata = setTriggeredOnboardingContentMetadata;
|
||||
}
|
||||
|
||||
function setLastSeenTimeMs() { // fn#89234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11826:224, offset: 0x02005d6e, size: 48 bytes, params: 1, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'APP_LAUNCHER_ONBOARDING_SET_LAST_SEEN_TIME_MS'});
|
||||
}
|
||||
|
||||
function setTriggeredOnboardingContentMetadata(a0) { // fn#89235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11826:367, offset: 0x02005d9e, size: 56 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'APP_LAUNCHER_ONBOARDING_SET_TRIGGERED_ONBOARDING_CONTENT_METADATA',
|
||||
triggeredOnboardingContentMetadata: a0});
|
||||
}
|
||||
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
/* Metro module 11764; source: modules/app_launcher/native/onboarding/AppLauncherOnboardingChatInputButtonAnimation.tsx; dependencies: [31, 27, 4502, 33, 4501, 4582, 697, 4504, 4507, 566, 7701, 11578, 4017, 6760, 11765, 11603, 2] */
|
||||
function _fun90103(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:6, offset: 0x0202b290, size: 311 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.View;
|
||||
const env0_4 = value.StyleSheet;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = value.Fragment;
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun90104);
|
||||
object = {code: 'function EnteringAnimation_AppLauncherOnboardingChatInputButtonAnimationTsx1(){const{withTiming,timingStandard}=this.__closure;const initialValues={opacity:0};const animations={opacity:withTiming(1,timingStandard)};return{initialValues:initialValues,animations:animations};}'};
|
||||
const env0_11 = _fun90105();
|
||||
object = {code: 'function ExitingAnimation_AppLauncherOnboardingChatInputButtonAnimationTsx2(){const{withTiming,timingStandard}=this.__closure;const initialValues={opacity:1};const animations={opacity:withTiming(0,timingStandard)};return{initialValues:initialValues,animations:animations};}'};
|
||||
const env0_13 = _fun90107();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/AppLauncherOnboardingChatInputButtonAnimation.tsx');
|
||||
exports.APP_LAUNCHER_ONBOARDING_CHAT_INPUT_BUTTON_ANIMATION_DURATION_MS = 7000;
|
||||
exports.AppLauncherOnboardingChatInputButtonAnimation = AppLauncherOnboardingChatInputButtonAnimation;
|
||||
}
|
||||
|
||||
function _fun90104() { // fn#90104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:212, offset: 0x0202b3c7, size: 289 bytes, params: 1, frame: 17
|
||||
const SMALL_BUTTON_HEIGHT = (require(4582) /* metro dependency 4582: ButtonConstantsNative */).SMALL_BUTTON_HEIGHT;
|
||||
const SMALL_BUTTON_PADDING = (require(4582) /* metro dependency 4582: ButtonConstantsNative */).SMALL_BUTTON_PADDING;
|
||||
const value2 = SMALL_BUTTON_HEIGHT + SMALL_BUTTON_PADDING + 2;
|
||||
const object4 = {};
|
||||
const object5 = {'zIndex': 3, 'borderWidth': 1.5, 'borderColor': null, 'borderRadius': null, 'alignItems': 'center',
|
||||
'justifyContent': 'center'};
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object5.borderColor = BACKGROUND_BRAND;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object5.width = value2;
|
||||
object5.height = value2;
|
||||
object5.marginLeft = 4;
|
||||
object4.fakeButton = object5;
|
||||
const object6 = {'zIndex': 1, 'position': 'absolute', 'borderRadius': null, 'top': 0, 'left': 0};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object6.width = value2;
|
||||
object6.height = value2;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object6.backgroundColor = BACKGROUND_BASE_LOW;
|
||||
object6.marginLeft = 4;
|
||||
object4.glowMask = object6;
|
||||
object4.glowLottie = {'width': '150%', 'height': '150%', 'position': 'absolute', 'top': '-25%', 'left': '-25%',
|
||||
'zIndex': 0, 'opacity': 0.8};
|
||||
object4.trinketsLottie = {'zIndex': 4, 'position': 'absolute', 'pointerEvents': 'none', 'width': '175%',
|
||||
'height': '175%', 'top': '-43%', 'left': '-38%'};
|
||||
object4.glowAnimation = {pointerEvents: 'none'};
|
||||
return object4;
|
||||
}
|
||||
|
||||
function _fun90105() { // fn#90105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:1194, offset: 0x0202b4e8, size: 102 bytes, params: 1, frame: 15
|
||||
const closure = EnteringAnimation;
|
||||
const object2 = {};
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
object2.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 2327377243473;
|
||||
closure.__initData = env0_10;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function _fun90107() { // fn#90107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:1829, offset: 0x0202b5a3, size: 102 bytes, params: 1, frame: 15
|
||||
const closure = ExitingAnimation_90108;
|
||||
const object2 = {};
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
object2.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 1065249287738;
|
||||
closure.__initData = env0_12;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function AppLauncherOnboardingChatInputButtonAnimation({channelId}) { // fn#90109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:2412, offset: 0x0202b65e, size: 439 bytes, params: 2, frame: 29
|
||||
const styles = useStyles();
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const value2 = (require(7701) /* metro dependency 7701: ClientThemesOverrides */).useGradientBottom();
|
||||
(importDefault(11578) /* metro dependency 11578: useAppLauncherOnboardingContent */)({channelId: channelId});
|
||||
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const view2Props = {entering: env0_11, exiting: env0_13, style: [StyleSheet.absoluteFill, styles.glowAnimation],
|
||||
collapsable: false};
|
||||
const LottieAnimationView = importDefault(6760) /* metro dependency 6760: LottieAnimationView */;
|
||||
const defaultImport2Props = {collapsable: false, style: styles.glowLottie,
|
||||
source: require(11765) /* metro dependency 11765 */};
|
||||
const value3 = !useReducedMotion;
|
||||
defaultImport2Props.autoPlay = value3;
|
||||
return (
|
||||
<>
|
||||
<View2 {...view2Props}>
|
||||
<LottieAnimationView {...defaultImport2Props} />
|
||||
<View collapsable={false} style={[styles.glowMask, value2]} />
|
||||
<View collapsable={false} style={styles.fakeButton} />
|
||||
</View2>
|
||||
<LottieAnimationView
|
||||
collapsable={false}
|
||||
style={styles.trinketsLottie}
|
||||
source={require(11603) /* metro dependency 11603 */}
|
||||
autoPlay={value3}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function EnteringAnimation() { // fn#90106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:1227, offset: 0x0202b54e, size: 85 bytes, params: 1, frame: 17
|
||||
const object = {};
|
||||
let value = environment.__proto__;
|
||||
value = require(4504) /* metro dependency 4504: timing */;
|
||||
object.opacity = value.withTiming(1, (require(4507) /* metro dependency 4507: timingPresets */).timingStandard);
|
||||
return {initialValues: {opacity: 0}, animations: object};
|
||||
}
|
||||
|
||||
function ExitingAnimation_90108() { // fn#90108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:1861, offset: 0x0202b609, size: 85 bytes, params: 1, frame: 17
|
||||
const object = {};
|
||||
let value = environment.__proto__;
|
||||
value = require(4504) /* metro dependency 4504: timing */;
|
||||
object.opacity = value.withTiming(0, (require(4507) /* metro dependency 4507: timingPresets */).timingStandard);
|
||||
return {initialValues: {opacity: 1}, animations: object};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* Metro module 11590; source: modules/app_launcher/native/onboarding/banner/ActivitiesBanner.tsx; dependencies: [57, 31, 33, 11579, 11591, 11602, 1244, 2] */
|
||||
function _fun88747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11776:6, offset: 0x01ff0040, size: 154 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/ActivitiesBanner.tsx');
|
||||
exports.default = ActivitiesBanner;
|
||||
}
|
||||
|
||||
function ActivitiesBanner({context}) { // fn#88748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11776:240, offset: 0x01ff00da, size: 260 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var BannerBase;
|
||||
var intl;
|
||||
const useActivityApplicationsModule = require(11579) /* metro dependency 11579: useActivityApplications */;
|
||||
const useActivityApplications = useActivityApplicationsModule.useActivityApplications;
|
||||
let object2 = {};
|
||||
object2.guildId = context.channel.guild_id;
|
||||
object2.fetchesShelf = false;
|
||||
const value3 = env0_3(Reflect.apply(useActivityApplications, useActivityApplicationsModule, [object2]), 2);
|
||||
const property = value3[0];
|
||||
const property2 = value3[1];
|
||||
if (property == null) {
|
||||
r0 = null;
|
||||
} else if (property2 == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
BannerBase = importDefault(11602) /* metro dependency 11602: BannerBase */;
|
||||
object2 = {image: ((Component) => <Component firstApplication={property} secondApplication={property2} />)(importDefault(11591) /* metro dependency 11591: ApplicationsImage */)};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.text = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.zHMWuV,
|
||||
{activityName: property.name});
|
||||
r0 = <BannerBase {...object2} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
/* Metro module 11658; source: modules/app_launcher/native/onboarding/banner/AppLauncherGlobalSearchOnboardingBanner.tsx; dependencies: [31, 27, 1483, 1376, 33, 4501, 697, 8840, 8552, 1244, 2] */
|
||||
function _fun89367(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11844:6, offset: 0x0200bb1f, size: 352 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
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(1483) /* metro dependency 1483: AppLauncherNativeConstants */).DEFAULT_CONTENT_PADDING;
|
||||
const env0_6 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'height': 40, 'width': 40, 'backgroundColor': null, 'borderRadius': null, 'alignItems': 'center',
|
||||
'justifyContent': 'center'};
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object4.backgroundColor = BACKGROUND_BRAND;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object3.appsIcon = object4;
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
|
||||
object3.appsIconImage = {'height': 24, 'width': 24, tintColor: WHITE};
|
||||
const env0_8 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/AppLauncherGlobalSearchOnboardingBanner.tsx');
|
||||
exports.default = GlobalSearchCoachmark;
|
||||
}
|
||||
|
||||
function GlobalSearchCoachmark({markAsDismissed, visible, windowDimensions}) { // fn#89368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11844:595, offset: 0x0200bc7f, size: 342 bytes, params: 2, frame: 23
|
||||
var r0;
|
||||
var Coachmark;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const env0_2 = useStyles();
|
||||
const value2 = windowDimensions.width - 2 * DEFAULT_CONTENT_PADDING;
|
||||
const binding = env0_3;
|
||||
const useEffect = binding.useEffect;
|
||||
const items = [markAsDismissed, visible];
|
||||
Reflect.apply(useEffect, binding, [function() {
|
||||
return _fun89370;
|
||||
}, items]);
|
||||
if (visible) {
|
||||
Coachmark = (require(8552) /* metro dependency 8552: CoachmarkNative */).Coachmark;
|
||||
r0 = <Coachmark renderImgComponent={renderImgComponent} title={intl.string(t.bCPN5y)} description={intl.string(t['0TBExc'])} onDismiss={function() {
|
||||
markAsDismissed({actionType: ContentDismissActionType.TAKE_ACTION});
|
||||
}} targetMeasurements={{'x': 0, 'y': -40, 'width': null, 'height': 40,
|
||||
width: value2}} surfaceMeasurements={{'x': -140, 'y': -40, width: value2,
|
||||
height: windowDimensions.height}} position="bottom" />;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun89369() { // fn#89369, offset: 0x0200bdd5, size: 11 bytes, params: 1, frame: 1
|
||||
return _fun89370;
|
||||
}
|
||||
|
||||
function GlobalSearchCoachmarkRenderImgComponent() { // fn#89371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11844:814, owner: GlobalSearchCoachmark.renderImgComponent, offset: 0x0200be0d, size: 119 bytes, params: 1, frame: 18
|
||||
const stylesBinding = styles;
|
||||
const appsIcon = stylesBinding.appsIcon;
|
||||
const AppsIcon = (require(8840) /* metro dependency 8840: AppsIcon */).AppsIcon;
|
||||
const appsIconImage = stylesBinding.appsIconImage;
|
||||
const INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
|
||||
return (
|
||||
<View style={appsIcon}>
|
||||
<AppsIcon style={appsIconImage} color={INTERACTIVE_TEXT_ACTIVE} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun89370() { // fn#89370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11844:724, offset: 0x0200bde0, size: 45 bytes, params: 1, frame: 11
|
||||
var markAsDismissedBinding;
|
||||
if (visible) {
|
||||
markAsDismissedBinding = markAsDismissed;
|
||||
value = environment.__proto__.__proto__;
|
||||
markAsDismissedBinding({actionType: ContentDismissActionType.USER_DISMISS});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Metro module 11589; source: modules/app_launcher/native/onboarding/banner/AppLauncherOnboardingBanner.tsx; dependencies: [31, 33, 1365, 11590, 11604, 11606, 2] */
|
||||
function _fun88745(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11775:6, offset: 0x01fefec8, 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/app_launcher/native/onboarding/banner/AppLauncherOnboardingBanner.tsx');
|
||||
exports.default = AppLauncherOnboardingBanner;
|
||||
}
|
||||
|
||||
function AppLauncherOnboardingBanner({context, visibleContent}) { // fn#88746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11775:239, offset: 0x01feff52, size: 238 bytes, params: 2, frame: 16
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER;
|
||||
if (APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER === visibleContent) {
|
||||
return ((Component) => <Component context={context} />)(importDefault(11590) /* metro dependency 11590: ActivitiesBanner */);
|
||||
}
|
||||
const APP_LAUNCHER_ONBOARDING_APPS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER;
|
||||
if (APP_LAUNCHER_ONBOARDING_APPS_BANNER === visibleContent) {
|
||||
return ((Component) => <Component />)(importDefault(11604) /* metro dependency 11604: AppsBanner */);
|
||||
}
|
||||
const APP_LAUNCHER_ONBOARDING_BOTS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_BOTS_BANNER;
|
||||
if (APP_LAUNCHER_ONBOARDING_BOTS_BANNER === visibleContent) {
|
||||
return ((Component) => <Component context={context} />)(importDefault(11606) /* metro dependency 11606: BotsBanner */);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* Metro module 11588; source: modules/app_launcher/native/onboarding/banner/AppLauncherOnboardingLayer.tsx; dependencies: [31, 27, 7729, 33, 4501, 697, 11589, 2] */
|
||||
function _fun88743(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11774:6, offset: 0x01fefd38, size: 260 bytes, params: 8, frame: 22
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_3 = (require(7729) /* metro dependency 7729: useChatBottomManagerUIStore */).useBestActiveChatInputContainerHeight;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const BACKGROUND_SCRIM = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SCRIM;
|
||||
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{container: {'opacity': 1, 'width': '100%',
|
||||
'position': 'absolute', 'left': 0, 'top': 0, backgroundColor: BACKGROUND_SCRIM}}]);
|
||||
value = value.memo(_fun88744);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/AppLauncherOnboardingLayer.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun88744({context, visibleContent, bottomOffset}) { // fn#88744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11774:335, offset: 0x01fefe3c, size: 140 bytes, params: 2, frame: 21
|
||||
var r0;
|
||||
var object2;
|
||||
var items2;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
if (visibleContent != null) {
|
||||
object2 = {};
|
||||
items2 = [styles.container];
|
||||
items2[1] = {bottom: useBestActiveChatInputContainerHeight() + bottomOffset};
|
||||
object2.style = items2;
|
||||
value = importDefault(11589) /* metro dependency 11589: AppLauncherOnboardingBanner */;
|
||||
value = <View {...object2}>{((Component) => <Component context={context} visibleContent={visibleContent} />)(value)}</View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/* Metro module 11591; source: modules/app_launcher/native/onboarding/banner/ApplicationsImage.tsx; dependencies: [31, 27, 33, 4501, 697, 11592, 5475, 2] */
|
||||
function _fun88749(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11777:6, offset: 0x01ff01de, size: 422 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.Fragment;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object4.backgroundColor = BACKGROUND_BRAND;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm + 3;
|
||||
object4.position = 'absolute';
|
||||
object4.padding = 3;
|
||||
object3.appIconContainer = object4;
|
||||
object3.appIconLeftContainer = {transform: [{rotate: '-10deg'}]};
|
||||
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object3.appIconRightContainer = {left: PX_32, transform: [{rotate: '15deg'}]};
|
||||
const object5 = {'borderRadius': null, 'width': 36, 'height': 36};
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object3.appIcon = object5;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/ApplicationsImage.tsx');
|
||||
exports.default = ApplicationsImage;
|
||||
exports.APP_ICON_SIZE = 36;
|
||||
}
|
||||
|
||||
function ApplicationsImage({firstApplication, secondApplication}) { // fn#88750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11777:615, offset: 0x01ff0384, size: 338 bytes, params: 2, frame: 21
|
||||
const styles = useStyles();
|
||||
const r7 = firstApplication != null ? (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(firstApplication) : null;
|
||||
const r6 = secondApplication != null ? (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(secondApplication) : null;
|
||||
return (
|
||||
<>
|
||||
<View style={[styles.appIconContainer, styles.appIconLeftContainer]}>
|
||||
{r6 != null && ((Component) => <Component style={styles.appIcon} source={r6} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
|
||||
</View>
|
||||
<View style={[styles.appIconContainer, styles.appIconRightContainer]}>
|
||||
{r7 != null && ((Component) => <Component style={styles.appIcon} source={r7} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
|
||||
</View>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Metro module 11604; source: modules/app_launcher/native/onboarding/banner/AppsBanner.tsx; dependencies: [31, 27, 33, 4501, 11605, 11602, 1244, 2] */
|
||||
function _fun88858(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11790:6, offset: 0x01ff6b81, size: 225 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({rocketIconContainer: {'position': 'absolute',
|
||||
'top': -20}, rocketIcon: {'width': 90, 'height': 90}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/AppsBanner.tsx');
|
||||
exports.default = AppsBaner;
|
||||
}
|
||||
|
||||
function AppsBaner() { // fn#88859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11790:345, offset: 0x01ff6c62, size: 165 bytes, params: 1, frame: 19
|
||||
const styles = useStyles();
|
||||
const view = <View style={styles.rocketIconContainer}>{((Component) => <Component style={styles.rocketIcon} />)(importDefault(11605) /* metro dependency 11605: OnboardingAppsRocket */)}</View>;
|
||||
const BannerBase = importDefault(11602) /* metro dependency 11602: BannerBase */;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return <BannerBase image={view} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.sjRwMJ)} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
/* Metro module 11602; source: modules/app_launcher/native/onboarding/banner/BannerBase.tsx; dependencies: [57, 31, 27, 4502, 33, 697, 4501, 11591, 4017, 1478, 4000, 566, 4577, 4589, 6760, 11603, 4573, 2] */
|
||||
function _fun88852(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11788:6, offset: 0x01ff473d, size: 624 bytes, params: 8, frame: 25
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
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(27) /* metro dependency 27 */).View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
const env0_9 = {'mass': 1, 'stiffness': 100, 'damping': 15};
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object5 = {};
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object5.backgroundColor = BACKGROUND_BRAND;
|
||||
object5.position = 'absolute';
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingHorizontal = PX_16;
|
||||
object5.paddingVertical = PX_12;
|
||||
object5.flexDirection = 'row';
|
||||
const APP_ICON_SIZE = (require(11591) /* metro dependency 11591: ApplicationsImage */).APP_ICON_SIZE;
|
||||
object5.minHeight = APP_ICON_SIZE + 2 * PX_12 + 4;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.bottom = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.left = PX_16;
|
||||
object3.banner = object5;
|
||||
object3.bannerGradientColor = {backgroundColor: '#7eaaff'};
|
||||
const object6 = {'position': 'absolute', 'top': 0, 'left': 0};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object3.bannerBackgroundGradient = object6;
|
||||
object3.imageContainer = {width: 72};
|
||||
object3.trinketsLottie = {'width': 175, 'height': 175, 'position': 'absolute', 'top': -38, 'left': -27, 'zIndex': 1,
|
||||
'pointerEvents': 'none'};
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object3.bannerTextContainer = {'alignItems': 'center', 'justifyContent': 'center', 'marginLeft': null,
|
||||
'flexShrink': 1, marginLeft: PX_12};
|
||||
object3.bannerText = {width: '100%'};
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object3]);
|
||||
object3 = {code: 'function BannerBaseTsx1(){const{bannerMeasured,withDelay,withSpring,SPRING_CONFIG}=this.__closure;return{opacity:bannerMeasured.get()?withDelay(150,withSpring(1,SPRING_CONFIG)):0,transform:[{translateY:bannerMeasured.get()?withDelay(150,withSpring(0,SPRING_CONFIG)):30}]};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/BannerBase.tsx');
|
||||
exports.default = BannerBase;
|
||||
}
|
||||
|
||||
function BannerBase({image, text}) { // fn#88853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11788:1320, offset: 0x01ff49ad, size: 778 bytes, params: 2, frame: 30
|
||||
const styles = useStyles();
|
||||
const [property, env0_0] = env0_3(env0_4.useState(0), 2);
|
||||
const value6 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(false);
|
||||
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
const value7 = width - 2 * PX_16;
|
||||
const backgroundColor = styles.bannerGradientColor.backgroundColor;
|
||||
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
let items2 = [colorUtilsModule.hexOpacityToRgba(backgroundColor, 0.2)];
|
||||
const moduleValue3 = colorUtilsModule;
|
||||
items2[1] = moduleValue3.hexOpacityToRgba(backgroundColor, 0);
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = BannerBase_;
|
||||
const object2 = {bannerMeasured: value6};
|
||||
object2.withDelay = reanimatedRexportModule.withDelay;
|
||||
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
|
||||
object2.SPRING_CONFIG = env0_9;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 5314641176204;
|
||||
closure.__initData = env0_11;
|
||||
const value9 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const view2Props = {style: [styles.banner, {opacity: property > 0 ? 1 : 0, width: value7}, value9],
|
||||
onLayout: onLayout_88856};
|
||||
items2 = [((Component) => <Component start={{'x': 0, 'y': 0}} end={{'x': 0,
|
||||
'y': 1}} colors={items2} style={[styles.bannerBackgroundGradient, {height: property,
|
||||
width: value7}]} />)(importDefault(4589) /* metro dependency 4589 */)];
|
||||
items2[1] = <View style={styles.imageContainer}>{((Component) => <Component style={styles.trinketsLottie} source={require(11603) /* metro dependency 11603 */} autoPlay={!useReducedMotion} />)(importDefault(6760) /* metro dependency 6760: LottieAnimationView */)}{image}</View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[2] = <View style={styles.bannerTextContainer}><Text variant="text-md/semibold" color="white" style={styles.bannerText}>{text}</Text></View>;
|
||||
return (
|
||||
<View2 {...view2Props}>
|
||||
{items2}
|
||||
</View2>
|
||||
);
|
||||
}
|
||||
|
||||
function BannerBase_() { // fn#88855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11788:1676, owner: BannerBase._, offset: 0x01ff4cb7, size: 206 bytes, params: 1, frame: 20
|
||||
var r2;
|
||||
var r1;
|
||||
var value4;
|
||||
var moduleValue;
|
||||
var withDelay;
|
||||
var moduleValue3;
|
||||
const object2 = {};
|
||||
const value2 = env0_1.get();
|
||||
const value3 = 0;
|
||||
if (value2) {
|
||||
value4 = environment.__proto__;
|
||||
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
r2 = moduleValue.withDelay(150, (require(4577) /* metro dependency 4577: spring */).withSpring(1, env1_9));
|
||||
} else {
|
||||
r2 = value3;
|
||||
}
|
||||
object2.opacity = r2;
|
||||
let value = env0_1.get();
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
moduleValue3 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
withDelay = moduleValue3.withDelay;
|
||||
value = (require(4577) /* metro dependency 4577: spring */).withSpring(value3, env1_9);
|
||||
value = Reflect.apply(withDelay, moduleValue3, [150, value]);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = 30;
|
||||
}
|
||||
object2.transform = [{translateY: r1}];
|
||||
return object2;
|
||||
}
|
||||
|
||||
function BannerBaseOnLayout({nativeEvent}) { // fn#88856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11788:2077, owner: BannerBase.onLayout, offset: 0x01ff4d85, size: 69 bytes, params: 2, frame: 12
|
||||
const height = nativeEvent.layout?.height;
|
||||
if (height > 0) {
|
||||
env0_0(height);
|
||||
env0_1.set(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/* Metro module 11606; source: modules/app_launcher/native/onboarding/banner/BotsBanner.tsx; dependencies: [31, 33, 11607, 11591, 11602, 1244, 2] */
|
||||
function _fun88862(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11792:6, offset: 0x01ff7379, 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/app_launcher/native/onboarding/banner/BotsBanner.tsx');
|
||||
exports.default = BotsBanner;
|
||||
}
|
||||
|
||||
function BotsBanner({context}) { // fn#88863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11792:222, offset: 0x01ff7403, size: 246 bytes, params: 2, frame: 21
|
||||
var r0;
|
||||
var BannerBase;
|
||||
var intl;
|
||||
var formatToPlainString;
|
||||
var property;
|
||||
var object3;
|
||||
var name;
|
||||
const useBannerBotsModule = require(11607) /* metro dependency 11607: useBannerBots */;
|
||||
const useBannerBots = useBannerBotsModule.useBannerBots;
|
||||
let object4 = {context: context};
|
||||
const {firstBotApplication, secondBotApplication} = Reflect.apply(useBannerBots, useBannerBotsModule, [object4]);
|
||||
if (firstBotApplication == null) {
|
||||
r0 = null;
|
||||
} else if (secondBotApplication == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
BannerBase = importDefault(11602) /* metro dependency 11602: BannerBase */;
|
||||
object4 = {image: ((Component) => <Component firstApplication={firstBotApplication} secondApplication={secondBotApplication} />)(importDefault(11591) /* metro dependency 11591: ApplicationsImage */)};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (require(1244) /* metro dependency 1244: indexNative */).t['9SN0xw'];
|
||||
object3 = {};
|
||||
name = firstBotApplication.name;
|
||||
object3.firstApplicationName = name;
|
||||
name = secondBotApplication.name;
|
||||
object3.secondApplicationName = name;
|
||||
object4.text = Reflect.apply(formatToPlainString, intl, [property, object3]);
|
||||
r0 = <BannerBase {...object4} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Metro module 11579; source: modules/app_launcher/native/onboarding/hooks/useActivityApplications.tsx; dependencies: [31, 11580, 7860, 2] */
|
||||
function _fun88659(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11765:6, offset: 0x01fedc77, size: 121 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/hooks/useActivityApplications.tsx');
|
||||
exports.useActivityApplications = useActivityApplications;
|
||||
}
|
||||
|
||||
function useActivityApplications({guildId, fetchesShelf}) { // fn#88660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11765:238, offset: 0x01fedcf0, size: 113 bytes, params: 2, frame: 17
|
||||
const value3 = (importDefault(11580) /* metro dependency 11580: useActivityShelfItems */)({guildId: guildId}).map(function(a0) {
|
||||
return a0.application;
|
||||
});
|
||||
env0_3.useEffect(_fun88662, [fetchesShelf, guildId]);
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun88662() { // fn#88662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11765:370, offset: 0x01fedd6b, size: 60 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
if (fetchesShelf) {
|
||||
value2 = environment.__proto__;
|
||||
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).fetchShelf({guildId: guildId});
|
||||
}
|
||||
}
|
||||
|
||||
+207
@@ -0,0 +1,207 @@
|
||||
/* Metro module 11578; source: modules/app_launcher/native/onboarding/hooks/useAppLauncherOnboardingContent.tsx; dependencies: [57, 7862, 1379, 1376, 3968, 1365, 566, 11579, 11584, 7013, 2] */
|
||||
function _fun88651(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11764:6, offset: 0x01fed7bc, size: 194 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_88654 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const applicationFrecencyStore = importDefault(7862) /* metro dependency 7862: ApplicationFrecencyStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const env0_6 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).DismissibleContentGroupName;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/hooks/useAppLauncherOnboardingContent.tsx');
|
||||
exports.default = useAppLauncherOnboardingContent;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_88652(a0, a1) { // fn#88652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11764:169, offset: 0x01fed87e, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun88653;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_88654(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_88654(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_88654(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun88653;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function useAppLauncherOnboardingContent({channelId}) { // fn#88655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11764:1206, offset: 0x01fed9f2, size: 324 bytes, params: 2, frame: 20
|
||||
var push;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const items = [];
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
const hasUsedActivities = useHasUsedActivities({channel: Reflect.apply(useStateFromStores, fluxModule,
|
||||
[[ChannelStore], function() {
|
||||
return ChannelStore.getChannel(channelId);
|
||||
}])}).hasUsedActivities;
|
||||
const {canShowBotsBanner,
|
||||
canShowAppsOrActivitiesBanner} = (importDefault(11584) /* metro dependency 11584: useCanShowAppLauncherOnboarding */)({channelId: channelId});
|
||||
if (canShowBotsBanner) {
|
||||
items.push(DismissibleContent.APP_LAUNCHER_ONBOARDING_BOTS_BANNER);
|
||||
}
|
||||
if (canShowAppsOrActivitiesBanner) {
|
||||
push = items.push;
|
||||
if (hasUsedActivities) {
|
||||
Reflect.apply(push, items, [DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER]);
|
||||
} else {
|
||||
Reflect.apply(push, items, [DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER]);
|
||||
}
|
||||
}
|
||||
const useSelectedDismissibleContentModule = require(7013) /* metro dependency 7013: useSelectedDismissibleContent */;
|
||||
const useSelectedDismissibleContent = useSelectedDismissibleContentModule.useSelectedDismissibleContent;
|
||||
const APP_LAUNCHER_ONBOARDING = DismissibleContentGroupName.APP_LAUNCHER_ONBOARDING;
|
||||
const value = env0_3(Reflect.apply(useSelectedDismissibleContent, useSelectedDismissibleContentModule, [items,
|
||||
APP_LAUNCHER_ONBOARDING]), 2);
|
||||
return {visibleContent: value[0], markAsDismissed: value[1]};
|
||||
}
|
||||
|
||||
function useHasUsedActivities({channel}) { // fn#88656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11764:1273, owner: useAppLauncherOnboardingContent.useHasUsedActivities, offset: 0x01fedb36, size: 302 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
var r2;
|
||||
var r1;
|
||||
var value7;
|
||||
var getEntry;
|
||||
var id;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
let value = environment.__proto__;
|
||||
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
let UNSAFE_useIsDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER;
|
||||
const value3 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, dismissibleContentUnsafeUtilsModule,
|
||||
[APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER]);
|
||||
const moduleValue2 = dismissibleContentUnsafeUtilsModule;
|
||||
UNSAFE_useIsDismissibleContentDismissed = moduleValue2.UNSAFE_useIsDismissibleContentDismissed;
|
||||
const APP_LAUNCHER_ONBOARDING_APPS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER;
|
||||
const value4 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, moduleValue2,
|
||||
[APP_LAUNCHER_ONBOARDING_APPS_BANNER]);
|
||||
const applicationFrecencyWithoutLoadingLatest = (require(566) /* metro dependency 566: flux */).useStateFromStores([ApplicationFrecencyStore],
|
||||
function() {
|
||||
return ApplicationFrecencyStore.getApplicationFrecencyWithoutLoadingLatest();
|
||||
});
|
||||
const guild_id = channel?.guild_id;
|
||||
const _createForOfIteratorHelperLoose_88652Binding = _createForOfIteratorHelperLoose_88652;
|
||||
const useActivityApplications = (require(11579) /* metro dependency 11579: useActivityApplications */).useActivityApplications;
|
||||
value = _createForOfIteratorHelperLoose_88652Binding(Reflect.apply(useActivityApplications, value,
|
||||
[{guildId: guild_id, fetchesShelf: !(value3 && value4)}]));
|
||||
const value5 = value();
|
||||
let done = value5.done;
|
||||
if (done) {
|
||||
r1 = false;
|
||||
} else {
|
||||
r2 = value5;
|
||||
while (true) {
|
||||
value7 = r2.value;
|
||||
getEntry = applicationFrecencyWithoutLoadingLatest.getEntry;
|
||||
id = value7.id;
|
||||
value8 = Reflect.apply(getEntry, applicationFrecencyWithoutLoadingLatest, [id]) != null;
|
||||
value9 = true;
|
||||
if (value8) {
|
||||
r1 = value9;
|
||||
break;
|
||||
}
|
||||
value10 = value();
|
||||
done = value10.done;
|
||||
if (done) {
|
||||
r1 = false;
|
||||
break;
|
||||
}
|
||||
r2 = value10;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return {hasUsedActivities: r1};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,357 @@
|
||||
/* Metro module 11607; source: modules/app_launcher/native/onboarding/hooks/useBannerBots.tsx; dependencies: [31, 1867, 11586, 566, 7870, 11608, 11579, 2] */
|
||||
function _fun88864(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:6, offset: 0x01ff74f9, size: 171 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_88867 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const appLauncherOnboardingStore = importDefault(11586) /* metro dependency 11586: AppLauncherOnboardingStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/hooks/useBannerBots.tsx');
|
||||
exports.useBannerBots = useBannerBots;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_88865(a0, a1) { // fn#88865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:131, offset: 0x01ff75a4, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun88866;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_88867(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_88867(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_88867(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun88866;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function useBannerBots({context}) { // fn#88868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:1155, offset: 0x01ff7718, size: 583 bytes, params: 2, frame: 29
|
||||
var guild_id;
|
||||
var r6;
|
||||
var r8;
|
||||
var r10;
|
||||
var id;
|
||||
var r15;
|
||||
var r9;
|
||||
var r1;
|
||||
var r5;
|
||||
var r2;
|
||||
var get;
|
||||
var applicationId;
|
||||
var value8;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var id2;
|
||||
var value14;
|
||||
var find;
|
||||
var length;
|
||||
var property;
|
||||
let value = undefined;
|
||||
var env0_0;
|
||||
const value2 = useAppsMap({context: context});
|
||||
const appLauncherSearchUtilsModule = require(11608) /* metro dependency 11608: AppLauncherSearchUtils */;
|
||||
const useApplicationsInContext = appLauncherSearchUtilsModule.useApplicationsInContext;
|
||||
const apps = Reflect.apply(useApplicationsInContext, appLauncherSearchUtilsModule, [{'context': null,
|
||||
'onlyWithCommands': true, 'includeBuiltIn': false, 'includeEmbeddedApps': false, 'includeNonEmbeddedApps': true,
|
||||
context: context}]).apps;
|
||||
const value4 = useCommandsMap({context: context});
|
||||
const value5 = useFrecencyCommandIds({context: context});
|
||||
const useActivityApplicationsModule = require(11579) /* metro dependency 11579: useActivityApplications */;
|
||||
const useActivityApplications = useActivityApplicationsModule.useActivityApplications;
|
||||
const channel = context.channel;
|
||||
reducibleJoin2: while (true) {
|
||||
if (channel == null) {
|
||||
guild_id = value;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
guild_id = channel.guild_id;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
const value7 = Reflect.apply(useActivityApplications, useActivityApplicationsModule, [{guildId: guild_id,
|
||||
fetchesShelf: true}]);
|
||||
const recentApplicationCommandMetadata = (require(566) /* metro dependency 566: flux */).useStateFromStores([AppLauncherOnboardingStore],
|
||||
function() {
|
||||
return AppLauncherOnboardingStore.getRecentApplicationCommandMetadata();
|
||||
});
|
||||
reducibleJoin4: while (true) {
|
||||
if (recentApplicationCommandMetadata != null) {
|
||||
get = value2.get;
|
||||
applicationId = recentApplicationCommandMetadata.applicationId;
|
||||
value8 = Reflect.apply(get, value2, [applicationId]);
|
||||
r6 = value8;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r6 = null;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
const value9 = _createForOfIteratorHelperLoose_88865(value5);
|
||||
const value10 = value9();
|
||||
let done = value10.done;
|
||||
if (done) {
|
||||
r9 = value;
|
||||
} else {
|
||||
r8 = value10;
|
||||
r10 = r6;
|
||||
reducibleLoop5: while (true) {
|
||||
value11 = r8.value;
|
||||
get = value4.get;
|
||||
value12 = Reflect.apply(get, value4, [value11]);
|
||||
if (value12 == null) {
|
||||
r15 = r10;
|
||||
} else {
|
||||
get = value2.get;
|
||||
applicationId = value12.applicationId;
|
||||
value13 = Reflect.apply(get, value2, [applicationId]);
|
||||
reducibleJoin12: while (true) {
|
||||
if (value13 == null) {
|
||||
r15 = r10;
|
||||
break reducibleJoin12;
|
||||
}
|
||||
if (r10 == null) {
|
||||
env0_0 = value13;
|
||||
r15 = value13;
|
||||
break reducibleJoin12;
|
||||
}
|
||||
id2 = value13.id;
|
||||
reducibleJoin10: while (true) {
|
||||
if (r10 == null) {
|
||||
id = value;
|
||||
break reducibleJoin10;
|
||||
}
|
||||
id = r10.id;
|
||||
break reducibleJoin10;
|
||||
}
|
||||
if (id2 !== id) {
|
||||
r6 = r10;
|
||||
r9 = value13;
|
||||
break reducibleLoop5;
|
||||
}
|
||||
r15 = r10;
|
||||
break reducibleJoin12;
|
||||
}
|
||||
}
|
||||
value14 = value9();
|
||||
done = value14.done;
|
||||
if (done) {
|
||||
r6 = r15;
|
||||
r9 = value;
|
||||
break reducibleLoop5;
|
||||
}
|
||||
r8 = value14;
|
||||
r10 = r15;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
}
|
||||
if (r6 == null) {
|
||||
length = apps.length;
|
||||
reducibleJoin18: while (true) {
|
||||
if (length > 0) {
|
||||
property = apps[0];
|
||||
env0_0 = property;
|
||||
r6 = property;
|
||||
break reducibleJoin18;
|
||||
}
|
||||
break reducibleJoin18;
|
||||
}
|
||||
length = apps.length;
|
||||
reducibleJoin20: while (true) {
|
||||
if (length > 1) {
|
||||
property = apps[1];
|
||||
r1 = property;
|
||||
r5 = r6;
|
||||
break reducibleJoin20;
|
||||
}
|
||||
r1 = r9;
|
||||
r5 = r6;
|
||||
break reducibleJoin20;
|
||||
}
|
||||
} else {
|
||||
reducibleJoin20: while (true) {
|
||||
if (r9 != null) {
|
||||
r1 = r9;
|
||||
r5 = r6;
|
||||
break reducibleJoin20;
|
||||
}
|
||||
find = apps.find;
|
||||
value = Reflect.apply(find, apps, [_fun88876]);
|
||||
r1 = value;
|
||||
r5 = r6;
|
||||
break reducibleJoin20;
|
||||
}
|
||||
}
|
||||
if (r5 == null) {
|
||||
property = value7[0];
|
||||
r1 = value7[1];
|
||||
r2 = property;
|
||||
} else {
|
||||
reducibleJoin24: while (true) {
|
||||
if (r1 != null) {
|
||||
r2 = r5;
|
||||
break reducibleJoin24;
|
||||
}
|
||||
property = value7[0];
|
||||
r1 = property;
|
||||
r2 = r5;
|
||||
break reducibleJoin24;
|
||||
}
|
||||
}
|
||||
return {firstBotApplication: r2, secondBotApplication: r1};
|
||||
}
|
||||
|
||||
function useAppsMap({context}) { // fn#88869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:1203, owner: useBannerBots.useAppsMap, offset: 0x01ff795f, size: 108 bytes, params: 2, frame: 15
|
||||
const appLauncherSearchUtilsModule = require(11608) /* metro dependency 11608: AppLauncherSearchUtils */;
|
||||
const useApplicationsInContext = appLauncherSearchUtilsModule.useApplicationsInContext;
|
||||
return env1_2.useMemo(function() {
|
||||
var r2;
|
||||
var value7;
|
||||
var property = global.Map;
|
||||
var value2 = new property();
|
||||
var value5 = _createForOfIteratorHelperLoose_88865(apps);
|
||||
var value6 = value5();
|
||||
if (!value6.done) {
|
||||
for (r2 = value6; true; r2 = value7) {
|
||||
property = r2.value;
|
||||
value2.set(property.id, property);
|
||||
value7 = value5();
|
||||
if (value7.done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return value2;
|
||||
}, [Reflect.apply(useApplicationsInContext, appLauncherSearchUtilsModule, [{'context': null,
|
||||
'onlyWithCommands': true, 'includeBuiltIn': false, 'includeEmbeddedApps': false, 'includeNonEmbeddedApps': true,
|
||||
context: context}]).apps]);
|
||||
}
|
||||
|
||||
function useCommandsMap({context}) { // fn#88871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:1678, owner: useBannerBots.useCommandsMap, offset: 0x01ff7a2e, size: 101 bytes, params: 2, frame: 15
|
||||
const appLauncherSearchUtilsModule = require(11608) /* metro dependency 11608: AppLauncherSearchUtils */;
|
||||
const useApplicationCommandsInContext = appLauncherSearchUtilsModule.useApplicationCommandsInContext;
|
||||
return env1_2.useMemo(function() {
|
||||
var r2;
|
||||
var value7;
|
||||
var property = global.Map;
|
||||
var value2 = new property();
|
||||
var value5 = _createForOfIteratorHelperLoose_88865(commands);
|
||||
var value6 = value5();
|
||||
if (!value6.done) {
|
||||
for (r2 = value6; true; r2 = value7) {
|
||||
property = r2.value;
|
||||
value2.set(property.id, property);
|
||||
value7 = value5();
|
||||
if (value7.done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return value2;
|
||||
}, [Reflect.apply(useApplicationCommandsInContext, appLauncherSearchUtilsModule, [{context: context,
|
||||
includeBuiltIn: false}]).commands]);
|
||||
}
|
||||
|
||||
function useFrecencyCommandIds({context}) { // fn#88873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:1958, owner: useBannerBots.useFrecencyCommandIds, offset: 0x01ff7a93, size: 109 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return (require(7870) /* metro dependency 7870: ApplicationCommandFrecencyHooks */).useTopCommands({channel: context.channel,
|
||||
guild: (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun88874)});
|
||||
}
|
||||
|
||||
function _fun88876({id}) { // fn#88876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:2699, offset: 0x01ff7b43, size: 37 bytes, params: 2, frame: 4
|
||||
const id = env0_0?.id;
|
||||
return id !== id;
|
||||
}
|
||||
|
||||
function _fun88874() { // fn#88874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:2041, offset: 0x01ff7b00, size: 48 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
return GuildStore.getGuild(context.channel?.guild_id);
|
||||
}
|
||||
|
||||
+174
@@ -0,0 +1,174 @@
|
||||
/* Metro module 11584; source: modules/app_launcher/native/onboarding/hooks/useCanShowAppLauncherOnboarding.tsx; dependencies: [57, 1379, 4111, 1878, 11585, 11586, 5066, 672, 566, 21, 1365, 7013, 3968, 2] */
|
||||
function _fun88706(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:6, offset: 0x01feed75, size: 369 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildMemberCountStore = importDefault(4111) /* metro dependency 4111: GuildMemberCountStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const appLauncherOnboardingPersistedStore = importDefault(11585) /* metro dependency 11585: AppLauncherOnboardingPersistedStore */;
|
||||
const appLauncherOnboardingStore = importDefault(11586) /* metro dependency 11586: AppLauncherOnboardingStore */;
|
||||
const env0_9 = (require(5066) /* metro dependency 5066: ApplicationCommandConstants */).BuiltInSectionId;
|
||||
let Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
let SECOND = Millis.SECOND;
|
||||
const value = 5 * SECOND;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
SECOND = Millis.SECOND;
|
||||
const env0_11 = 5 * SECOND;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
let DAY = Millis.DAY;
|
||||
const env0_12 = 14 * DAY;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const env0_13 = Millis.HOUR;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
DAY = Millis.DAY;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/hooks/useCanShowAppLauncherOnboarding.tsx');
|
||||
exports.default = useCanShowAppLauncherOnboarding;
|
||||
exports.RECENT_MESSAGE_MS = value;
|
||||
}
|
||||
|
||||
function useCanShowAppLauncherOnboarding({channelId}) { // fn#88707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:427, offset: 0x01feeee6, size: 944 bytes, params: 2, frame: 31
|
||||
var r10;
|
||||
var r4;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
var canShowOnboarding;
|
||||
const Date = global.Date;
|
||||
let value = Date.now();
|
||||
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
|
||||
return ChannelStore.getChannel(channelId);
|
||||
});
|
||||
const guild_id = channel?.guild_id;
|
||||
const value4 = useIsNewUser();
|
||||
const value5 = useIsInSmallContext({guildId: guild_id});
|
||||
const value6 = useIsInCooldown({currentTimeMs: value});
|
||||
const isInCooldown = ({isInCooldown: value6}).isInCooldown;
|
||||
object = [];
|
||||
if (!isInCooldown) {
|
||||
object.push(DismissibleContent.APP_LAUNCHER_GLOBAL_SEARCH_ONBOARDING);
|
||||
}
|
||||
const property = env0_3((require(7013) /* metro dependency 7013: useSelectedDismissibleContent */).useSelectedDismissibleContent(object),
|
||||
1)[0];
|
||||
const APP_LAUNCHER_GLOBAL_SEARCH_ONBOARDING = DismissibleContent.APP_LAUNCHER_GLOBAL_SEARCH_ONBOARDING;
|
||||
const willShowGlobalSearchOnboarding = ({willShowGlobalSearchOnboarding: property === APP_LAUNCHER_GLOBAL_SEARCH_ONBOARDING}).willShowGlobalSearchOnboarding;
|
||||
let {recentMessageMetadata,
|
||||
recentApplicationCommandMetadata} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([AppLauncherOnboardingStore],
|
||||
function() {
|
||||
var object = {};
|
||||
object.recentMessageMetadata = AppLauncherOnboardingStore.getRecentMessageMetadata();
|
||||
object.recentApplicationCommandMetadata = AppLauncherOnboardingStore.getRecentApplicationCommandMetadata();
|
||||
return object;
|
||||
});
|
||||
const triggeredOnboardingContentMetadata = (require(566) /* metro dependency 566: flux */).useStateFromStores([AppLauncherOnboardingPersistedStore],
|
||||
function() {
|
||||
return AppLauncherOnboardingPersistedStore.getTriggeredOnboardingContentMetadata();
|
||||
});
|
||||
object = {currentTimeMs: value, recentMessageMetadata: recentMessageMetadata, channelId: channelId};
|
||||
let currentTimeMs = object.currentTimeMs;
|
||||
recentMessageMetadata = object.recentMessageMetadata;
|
||||
const r9 = recentMessageMetadata != null && currentTimeMs < recentMessageMetadata.timeMs + env0_10 && recentMessageMetadata?.channelId === object.channelId;
|
||||
object = {currentTimeMs: value, recentApplicationCommandMetadata: recentApplicationCommandMetadata,
|
||||
channelId: channelId};
|
||||
currentTimeMs = object.currentTimeMs;
|
||||
const recentApplicationCommandMetadata2 = object.recentApplicationCommandMetadata;
|
||||
const r13 = recentApplicationCommandMetadata2 != null && currentTimeMs < recentApplicationCommandMetadata2.timeMs + env0_11 && recentApplicationCommandMetadata2?.channelId === object.channelId;
|
||||
const applicationId = recentApplicationCommandMetadata?.applicationId;
|
||||
const BUILT_IN = BuiltInSectionId.BUILT_IN;
|
||||
const value16 = applicationId === BUILT_IN;
|
||||
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
let UNSAFE_useIsDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
|
||||
const APP_LAUNCHER_ONBOARDING_BOTS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_BOTS_BANNER;
|
||||
const value17 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, dismissibleContentUnsafeUtilsModule,
|
||||
[APP_LAUNCHER_ONBOARDING_BOTS_BANNER]);
|
||||
const moduleValue6 = dismissibleContentUnsafeUtilsModule;
|
||||
UNSAFE_useIsDismissibleContentDismissed = moduleValue6.UNSAFE_useIsDismissibleContentDismissed;
|
||||
const APP_LAUNCHER_ONBOARDING_APPS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER;
|
||||
const value18 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, moduleValue6,
|
||||
[APP_LAUNCHER_ONBOARDING_APPS_BANNER]);
|
||||
const moduleValue7 = dismissibleContentUnsafeUtilsModule;
|
||||
UNSAFE_useIsDismissibleContentDismissed = moduleValue7.UNSAFE_useIsDismissibleContentDismissed;
|
||||
const APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER;
|
||||
const value19 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, moduleValue7,
|
||||
[APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER]);
|
||||
object = {'canShowOnboarding': false, 'canShowBotsBanner': false, 'canShowAppsOrActivitiesBanner': false,
|
||||
'willShowGlobalSearchOnboarding': false, 'fromTriggeredOnboarding': false};
|
||||
let r3 = triggeredOnboardingContentMetadata != null && triggeredOnboardingContentMetadata.channelId === channelId;
|
||||
if (r3) {
|
||||
value = triggeredOnboardingContentMetadata.timeMs + DAY > value;
|
||||
r3 = value;
|
||||
}
|
||||
if (channel != null) {
|
||||
value = !r13;
|
||||
r10 = r13 ? value16 : value;
|
||||
r10 = !r10 ? value17 : r10;
|
||||
r10 = !r10 ? value6 : r10;
|
||||
if (!r10) {
|
||||
object.canShowOnboarding = true;
|
||||
object.canShowBotsBanner = true;
|
||||
}
|
||||
r4 = value4 || !r9;
|
||||
r4 = !r4 ? !value5 : r4;
|
||||
r4 = !r4 ? value6 : r4;
|
||||
r4 = !r4 ? value18 && value19 : r4;
|
||||
if (!r4) {
|
||||
object.canShowOnboarding = true;
|
||||
object.canShowAppsOrActivitiesBanner = true;
|
||||
}
|
||||
if (willShowGlobalSearchOnboarding) {
|
||||
object.willShowGlobalSearchOnboarding = true;
|
||||
object.canShowOnboarding = true;
|
||||
}
|
||||
canShowOnboarding = object.canShowOnboarding;
|
||||
value = !canShowOnboarding;
|
||||
if (canShowOnboarding ? value : r3) {
|
||||
object.canShowOnboarding = true;
|
||||
object.canShowBotsBanner = triggeredOnboardingContentMetadata.canShowBotsBanner;
|
||||
object.canShowAppsOrActivitiesBanner = triggeredOnboardingContentMetadata.canShowAppsOrActivitiesBanner;
|
||||
object.willShowGlobalSearchOnboarding = triggeredOnboardingContentMetadata.willShowGlobalSearchOnboarding;
|
||||
object.fromTriggeredOnboarding = true;
|
||||
}
|
||||
}
|
||||
return object;
|
||||
}
|
||||
|
||||
function useIsNewUser() { // fn#88709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:586, owner: useCanShowAppLauncherOnboarding.useIsNewUser, offset: 0x01fef296, size: 148 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
var r0;
|
||||
var value4;
|
||||
var defaultImport;
|
||||
const value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const value3 = (currentUser == null ? value2 : currentUser.createdAt) != null;
|
||||
if (value3) {
|
||||
value4 = global.Date.now();
|
||||
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
r0 = value4 < defaultImport.extractTimestamp(currentUser.id) + env1_12;
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useIsInSmallContext({guildId}) { // fn#88711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:765, owner: useCanShowAppLauncherOnboarding.useIsInSmallContext, offset: 0x01fef32a, size: 87 bytes, params: 2, frame: 14
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const memberCount = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberCountStore],
|
||||
function() {
|
||||
return GuildMemberCountStore.getMemberCount(guildId);
|
||||
});
|
||||
return memberCount != null && memberCount < 200;
|
||||
}
|
||||
|
||||
function useIsInCooldown({currentTimeMs}) { // fn#88713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:909, owner: useCanShowAppLauncherOnboarding.useIsInCooldown, offset: 0x01fef39c, size: 89 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const lastSeenTimeMs = (require(566) /* metro dependency 566: flux */).useStateFromStores([AppLauncherOnboardingPersistedStore],
|
||||
function() {
|
||||
return AppLauncherOnboardingPersistedStore.getLastSeenTimeMs();
|
||||
});
|
||||
return lastSeenTimeMs != null && currentTimeMs < lastSeenTimeMs + HOUR;
|
||||
}
|
||||
|
||||
+110
@@ -0,0 +1,110 @@
|
||||
/* Metro module 11585; source: modules/app_launcher/native/onboarding/stores/AppLauncherOnboardingPersistedStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun88717(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:6, offset: 0x01fef448, size: 344 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_6 = {lastSeenTimeMs: null, triggeredOnboardingContentMetadata: {'canShowBotsBanner': false,
|
||||
'canShowAppsOrActivitiesBanner': false, 'willShowGlobalSearchOnboarding': false, 'timeMs': 0, 'channelId': '0'}};
|
||||
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
||||
let value = _fun88721(PersistedStore);
|
||||
value.displayName = 'AppLauncherOnboardingPersistedStore';
|
||||
value.persistKey = 'AppLauncherOnboardingPersistedStore';
|
||||
value.migrations = [_fun88727];
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{APP_LAUNCHER_ONBOARDING_SET_LAST_SEEN_TIME_MS: APP_LAUNCHER_ONBOARDING_SET_LAST_SEEN_TIME_MS,
|
||||
APP_LAUNCHER_ONBOARDING_SET_TRIGGERED_ONBOARDING_CONTENT_METADATA: APP_LAUNCHER_ONBOARDING_SET_TRIGGERED_ONBOARDING_CONTENT_METADATA});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/stores/AppLauncherOnboardingPersistedStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_88718() { // fn#88718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:148, offset: 0x01fef5a0, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_88718_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun88721(a0) { // fn#88721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:527, offset: 0x01fef602, size: 149 bytes, params: 2, frame: 16
|
||||
const closure = AppLauncherOnboardingPersistedStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: value_88723}, {key: 'getState', value: value_88724},
|
||||
{key: 'getLastSeenTimeMs', value: value_88725}, {key: 'getTriggeredOnboardingContentMetadata',
|
||||
value: value_88726}]);
|
||||
}
|
||||
|
||||
function _fun88727(a0) { // fn#88727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:1429, offset: 0x01fef6e1, size: 305 bytes, params: 2, frame: 8
|
||||
const value = null;
|
||||
const value2 = undefined;
|
||||
const lastSeenTimeMs = value == a0 ? value2 : a0.lastSeenTimeMs;
|
||||
let canShowBotsBanner = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.canShowBotsBanner;
|
||||
canShowBotsBanner = value == canShowBotsBanner ? env0_5.canShowBotsBanner : canShowBotsBanner;
|
||||
let canShowAppsOrActivitiesBanner = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.canShowAppsOrActivitiesBanner;
|
||||
canShowAppsOrActivitiesBanner = value == canShowAppsOrActivitiesBanner ? env0_5.canShowAppsOrActivitiesBanner : canShowAppsOrActivitiesBanner;
|
||||
let willShowGlobalSearchOnboarding = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.willShowGlobalSearchOnboarding;
|
||||
willShowGlobalSearchOnboarding = value == willShowGlobalSearchOnboarding ? env0_5.willShowGlobalSearchOnboarding : willShowGlobalSearchOnboarding;
|
||||
let timeMs = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.timeMs;
|
||||
timeMs = value == timeMs ? env0_5.timeMs : timeMs;
|
||||
let channelId = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.channelId;
|
||||
channelId = value == channelId ? env0_5.channelId : channelId;
|
||||
return {lastSeenTimeMs: value != lastSeenTimeMs ? lastSeenTimeMs : value,
|
||||
triggeredOnboardingContentMetadata: {canShowBotsBanner: canShowBotsBanner,
|
||||
canShowAppsOrActivitiesBanner: canShowAppsOrActivitiesBanner,
|
||||
willShowGlobalSearchOnboarding: willShowGlobalSearchOnboarding, timeMs: timeMs, channelId: channelId}};
|
||||
}
|
||||
|
||||
function APP_LAUNCHER_ONBOARDING_SET_LAST_SEEN_TIME_MS() { // fn#88728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:2320, offset: 0x01fef812, size: 34 bytes, params: 1, frame: 10
|
||||
const binding = env0_6;
|
||||
const Date = global.Date;
|
||||
binding.lastSeenTimeMs = Date.now();
|
||||
}
|
||||
|
||||
function APP_LAUNCHER_ONBOARDING_SET_TRIGGERED_ONBOARDING_CONTENT_METADATA({triggeredOnboardingContentMetadata}) { // fn#88729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:2450, offset: 0x01fef834, size: 26 bytes, params: 2, frame: 2
|
||||
env0_6.triggeredOnboardingContentMetadata = triggeredOnboardingContentMetadata;
|
||||
}
|
||||
|
||||
function value_88723(a0) { // fn#88723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:932, offset: 0x01fef697, size: 44 bytes, params: 2, frame: 3
|
||||
var value;
|
||||
var binding;
|
||||
if (a0 != null) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_6;
|
||||
binding.lastSeenTimeMs = a0.lastSeenTimeMs;
|
||||
binding.triggeredOnboardingContentMetadata = a0.triggeredOnboardingContentMetadata;
|
||||
}
|
||||
}
|
||||
|
||||
function value_88725() { // fn#88725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:1140, offset: 0x01fef6c3, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_6.lastSeenTimeMs;
|
||||
}
|
||||
|
||||
function value_88726() { // fn#88726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:1228, offset: 0x01fef6d2, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_6.triggeredOnboardingContentMetadata;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
/* Metro module 11586; source: modules/app_launcher/native/onboarding/stores/AppLauncherOnboardingStore.tsx; dependencies: [6, 7, 15, 17, 18, 1878, 21, 11584, 5068, 566, 694, 2] */
|
||||
function _fun88730(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:6, offset: 0x01fef84e, size: 305 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_5 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_6 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_7 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_8 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_9 = importDefault(18) /* metro dependency 18 */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun88734(Store);
|
||||
value.displayName = 'AppLauncherOnboardingStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{APPLICATION_COMMAND_USED: APPLICATION_COMMAND_USED_88739, MESSAGE_CREATE: MESSAGE_CREATE_88740});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/stores/AppLauncherOnboardingStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_88731() { // fn#88731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:162, offset: 0x01fef97f, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_88731_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun88734(a0) { // fn#88734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:361, offset: 0x01fef9e1, size: 124 bytes, params: 2, frame: 16
|
||||
const closure = AppLauncherOnboardingStore;
|
||||
env0_9(closure, a0);
|
||||
return env0_6(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(UserStore);
|
||||
}}, {key: 'getRecentMessageMetadata', value: value_88737}, {key: 'getRecentApplicationCommandMetadata',
|
||||
value: value_88738}]);
|
||||
}
|
||||
|
||||
function APPLICATION_COMMAND_USED_88739({command, context, commandOrigin}) { // fn#88739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:989, offset: 0x01feface, size: 156 bytes, params: 2, frame: 15
|
||||
var id;
|
||||
var object2;
|
||||
const CommandOrigin = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).CommandOrigin;
|
||||
const APPLICATION_LAUNCHER = CommandOrigin.APPLICATION_LAUNCHER;
|
||||
if (commandOrigin !== APPLICATION_LAUNCHER && context.channel != null) {
|
||||
object2 = {};
|
||||
object2.timeMs = global.Date.now();
|
||||
object2.applicationId = command.applicationId;
|
||||
id = context.guild?.id;
|
||||
object2.guildId = id;
|
||||
id = context.channel.id;
|
||||
object2.channelId = id;
|
||||
}
|
||||
}
|
||||
|
||||
function MESSAGE_CREATE_88740({channelId, guildId, message}) { // fn#88740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:1268, offset: 0x01fefb6a, size: 196 bytes, params: 2, frame: 17
|
||||
var defaultImport;
|
||||
var value3;
|
||||
var object;
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
if (currentUser != null) {
|
||||
if (currentUser.id != null) {
|
||||
if (message.author != null) {
|
||||
if (currentUser.id === message.author.id) {
|
||||
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value3 = defaultImport.extractTimestamp(message.id);
|
||||
if (!(global.Date.now() > value3 + (require(11584) /* metro dependency 11584: useCanShowAppLauncherOnboarding */).RECENT_MESSAGE_MS)) {
|
||||
object = {timeMs: value3, guildId: guildId, channelId: channelId};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function AppLauncherOnboardingStore() { // fn#88735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:373, offset: 0x01fefa5d, size: 113 bytes, params: 1, frame: 20
|
||||
const value = environment.__proto__;
|
||||
env1_5(this, AppLauncherOnboardingStore);
|
||||
const value3 = env1_8(AppLauncherOnboardingStore);
|
||||
return env1_7(this, _isNativeReflectConstruct_88731() ? global.Reflect.construct(value3, arguments,
|
||||
env1_8(this).constructor) : value3.apply(this, arguments));
|
||||
}
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/* Metro module 11587; source: modules/app_launcher/native/onboarding/utils/completeAppLauncherOnboarding.tsx; dependencies: [3968, 1365, 2] */
|
||||
function _fun88741(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11773:6, offset: 0x01fefc2e, size: 96 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/app_launcher/native/onboarding/utils/completeAppLauncherOnboarding.tsx');
|
||||
exports.default = completeAppLauncherOnboarding;
|
||||
}
|
||||
|
||||
function completeAppLauncherOnboarding(a0) { // fn#88742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11773:214, offset: 0x01fefc8e, size: 170 bytes, params: 2, frame: 20
|
||||
let value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
let UNSAFE_markDismissibleContentAsDismissed = value.UNSAFE_markDismissibleContentAsDismissed;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER;
|
||||
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER,
|
||||
{dismissAction: a0}]);
|
||||
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
UNSAFE_markDismissibleContentAsDismissed = value.UNSAFE_markDismissibleContentAsDismissed;
|
||||
const APP_LAUNCHER_ONBOARDING_BOTS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_BOTS_BANNER;
|
||||
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [APP_LAUNCHER_ONBOARDING_BOTS_BANNER,
|
||||
{dismissAction: a0}]);
|
||||
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
UNSAFE_markDismissibleContentAsDismissed = value.UNSAFE_markDismissibleContentAsDismissed;
|
||||
const APP_LAUNCHER_ONBOARDING_APPS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER;
|
||||
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [APP_LAUNCHER_ONBOARDING_APPS_BANNER,
|
||||
{dismissAction: a0}]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user