67 lines
4.5 KiB
React
67 lines
4.5 KiB
React
/* Metro module 4530; source: unknown; dependencies: [27, 38, 110, 42, 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
|
|
var object2;
|
|
const env0_0 = require;
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = require(27) /* metro dependency 27 */;
|
|
value.codegenNativeCommands;
|
|
value.codegenNativeComponent;
|
|
object2 = {uiViewClassName: 'RNSSearchBar'};
|
|
object2.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 object3 = {'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};
|
|
object3.barTintColor = {process: (require(38) /* metro dependency 38 */).default};
|
|
object3.tintColor = {process: (require(38) /* metro dependency 38 */).default};
|
|
object3.textColor = {process: (require(38) /* metro dependency 38 */).default};
|
|
object3.hintTextColor = {process: (require(38) /* metro dependency 38 */).default};
|
|
object3.headerIconColor = {process: (require(38) /* metro dependency 38 */).default};
|
|
object3.shouldShowHintSearchIcon = true;
|
|
value = require(110) /* metro dependency 110 */;
|
|
const ConditionallyIgnoredEventHandlers = value.ConditionallyIgnoredEventHandlers;
|
|
object2.validAttributes = Reflect.apply(assign, Object, [object3, 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 object4 = {blur: blur, focus: focus_38671, clearText: clearText, toggleCancelButton: toggleCancelButton,
|
|
setText: setText, cancelSearch: cancelSearch};
|
|
exports.default = value;
|
|
exports.__INTERNAL_VIEW_CONFIG = object2;
|
|
exports.Commands = object4;
|
|
}
|
|
|
|
function blur(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
|
|
(require(117) /* metro dependency 117 */).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
|
|
(require(117) /* metro dependency 117 */).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
|
|
(require(117) /* metro dependency 117 */).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
|
|
(require(117) /* metro dependency 117 */).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
|
|
(require(117) /* metro dependency 117 */).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
|
|
(require(117) /* metro dependency 117 */).dispatchCommand(a0, 'cancelSearch', []);
|
|
}
|
|
|