Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
106 lines
2.9 KiB
TypeScript
106 lines
2.9 KiB
TypeScript
// Module ID: 12018
|
|
// Function ID: 12019
|
|
// Name: ChatInputNativeCommands
|
|
// Dependencies: [12019, 7767, 2]
|
|
|
|
// Module 12018 (ChatInputNativeCommands)
|
|
import createNonce from "createNonce" /* 7767 */;
|
|
import ChatInputNativeComponent from "ChatInputNativeComponent" /* 12019 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let result = size.fileFinishedImporting("modules/chat_input/native/ChatInputNativeCommands.tsx");
|
|
|
|
export default {
|
|
backspace(arg0) {
|
|
if (null != arg0) {
|
|
const Commands = ChatInputNativeComponent.Commands;
|
|
Commands.backspace(arg0);
|
|
}
|
|
},
|
|
blur(arg0) {
|
|
if (null != arg0) {
|
|
const Commands = ChatInputNativeComponent.Commands;
|
|
Commands.blur(arg0);
|
|
}
|
|
},
|
|
closeCustomKeyboard(arg0) {
|
|
if (null != arg0) {
|
|
const Commands = ChatInputNativeComponent.Commands;
|
|
Commands.closeCustomKeyboard(arg0);
|
|
}
|
|
},
|
|
flushText(arg0, arg1) {
|
|
if (null != arg0) {
|
|
const Commands = ChatInputNativeComponent.Commands;
|
|
Commands.flushText(arg0, arg1);
|
|
}
|
|
},
|
|
getText(arg0, set, arg2) {
|
|
closure_1 = arg2;
|
|
if (null == arg0) {
|
|
return null;
|
|
} else {
|
|
const nonce = createNonce.createNonce();
|
|
const result = set.set(nonce, (arg0) => {
|
|
set.delete(nonce);
|
|
closure_1(arg0);
|
|
});
|
|
const Commands = ChatInputNativeComponent.Commands;
|
|
Commands.flushText(arg0, nonce);
|
|
}
|
|
},
|
|
focus(arg0) {
|
|
if (null != arg0) {
|
|
const Commands = ChatInputNativeComponent.Commands;
|
|
Commands.focus(arg0);
|
|
}
|
|
},
|
|
openCustomKeyboard(arg0) {
|
|
if (null != arg0) {
|
|
const Commands = ChatInputNativeComponent.Commands;
|
|
Commands.openCustomKeyboard(arg0);
|
|
}
|
|
},
|
|
openSystemKeyboard(arg0) {
|
|
if (null != arg0) {
|
|
const Commands = ChatInputNativeComponent.Commands;
|
|
Commands.openSystemKeyboard(arg0);
|
|
}
|
|
},
|
|
setText(arg0, arg1) {
|
|
if (null != arg0) {
|
|
const Commands = ChatInputNativeComponent.Commands;
|
|
Commands.setText(arg0, arg1);
|
|
}
|
|
},
|
|
setSelectedRange(arg0, arg1, arg2) {
|
|
if (null != arg0) {
|
|
const Commands = ChatInputNativeComponent.Commands;
|
|
Commands.setSelectedRange(arg0, arg1, arg2);
|
|
}
|
|
},
|
|
updateTextBlocks(arg0, arg1, arg2) {
|
|
if (null != arg0) {
|
|
const Commands = ChatInputNativeComponent.Commands;
|
|
const _JSON = JSON;
|
|
const json = JSON.stringify(arg1);
|
|
Commands.updateTextBlocks(arg0, json, arg2);
|
|
}
|
|
},
|
|
replaceRange(arg0, keepCursorPosition) {
|
|
({ location: _location, length, text, nodes } = keepCursorPosition);
|
|
if (nodes === undefined) {
|
|
nodes = [];
|
|
}
|
|
let flag = keepCursorPosition.keepCursorPosition;
|
|
if (flag === undefined) {
|
|
flag = false;
|
|
}
|
|
const editId = keepCursorPosition.editId;
|
|
if (null != arg0) {
|
|
const Commands = ChatInputNativeComponent.Commands;
|
|
const _JSON = JSON;
|
|
Commands.replaceRange(arg0, _location, length, text, JSON.stringify(nodes), flag, editId);
|
|
}
|
|
}
|
|
};
|