decord/source/modules/app_launcher/utils/useLaunchingActivityButtonState.tsx

59 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 11294
// Function ID: 87640
2026-07-20 16:05:17 +00:00
// Name: useLaunchingActivityButtonState
2026-07-28 08:39:19 +00:00
// Dependencies: [31, 1347, 5668, 5503, 566, 10481, 8101, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-28 08:39:19 +00:00
// Module 11294 (useLaunchingActivityButtonState)
2026-07-23 10:11:24 +00:00
import result from "result";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
const require = arg1;
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/app_launcher/utils/useLaunchingActivityButtonState.tsx");
2026-07-20 16:05:17 +00:00
export default function useLaunchingActivityButtonState(applicationId) {
2026-07-23 10:11:24 +00:00
let importDefault;
2026-07-20 16:05:17 +00:00
let onSubmissionComplete;
applicationId = applicationId.applicationId;
2026-07-23 10:11:24 +00:00
({ context: importDefault, onSubmissionComplete } = applicationId);
let stateFromStores1;
let c4;
let obj = applicationId(onSubmissionComplete[3]);
2026-07-20 16:05:17 +00:00
const getOrFetchApplication = obj.useGetOrFetchApplication(applicationId);
2026-07-23 10:11:24 +00:00
const items = [c4];
const stateFromStores = applicationId(onSubmissionComplete[4]).useStateFromStores(items, () => {
2026-07-20 16:05:17 +00:00
let id;
if ("channel" === closure_1.type) {
id = closure_1.channel.id;
}
2026-07-23 10:11:24 +00:00
return _undefined.getLaunchState(applicationId, id);
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
const obj2 = applicationId(onSubmissionComplete[4]);
const items1 = [_isNativeReflectConstruct];
stateFromStores1 = applicationId(onSubmissionComplete[4]).useStateFromStores(items1, () => outer1_5.isLaunchingFrame(applicationId));
2026-07-20 16:05:17 +00:00
if (null == getOrFetchApplication) {
stateFromStores1 = null != stateFromStores && stateFromStores.isLaunching && stateFromStores.componentId === applicationId.launchingComponentId;
const tmp6 = null != stateFromStores && stateFromStores.isLaunching && stateFromStores.componentId === applicationId.launchingComponentId;
} else {
2026-07-23 10:11:24 +00:00
const obj4 = applicationId(onSubmissionComplete[5]);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const tmp7 = importDefault(onSubmissionComplete[6])(stateFromStores1);
c4 = tmp7;
2026-07-20 16:05:17 +00:00
const items2 = [stateFromStores1, tmp7, onSubmissionComplete];
2026-07-23 10:11:24 +00:00
const effect = stateFromStores1.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (tmp) {
if (null != onSubmissionComplete) {
onSubmissionComplete();
}
}
}, items2);
obj = { submitting: stateFromStores1 };
let tmp9 = null;
if (null != tmp7) {
tmp9 = tmp7;
}
obj.wasSubmitting = tmp9;
return obj;
};