decord/source/design/void/HelpMessage/native/HelpMessage.tsx

105 lines
4.6 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 13135
// Function ID: 13136
// Name: HelpMessage
// Dependencies: [19, 17, 21, 4189, 712, 688, 6730, 4145, 6736, 4150, 4185, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 13135 (HelpMessage)
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
import int2hslRaw from "int2hslRaw";
import int2hslRaw from "int2hslRaw";
import int2hslRaw from "int2hslRaw";
import int2hslRaw from "int2hslRaw";
import int2hslRaw from "int2hslRaw";
import int2hslRaw from "int2hslRaw";
import int2hslRaw from "int2hslRaw";
import int2hslRaw from "int2hslRaw";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c4;
let c5;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
createCacheKey = { container: null, row: null, content: null, warningContainer: null, infoContainer: null, errorContainer: null, successContainer: null };
createCacheKey = { padding: require("Themes").space.PX_8, borderWidth: 1, borderStyle: "solid", gap: require("Themes").space.PX_8 };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { display: "flex", flexDirection: "row", alignItems: "center" };
createCacheKey[2] = { flex: 1, marginLeft: require("Themes").space.PX_8 };
let obj2 = { backgroundColor: null, borderColor: null };
obj2[0] = int2hslRaw.int2rgba(int2hslRaw.hex2int(require("Themes").unsafe_rawColors.YELLOW_300), 0.1);
obj2[1] = require("Themes").unsafe_rawColors.YELLOW_300;
createCacheKey[3] = obj2;
let obj3 = { backgroundColor: null, borderColor: null };
obj3[0] = int2hslRaw.int2rgba(int2hslRaw.hex2int(require("Themes").unsafe_rawColors.BLUE_345), 0.1);
obj3[1] = require("Themes").unsafe_rawColors.BLUE_345;
createCacheKey[4] = obj3;
const obj4 = { backgroundColor: null, borderColor: null };
obj4[0] = int2hslRaw.int2rgba(int2hslRaw.hex2int(require("Themes").unsafe_rawColors.RED_400), 0.1);
obj4[1] = require("Themes").unsafe_rawColors.RED_400;
createCacheKey[5] = obj4;
int2hslRaw = { backgroundColor: null, borderColor: null };
int2hslRaw[0] = int2hslRaw.int2rgba(int2hslRaw.hex2int(require("Themes").unsafe_rawColors.GREEN_400), 0.1);
int2hslRaw[1] = require("Themes").unsafe_rawColors.GREEN_400;
createCacheKey[6] = int2hslRaw;
createCacheKey = createCacheKey.createStyles(createCacheKey);
int2hslRaw = { WARNING: 0, [0]: "WARNING", INFO: 1, [1]: "INFO", ERROR: 2, [2]: "ERROR", SUCCESS: 3, [3]: "SUCCESS" };
let obj1 = { flex: 1, marginLeft: require("Themes").space.PX_8 };
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("design/void/HelpMessage/native/HelpMessage.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default function HelpMessage(children) {
2026-07-20 16:05:17 +00:00
let messageType;
let textVariant;
2026-07-29 08:29:29 +00:00
({ messageType, textVariant } = children);
2026-07-20 16:05:17 +00:00
if (textVariant === undefined) {
textVariant = "text-sm/medium";
}
2026-07-29 08:29:29 +00:00
let str = children.textColor;
2026-07-20 16:05:17 +00:00
if (str === undefined) {
str = "text-default";
}
2026-07-29 08:29:29 +00:00
let xs = children.borderRadius;
2026-07-20 16:05:17 +00:00
if (xs === undefined) {
2026-07-29 08:29:29 +00:00
xs = importDefault(712).radii.xs;
}
const tmp3 = createCacheKey();
const items = [tmp3.container, , ];
if (int2hslRaw.WARNING === messageType) {
let successContainer = tmp3.warningContainer;
} else if (tmp6.INFO === messageType) {
successContainer = tmp3.infoContainer;
} else if (tmp6.ERROR === messageType) {
successContainer = tmp3.errorContainer;
} else if (tmp6.SUCCESS === messageType) {
successContainer = tmp3.successContainer;
}
let obj = { style: items, children: null };
items[1] = successContainer;
items[2] = { borderRadius: xs };
obj = { style: tmp3.row, children: null };
if (int2hslRaw.WARNING === messageType) {
obj = { color: null };
obj[0] = importDefault(712).unsafe_rawColors.YELLOW_300;
let tmp7 = callback(require(6730) /* CircleErrorIcon */.CircleErrorIcon, obj);
} else if (tmp6.INFO === messageType) {
const obj1 = { color: null };
obj1[0] = importDefault(712).unsafe_rawColors.BLUE_345;
tmp7 = callback(require(4145) /* CircleInformationIcon */.CircleInformationIcon, obj1);
} else if (tmp6.ERROR === messageType) {
const obj2 = { color: null };
obj2[0] = importDefault(712).unsafe_rawColors.RED_400;
tmp7 = callback(require(6736) /* CircleXIcon */.CircleXIcon, obj2);
} else if (tmp6.SUCCESS === messageType) {
const obj3 = { color: null };
obj3[0] = importDefault(712).unsafe_rawColors.GREEN_400;
tmp7 = callback(require(4150) /* CircleCheckIcon */.CircleCheckIcon, obj3);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items1 = [tmp7, callback(require(4185) /* Text */.Text, { style: tmp3.content, color: str, variant: textVariant, children: children.children })];
obj[1] = items1;
const items2 = [closure_5(View, obj), children.button];
obj[1] = items2;
return closure_5(View, obj);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
export const HelpMessageTypes = int2hslRaw;