2026-10-13 12:43:34 +00:00
|
|
|
// Module ID: 17618
|
|
|
|
|
// Function ID: 17619
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: IconLabelBlock
|
2026-10-12 06:59:38 +00:00
|
|
|
// Dependencies: [109, 19, 17, 21, 5092, 587, 4827, 1200, 5088, 9640, 6157, 4969, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-13 12:43:34 +00:00
|
|
|
// Module 17618 (IconLabelBlock)
|
2026-10-09 10:00:15 +00:00
|
|
|
import react_native from "react-native" /* 17 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import nativeDefault from "native" /* 587 */;
|
2026-10-08 09:57:35 +00:00
|
|
|
import native from "native" /* 1200 */;
|
2026-10-10 08:08:14 +00:00
|
|
|
import native2 from "native" /* 4827 */;
|
|
|
|
|
import shared from "shared" /* 4969 */;
|
|
|
|
|
import Text_Text from "Text/Text" /* 5088 */;
|
2026-10-12 06:59:38 +00:00
|
|
|
import FastImageDefault from "FastImage" /* 6157 */;
|
|
|
|
|
import IconUploaderDefault from "IconUploader" /* 9640 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import _objectWithoutProperties from "_objectWithoutProperties" /* 109 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import react from "react" /* 19 */;
|
|
|
|
|
import Fragment from "Fragment" /* 21 */;
|
2026-10-10 08:08:14 +00:00
|
|
|
import createStyles from "createStyles" /* 5092 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-10-03 08:58:59 +00:00
|
|
|
let metroImportDefault;
|
|
|
|
|
let metroRequire;
|
|
|
|
|
let obj2;
|
|
|
|
|
let obj3;
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_3 = ["error"];
|
2026-10-09 10:00:15 +00:00
|
|
|
const View = react_native.View;
|
|
|
|
|
({ jsx: metroRequire, jsxs: metroImportDefault } = Fragment);
|
2026-10-03 08:58:59 +00:00
|
|
|
let obj = { wrapper: { alignItems: "center", paddingTop: 26, paddingBottom: 16 }, error: obj2, label: obj3, iconUploaderWrapper: { alignSelf: "stretch", alignItems: "center" }, text: { marginTop: 9 } };
|
|
|
|
|
obj2 = { fontSize: 12, textAlign: "center", alignSelf: "center", marginBottom: 10, color: nativeDefault.unsafe_rawColors.RED_400 };
|
|
|
|
|
const createLegacyClassComponentStyles = createStyles.createLegacyClassComponentStyles;
|
|
|
|
|
obj3 = { fontSize: 12, marginTop: 20, color: nativeDefault.colors.TEXT_SUBTLE };
|
2026-10-09 10:00:15 +00:00
|
|
|
const metroImportAll = createLegacyClassComponentStyles(obj);
|
2026-10-03 08:58:59 +00:00
|
|
|
const PureComponent = react.PureComponent;
|
2026-07-29 08:29:29 +00:00
|
|
|
class IconLabelBlock extends PureComponent {
|
2026-10-03 08:58:59 +00:00
|
|
|
renderLabel() {
|
|
|
|
|
let items;
|
|
|
|
|
const label = this.props.label;
|
|
|
|
|
let tmp3 = null;
|
|
|
|
|
if (null != label) {
|
|
|
|
|
const obj = { style: items, children: label };
|
|
|
|
|
items = [tmp.label, tmp2];
|
2026-10-09 10:00:15 +00:00
|
|
|
tmp3 = metroRequire(native.LegacyText, obj);
|
2026-10-03 08:58:59 +00:00
|
|
|
}
|
|
|
|
|
return tmp3;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
renderText() {
|
|
|
|
|
let items;
|
|
|
|
|
const text = this.props.text;
|
|
|
|
|
let tmp4 = null;
|
|
|
|
|
if (null != text) {
|
|
|
|
|
const obj = { variant: "heading-md/medium", color: "text-default", style: items, accessibilityRole: tmp3, children: text };
|
|
|
|
|
items = [tmp.text, tmp2];
|
2026-10-09 10:00:15 +00:00
|
|
|
tmp4 = metroRequire(Text_Text.Text, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
return tmp4;
|
|
|
|
|
}
|
|
|
|
|
renderIcon() {
|
|
|
|
|
let darkSource;
|
|
|
|
|
let errorProps;
|
|
|
|
|
let iconProps;
|
|
|
|
|
let items;
|
|
|
|
|
let items1;
|
|
|
|
|
let source;
|
2026-10-09 10:00:15 +00:00
|
|
|
const tmp = closure_8(this.context);
|
2026-10-03 08:58:59 +00:00
|
|
|
({ iconProps, source, darkSource, errorProps } = this.props);
|
|
|
|
|
if (null != iconProps) {
|
|
|
|
|
const error = iconProps.error;
|
|
|
|
|
const obj2 = { style: tmp.iconUploaderWrapper, children: items };
|
|
|
|
|
const obj3 = {};
|
2026-10-09 10:00:15 +00:00
|
|
|
const tmp12 = _objectWithoutProperties(iconProps, closure_3);
|
|
|
|
|
const tmp18 = IconUploaderDefault;
|
|
|
|
|
const merged = Object.assign(tmp12);
|
|
|
|
|
items = [metroRequire(tmp18, obj3), ];
|
|
|
|
|
let tmp15Result = null;
|
|
|
|
|
const tmp13 = metroImportDefault;
|
|
|
|
|
const tmp14 = View;
|
|
|
|
|
const tmp15 = metroRequire;
|
2026-10-03 08:58:59 +00:00
|
|
|
if (null != error) {
|
|
|
|
|
const obj4 = { style: items1, children: error };
|
|
|
|
|
items1 = [tmp.error, tmp4];
|
|
|
|
|
const LegacyText = native.LegacyText;
|
|
|
|
|
const merged1 = Object.assign(errorProps);
|
2026-10-09 10:00:15 +00:00
|
|
|
tmp15Result = tmp15(LegacyText, obj4);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-10-09 10:00:15 +00:00
|
|
|
items[1] = tmp15Result;
|
|
|
|
|
return tmp13(tmp14, obj2);
|
2026-10-03 08:58:59 +00:00
|
|
|
} else {
|
2026-10-09 10:00:15 +00:00
|
|
|
const tmp5 = metroRequire;
|
|
|
|
|
const tmp8 = FastImageDefault;
|
2026-10-03 08:58:59 +00:00
|
|
|
if (null == source) {
|
|
|
|
|
const obj = shared;
|
|
|
|
|
if (obj.isThemeLight(this.context.theme)) {
|
|
|
|
|
darkSource = tmp2;
|
|
|
|
|
}
|
|
|
|
|
source = darkSource;
|
|
|
|
|
}
|
|
|
|
|
const obj5 = { source, style: tmp3, resizeMode: "contain" };
|
2026-10-09 10:00:15 +00:00
|
|
|
return tmp5(tmp8, obj5);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
render() {
|
|
|
|
|
let items;
|
|
|
|
|
let items1;
|
|
|
|
|
const obj = { style: items, children: items1 };
|
2026-10-09 10:00:15 +00:00
|
|
|
items = [closure_8(this.context).wrapper, this.props.wrapperStyles];
|
2026-10-03 08:58:59 +00:00
|
|
|
items1 = [this.renderIcon(), this.props.children, this.renderLabel(), this.renderText()];
|
2026-10-09 10:00:15 +00:00
|
|
|
return metroImportDefault(View, obj);
|
2026-10-03 08:58:59 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const prototype = IconLabelBlock.prototype;
|
|
|
|
|
IconLabelBlock.contextType = native2.ThemeContext;
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("components_native/common/IconLabelBlock.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default IconLabelBlock;
|