Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,55 @@
|
||||
/* Metro module 11680; source: modules/app_launcher/utils/useLaunchingActivityButtonState.tsx; dependencies: [31, 1378, 8065, 6777, 566, 8045, 6266, 2] */
|
||||
function _fun89526(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11866:6, offset: 0x02012385, size: 153 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 embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
|
||||
const framesStore = importDefault(8065) /* metro dependency 8065: FramesStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/utils/useLaunchingActivityButtonState.tsx');
|
||||
exports.default = useLaunchingActivityButtonState;
|
||||
}
|
||||
|
||||
function useLaunchingActivityButtonState({applicationId, context, launchingComponentId, onSubmissionComplete}) { // fn#89527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11866:232, offset: 0x0201241e, size: 332 bytes, params: 2, frame: 22
|
||||
var r2;
|
||||
var r3;
|
||||
var moduleValue4;
|
||||
const value2 = (require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(applicationId);
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
let useStateFromStores = fluxModule.useStateFromStores;
|
||||
const launchState = Reflect.apply(useStateFromStores, fluxModule, [[EmbeddedActivitiesStore], function() {
|
||||
return EmbeddedActivitiesStore.getLaunchState(applicationId,
|
||||
context.type !== 'channel' ? undefined : context.channel.id);
|
||||
}]);
|
||||
const moduleValue3 = fluxModule;
|
||||
useStateFromStores = moduleValue3.useStateFromStores;
|
||||
if (value2 == null) {
|
||||
r2 = launchState != null && launchState.isLaunching;
|
||||
r2 = r2 && launchState.componentId === launchingComponentId;
|
||||
r3 = r2;
|
||||
} else {
|
||||
moduleValue4 = require(8045) /* metro dependency 8045: canLaunchFrame */;
|
||||
if (moduleValue4.canLaunchFrame(value2)) {
|
||||
r3 = Reflect.apply(useStateFromStores, moduleValue3, [[FramesStore], function() {
|
||||
return FramesStore.isLaunchingFrame(applicationId);
|
||||
}]);
|
||||
} else {
|
||||
r2 = launchState != null && launchState.isLaunching;
|
||||
r2 = r2 && launchState.componentId === launchingComponentId;
|
||||
r3 = r2;
|
||||
}
|
||||
}
|
||||
const env0_3 = r3;
|
||||
const value7 = (importDefault(6266) /* metro dependency 6266: usePrevious */)(r3);
|
||||
env0_3.useEffect(_fun89530, [r3, value7, onSubmissionComplete]);
|
||||
return {submitting: r3, wasSubmitting: value7 ?? null};
|
||||
}
|
||||
|
||||
function _fun89530() { // fn#89530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11866:665, offset: 0x020125c4, size: 44 bytes, params: 1, frame: 10
|
||||
if (!env0_3 && env0_4) {
|
||||
if (onSubmissionComplete != null) {
|
||||
onSubmissionComplete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user