decord/source/module_4696.js

97 lines
3.3 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 4696
// Function ID: 4697
// Dependencies: [109, 19, 17, 21, 4697, 4688]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 4696
import __INTERNAL_VIEW_CONFIGDefault from "__INTERNAL_VIEW_CONFIG" /* 4697 */;
import closure_4 from "_objectWithoutProperties" /* 109 */;
import importDefaultResult from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
let closure_3 = ["obscureBackground", "hideNavigationBar", "onFocus", "onBlur", "onSearchButtonPress", "onCancelButtonPress", "onChangeText"];
2026-07-29 08:29:29 +00:00
let c5 = importDefaultResult;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default importDefaultResult.forwardRef(function SearchBar(autoCapitalize, ref) {
ref = importDefaultResult.useRef(null);
const imperativeHandle = importDefaultResult.useImperativeHandle(ref, () => ({
2026-07-20 16:05:17 +00:00
blur() {
2026-07-29 08:29:29 +00:00
callback((arg0) => {
const Commands = callback(table[4]).Commands;
2026-07-20 16:05:17 +00:00
return Commands.blur(arg0);
});
},
focus() {
2026-07-29 08:29:29 +00:00
callback((arg0) => {
const Commands = callback(table[4]).Commands;
2026-07-20 16:05:17 +00:00
return Commands.focus(arg0);
});
},
toggleCancelButton(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
2026-07-29 08:29:29 +00:00
callback((arg0) => {
2026-08-24 06:08:38 +00:00
const Commands = callback(closure_1_2[4]).Commands;
2026-07-29 08:29:29 +00:00
return Commands.toggleCancelButton(arg0, callback);
2026-07-20 16:05:17 +00:00
});
},
clearText() {
2026-07-29 08:29:29 +00:00
callback((arg0) => {
const Commands = callback(table[4]).Commands;
2026-07-20 16:05:17 +00:00
return Commands.clearText(arg0);
});
},
setText(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
2026-07-29 08:29:29 +00:00
callback((arg0) => {
2026-08-24 06:08:38 +00:00
const Commands = callback(closure_1_2[4]).Commands;
2026-07-29 08:29:29 +00:00
return Commands.setText(arg0, callback);
2026-07-20 16:05:17 +00:00
});
},
cancelSearch() {
2026-07-29 08:29:29 +00:00
callback((arg0) => {
const Commands = callback(table[4]).Commands;
2026-07-20 16:05:17 +00:00
return Commands.cancelSearch(arg0);
});
}
}));
const items = [ref];
2026-08-24 06:08:38 +00:00
importDefault = importDefaultResult.useCallback((arg0) => {
2026-07-20 16:05:17 +00:00
const current = ref.current;
if (current) {
arg0(current);
} else {
const _console = console;
console.warn("Reference to native search bar component has not been updated yet");
}
}, items);
2026-08-24 06:08:38 +00:00
if (ref(4688).isSearchBarAvailableForCurrentPlatform) {
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-29 08:29:29 +00:00
const merged = Object.assign(autoCapitalize);
let str2 = autoCapitalize.autoCapitalize;
if (str2 == null) {
str2 = "systemDefault";
2026-07-20 16:05:17 +00:00
}
obj.autoCapitalize = str2;
2026-07-29 08:29:29 +00:00
({ obscureBackground, hideNavigationBar, onFocus, onBlur, onSearchButtonPress, onCancelButtonPress, onChangeText } = obj);
obj = { ref: null };
obj[0] = ref;
const tmp14 = callback(obj, closure_3);
const merged1 = Object.assign(tmp14);
2026-08-24 06:08:38 +00:00
let tmp3Result = tmp3(4688);
2026-07-29 08:29:29 +00:00
obj.obscureBackground = tmp3Result.parseBooleanToOptionalBooleanNativeProp(obscureBackground);
2026-08-24 06:08:38 +00:00
tmp3Result = tmp3(4688);
2026-07-29 08:29:29 +00:00
obj.hideNavigationBar = tmp3Result.parseBooleanToOptionalBooleanNativeProp(hideNavigationBar);
2026-07-20 16:05:17 +00:00
obj.onSearchFocus = onFocus;
obj.onSearchBlur = onBlur;
obj.onSearchButtonPress = onSearchButtonPress;
obj.onCancelButtonPress = onCancelButtonPress;
obj.onChangeText = onChangeText;
2026-08-24 06:08:38 +00:00
return jsx(__INTERNAL_VIEW_CONFIGDefault, { ref: null });
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
let _console = console;
2026-07-20 16:05:17 +00:00
console.warn("Importing SearchBar is only valid on iOS and Android devices.");
return View;
}
});