decord/source/modules/application_commands/native/ApplicationCommandBar.tsx

411 lines
16 KiB
TypeScript
Raw Normal View History

2026-08-31 15:47:37 +00:00
// Module ID: 11939
// Function ID: 11940
2026-07-20 16:05:17 +00:00
// Name: ApplicationCommandOptionItem
2026-08-31 15:47:37 +00:00
// Dependencies: [32, 19, 17, 1992, 21, 4448, 712, 5352, 5036, 1236, 1297, 589, 11765, 5461, 4444, 8331, 8544, 11940, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-31 15:47:37 +00:00
// Module 11939 (ApplicationCommandOptionItem)
2026-08-24 06:08:38 +00:00
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import Button from "Button" /* 1297 */;
2026-08-31 15:47:37 +00:00
import PressableBase from "PressableBase" /* 5036 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
2026-08-31 15:47:37 +00:00
import closure_7 from "trackCommunicationDisabled" /* 1992 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-08-31 15:47:37 +00:00
import createCacheKey from "createCacheKey" /* 4448 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function ApplicationCommandOptionItem(arg0) {
({ option, optionState } = arg0);
2026-07-29 08:29:29 +00:00
const merged = Object.assign(arg0, Object.create(null));
2026-08-24 06:08:38 +00:00
const tmp2 = callback3();
2026-07-29 08:29:29 +00:00
let flag;
if (optionState != null) {
flag = optionState.isActive;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (flag == null) {
flag = false;
}
let obj = { accessibilityLabel: null, accessibilityRole: "button", disabled: null, style: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-07-20 16:05:17 +00:00
obj = { optionName: option.displayName };
2026-08-24 06:08:38 +00:00
obj[0] = intl.formatToPlainString(getSystemLocale.t.evoEHc, obj);
2026-07-29 08:29:29 +00:00
obj[2] = flag;
const items = [tmp2.applicationCommandOption, , ];
let activeCommandOption = flag;
if (flag) {
activeCommandOption = tmp2.activeCommandOption;
2026-07-20 16:05:17 +00:00
}
items[1] = activeCommandOption;
2026-07-29 08:29:29 +00:00
let completeCommandOption = !flag;
if (!flag) {
2026-07-20 16:05:17 +00:00
let success;
2026-07-29 08:29:29 +00:00
if (optionState != null) {
if (optionState.lastValidationResult != null) {
2026-07-20 16:05:17 +00:00
success = lastValidationResult.success;
}
}
completeCommandOption = success;
}
if (completeCommandOption) {
2026-07-29 08:29:29 +00:00
completeCommandOption = tmp2.completeCommandOption;
2026-07-20 16:05:17 +00:00
}
items[2] = completeCommandOption;
2026-07-29 08:29:29 +00:00
obj[3] = items;
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(merged);
2026-07-29 08:29:29 +00:00
const items1 = [tmp2.applicationCommandOptionText, , , ];
let activeCommandOptionText = flag;
if (flag) {
activeCommandOptionText = tmp2.activeCommandOptionText;
2026-07-20 16:05:17 +00:00
}
items1[1] = activeCommandOptionText;
2026-07-29 08:29:29 +00:00
let completeCommandOptionText = !flag;
if (!flag) {
2026-07-20 16:05:17 +00:00
let success1;
2026-07-29 08:29:29 +00:00
if (optionState != null) {
if (optionState.lastValidationResult != null) {
2026-07-20 16:05:17 +00:00
success1 = lastValidationResult2.success;
}
}
completeCommandOptionText = success1;
}
if (completeCommandOptionText) {
2026-07-29 08:29:29 +00:00
completeCommandOptionText = tmp2.completeCommandOptionText;
2026-07-20 16:05:17 +00:00
}
items1[2] = completeCommandOptionText;
2026-07-29 08:29:29 +00:00
let errorCommandOptionText = !flag;
if (!flag) {
2026-07-20 16:05:17 +00:00
let success2;
2026-07-29 08:29:29 +00:00
if (optionState != null) {
if (optionState.lastValidationResult != null) {
2026-07-20 16:05:17 +00:00
success2 = lastValidationResult3.success;
}
}
errorCommandOptionText = false === success2;
}
if (errorCommandOptionText) {
2026-07-29 08:29:29 +00:00
errorCommandOptionText = tmp2.errorCommandOptionText;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { style: items1, numberOfLines: 1, children: option.displayName };
2026-07-20 16:05:17 +00:00
items1[3] = errorCommandOptionText;
2026-08-24 06:08:38 +00:00
obj.children = closure_8(Button.LegacyText, obj);
return closure_8(PressableBase.PressableOpacity, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
({ View: c5, ScrollView: closure_6, StyleSheet } = get_ActivityIndicator);
2026-08-24 06:08:38 +00:00
({ jsx: closure_8, Fragment: c9, jsxs: c10 } = jsxProd);
2026-07-29 08:29:29 +00:00
createCacheKey = { applicationCommandBar: null, applicationIcon: null, applicationTopWrapperScrollView: null, applicationName: null, applicationOptionalOptionsDivider: null, applicationOptionalOptionsDividerWithNoRequired: null, applicationOptionalOptionsIndicator: null, applicationDescriptionContainer: null, applicationDescriptionDivider: null, applicationCommandOption: null, applicationCommandOptionText: null, activeCommandOption: null, activeCommandOptionText: null, completeCommandOptionText: null, errorCommandOptionText: null, optionDescriptionContainer: null, descriptionEllipsis: null, descriptionEllipsisDots: null, completeCommandOption: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { flexDirection: "column", backgroundColor: ThemesDefault.colors.MOBILE_FLOATING_ACCESSORY_BACKGROUND, borderRadius: ThemesDefault.modules.mobile.CHAT_INPUT_FLOATING_BORDER_RADIUS, borderWidth: ThemesDefault.modules.mobile.CHAT_INPUT_FLOATING_ACCESSORY_BORDER_WIDTH, borderColor: ThemesDefault.colors.MOBILE_FLOATING_ACCESSORY_BORDER, overflow: "hidden" };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { width: 24, height: 24, borderRadius: ThemesDefault.radii.md, marginRight: 16 };
2026-07-29 08:29:29 +00:00
createCacheKey[2] = { flexDirection: "row", alignItems: "center", paddingHorizontal: 16, paddingVertical: 8 };
createCacheKey[3] = { textAlignVertical: "center", marginRight: 12 };
2026-08-24 06:08:38 +00:00
let obj1 = { width: 24, height: 24, borderRadius: ThemesDefault.radii.md, marginRight: 16 };
createCacheKey[4] = { width: StyleSheet.hairlineWidth, marginVertical: 8, marginHorizontal: 12, backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_NORMAL, height: "100%" };
2026-07-29 08:29:29 +00:00
createCacheKey[5] = { marginLeft: 4 };
createCacheKey[6] = { marginHorizontal: 4, paddingVertical: 8 };
createCacheKey[7] = { flexShrink: 1 };
2026-08-24 06:08:38 +00:00
let obj2 = { width: StyleSheet.hairlineWidth, marginVertical: 8, marginHorizontal: 12, backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_NORMAL, height: "100%" };
createCacheKey[8] = { marginLeft: 0, backgroundColor: ThemesDefault.colors.MOBILE_COMMAND_BAR_DIVIDER };
let obj3 = { marginLeft: 0, backgroundColor: ThemesDefault.colors.MOBILE_COMMAND_BAR_DIVIDER };
createCacheKey[9] = { marginHorizontal: 4, padding: 8, fontSize: 12, alignItems: "center", borderRadius: ThemesDefault.radii.xs, backgroundColor: require("result").DARK_PRIMARY_800_LIGHT_PRIMARY_300 };
let obj4 = { marginHorizontal: 4, padding: 8, fontSize: 12, alignItems: "center", borderRadius: ThemesDefault.radii.xs, backgroundColor: require("result").DARK_PRIMARY_800_LIGHT_PRIMARY_300 };
createCacheKey[10] = { color: ThemesDefault.colors.TEXT_DEFAULT };
let obj5 = { color: ThemesDefault.colors.TEXT_DEFAULT };
createCacheKey[11] = { backgroundColor: ThemesDefault.colors.BACKGROUND_BRAND };
const obj6 = { backgroundColor: ThemesDefault.colors.BACKGROUND_BRAND };
createCacheKey[12] = { color: ThemesDefault.colors.WHITE };
2026-07-29 08:29:29 +00:00
createCacheKey[13] = { opacity: 0.5 };
2026-08-24 06:08:38 +00:00
const obj7 = { color: ThemesDefault.colors.WHITE };
createCacheKey[14] = { color: ThemesDefault.colors.TEXT_FEEDBACK_CRITICAL };
2026-07-29 08:29:29 +00:00
createCacheKey[15] = { overflow: "hidden", paddingHorizontal: 16, paddingVertical: 8, flexDirection: "row" };
2026-08-24 06:08:38 +00:00
const obj8 = { color: ThemesDefault.colors.TEXT_FEEDBACK_CRITICAL };
createCacheKey[16] = { marginLeft: 10, backgroundColor: ThemesDefault.colors.MOBILE_FLOATING_ACCESSORY_BACKGROUND };
const obj9 = { marginLeft: 10, backgroundColor: ThemesDefault.colors.MOBILE_FLOATING_ACCESSORY_BACKGROUND };
createCacheKey[17] = { backgroundColor: ThemesDefault.colors.INTERACTIVE_TEXT_DEFAULT };
const obj10 = { backgroundColor: ThemesDefault.colors.INTERACTIVE_TEXT_DEFAULT };
2026-07-29 08:29:29 +00:00
createCacheKey[18] = { backgroundColor: require("result").DARK_PRIMARY_660_LIGHT_PRIMARY_300 };
2026-08-24 06:08:38 +00:00
let closure_11 = createCacheKey.createStyles(createCacheKey);
2026-07-20 16:05:17 +00:00
function ApplicationCommandOptionDescription(option) {
option = option.option;
const optionState = option.optionState;
2026-08-24 06:08:38 +00:00
importDefault = undefined;
2026-07-23 10:11:24 +00:00
let first;
2026-07-29 08:29:29 +00:00
let callback;
2026-07-23 10:11:24 +00:00
let first1;
2026-08-24 06:08:38 +00:00
closure_5 = undefined;
2026-07-23 10:11:24 +00:00
c6 = undefined;
2026-08-24 06:08:38 +00:00
closure_7 = undefined;
const tmp = callback3();
2026-07-29 08:29:29 +00:00
const tmp4 = importDefault(first[16])(option);
importDefault = tmp4;
const tmp5 = callback(first1.useState(undefined), 2);
first = tmp5[0];
callback = tmp5[1];
const tmp7 = callback(first1.useState(0), 2);
first1 = tmp7[0];
closure_5 = tmp7[1];
[tmp10, c6] = callback(first1.useState(0), 2);
const tmp11 = importDefault(first[16])(first1);
2026-08-24 06:08:38 +00:00
closure_7 = tmp11;
2026-07-29 08:29:29 +00:00
const items = [tmp4, option, first1, tmp11];
2026-07-23 10:11:24 +00:00
const effect = first1.useEffect(() => {
2026-08-24 06:08:38 +00:00
if (closure_1 !== option) {
2026-07-20 16:05:17 +00:00
callback2(0);
2026-07-23 10:11:24 +00:00
_undefined(0);
2026-07-20 16:05:17 +00:00
callback(undefined);
} else {
let tmp2 = first1 > 0;
if (tmp2) {
2026-08-24 06:08:38 +00:00
tmp2 = 0 === closure_7;
2026-07-20 16:05:17 +00:00
}
if (tmp2) {
callback(1);
}
}
}, items);
const items1 = [first];
2026-07-29 08:29:29 +00:00
let tmp14 = 1 === first;
2026-07-23 10:11:24 +00:00
callback = first1.useCallback(() => {
2026-08-24 06:08:38 +00:00
closure_3(1);
2026-07-20 16:05:17 +00:00
}, items1);
2026-07-29 08:29:29 +00:00
if (tmp14) {
tmp14 = tmp10 === first1;
2026-07-20 16:05:17 +00:00
}
let str = "button";
2026-07-29 08:29:29 +00:00
if (tmp14) {
2026-07-20 16:05:17 +00:00
str = "text";
}
2026-07-29 08:29:29 +00:00
let obj = { accessibilityRole: str, disabled: tmp14, onPress: callback, children: null };
obj = { style: tmp.optionDescriptionContainer, children: null };
obj = { style: tmp.applicationDescriptionContainer, children: null };
2026-08-24 06:08:38 +00:00
error = undefined;
2026-07-29 08:29:29 +00:00
if (optionState != null) {
if (optionState.lastValidationResult != null) {
2026-07-20 16:05:17 +00:00
error = lastValidationResult.error;
}
}
2026-07-29 08:29:29 +00:00
function onDescriptionLayout(nativeEvent) {
const truncResult = Math.trunc(nativeEvent.nativeEvent.layout.height);
let tmp2 = undefined === first;
if (!tmp2) {
tmp2 = truncResult > first1;
}
if (tmp2) {
callback2(truncResult);
}
_undefined(truncResult);
}
2026-07-20 16:05:17 +00:00
if (null != error) {
2026-08-24 06:08:38 +00:00
obj1 = { lineClamp: null, onLayout: null, variant: "text-sm/medium", color: "text-feedback-critical", children: null };
2026-07-29 08:29:29 +00:00
obj1[0] = first;
obj1[1] = onDescriptionLayout;
obj1[4] = optionState.lastValidationResult.error;
let obj2 = obj1;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj2 = { lineClamp: null, onLayout: null, variant: "text-sm/medium", color: "mobile-text-heading-primary", children: null };
obj2[0] = first;
obj2[1] = onDescriptionLayout;
obj2[4] = null != option ? option.displayDescription : option.command.displayDescription;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = closure_8(option(first[14]).Text, obj2);
const items2 = [closure_8(closure_5, obj), ];
let tmp15Result = null;
if (tmp10 !== first1) {
({ descriptionEllipsis: obj6[0], descriptionEllipsisDots: obj6[1] } = tmp);
tmp15Result = tmp15(importDefault(tmp3[17]), { style: null, dotStyle: null });
const obj3 = { style: null, dotStyle: null };
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2[1] = tmp15Result;
obj[1] = items2;
obj[3] = closure_10(closure_5, obj);
return closure_8(option(first[8]).PressableOpacity, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj11 = { backgroundColor: require("result").DARK_PRIMARY_660_LIGHT_PRIMARY_300 };
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/application_commands/native/ApplicationCommandBar.tsx");
2026-07-20 16:05:17 +00:00
export default function _default(command) {
command = command.command;
const section = command.section;
2026-07-23 10:11:24 +00:00
({ guildId: dependencyMap, currentOption } = command);
2026-07-20 16:05:17 +00:00
const optionStates = command.optionStates;
const onPressOption = command.onPressOption;
2026-08-24 06:08:38 +00:00
closure_6 = undefined;
2026-07-29 08:29:29 +00:00
let ref;
let callback2;
c9 = undefined;
c10 = undefined;
let first;
2026-08-24 06:08:38 +00:00
closure_12 = undefined;
2026-07-29 08:29:29 +00:00
let stateFromStores;
2026-08-24 06:08:38 +00:00
closure_14 = undefined;
2026-07-23 10:11:24 +00:00
let tmp = first();
2026-08-24 06:08:38 +00:00
closure_6 = tmp;
2026-07-29 08:29:29 +00:00
ref = optionStates.useRef(null);
callback2 = optionStates.useRef({});
[tmp4, c9] = currentOption(optionStates.useState(false), 2);
2026-07-23 10:11:24 +00:00
const tmp3 = currentOption(optionStates.useState(false), 2);
2026-07-29 08:29:29 +00:00
[tmp6, c10] = currentOption(optionStates.useState(false), 2);
2026-07-23 10:11:24 +00:00
const tmp7 = currentOption(optionStates.useState(), 2);
first = tmp7[0];
2026-07-29 08:29:29 +00:00
closure_12 = tmp7[1];
2026-07-20 16:05:17 +00:00
const items = [command];
2026-07-23 10:11:24 +00:00
const effect = optionStates.useEffect(() => {
2026-07-20 16:05:17 +00:00
let options = false;
2026-08-24 06:08:38 +00:00
c1 = false;
2026-07-20 16:05:17 +00:00
options = options.options;
2026-07-29 08:29:29 +00:00
if (options != null) {
2026-07-20 16:05:17 +00:00
const item = options.forEach((required) => {
if (true !== required.required) {
2026-08-24 06:08:38 +00:00
c0 = true;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
c1 = true;
2026-07-20 16:05:17 +00:00
}
});
}
2026-08-24 06:08:38 +00:00
_undefined(options);
_undefined2(c1);
2026-07-20 16:05:17 +00:00
}, items);
const items1 = [currentOption];
2026-07-23 10:11:24 +00:00
const effect1 = optionStates.useEffect(() => {
2026-07-20 16:05:17 +00:00
let name;
2026-07-29 08:29:29 +00:00
if (currentOption != null) {
2026-07-20 16:05:17 +00:00
name = currentOption.name;
}
closure_12(name);
}, items1);
const items2 = [first, tmp];
2026-07-23 10:11:24 +00:00
const effect2 = optionStates.useEffect(() => {
2026-07-29 08:29:29 +00:00
let tmp2 = null;
2026-07-20 16:05:17 +00:00
if (null != first) {
2026-07-29 08:29:29 +00:00
tmp2 = ref.current[tmp];
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (null != tmp2) {
2026-07-20 16:05:17 +00:00
const current = ref.current;
2026-07-29 08:29:29 +00:00
if (current != null) {
const obj = { x: null, animated: true };
2026-08-24 06:08:38 +00:00
obj[0] = tmp2.x - obj.applicationTopWrapperScrollView.paddingHorizontal;
2026-07-20 16:05:17 +00:00
current.scrollTo(obj);
}
}
}, items2);
2026-07-29 08:29:29 +00:00
let obj = command(589);
2026-07-23 10:11:24 +00:00
const items3 = [ref];
2026-07-29 08:29:29 +00:00
stateFromStores = obj.useStateFromStores(items3, () => {
2026-07-20 16:05:17 +00:00
if (null != closure_2) {
let botId;
2026-07-29 08:29:29 +00:00
if (section != null) {
botId = tmp2.botId;
2026-07-20 16:05:17 +00:00
}
if (null != botId) {
2026-07-29 08:29:29 +00:00
return ref.getMember(tmp, tmp2.botId);
2026-07-20 16:05:17 +00:00
}
}
});
const items4 = [section, stateFromStores];
2026-08-24 06:08:38 +00:00
const memo = optionStates.useMemo(() => command(closure_1_2[12]).getApplicationCommandsIconSource(section, stateFromStores), items4);
2026-07-29 08:29:29 +00:00
closure_14 = optionStates.useCallback((nativeEvent, name) => {
2026-07-20 16:05:17 +00:00
nativeEvent = nativeEvent.nativeEvent;
const current = ref.current;
current[name.name] = { x: nativeEvent.layout.x, width: nativeEvent.layout.width };
ref.current = current;
}, []);
let name;
2026-07-29 08:29:29 +00:00
if (currentOption != null) {
2026-07-20 16:05:17 +00:00
name = currentOption.name;
}
2026-07-29 08:29:29 +00:00
let tmp17;
2026-07-20 16:05:17 +00:00
if (null != name) {
let name1;
2026-07-29 08:29:29 +00:00
if (currentOption != null) {
2026-07-20 16:05:17 +00:00
name1 = currentOption.name;
}
2026-07-29 08:29:29 +00:00
tmp17 = optionStates[name1];
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { style: tmp.applicationCommandBar, children: null };
obj = { ref, contentContainerStyle: tmp.applicationTopWrapperScrollView, keyboardShouldPersistTaps: "always", showsHorizontalScrollIndicator: false, horizontal: true, children: null };
let tmp22 = null != memo;
if (tmp22) {
2026-08-24 06:08:38 +00:00
obj1 = { style: null, source: null };
2026-07-29 08:29:29 +00:00
obj1[0] = tmp.applicationIcon;
obj1[1] = memo;
2026-08-31 15:47:37 +00:00
tmp22 = callback2(section(5461), obj1);
2026-07-20 16:05:17 +00:00
}
2026-08-31 15:47:37 +00:00
const items5 = [tmp22, callback2(command(4444).Text, { style: tmp.applicationName, lineClamp: 1, variant: "text-sm/semibold", color: "mobile-text-heading-primary", children: `/ ${command.displayName}` }), , ];
2026-07-23 10:11:24 +00:00
let options = command.options;
2026-07-20 16:05:17 +00:00
let mapped;
2026-07-29 08:29:29 +00:00
if (options != null) {
2026-07-20 16:05:17 +00:00
mapped = options.map((required) => {
2026-08-24 06:08:38 +00:00
closure_0 = required;
2026-07-20 16:05:17 +00:00
let tmp = null;
if (required.required) {
2026-07-29 08:29:29 +00:00
const obj = { option: null, onPress: null, optionState: null, onLayout: null };
obj[0] = required;
obj[1] = function onPress() {
let tmpResult;
2026-08-24 06:08:38 +00:00
if (closure_1_5 != null) {
2026-07-29 08:29:29 +00:00
tmpResult = tmp(closure_0);
}
return tmpResult;
};
obj[2] = optionStates[required.name];
obj[3] = function onLayout(arg0) {
2026-08-24 06:08:38 +00:00
return closure_1_14(arg0, closure_0);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
tmp = ref(closure_12, obj, required.name);
2026-07-20 16:05:17 +00:00
}
return tmp;
});
}
items5[2] = mapped;
2026-07-29 08:29:29 +00:00
let tmp19Result = null;
2026-07-20 16:05:17 +00:00
if (tmp4) {
const items6 = [tmp.applicationOptionalOptionsDivider, ];
let applicationOptionalOptionsDividerWithNoRequired = !tmp6;
2026-07-29 08:29:29 +00:00
if (!tmp6) {
2026-07-20 16:05:17 +00:00
applicationOptionalOptionsDividerWithNoRequired = tmp.applicationOptionalOptionsDividerWithNoRequired;
}
2026-07-29 08:29:29 +00:00
const obj3 = { style: null };
2026-07-20 16:05:17 +00:00
items6[1] = applicationOptionalOptionsDividerWithNoRequired;
2026-07-29 08:29:29 +00:00
obj3[0] = items6;
const items7 = [tmp25(tmp20, obj3), , ];
const obj4 = { style: null, lineClamp: 1, variant: "eyebrow", color: "text-muted", children: null };
obj4[0] = tmp.applicationOptionalOptionsIndicator;
const intl = tmp12(1236).intl;
obj4[4] = intl.string(tmp12(1236).t.U19GM3);
2026-08-31 15:47:37 +00:00
items7[1] = tmp25(tmp12(4444).Text, obj4);
2026-07-20 16:05:17 +00:00
const options1 = command.options;
let mapped1;
2026-07-29 08:29:29 +00:00
if (options1 != null) {
2026-07-20 16:05:17 +00:00
mapped1 = options1.map((required) => {
2026-08-24 06:08:38 +00:00
closure_0 = required;
2026-07-20 16:05:17 +00:00
let tmp = null;
if (!required.required) {
2026-07-29 08:29:29 +00:00
const obj = { option: null, onPress: null, optionState: null, onLayout: null };
obj[0] = required;
obj[1] = function onPress() {
2026-08-24 06:08:38 +00:00
return closure_1_5(closure_0);
2026-07-29 08:29:29 +00:00
};
obj[2] = optionStates[required.name];
obj[3] = function onLayout(arg0) {
2026-08-24 06:08:38 +00:00
return closure_1_14(arg0, closure_0);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
tmp = ref(closure_12, obj, required.name);
2026-07-20 16:05:17 +00:00
}
return tmp;
});
}
2026-07-29 08:29:29 +00:00
const obj5 = { children: null };
2026-07-20 16:05:17 +00:00
items7[2] = mapped1;
2026-07-29 08:29:29 +00:00
obj5[0] = items7;
tmp19Result = tmp19(c9, obj5);
const tmp28 = c9;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items5[3] = tmp19Result;
obj[5] = items5;
2026-08-31 15:47:37 +00:00
const items8 = [c10(closure_6, obj), callback2(command(8331).FormDivider, { style: tmp.applicationDescriptionDivider }), callback2(stateFromStores, { command, option: currentOption, optionState: tmp17 }), callback2(command(8331).FormDivider, { style: tmp.applicationDescriptionDivider })];
2026-07-29 08:29:29 +00:00
obj[1] = items8;
return c10(onPressOption, obj);
2026-07-20 16:05:17 +00:00
};