decord/source/modules/game_console/native/GameConsoleAlert.tsx

58 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 9850
// Function ID: 9851
2026-07-20 16:05:17 +00:00
// Name: SelfDismissibleAlertBody
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 17, 4540, 21, 4661, 589, 4734, 2]
2026-07-20 16:05:17 +00:00
// Exports: SelfDismissibleAlertBody
2026-08-15 05:55:55 +00:00
// Module 9850 (SelfDismissibleAlertBody)
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
2026-07-29 08:29:29 +00:00
import set from "set";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
let closure_7 = createCacheKey.createStyles({ errorCodeText: { marginTop: 16 }, alertBody: { marginTop: 0 }, container: { flex: 1 }, body: { marginTop: 16 } });
const result = require("set").fileFinishedImporting("modules/game_console/native/GameConsoleAlert.tsx");
2026-07-20 16:05:17 +00:00
export const SelfDismissibleAlertBody = function SelfDismissibleAlertBody(errorCodeMessage) {
let body;
let dismissCallback;
({ body, dismissCallback } = errorCodeMessage);
errorCodeMessage = errorCodeMessage.errorCodeMessage;
2026-07-29 08:29:29 +00:00
let stateFromStores;
2026-07-20 16:05:17 +00:00
const tmp = callback3();
2026-07-23 10:11:24 +00:00
let obj = dismissCallback(stateFromStores[5]);
2026-07-29 08:29:29 +00:00
const items = [set];
stateFromStores = obj.useStateFromStores(items, () => remoteSessionId.getRemoteSessionId());
2026-07-20 16:05:17 +00:00
const items1 = [stateFromStores, dismissCallback];
const effect = React.useEffect(() => {
if (null != stateFromStores) {
dismissCallback();
}
}, items1);
2026-07-29 08:29:29 +00:00
let tmp6 = body;
2026-07-20 16:05:17 +00:00
if (null != errorCodeMessage) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
obj[0] = tmp.container;
obj = { maxFontSizeMultiplier: 1, variant: "text-md/normal", style: null, children: null };
2026-07-20 16:05:17 +00:00
const items2 = [, ];
({ body: arr3[0], alertBody: arr3[1] } = tmp);
2026-07-29 08:29:29 +00:00
obj[2] = items2;
obj[3] = body;
const items3 = [callback(tmp2(tmp3[6]).Text, obj), ];
const obj1 = { maxFontSizeMultiplier: 1, variant: "text-md/normal", style: null, children: null };
2026-07-20 16:05:17 +00:00
const items4 = [, ];
({ body: arr5[0], errorCodeText: arr5[1] } = tmp);
2026-07-29 08:29:29 +00:00
obj1[2] = items4;
obj1[3] = errorCodeMessage;
items3[1] = callback(tmp2(tmp3[6]).Text, obj1);
obj[1] = items3;
tmp6 = callback2(View, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp6;
2026-07-20 16:05:17 +00:00
};