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

53 lines
2 KiB
TypeScript
Raw Normal View History

// Module ID: 9546
// Function ID: 9547
// Name: GameConsoleAlert
// Dependencies: [19, 17, 4624, 21, 4607, 504, 4603, 2]
2026-07-20 16:05:17 +00:00
// Exports: SelfDismissibleAlertBody
// Module 9546 (GameConsoleAlert)
import noop from "module_19" /* 19 */;
import GameConsoleStore from "GameConsoleStore" /* 4624 */;
2026-07-23 10:11:24 +00:00
const require = fn;
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd);
const createStyles = fn(4607);
let closure_7 = createStyles.createStyles({ errorCodeText: { marginTop: 16 }, alertBody: { marginTop: 0 }, container: { flex: 1 }, body: { marginTop: 16 } });
const size = fn(2);
const result = size.fileFinishedImporting("modules/game_console/native/GameConsoleAlert.tsx");
2026-07-20 16:05:17 +00:00
export const SelfDismissibleAlertBody = function SelfDismissibleAlertBody(errorCodeMessage) {
({ body, dismissCallback } = errorCodeMessage);
errorCodeMessage = errorCodeMessage.errorCodeMessage;
2026-07-29 08:29:29 +00:00
let stateFromStores;
const tmp = closure_7();
const items = [GameConsoleStore];
stateFromStores = dismissCallback(stateFromStores[5]).useStateFromStores(items, () => remoteSessionId.getRemoteSessionId());
2026-07-20 16:05:17 +00:00
const items1 = [stateFromStores, dismissCallback];
const effect = noop.useEffect(() => {
2026-07-20 16:05:17 +00:00
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) {
const obj2 = { style: tmp.container, children: null };
const obj3 = { 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);
obj3.style = items2;
obj3.children = body;
const items3 = [closure_5(tmp2(tmp3[6]).Text, obj3), ];
const obj4 = { 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);
obj4.style = items4;
obj4.children = errorCodeMessage;
items3[1] = closure_5(tmp2(tmp3[6]).Text, obj4);
obj2.children = items3;
tmp6 = closure_6(View, obj2);
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
};