2026-10-12 16:32:48 +00:00
|
|
|
// Module ID: 11832
|
|
|
|
|
// Function ID: 11833
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: useShowTryItOutButtonInAppLauncher
|
2026-10-12 16:32:48 +00:00
|
|
|
// Dependencies: [558, 576, 10859, 11833, 10803, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-12 16:32:48 +00:00
|
|
|
// Module 11832 (useShowTryItOutButtonInAppLauncher)
|
2026-10-02 13:37:24 +00:00
|
|
|
import react from "react" /* 576 */;
|
2026-10-12 16:32:48 +00:00
|
|
|
import canLaunchContextlessFrame from "canLaunchContextlessFrame" /* 10803 */;
|
|
|
|
|
import getPrimaryAppCommand from "getPrimaryAppCommand" /* 10859 */;
|
|
|
|
|
import useIsAppDMDefault from "useIsAppDM" /* 11833 */;
|
2026-10-02 13:37:24 +00:00
|
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
2026-10-12 16:32:48 +00:00
|
|
|
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useShowTryItOutButtonInAppLauncher(arg0) {
|
2026-10-02 13:37:24 +00:00
|
|
|
let application;
|
|
|
|
|
let botUserId;
|
|
|
|
|
let context;
|
|
|
|
|
const obj = react;
|
|
|
|
|
const cResult = obj.c(4);
|
|
|
|
|
({ context, application, botUserId } = arg0);
|
|
|
|
|
if (cResult[0] === application.id) {
|
|
|
|
|
if (cResult[1] === botUserId) {
|
|
|
|
|
let tmp4;
|
|
|
|
|
if (cResult[2] === context) {
|
|
|
|
|
tmp4 = cResult[3];
|
|
|
|
|
}
|
|
|
|
|
const tmpResult = getPrimaryAppCommand;
|
|
|
|
|
let isPrimaryAppCommandUsableInAppDM = tmpResult.useIsPrimaryAppCommandUsableInAppDM(tmp4);
|
|
|
|
|
let channel;
|
|
|
|
|
const tmp7 = useIsAppDMDefault;
|
|
|
|
|
if ("channel" === context.type) {
|
|
|
|
|
channel = context.channel;
|
|
|
|
|
}
|
|
|
|
|
const tmp7Result = tmp7(channel);
|
2026-10-07 22:43:51 +00:00
|
|
|
const tmpResult2 = canLaunchContextlessFrame;
|
|
|
|
|
const result = tmpResult2.canLaunchContextlessFrame(application);
|
|
|
|
|
let tmp11 = !result;
|
2026-10-02 13:37:24 +00:00
|
|
|
if (tmp11) {
|
|
|
|
|
if (isPrimaryAppCommandUsableInAppDM) {
|
|
|
|
|
isPrimaryAppCommandUsableInAppDM = null != botUserId;
|
|
|
|
|
}
|
|
|
|
|
if (isPrimaryAppCommandUsableInAppDM) {
|
|
|
|
|
isPrimaryAppCommandUsableInAppDM = !tmp7Result;
|
|
|
|
|
}
|
|
|
|
|
tmp11 = isPrimaryAppCommandUsableInAppDM;
|
|
|
|
|
}
|
|
|
|
|
return tmp11;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const obj2 = { context, applicationId: application.id, botUserId };
|
|
|
|
|
cResult[0] = application.id;
|
|
|
|
|
cResult[1] = botUserId;
|
|
|
|
|
cResult[2] = context;
|
|
|
|
|
cResult[3] = obj2;
|
|
|
|
|
tmp4 = obj2;
|
2026-10-12 16:32:48 +00:00
|
|
|
}) : (function useShowTryItOutButtonInAppLauncher(arg0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let application;
|
|
|
|
|
let botUserId;
|
|
|
|
|
let context;
|
2026-09-18 19:45:33 +00:00
|
|
|
({ context, application, botUserId } = arg0);
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = getPrimaryAppCommand;
|
2026-09-18 19:45:33 +00:00
|
|
|
const obj2 = { context, applicationId: application.id, botUserId };
|
2026-10-01 14:13:23 +00:00
|
|
|
let isPrimaryAppCommandUsableInAppDM = obj.useIsPrimaryAppCommandUsableInAppDM(obj2);
|
|
|
|
|
let channel;
|
|
|
|
|
const tmp4 = useIsAppDMDefault;
|
2026-09-18 19:45:33 +00:00
|
|
|
if ("channel" === context.type) {
|
|
|
|
|
channel = context.channel;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const tmp4Result = tmp4(channel);
|
2026-10-07 22:43:51 +00:00
|
|
|
const tmpResult = canLaunchContextlessFrame;
|
|
|
|
|
const result = tmpResult.canLaunchContextlessFrame(application);
|
|
|
|
|
let tmp8 = !result;
|
2026-10-01 14:13:23 +00:00
|
|
|
if (tmp8) {
|
2026-09-18 19:45:33 +00:00
|
|
|
if (isPrimaryAppCommandUsableInAppDM) {
|
|
|
|
|
isPrimaryAppCommandUsableInAppDM = null != botUserId;
|
|
|
|
|
}
|
|
|
|
|
if (isPrimaryAppCommandUsableInAppDM) {
|
|
|
|
|
isPrimaryAppCommandUsableInAppDM = !tmp4Result;
|
|
|
|
|
}
|
|
|
|
|
tmp8 = isPrimaryAppCommandUsableInAppDM;
|
|
|
|
|
}
|
|
|
|
|
return tmp8;
|
2026-10-02 13:37:24 +00:00
|
|
|
});
|
2026-10-07 22:43:51 +00:00
|
|
|
let result = size.fileFinishedImporting("modules/app_dms/useShowTryItOutButtonInAppLauncher.tsx");
|
2026-10-02 13:37:24 +00:00
|
|
|
|
|
|
|
|
export default tmp2;
|