2026-07-24 07:16:23 +00:00
|
|
|
// Module ID: 13056
|
|
|
|
|
// Function ID: 100901
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getIcon
|
2026-07-24 07:16:23 +00:00
|
|
|
// Dependencies: [31, 27, 33, 4130, 689, 665, 7577, 4086, 5776, 4091, 4126, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-24 07:16:23 +00:00
|
|
|
// Module 13056 (getIcon)
|
2026-07-23 10:11:24 +00:00
|
|
|
import "result";
|
|
|
|
|
import { View } from "get ActivityIndicator";
|
|
|
|
|
import jsxProd from "jsxProd";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
|
import pad2 from "pad2";
|
|
|
|
|
import pad2 from "pad2";
|
|
|
|
|
import pad2 from "pad2";
|
|
|
|
|
import pad2 from "pad2";
|
|
|
|
|
import pad2 from "pad2";
|
|
|
|
|
import pad2 from "pad2";
|
|
|
|
|
import pad2 from "pad2";
|
|
|
|
|
import pad2 from "pad2";
|
|
|
|
|
|
|
|
|
|
let closure_4;
|
|
|
|
|
let closure_5;
|
|
|
|
|
const require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function getIcon(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
if (pad2.WARNING === arg0) {
|
|
|
|
|
let obj = { color: importDefault(689).unsafe_rawColors.YELLOW_300 };
|
2026-07-24 07:16:23 +00:00
|
|
|
return callback(require(7577) /* CircleErrorIcon */.CircleErrorIcon, obj);
|
2026-07-23 10:11:24 +00:00
|
|
|
} else if (pad2.INFO === arg0) {
|
|
|
|
|
obj = { color: importDefault(689).unsafe_rawColors.BLUE_345 };
|
|
|
|
|
return callback(require(4086) /* CircleInformationIcon */.CircleInformationIcon, obj);
|
|
|
|
|
} else if (pad2.ERROR === arg0) {
|
|
|
|
|
const obj1 = { color: importDefault(689).unsafe_rawColors.RED_400 };
|
|
|
|
|
return callback(require(5776) /* CircleXIcon */.CircleXIcon, obj1);
|
|
|
|
|
} else if (pad2.SUCCESS === arg0) {
|
|
|
|
|
obj = { color: importDefault(689).unsafe_rawColors.GREEN_400 };
|
|
|
|
|
return callback(require(4091) /* CircleCheckIcon */.CircleCheckIcon, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function useContainerStyle(messageType, warningContainer) {
|
2026-07-23 10:11:24 +00:00
|
|
|
if (pad2.WARNING === messageType) {
|
2026-07-20 16:05:17 +00:00
|
|
|
return warningContainer.warningContainer;
|
2026-07-23 10:11:24 +00:00
|
|
|
} else if (pad2.INFO === messageType) {
|
2026-07-20 16:05:17 +00:00
|
|
|
return warningContainer.infoContainer;
|
2026-07-23 10:11:24 +00:00
|
|
|
} else if (pad2.ERROR === messageType) {
|
2026-07-20 16:05:17 +00:00
|
|
|
return warningContainer.errorContainer;
|
|
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
return pad2.SUCCESS === messageType ? warningContainer.successContainer : undefined;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
({ jsx: closure_4, jsxs: closure_5 } = jsxProd);
|
|
|
|
|
_createForOfIteratorHelperLoose = {};
|
|
|
|
|
_createForOfIteratorHelperLoose = { padding: require("_createForOfIteratorHelperLoose").space.PX_8, borderWidth: 1, borderStyle: "solid", gap: require("_createForOfIteratorHelperLoose").space.PX_8 };
|
|
|
|
|
_createForOfIteratorHelperLoose.container = _createForOfIteratorHelperLoose;
|
|
|
|
|
_createForOfIteratorHelperLoose.row = { display: "flex", flexDirection: "row", alignItems: "center" };
|
|
|
|
|
_createForOfIteratorHelperLoose.content = { flex: 1, marginLeft: require("_createForOfIteratorHelperLoose").space.PX_8 };
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj2 = {};
|
2026-07-23 10:11:24 +00:00
|
|
|
obj2.backgroundColor = pad2.int2rgba(pad2.hex2int(require("_createForOfIteratorHelperLoose").unsafe_rawColors.YELLOW_300), 0.1);
|
|
|
|
|
obj2.borderColor = require("_createForOfIteratorHelperLoose").unsafe_rawColors.YELLOW_300;
|
|
|
|
|
_createForOfIteratorHelperLoose.warningContainer = obj2;
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj3 = {};
|
2026-07-23 10:11:24 +00:00
|
|
|
obj3.backgroundColor = pad2.int2rgba(pad2.hex2int(require("_createForOfIteratorHelperLoose").unsafe_rawColors.BLUE_345), 0.1);
|
|
|
|
|
obj3.borderColor = require("_createForOfIteratorHelperLoose").unsafe_rawColors.BLUE_345;
|
|
|
|
|
_createForOfIteratorHelperLoose.infoContainer = obj3;
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj4 = {};
|
2026-07-23 10:11:24 +00:00
|
|
|
obj4.backgroundColor = pad2.int2rgba(pad2.hex2int(require("_createForOfIteratorHelperLoose").unsafe_rawColors.RED_400), 0.1);
|
|
|
|
|
obj4.borderColor = require("_createForOfIteratorHelperLoose").unsafe_rawColors.RED_400;
|
|
|
|
|
_createForOfIteratorHelperLoose.errorContainer = obj4;
|
|
|
|
|
pad2 = {};
|
|
|
|
|
pad2.backgroundColor = pad2.int2rgba(pad2.hex2int(require("_createForOfIteratorHelperLoose").unsafe_rawColors.GREEN_400), 0.1);
|
|
|
|
|
pad2.borderColor = require("_createForOfIteratorHelperLoose").unsafe_rawColors.GREEN_400;
|
|
|
|
|
_createForOfIteratorHelperLoose.successContainer = pad2;
|
|
|
|
|
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
|
|
|
|
|
pad2 = { WARNING: 0, [0]: "WARNING", INFO: 1, [1]: "INFO", ERROR: 2, [2]: "ERROR", SUCCESS: 3, [3]: "SUCCESS" };
|
|
|
|
|
let obj1 = { flex: 1, marginLeft: require("_createForOfIteratorHelperLoose").space.PX_8 };
|
|
|
|
|
const result = require("jsxProd").fileFinishedImporting("design/void/HelpMessage/native/HelpMessage.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function HelpMessage(textColor) {
|
|
|
|
|
let messageType;
|
|
|
|
|
let textVariant;
|
|
|
|
|
({ messageType, textVariant } = textColor);
|
|
|
|
|
if (textVariant === undefined) {
|
|
|
|
|
textVariant = "text-sm/medium";
|
|
|
|
|
}
|
|
|
|
|
let str = textColor.textColor;
|
|
|
|
|
if (str === undefined) {
|
|
|
|
|
str = "text-default";
|
|
|
|
|
}
|
|
|
|
|
let xs = textColor.borderRadius;
|
|
|
|
|
if (xs === undefined) {
|
2026-07-23 10:11:24 +00:00
|
|
|
xs = importDefault(689).radii.xs;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const tmp3 = _createForOfIteratorHelperLoose();
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = {};
|
|
|
|
|
const items = [tmp3.container, useContainerStyle(messageType, tmp3), ];
|
|
|
|
|
obj = { borderRadius: xs };
|
|
|
|
|
items[2] = obj;
|
|
|
|
|
obj.style = items;
|
|
|
|
|
obj = { style: tmp3.row };
|
|
|
|
|
const items1 = [getIcon(messageType), ];
|
|
|
|
|
const obj1 = { style: tmp3.content, color: str, variant: textVariant, children: textColor.children };
|
2026-07-24 07:16:23 +00:00
|
|
|
items1[1] = callback(require(4126) /* Text */.Text, obj1);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items1;
|
|
|
|
|
const items2 = [callback2(View, obj), textColor.button];
|
|
|
|
|
obj.children = items2;
|
|
|
|
|
return callback2(View, obj);
|
|
|
|
|
};
|
2026-07-23 10:11:24 +00:00
|
|
|
export const HelpMessageTypes = pad2;
|