decord/source/modules/game_console/native/GameConsoleAlert.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

52 lines
2 KiB
TypeScript

// Module ID: 9523
// Function ID: 9524
// Name: GameConsoleAlert
// Dependencies: [19, 17, 4622, 21, 4605, 504, 4601, 2]
// Exports: SelfDismissibleAlertBody
// Module 9523 (GameConsoleAlert)
import noop from "module_19" /* 19 */;
import GameConsoleStore from "GameConsoleStore" /* 4622 */;
const require = fn;
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd);
const createStyles = fn(4605);
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");
export const SelfDismissibleAlertBody = function SelfDismissibleAlertBody(errorCodeMessage) {
({ body, dismissCallback } = errorCodeMessage);
errorCodeMessage = errorCodeMessage.errorCodeMessage;
let stateFromStores;
const tmp = closure_7();
const items = [GameConsoleStore];
stateFromStores = dismissCallback(stateFromStores[5]).useStateFromStores(items, () => remoteSessionId.getRemoteSessionId());
const items1 = [stateFromStores, dismissCallback];
const effect = noop.useEffect(() => {
if (null != stateFromStores) {
dismissCallback();
}
}, items1);
let tmp6 = body;
if (null != errorCodeMessage) {
const obj2 = { style: tmp.container, children: null };
const obj3 = { maxFontSizeMultiplier: 1, variant: "text-md/normal", style: null, children: null };
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 };
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);
}
return tmp6;
};