74 lines
4.9 KiB
JavaScript
74 lines
4.9 KiB
JavaScript
/* Metro module 4530; source: unknown; dependencies: [27, 38, 110, 42, 117] */
|
|
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as Module00117Module from './module-00117.js'; /* Metro dependency 117 */
|
|
|
|
function _fun38668(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4708:6, offset: 0x010c6950, size: 554 bytes, params: 8, frame: 24
|
|
const env0_0 = require;
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactNativeModule;
|
|
value.codegenNativeCommands;
|
|
value.codegenNativeComponent;
|
|
object = {uiViewClassName: 'RNSSearchBar'};
|
|
object.directEventTypes = {topSearchFocus: {registrationName: 'onSearchFocus'},
|
|
topSearchBlur: {registrationName: 'onSearchBlur'},
|
|
topSearchButtonPress: {registrationName: 'onSearchButtonPress'},
|
|
topCancelButtonPress: {registrationName: 'onCancelButtonPress'},
|
|
topChangeText: {registrationName: 'onChangeText'}, topClose: {registrationName: 'onClose'},
|
|
topOpen: {registrationName: 'onOpen'}};
|
|
Object = global.Object;
|
|
const assign = Object.assign;
|
|
const object5 = {'hideWhenScrolling': true, 'autoCapitalize': true, 'placeholder': true, 'placement': true,
|
|
'allowToolbarIntegration': true, 'obscureBackground': true, 'hideNavigationBar': true, 'cancelButtonText': true,
|
|
'barTintColor': null, 'tintColor': null, 'textColor': null, 'autoFocus': true,
|
|
'disableBackButtonOverride': true, 'inputType': true};
|
|
object5.barTintColor = {process: (require(38) /* metro dependency 38 */).default};
|
|
object5.tintColor = {process: (require(38) /* metro dependency 38 */).default};
|
|
object5.textColor = {process: (require(38) /* metro dependency 38 */).default};
|
|
object5.hintTextColor = {process: (require(38) /* metro dependency 38 */).default};
|
|
object5.headerIconColor = {process: (require(38) /* metro dependency 38 */).default};
|
|
object5.shouldShowHintSearchIcon = true;
|
|
value = require(110) /* metro dependency 110 */;
|
|
const ConditionallyIgnoredEventHandlers = value.ConditionallyIgnoredEventHandlers;
|
|
object.validAttributes = Reflect.apply(assign, Object, [object5, Reflect.apply(ConditionallyIgnoredEventHandlers,
|
|
value, [{'onSearchFocus': true, 'onSearchBlur': true, 'onSearchButtonPress': true, 'onCancelButtonPress': true,
|
|
'onChangeText': true, 'onClose': true, 'onOpen': true}])]);
|
|
value = require(42) /* metro dependency 42 */;
|
|
value = value.get('RNSSearchBar', _fun38669);
|
|
const object6 = {blur: blur_38670, focus: focus_38671, clearText: clearText, toggleCancelButton: toggleCancelButton,
|
|
setText: setText, cancelSearch: cancelSearch};
|
|
exports.default = value;
|
|
exports.__INTERNAL_VIEW_CONFIG = object;
|
|
exports.Commands = object6;
|
|
function _fun38669() { // fn#38669, offset: 0x00c36b39, size: 9 bytes, params: 1, frame: 1
|
|
return env0_2;
|
|
}
|
|
|
|
function blur_38670(a0) { // fn#38670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4708:1242, offset: 0x010c6b7a, size: 51 bytes, params: 2, frame: 16
|
|
(Module00117Module).dispatchCommand(a0, 'blur', []);
|
|
}
|
|
|
|
function focus_38671(a0) { // fn#38671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4708:1303, offset: 0x010c6bad, size: 51 bytes, params: 2, frame: 16
|
|
(Module00117Module).dispatchCommand(a0, 'focus', []);
|
|
}
|
|
|
|
function clearText(a0) { // fn#38672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4708:1370, offset: 0x010c6be0, size: 51 bytes, params: 2, frame: 16
|
|
(Module00117Module).dispatchCommand(a0, 'clearText', []);
|
|
}
|
|
|
|
function toggleCancelButton(a0, a1) { // fn#38673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4708:1454, offset: 0x010c6c13, size: 58 bytes, params: 3, frame: 16
|
|
(Module00117Module).dispatchCommand(a0, 'toggleCancelButton', [a1]);
|
|
}
|
|
|
|
function setText(a0, a1) { // fn#38674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4708:1548, offset: 0x010c6c4d, size: 58 bytes, params: 3, frame: 16
|
|
(Module00117Module).dispatchCommand(a0, 'setText', [a1]);
|
|
}
|
|
|
|
function cancelSearch(a0) { // fn#38675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4708:1625, offset: 0x010c6c87, size: 51 bytes, params: 2, frame: 16
|
|
(Module00117Module).dispatchCommand(a0, 'cancelSearch', []);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun38668, 4530, [27, 38, 110, 42, 117]) /* metro module 4530, dependencies: [27, 38, 110, 42, 117] */;
|