decord/source/1809_Prev.js

73 lines
2.2 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1809
2026-07-25 08:10:48 +00:00
// Function ID: 19946
2026-07-20 16:05:17 +00:00
// Name: Prev
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 33, 1801, 1802, 1807, 1774, 1800]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 1809 (Prev)
2026-07-23 10:11:24 +00:00
import "result";
import { jsx } from "jsxProd";
2026-07-22 07:54:56 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
require("result").useCallback;
2026-07-20 16:05:17 +00:00
export default function Prev(icon) {
let button;
let children;
let disabled;
let isPrevDisabled;
let onPress;
let rippleRadius;
let style;
let theme;
({ children, onPress } = icon);
({ disabled, button } = icon);
({ rippleRadius, style } = icon);
if (undefined === button) {
2026-07-23 10:11:24 +00:00
button = importDefault(1801);
2026-07-20 16:05:17 +00:00
}
icon = icon.icon;
if (undefined === icon) {
2026-07-23 10:11:24 +00:00
icon = importDefault(1802);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let obj = onPress(1807);
2026-07-20 16:05:17 +00:00
const toolbarContext = obj.useToolbarContext();
({ theme, isPrevDisabled } = toolbarContext);
if (null != disabled) {
isPrevDisabled = disabled;
}
const items = [onPress];
obj = {
2026-07-23 10:11:24 +00:00
accessibilityHint: "Moves focus to the previous field",
accessibilityLabel: "Previous",
2026-07-20 16:05:17 +00:00
disabled: isPrevDisabled,
rippleRadius,
style,
2026-07-23 10:11:24 +00:00
testID: onPress(1800).TEST_ID_KEYBOARD_TOOLBAR_PREVIOUS,
2026-07-20 16:05:17 +00:00
theme,
onPress: useCallback((isDefaultPrevented) => {
if (null != onPress) {
onPress(isDefaultPrevented);
}
if (!isDefaultPrevented.isDefaultPrevented()) {
2026-07-23 10:11:24 +00:00
const KeyboardController = onPress(outer1_2[5]).KeyboardController;
2026-07-20 16:05:17 +00:00
KeyboardController.setFocusTo("prev");
}
}, items)
};
if (null == children) {
obj = { disabled: isPrevDisabled, theme, type: "prev" };
2026-07-23 10:11:24 +00:00
children = <icon disabled={isPrevDisabled} theme={theme} type="prev" />;
2026-07-20 16:05:17 +00:00
}
obj.children = children;
2026-07-23 10:11:24 +00:00
return <button accessibilityHint="Moves focus to the previous field" accessibilityLabel="Previous" disabled={isPrevDisabled} rippleRadius={rippleRadius} style={style} testID={onPress(1800).TEST_ID_KEYBOARD_TOOLBAR_PREVIOUS} theme={theme} onPress={useCallback((isDefaultPrevented) => {
if (null != onPress) {
onPress(isDefaultPrevented);
}
if (!isDefaultPrevented.isDefaultPrevented()) {
const KeyboardController = onPress(outer1_2[5]).KeyboardController;
KeyboardController.setFocusTo("prev");
}
}, items)} />;
2026-07-20 16:05:17 +00:00
};